/* 古诗词鉴赏 - 极简原生CSS */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#faf9f7;--card:#fff;--text:#2d3436;--muted:#636e72;--accent:#0d9488;--border:#e5e7eb}
html{scroll-behavior:smooth}
body{font-family:-apple-system,"Segoe UI","Noto Sans SC",sans-serif;line-height:1.7;color:var(--text);background:var(--bg);background-image:url('https://wei.thax.cn/res/api/bing/?res=1080p&mode=301');background-size:cover;background-attachment:fixed;background-position:center;min-height:100vh}
.app{background:rgba(255,255,255,0.92);min-height:100vh}

/* 轮播 */
.carousel{position:relative;height:50vh;min-height:320px;overflow:hidden}
.carousel-bg{position:absolute;inset:0;background-size:cover;background-position:center;transition:opacity .5s}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:none;background:rgba(255,255,255,.8);font-size:24px;cursor:pointer;z-index:10;transition:background .2s}
.carousel-btn:hover{background:#fff}
.carousel-btn.prev{left:16px}.carousel-btn.next{right:16px}
.carousel-dots{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:10}
.carousel-dots button{width:10px;height:10px;border-radius:50%;border:none;background:rgba(255,255,255,.8);cursor:pointer;transition:.2s}
.carousel-dots button.active{background:var(--accent);transform:scale(1.25)}

/* 简介 */
.summary{padding:2rem 1rem;background:rgba(240,253,250,.5)}
.summary-box{max-width:1200px;margin:0 auto;background:var(--card);border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px rgba(0,0,0,.08);border-left:4px solid var(--accent)}
.summary-box h2{font-size:1.5rem;color:var(--accent);margin-bottom:.75rem}
.summary-box p{color:var(--muted)}

/* 诗词区 */
.poems{padding:3rem 1rem}
.poems-header{max-width:1200px;margin:0 auto 2rem;text-align:center}
.poems-header h1{font-size:clamp(2rem,5vw,3rem);color:var(--accent);margin-bottom:1.5rem;font-weight:600}
.poems-header p{color:var(--muted);max-width:720px;margin:0 auto;line-height:1.8;letter-spacing:.01em;font-size:1.05rem}

/* 加载 */
.loading{display:flex;flex-direction:column;align-items:center;padding:4rem}
.spinner{width:48px;height:48px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* 网格 */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem;max-width:1200px;margin:0 auto}

/* 卡片 */
.card{background:var(--card);border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.08);cursor:pointer;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-6px);box-shadow:0 12px 24px rgba(0,0,0,.12)}
.card-body{padding:1.25rem;background:linear-gradient(135deg,#f0fdfa,#eff6ff)}
.card h3{font-size:1.25rem;margin-bottom:.25rem}
.card .meta{font-size:.875rem;color:var(--muted);margin-bottom:.75rem}
.card .excerpt{color:var(--text);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* 弹窗 */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:100;padding:1rem}
.modal.show{display:flex}
.modal-content{background:var(--card);border-radius:16px;max-width:640px;width:100%;max-height:90vh;overflow-y:auto;position:relative;animation:fadeIn .2s}
@keyframes fadeIn{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
.modal-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:50%;border:none;background:var(--card);font-size:24px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.modal-close:hover{color:var(--accent)}
.modal-body{padding:2rem}
.modal-title{font-size:1.75rem;color:var(--accent);margin-bottom:.25rem}
.modal-author{color:var(--muted);margin-bottom:1.5rem}
.modal-section{margin-bottom:1.5rem}
.modal-section:last-child{margin-bottom:0}
.modal-section h4{display:flex;align-items:center;font-size:1rem;margin-bottom:.75rem}
.modal-section h4::before{content:'';width:4px;height:20px;border-radius:2px;margin-right:8px}
.modal-section:nth-child(1) h4::before{background:var(--accent)}
.modal-section:nth-child(2) h4::before{background:#3b82f6}
.modal-section:nth-child(3) h4::before{background:#6366f1}
.modal-section .content{padding:1rem;border-radius:8px;background:#f0fdfa}
.modal-section:nth-child(2) .content{background:#eff6ff}
.modal-section:nth-child(3) .content{background:#eef2ff}
.modal-section .content.center{text-align:center;font-size:1.25rem;line-height:2;font-family:"Noto Serif SC","STSong",serif}

/* 响应式 */
@media(max-width:640px){
  .carousel{height:40vh}
  .modal-body{padding:1.5rem}
}
