/* === chinatb.org — Core Stylesheet === */
/* Design: digital gallery + rose accent, VARIANCE 9 / MOTION 8 / DENSITY 2 */

/* === RESET & BASE === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:"PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif;
  font-size:16px;line-height:1.7;color:#2c1a24;
  background:#faf6f8;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* === CSS VARIABLES === */
:root{
  --theme-bg:#faf6f8;
  --theme-bg2:#f3e9ee;
  --theme-bg3:#eadde4;
  --theme-bg-card:#ffffff;
  --theme-border:#ecdde5;
  --theme-border-strong:#ddc3cf;
  --theme-accent:#ec4899;
  --theme-accent-glow:rgba(236,72,153,0.14);
  --theme-accent-dim:rgba(236,72,153,0.07);
  --theme-text:#2c1a24;
  --theme-text-dim:#6b4d5b;
  --theme-text-muted:#9b7d8a;
  --theme-radius:14px;
  --theme-radius-lg:14px;
  --theme-radius-sm:8px;
  --theme-max-w:1100px;
  --theme-header-h:64px;
}

/* === TYPOGRAPHY === */
h1,h2,h3,h4{color:#231219;font-family:'Helvetica Neue','PingFang SC','Microsoft YaHei',sans-serif;line-height:1.2;font-weight:800}
h1{font-size:clamp(2rem,4.2vw,3rem);letter-spacing:-0.02em}
h2{font-size:clamp(1.5rem,3vw,2.25rem);letter-spacing:-0.02em}
h3{font-size:1.125rem;letter-spacing:-0.01em}
p{margin-bottom:1rem}
a{color:var(--theme-accent);text-decoration:none;transition:color .2s}
a:hover{color:#d62c85}

/* === CONTAINER === */
.c{max-width:var(--theme-max-w);margin:0 auto;padding:0 24px}

/* === NAVIGATION === */
.sn{
  position:sticky;top:0;z-index:100;
  background:rgba(250,246,248,0.94);backdrop-filter:blur(16px);
  border-bottom:1px solid var(--theme-border);height:var(--theme-header-h);
}
.sn .c{
  display:flex;align-items:center;justify-content:space-between;
  height:100%;
}
.nl{
  font-size:1.25rem;font-weight:800;letter-spacing:-0.02em;
  color:#231219;white-space:nowrap;
}
.nl span{color:var(--theme-accent)}
.nl1{display:flex;align-items:center;gap:32px;list-style:none}
.nl1 a{
  color:var(--theme-text-dim);font-size:0.9rem;font-weight:500;
  transition:color .2s;white-space:nowrap;
}
.nl1 a:hover,.nl1 a.a{color:#231219}
.nc{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--theme-accent);color:#ffffff!important;
  padding:8px 18px;border-radius:999px;
  font-weight:700;font-size:0.85rem;
  transition:transform .15s,box-shadow .15s;
}
.nc:hover{transform:translateY(-1px);box-shadow:0 4px 20px var(--theme-accent-glow)}

/* Mobile nav toggle */
.nt{display:none;background:none;border:none;color:#f0f0f0;font-size:1.5rem;cursor:pointer;padding:8px}

/* === HERO === */
.h{
  padding:80px 0 80px;
  background:radial-gradient(ellipse 70% 60% at 50% 0%,rgba(236,72,153,0.06),transparent 60%);
}
.h .c{
  display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;
}
.he{
  font-size:0.75rem;text-transform:uppercase;letter-spacing:0.2em;
  color:var(--theme-accent);margin-bottom:16px;font-weight:600;
}
.ht{font-size:clamp(2rem,4.4vw,3rem);margin-bottom:20px}
.ht span{color:var(--theme-accent)}
.hs{
  font-size:1.05rem;color:var(--theme-text-dim);max-width:48ch;
  line-height:1.6;margin-bottom:32px;
}
.hc1{display:flex;gap:14px;flex-wrap:wrap}
.bp{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--theme-accent);color:#ffffff;
  padding:13px 28px;border-radius:999px;
  font-weight:700;font-size:0.95rem;
  transition:transform .15s,box-shadow .15s;
  white-space:nowrap;
}
.bp:hover{transform:translateY(-2px);box-shadow:0 8px 30px var(--theme-accent-glow);color:#ffffff}
.bo{
  display:inline-flex;align-items:center;gap:8px;
  background:transparent;color:#2c1a24;
  padding:13px 28px;border-radius:999px;
  font-weight:600;font-size:0.95rem;
  border:1px solid var(--theme-border-strong);
  transition:border-color .2s,background .2s;
  white-space:nowrap;
}
.bo:hover{border-color:var(--theme-accent);background:var(--theme-accent-dim);color:#2c1a24}
.hv{position:relative;aspect-ratio:4/3;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.4),0 0 0 1px rgba(255,255,255,0.06)}
.hvp{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  color:var(--theme-text-muted);font-size:0.85rem;
}
.hv img{width:100%;height:100%;object-fit:cover}

/* === SECTIONS === */
.s{padding:80px 0}
.sa{background:var(--theme-bg2)}
.sh{margin-bottom:48px}
.sh.c1{text-align:center}
.se{
  font-size:0.7rem;text-transform:uppercase;letter-spacing:0.22em;
  color:var(--theme-accent);margin-bottom:12px;font-weight:600;
}
.st{font-size:clamp(1.5rem,3vw,2.25rem);margin-bottom:12px}
.sd{color:var(--theme-text-dim);max-width:60ch;font-size:0.95rem;line-height:1.6}

/* === FEATURES GRID === */
.fg{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:28px;
}
.fc{
  background:var(--theme-bg-card);border:1px solid var(--theme-border);
  border-radius:var(--theme-radius);padding:32px 28px;
  transition:border-color .25s,transform .25s;
}
.fc:hover{border-color:var(--theme-border-strong);transform:translateY(-2px)}
.fi{
  width:64px;height:64px;border-radius:var(--theme-radius-sm);
  background:var(--theme-accent-dim);display:flex;align-items:center;
  justify-content:center;margin-bottom:20px;font-size:1.3rem;
}
.fc h3{font-size:1.05rem;margin-bottom:10px}
.fc p{font-size:0.9rem;color:var(--theme-text-dim);line-height:1.6;margin:0}

/* === STATS === */
.sg{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
}
.sc{
  text-align:center;padding:32px 20px;
  background:var(--theme-bg-card);border:1px solid var(--theme-border);
  border-radius:var(--theme-radius);
}
.sv{
  font-size:2.5rem;font-weight:800;color:var(--theme-accent);
  letter-spacing:-0.02em;line-height:1;
}
.sl{font-size:0.85rem;color:var(--theme-text-dim);margin-top:8px}

/* === NEWS (2-col large cards) === */
.ng{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}
.nc1{
  background:var(--theme-bg-card);border:1px solid var(--theme-border);
  border-radius:var(--theme-radius);overflow:hidden;
  transition:border-color .25s,transform .25s;
  display:flex;flex-direction:column;
}
.nc1:hover{border-color:var(--theme-border-strong);transform:translateY(-2px)}
.nci{
  width:100%;height:200px;
  background:linear-gradient(135deg,var(--theme-bg3),var(--theme-bg2));
  display:flex;align-items:center;justify-content:center;
  color:var(--theme-text-muted);font-size:0.8rem;
;overflow:hidden}
.nci img{width:100%;height:100%;object-fit:cover}
.ncb{padding:20px 24px 24px;flex:1;display:flex;flex-direction:column}
.ncb h3{font-size:1.05rem;margin-bottom:8px}
.ncb h3 a{color:#231219}
.ncb h3 a:hover{color:var(--theme-accent)}
.ncd{font-size:0.9rem;color:var(--theme-text-dim);line-height:1.6;margin-bottom:12px;flex:1}
.ncd1{font-size:0.78rem;color:var(--theme-text-muted)}

/* === GUIDE (3-col cards) === */
.gg{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}
.gc{
  background:var(--theme-bg-card);border:1px solid var(--theme-border);
  border-radius:var(--theme-radius);overflow:hidden;
  transition:border-color .25s,transform .25s;
}
.gc:hover{border-color:var(--theme-border-strong);transform:translateY(-2px)}
.gci{
  width:100%;height:180px;
  background:linear-gradient(135deg,var(--theme-bg3),var(--theme-bg2));
  display:flex;align-items:center;justify-content:center;
  color:var(--theme-text-muted);font-size:0.8rem;
;overflow:hidden}
.gci img{width:100%;height:100%;object-fit:cover}
.gcb{padding:18px 20px 20px}
.gcb h3{font-size:1rem;margin-bottom:6px}
.gcb h3 a{color:#231219}
.gcb h3 a:hover{color:var(--theme-accent)}
.gcb p{font-size:0.85rem;color:var(--theme-text-dim);line-height:1.5;margin:0}

/* === TRUST / PARTNER LOGO WALL === */
.tg{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:40px 48px;padding:20px 0;
}
.ti{
  height:56px;display:flex;align-items:center;
  opacity:0.85;transition:opacity .3s;
}
.ti svg,.ti img{height:100%;width:auto}
.ti:hover{opacity:0.8}

/* === FOOTER === */
.sf{
  background:var(--theme-bg2);border-top:1px solid var(--theme-border);
  padding:56px 0 32px;
}
.fg1{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;margin-bottom:40px;
}
.fb p{color:var(--theme-text-dim);font-size:0.9rem;line-height:1.7;margin-top:12px;max-width:36ch}
.fc1 h4{font-size:0.85rem;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:16px;color:var(--theme-text)}
.fc1 ul{list-style:none}
.fc1 ul li{margin-bottom:10px}
.fc1 ul li a{color:var(--theme-text-dim);font-size:0.9rem;transition:color .2s}
.fc1 ul li a:hover{color:#231219}
.fb1{
  border-top:1px solid var(--theme-border);padding-top:24px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:0.8rem;color:var(--theme-text-muted);
}
.fb1 a{color:var(--theme-text-dim)}

/* === BREADCRUMB === */
.b{padding:16px 0;font-size:0.85rem}
.b ol{list-style:none;display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.b li{color:var(--theme-text-dim);display:flex;align-items:center;gap:4px}
.b a{color:var(--theme-text-dim)}
.b a:hover{color:var(--theme-accent)}
.b .s1{color:var(--theme-text-muted);margin:0 4px}

/* === ARTICLE LIST (栏目页) === */
.al{display:flex;flex-direction:column;gap:0}
.ali{
  display:grid;grid-template-columns:1fr auto;
  gap:20px;padding:22px 0;border-bottom:1px solid var(--theme-border);
  align-items:start;
}
.ali:last-child{border-bottom:none}
.ali h3{font-size:1.1rem;margin-bottom:6px}
.ali h3 a{color:#231219}
.ali h3 a:hover{color:var(--theme-accent)}
.ald{font-size:0.9rem;color:var(--theme-text-dim);line-height:1.6;margin-bottom:8px;max-width:80ch}
.ald1{font-size:0.78rem;color:var(--theme-text-muted);white-space:nowrap}

/* === ARTICLE DETAIL === */
.ad{max-width:780px;margin:0 auto}
.ah{margin-bottom:40px;padding-bottom:32px;border-bottom:1px solid var(--theme-border)}
.ah h1{font-size:clamp(1.75rem,4vw,2.5rem);margin-bottom:16px}
.am{
  display:flex;gap:20px;flex-wrap:wrap;font-size:0.85rem;color:var(--theme-text-muted)
}
.ab1{line-height:1.9}
.ab1 h2{
  font-size:1.35rem;margin:40px 0 16px;padding-bottom:8px;
  border-bottom:1px solid var(--theme-border)
}
.ab1 h3{font-size:1.1rem;margin:28px 0 12px}
.ab1 p{margin-bottom:20px;color:#45303a}
.ab1 ul,.ab1 ol{margin-bottom:20px;padding-left:24px}
.ab1 li{margin-bottom:8px;color:#45303a}
.ab1 img{max-width:100%;height:auto;border-radius:var(--theme-radius-sm);margin:24px 0}
.ab1 blockquote{
  border-left:3px solid var(--theme-accent);padding:12px 20px;
  margin:24px 0;background:var(--theme-accent-dim);border-radius:0 var(--theme-radius-sm) var(--theme-radius-sm) 0;
  font-style:italic;color:var(--theme-text-dim);
}
.af{
  margin-top:48px;padding-top:24px;border-top:1px solid var(--theme-border);
}
.at{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.at1{
  display:inline-block;padding:4px 12px;
  background:var(--theme-bg-card);border:1px solid var(--theme-border);
  border-radius:999px;font-size:0.78rem;color:var(--theme-text-dim);
}
.ra{margin-top:32px}
.ra h3{font-size:1.1rem;margin-bottom:16px}
.ra ul{list-style:none}
.ra ul li{margin-bottom:10px}
.ra ul li a{font-size:0.95rem}

/* === PAGINATION === */
.p{
  display:flex;justify-content:center;gap:8px;margin-top:32px
}
.p a,.p span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;padding:0 12px;
  border:1px solid var(--theme-border);border-radius:var(--theme-radius-sm);
  font-size:0.9rem;color:var(--theme-text-dim);transition:all .2s;
}
.p a:hover{border-color:var(--theme-accent);color:var(--theme-accent)}
.p .c2{background:var(--theme-accent);color:#ffffff;border-color:var(--theme-accent);font-weight:700}
.p .d{opacity:0.3;pointer-events:none}

/* === 404 === */
.ep{text-align:center;padding:100px 0}
.ep h1{font-size:6rem;color:var(--theme-accent);line-height:1}
.ep p{color:var(--theme-text-dim);font-size:1.1rem;margin:16px 0 32px}
.el{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}

/* === SCROLL REVEAL === */
.r{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.r.v{opacity:1;transform:translateY(0)}

/* === RISK WARNING === */
.rw{
  background:rgba(236,72,153,0.04);border:1px solid rgba(236,72,153,0.16);
  border-radius:var(--theme-radius-sm);padding:16px 20px;
  font-size:0.85rem;color:var(--theme-text-dim);line-height:1.6;margin-top:32px;
}
.rw strong{color:var(--theme-accent)}

/* === SECTION DIVIDER (subtle) === */
.sd1{height:1px;background:var(--theme-border);max-width:var(--theme-max-w);margin:0 auto}

/* === RESPONSIVE === */
@media (max-width:768px){
  .nl1{display:none}
  .nl1.o{
    display:flex;flex-direction:column;
    position:absolute;top:var(--theme-header-h);left:0;right:0;
    background:rgba(250,246,248,0.98);backdrop-filter:blur(16px);
    padding:24px;gap:20px;border-bottom:1px solid var(--theme-border);
  }
  .nt{display:block}
  .h .c{grid-template-columns:1fr;gap:40px}
  .hv{}
  .fg1{grid-template-columns:1fr 1fr;gap:32px}
  .ali{grid-template-columns:1fr}
}
@media (max-width:480px){
  .h{padding:48px 0 56px}
  .hc1{flex-direction:column}
  .s{padding:56px 0}
  .sg{grid-template-columns:1fr 1fr}
  .fg1{grid-template-columns:1fr}
  .p a,.p span{min-width:36px;height:36px;font-size:0.8rem}
  .ng{grid-template-columns:1fr}
  .gg{grid-template-columns:1fr}
}

/* === NAV LOGO IMG === */
.nl img{display:block;height:36px;width:auto}
.fb .nl img{height:32px}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .r{opacity:1;transform:none;transition:none}
  .bp,.bo,.nc,.nc1,.gc,.bc,.fc{transition:none}
  .bp:hover,.bo:hover,.nc:hover,.nc1:hover,.gc:hover,.bc:hover,.fc:hover{transform:none;box-shadow:none}
}

/* === GALLERY HERO (chinatb variant) === */
.gallery-hero{padding:56px 0 0}
.gallery-hero .c{display:grid;grid-template-columns:0.95fr 1.05fr;gap:56px;align-items:center}
.gallery-hero .hc{text-align:left}
.gallery-hero .hs{margin:0 0 32px}
.gallery-hero .hc1{justify-content:flex-start}
.gallery-wall{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-rows:64px;gap:10px}
.g-card{
  border-radius:14px;overflow:hidden;position:relative;background:#ffffff;
  border:1px solid #ecdde5;box-shadow:0 8px 24px rgba(44,26,36,0.07);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s;
}
.g-card:hover{transform:translateY(-4px);border-color:#ec4899;box-shadow:0 14px 36px rgba(236,72,153,0.16)}
.g-card .g-art{width:100%;height:100%;object-fit:cover;display:block}
.g-card .g-info{
  position:absolute;left:0;right:0;bottom:0;padding:8px 12px;
  background:linear-gradient(0deg,rgba(255,255,255,0.95),rgba(255,255,255,0));
  font-size:0.72rem;color:#6b4d5b;font-weight:600;
}
.g-a{grid-column:span 3;grid-row:span 4}
.g-b{grid-column:span 3;grid-row:span 3}
.g-c{grid-column:span 2;grid-row:span 3}
.g-d{grid-column:span 2;grid-row:span 2}
.g-e{grid-column:span 2;grid-row:span 3}
/* === ASSET CATEGORY === */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.cat-card{
  background:#ffffff;border:1px solid #ecdde5;border-radius:14px;padding:26px 24px;
  transition:transform .25s ease,border-color .25s,box-shadow .25s;
}
.cat-card:hover{transform:translateY(-4px);border-color:#ec4899;box-shadow:0 12px 32px rgba(236,72,153,0.14)}
.cat-card .cat-ico{
  width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:rgba(236,72,153,0.1);color:#d62c85;font-weight:800;font-size:1.05rem;margin-bottom:16px;
}
.cat-card h3{font-size:1.05rem;margin:0 0 8px}
.cat-card h3 a{color:#231219}
.cat-card p{font-size:0.85rem;color:#6b4d5b;line-height:1.65;margin:0}
/* === RESPONSIVE === */
@media (max-width:768px){
  .gallery-hero .c{grid-template-columns:1fr;gap:32px}
  .gallery-wall{grid-auto-rows:56px}
  .cat-grid{grid-template-columns:1fr}
}
