/* ===== 沪上茶事 SHANGHAI TEA · 浅色宋式茶风 ===== */
:root{
  --tea-bg:#f7f3ea;
  --tea-card:#fffdf8;
  --tea-ink:#2f2a22;
  --tea-sub:#6b6253;
  --tea-line:#e2dccb;
  --tea-green:#7a9b76;
  --tea-green-d:#5c7a58;
  --tea-red:#b5442f;
  --tea-gold:#c9a86a;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--tea-bg);color:var(--tea-ink);font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.7}
a{color:var(--tea-green-d);text-decoration:none}
img{max-width:100%}
h1,h2,h3,.tea-logo,.tea-sec h2{font-family:"Noto Serif SC","Songti SC",SimSun,serif}

/* 进度条 */
.tea-progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--tea-green),var(--tea-gold));z-index:9999}

/* 顶部信息条 */
.tea-topbar{background:#efe8d8;border-bottom:1px solid var(--tea-line);font-size:13px;color:var(--tea-sub)}
.tea-wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.tea-topbar .tea-wrap{display:flex;justify-content:space-between;align-items:center;height:34px;gap:12px}
.tea-fest{color:var(--tea-red);font-weight:600}
.tea-weather{display:flex;gap:16px}

/* 头部导航 */
.tea-header{background:var(--tea-card);border-bottom:1px solid var(--tea-line)}
.tea-header .tea-wrap{display:flex;align-items:center;gap:26px;height:66px}
.tea-logo{display:flex;align-items:center;gap:10px;color:var(--tea-ink);white-space:nowrap}
.tea-logo-badge{width:34px;height:34px;background:var(--tea-red);color:#fff;display:flex;align-items:center;justify-content:center;border-radius:4px;font-family:"Noto Serif SC",SimSun,serif;font-size:19px;font-weight:700;box-shadow:inset 0 0 0 2px rgba(255,255,255,.25)}
.tea-logo b{font-size:21px;letter-spacing:2px;font-weight:700}
.tea-logo small{display:block;font-size:10px;letter-spacing:2.5px;color:var(--tea-gold);font-family:Arial,sans-serif}
.tea-nav{display:flex;gap:4px;flex:1;min-width:0}
.tea-nav a{padding:7px 13px;font-size:14px;color:var(--tea-ink);border-radius:6px;white-space:nowrap}
.tea-nav a:hover{background:#f0ece0;color:var(--tea-green-d)}
.tea-search{display:flex;align-items:center;border:1px solid var(--tea-line);border-radius:8px;overflow:hidden;background:#faf7ef;flex-shrink:0}
.tea-search input{border:none;background:transparent;padding:7px 12px;font-size:13px;width:170px;color:var(--tea-ink);outline:none}
.tea-search button{border:none;background:var(--tea-green-d);color:#fff;padding:7px 14px;font-size:13px;cursor:pointer}

/* 面包屑 */
.tea-crumb{font-size:13px;color:var(--tea-sub);padding:13px 0 0}
.tea-crumb a{color:var(--tea-green-d)}
.tea-crumb-sep{margin:0 7px;color:#c4bda8}

/* Hero */
.tea-hero{position:relative;height:420px;overflow:hidden;display:flex;align-items:center}
.tea-hero-img{position:absolute;inset:0;background:url('/templates/img/tea-hero.jpg') center 30% / cover no-repeat}
.tea-hero-mask{position:absolute;inset:0;background:linear-gradient(90deg,rgba(247,243,234,.94) 0%,rgba(247,243,234,.82) 42%,rgba(247,243,234,.15) 100%)}
.tea-hero .tea-wrap{position:relative;z-index:2}
.tea-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;letter-spacing:3px;color:var(--tea-red);font-weight:600}
.tea-eyebrow::before{content:"";width:26px;height:2px;background:var(--tea-red);display:inline-block}
.tea-hero h1{font-size:44px;line-height:1.25;font-weight:700;letter-spacing:2px;margin:14px 0 10px}
.tea-hero h1 em{color:var(--tea-red);font-style:normal;padding:0 6px}
.tea-hero-sub{font-size:15px;color:var(--tea-sub);max-width:640px}
.tea-hero-sub em{font-style:normal;color:var(--tea-gold);padding:0 8px}

/* 区块标题 */
.tea-sec{display:flex;align-items:baseline;gap:14px;margin:38px 0 18px;padding-bottom:10px;border-bottom:1px solid var(--tea-line)}
.tea-sec h2{font-size:23px;font-weight:700;letter-spacing:1px;white-space:nowrap}
.tea-sec h2::before{content:"茶";display:inline-block;width:26px;height:26px;line-height:26px;text-align:center;background:var(--tea-green-d);color:#fff;font-size:14px;border-radius:3px;margin-right:10px;vertical-align:2px}
.tea-sec h2 em{font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;color:var(--tea-sub);font-weight:400;letter-spacing:0}
.tea-sec-more{margin-left:auto;font-size:13px;color:var(--tea-green-d);white-space:nowrap}
.tea-sec-more:hover{color:var(--tea-red)}

/* 栏目导览 */
.tea-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:22px}
.tea-cat{display:flex;align-items:center;gap:13px;background:var(--tea-card);border:1px solid var(--tea-line);border-radius:10px;padding:15px 16px;color:var(--tea-ink)}
.tea-cat i{width:40px;height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#f0ece0;border-radius:8px;font-size:20px;font-style:normal;color:var(--tea-green-d)}
.tea-cat b{display:block;font-size:15px;font-weight:700}
.tea-cat span{font-size:12px;color:var(--tea-sub)}

/* 卡片网格 */
.tea-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.tea-card{background:var(--tea-card);border:1px solid var(--tea-line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .25s}
.tea-card:hover{box-shadow:0 6px 20px rgba(90,80,50,.12)}
.tea-card-img{position:relative;aspect-ratio:4/3;overflow:hidden;background:#efe8d8}
.tea-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.tea-card:hover .tea-card-img img{transform:scale(1.04)}
.tea-card-tag{position:absolute;top:10px;left:10px;background:rgba(247,243,234,.94);color:var(--tea-green-d);font-size:12px;padding:3px 9px;border-radius:4px;border:1px solid var(--tea-line)}
.tea-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.tea-card-body h3{font-size:17px;font-weight:700}
.tea-card-body p{font-size:13px;color:var(--tea-sub);line-height:1.65}
.tea-card-more{margin-top:auto;padding-top:8px;font-size:12px;color:var(--tea-gold);font-weight:600}

/* 精选大图条 */
.tea-feature{display:flex;gap:18px;align-items:stretch}
.tea-feature .tea-card{flex:1.15}
.tea-feature .tea-grid{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:18px}

/* 茶事日历 */
.tea-cal{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.tea-cal-item{display:flex;gap:14px;background:var(--tea-card);border:1px solid var(--tea-line);border-radius:10px;padding:15px}
.tea-cal-day{width:54px;height:54px;flex-shrink:0;background:var(--tea-green-d);color:#fff;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:"Noto Serif SC",serif}
.tea-cal-day b{font-size:22px;line-height:1}
.tea-cal-day span{font-size:11px;opacity:.85}
.tea-cal-item h4{font-size:15px;margin-bottom:3px}
.tea-cal-item p{font-size:12px;color:var(--tea-sub)}

/* 评价 */
.tea-testi{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.tea-testi-item{background:var(--tea-card);border:1px solid var(--tea-line);border-radius:10px;padding:16px}
.tea-testi-item p{font-size:14px;color:var(--tea-ink);margin-bottom:12px}
.tea-testi-h{display:flex;justify-content:space-between;font-size:12px;color:var(--tea-sub);border-top:1px dashed var(--tea-line);padding-top:9px}
.tea-testi-h b{color:var(--tea-green-d)}

/* FAQ */
.tea-faq{display:flex;flex-direction:column;gap:10px}
.tea-faq-item{background:var(--tea-card);border:1px solid var(--tea-line);border-radius:8px;overflow:hidden}
.tea-faq-q{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;cursor:pointer;font-weight:600;font-size:14px}
.tea-faq-ico{width:22px;height:22px;border:1px solid var(--tea-line);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--tea-green-d);font-size:14px;transition:transform .3s}
.tea-faq-item.on .tea-faq-ico{transform:rotate(45deg)}
.tea-faq-a{max-height:0;overflow:hidden;padding:0 16px;font-size:13px;color:var(--tea-sub);transition:max-height .3s,padding .3s}
.tea-faq-item.on .tea-faq-a{padding:0 16px 13px;max-height:300px}

/* 热门标签 */
.tea-hots{display:flex;flex-wrap:wrap;gap:10px}
.tea-hot{background:var(--tea-card);border:1px solid var(--tea-line);border-radius:20px;padding:7px 15px;font-size:13px;color:var(--tea-green-d)}
.tea-hot:hover{background:var(--tea-green-d);color:#fff;border-color:var(--tea-green-d)}

/* 列表页侧栏 */
.tea-body{display:flex;gap:26px;padding:24px 0 40px;align-items:flex-start}
.tea-side{width:270px;flex-shrink:0;display:flex;flex-direction:column;gap:16px}
.tea-widget{background:var(--tea-card);border:1px solid var(--tea-line);border-radius:10px;overflow:hidden}
.tea-widget-h{background:#f0ece0;padding:11px 15px;font-weight:700;font-size:14px;color:var(--tea-green-d);border-bottom:1px solid var(--tea-line);font-family:"Noto Serif SC",serif}
.tea-widget-b{padding:12px 15px}
.tea-widget-b ul{list-style:none}
.tea-widget-b li{padding:7px 0;border-bottom:1px dashed var(--tea-line);font-size:13px;display:flex;gap:8px;align-items:center}
.tea-widget-b li:last-child{border-bottom:none}
.tea-widget-b li i{width:18px;height:18px;flex-shrink:0;background:#f0ece0;color:var(--tea-green-d);border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-style:normal}
.tea-widget-b p{font-size:12px;color:var(--tea-sub)}
.tea-main{flex:1;min-width:0}
.tea-crumb2{font-size:13px;color:var(--tea-sub);margin-bottom:16px;padding:9px 14px;background:var(--tea-card);border:1px solid var(--tea-line);border-radius:8px}
.tea-crumb2 a{color:var(--tea-green-d)}
.tea-list{display:flex;flex-direction:column;gap:16px}
.tea-list-item{display:flex;gap:16px;background:var(--tea-card);border:1px solid var(--tea-line);border-radius:10px;overflow:hidden}
.tea-list-item img{width:210px;height:150px;object-fit:cover;flex-shrink:0;display:block}
.tea-list-item-b{padding:13px 16px;display:flex;flex-direction:column;gap:6px}
.tea-list-item-b h3{font-size:17px}
.tea-list-item-b h3 a{color:var(--tea-ink)}
.tea-list-item-b h3 a:hover{color:var(--tea-green-d)}
.tea-list-item-b p{font-size:13px;color:var(--tea-sub);flex:1}
.tea-list-meta{display:flex;gap:16px;font-size:12px;color:var(--tea-sub)}

/* 相关推荐 */
.tea-rel{margin-top:26px}
.tea-rel-h{font-size:17px;font-weight:700;margin-bottom:14px;padding-left:11px;border-left:3px solid var(--tea-green-d);font-family:"Noto Serif SC",serif}
.tea-rel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.tea-rel-item{background:var(--tea-card);border:1px solid var(--tea-line);border-radius:10px;overflow:hidden}
.tea-rel-item img{width:100%;aspect-ratio:8/5;object-fit:cover;display:block}
.tea-rel-item-b{padding:12px 14px}
.tea-rel-item-b span{font-size:11px;color:var(--tea-red);font-weight:600}
.tea-rel-item-b h3{font-size:14px;margin:4px 0}
.tea-rel-item-b p{font-size:12px;color:var(--tea-sub)}

/* 文章页 */
.tea-article{background:var(--tea-card);border:1px solid var(--tea-line);border-radius:10px;padding:26px 30px}
.tea-article header{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--tea-line)}
.tea-article h1{font-size:26px;line-height:1.4}
.tea-article-meta{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--tea-sub);margin-top:12px}
.tea-highlight{background:#f0ece0;border-left:3px solid var(--tea-green-d);padding:13px 16px;margin:16px 0;border-radius:0 6px 6px 0}
.tea-highlight h3{font-size:14px;color:var(--tea-green-d);margin-bottom:6px}
.tea-highlight p{font-size:13px;color:var(--tea-sub)}
.tea-article-body p{font-size:14.5px;color:var(--tea-ink);margin:14px 0}
.tea-tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.tea-tag{background:#f0ece0;border-radius:14px;padding:5px 12px;font-size:12px;color:var(--tea-green-d)}
.tea-pager{display:flex;justify-content:space-between;border-top:1px dashed var(--tea-line);padding-top:14px;font-size:13px}

/* 页脚 */
.tea-footer{background:#efe8d8;border-top:1px solid var(--tea-line);padding:34px 0 26px;margin-top:46px}
.tea-footer h4{font-size:19px;font-weight:700;letter-spacing:2px}
.tea-footer h4 span{color:var(--tea-red);padding:0 5px}
.tea-footer-sub{font-size:13px;color:var(--tea-sub);margin:6px 0 12px}
.tea-footer-meta{font-size:12px;color:var(--tea-sub);line-height:2}
.tea-footer-meta b{color:var(--tea-green-d)}
.tea-footer-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px;padding-top:12px;border-top:1px dashed #d8d0ba}
.tea-footer-links a{font-size:13px;color:var(--tea-green-d)}

/* 回到顶部 */
.tea-top{position:fixed;right:22px;bottom:26px;width:44px;height:44px;border-radius:50%;border:1px solid var(--tea-line);background:var(--tea-card);color:var(--tea-green-d);font-size:18px;cursor:pointer;display:none;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(90,80,50,.15);z-index:999}
.tea-top:hover{background:var(--tea-green-d);color:#fff}

/* 窄屏 */
@media (max-width:1100px){
  .tea-search{display:none}
}
@media (max-width:900px){
  .tea-body{flex-direction:column}
  .tea-side{width:100%}
  .tea-hero{height:340px}
  .tea-hero h1{font-size:32px}
  .tea-feature{flex-direction:column}
  .tea-list-item{flex-direction:column}
  .tea-list-item img{width:100%;height:auto;aspect-ratio:16/9}
  .tea-topbar .tea-wrap{flex-wrap:wrap;height:auto;padding:6px 16px}
  .tea-weather{flex-wrap:wrap;gap:8px}
  .tea-header .tea-wrap{flex-wrap:wrap;height:auto;padding:10px 16px;gap:12px}
  .tea-nav{order:3;width:100%;overflow-x:auto}
}

/* ===== 本地文章显示（自包含样式） ===== */
.wz-sec{width:100%;max-width:1168px;margin-left:auto;margin-right:auto;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;margin:26px auto 13px;padding:13px 18px;border-radius:14px;color:#fff;background:linear-gradient(150deg,#1c3f4d 0%,#28576a 48%,#3f8a9e 100%);box-shadow:0 12px 26px rgba(24,70,88,.35),inset 0 2px 0 rgba(255,255,255,.25),inset 0 -4px 10px rgba(0,0,0,.2);transform:translateZ(0);}
.wz-sec::before{content:"";position:absolute;top:0;left:0;width:100%;height:52%;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0));pointer-events:none;}
.wz-sec h2{position:relative;z-index:1;margin:0;font-size:17.5px;letter-spacing:2px;font-weight:800;display:flex;align-items:center;gap:9px;color:#fff;text-shadow:0 2px 5px rgba(0,0,0,.4);}
.wz-sec h2 i{font-style:normal;font-size:16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);border-radius:9px;padding:3px 7px;box-shadow:inset 0 1px 2px rgba(255,255,255,.35),0 2px 5px rgba(0,0,0,.25);}
.wz-sec h2 small{font-size:10.5px;letter-spacing:2px;font-weight:400;color:#f6cf8d;opacity:1;margin-left:3px;font-family:Arial,sans-serif;text-shadow:0 1px 2px rgba(0,0,0,.45);}
.wz-sec-more{position:relative;z-index:1;font-size:12.5px;color:#fff;letter-spacing:1px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.4);padding:5px 15px;border-radius:20px;box-shadow:inset 0 1px 1px rgba(255,255,255,.3),0 3px 8px rgba(0,0,0,.2);text-decoration:none;white-space:nowrap;}
.wz-sec-more:hover{background:rgba(255,255,255,.3);text-decoration:none;}
.wz-sec::after{content:"📚 每日更新 · 原创精选";position:absolute;right:95px;top:50%;transform:translateY(-50%);font-size:11.5px;color:#fff;opacity:.8;letter-spacing:1px;text-shadow:0 1px 3px rgba(0,0,0,.35);z-index:1;}
.wz-wrap{width:100%;max-width:1168px;margin-left:auto;margin-right:auto;padding:6px 2px 10px;}
.wz-list{margin:0;}
.wz-card{background:linear-gradient(180deg,#ffffff,#fdfaf6);border:1px solid #f0e6dc;border-radius:16px;padding:24px 26px;margin-bottom:24px;box-shadow:0 6px 18px rgba(80,50,30,.10),0 2px 4px rgba(80,50,30,.05),inset 0 1px 0 rgba(255,255,255,.95);position:relative;overflow:hidden;transition:all .3s ease;transform:translateZ(0);}
.wz-card::before{content:"";position:absolute;top:0;left:0;width:100%;height:4px;background:linear-gradient(90deg,#b03a7a,#e0558f,#f4bd49);opacity:.95;}
.wz-card::after{content:"";position:absolute;top:4px;left:0;width:100%;height:46px;background:linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,0));pointer-events:none;z-index:0;}
.wz-card:hover{box-shadow:0 16px 36px rgba(80,50,30,.18),0 4px 8px rgba(80,50,30,.06),inset 0 1px 0 rgba(255,255,255,.95);transform:translateY(-4px);}
.wz-card-title,.wz-card-excerpt,.wz-card-full{position:relative;z-index:1;}
.wz-card-title{margin:8px 0 12px;font-size:21px;line-height:1.5;letter-spacing:.5px;text-shadow:0 1px 2px rgba(176,58,122,.12);}
.wz-card-title a{color:#b03a7a;text-decoration:none;transition:color .2s ease;}
.wz-card-title a:hover{color:#8e2a5e;}
.wz-card-excerpt{font-size:13.5px;color:#9a8f86;line-height:1.7;background:linear-gradient(90deg,#faf7f4,#f6efe9);border-left:4px solid #e8b8a0;padding:9px 14px;border-radius:0 10px 10px 0;margin-bottom:15px;box-shadow:inset 0 1px 2px rgba(0,0,0,.03);}
.wz-card-excerpt:empty{display:none;margin-bottom:0;}
.wz-card-full{font-size:15px;line-height:1.9;color:#424242;word-wrap:break-word;border-top:1px dashed #eee2d6;padding-top:15px;}
.wz-card-full img{max-width:100%;height:auto;border-radius:10px;margin:8px 0;box-shadow:0 4px 14px rgba(0,0,0,.12);}
.wz-card-full h1,.wz-card-full h2,.wz-card-full h3{margin:1em 0 .5em;line-height:1.4;color:#2f2f2f;}
.wz-card-full h2{font-size:18px;border-left:4px solid #b03a7a;padding-left:10px;}
.wz-card-full h3{font-size:16px;}
.wz-card-full p{margin:0 0 1em;}
.wz-card-full ul,.wz-card-full ol{padding-left:1.6em;margin:0 0 1em;}
.wz-card-full li{margin-bottom:.4em;}
.wz-card-full blockquote{border-left:4px solid #b03a7a;margin:1em 0;padding:.6em 1em;background:#faf6f8;color:#666;border-radius:0 10px 10px 0;}
.wz-card-full table{border-collapse:collapse;width:100%;margin:1em 0;font-size:14px;}
.wz-card-full td,.wz-card-full th{border:1px solid #e5dcd2;padding:6px 10px;}
.wz-card-full th{background:#faf5f0;}
.wz-card-full a{color:#1976D2;text-decoration:underline;}
@media (max-width:768px){.wz-sec::after{display:none;}.wz-card{padding:18px 16px;}.wz-card-title{font-size:18px;}}

/* mb3 顶部搜索靠右 */
.tea-nav .tea-search{margin-left:auto}
