@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

:root{
  --bg:#22151a;
  --pink:#eb879c;
  --rose:#ffb6c1;
  --text:#fbeaee;
  --muted:#dcc0c8;
  --line:rgba(255,182,193,.22);
  --glass:linear-gradient(160deg,rgba(255,182,193,.11),rgba(255,182,193,.035));
  --shadow:0 2px 4px rgba(0,0,0,.34),0 18px 34px -20px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.07);
  --r:18px;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  font-family:'Kalam','Patrick Hand',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--text);
  background:
    radial-gradient(60vw 42vh at 88% -6%,rgba(235,135,156,.22),transparent 70%),
    radial-gradient(48vw 40vh at 4% 8%,rgba(255,182,193,.10),transparent 72%),
    var(--bg);
  background-attachment:fixed;
  overflow-wrap:break-word;
}

img{max-width:100%;height:auto;display:block}

a{color:var(--rose)}

:focus-visible{outline:3px solid var(--rose);outline-offset:3px;border-radius:8px}

.skip{
  position:fixed;left:10px;top:10px;z-index:80;
  transform:translateY(-220%);
  background:var(--rose);color:#2a1418;
  padding:10px 16px;border-radius:12px;text-decoration:none;font-weight:700;
  transition:transform .2s ease;
}
.skip:focus{transform:none}

/* 顶部两行：品牌行 + 分组菜单行 */
.top{
  position:sticky;top:0;z-index:40;
  background:rgba(30,18,23,.9);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  box-shadow:0 12px 30px -24px #000;
}

.brandrow{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  max-width:1180px;margin:0 auto;padding:8px 16px 4px;
}

.brand{
  display:inline-flex;align-items:center;gap:10px;
  min-height:44px;padding:2px 6px;border-radius:12px;
  color:var(--text);text-decoration:none;font-weight:700;font-size:1.12rem;
  transition:background .2s ease;
}
.brand:hover{background:rgba(255,182,193,.14)}
.brand .logo{width:34px;height:34px;border-radius:10px;object-fit:cover}
.brand .dot{
  width:14px;height:14px;border-radius:50%;
  background:linear-gradient(135deg,var(--rose),var(--pink));
  box-shadow:0 0 0 4px rgba(255,182,193,.16);
}

.ring{
  display:inline-flex;align-items:center;min-height:40px;padding:0 16px;
  border-radius:999px;border:1px solid var(--line);
  background:rgba(255,182,193,.10);
  color:var(--text);text-decoration:none;font-size:.95rem;
  transition:background .22s ease,transform .22s ease;
}
.ring:hover{background:rgba(255,182,193,.22);transform:translateY(-1px)}

.menu{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px;
  max-width:1180px;margin:0 auto;padding:0 16px 10px;
}
.menu a,.menu-label{
  display:inline-flex;align-items:center;min-height:44px;padding:0 12px;
  border-radius:12px;text-decoration:none;color:var(--text);font-size:.97rem;
  transition:background .2s ease,color .2s ease;
}
.menu a:hover{background:rgba(255,182,193,.16)}
.menu a[aria-current="true"]{background:rgba(255,182,193,.22);color:#fff}
.menu-label{color:var(--muted);cursor:default}
.menu-label::after{
  content:"";width:6px;height:6px;margin-left:8px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
}
.menu-group{position:relative}
.menu-group ul{
  position:absolute;top:calc(100% + 4px);left:0;z-index:50;
  min-width:216px;margin:0;padding:8px;list-style:none;
  border-radius:14px;border:1px solid var(--line);
  background:linear-gradient(160deg,#3b242b,#2a181e);
  box-shadow:var(--shadow);
  display:none;
}
.menu-group:hover>ul,.menu-group:focus-within>ul{display:block}
.menu-group ul a{width:100%;justify-content:flex-start}

/* 首屏 */
main{display:block}

.hero{
  max-width:1180px;margin:0 auto;padding:26px 16px 0;
  min-height:70vh;display:flex;flex-direction:column;
  text-align:right;
}
.hero-txt{margin-left:auto;max-width:46rem}
h1{
  margin:.35em 0 .3em;
  font-size:clamp(1.85rem,5.6vw,3.25rem);
  line-height:1.26;
  letter-spacing:.01em;
  color:#fff;
}
.lede{margin:0 0 22px;color:var(--muted);font-size:1.02rem}

.hero-fig{
  position:relative;margin:auto 0 0;
  height:32vh;min-height:188px;
  border-radius:var(--r);overflow:hidden;
  border:1px solid var(--line);
  background:linear-gradient(120deg,#4c2c36,#311d24 58%,#5d3543);
  box-shadow:var(--shadow);
}
.hero-img{width:100%;height:100%;object-fit:cover}
.hero-band{
  position:absolute;left:0;right:0;bottom:-1px;height:46px;
  background:linear-gradient(90deg,rgba(235,135,156,.92),rgba(255,182,193,.30));
  clip-path:polygon(0 100%,100% 34%,100% 100%);
}

/* 正文区：左侧目录 + 内容 */
.entry{
  display:grid;grid-template-columns:248px minmax(0,1fr);
  gap:28px;align-items:start;
  max-width:1180px;margin:0 auto;padding:34px 16px 44px;
}

.rail{
  position:sticky;top:152px;
  padding:16px;border-radius:var(--r);
  background:var(--glass);border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.rail-t{margin:0 0 10px;font-size:.8rem;letter-spacing:.22em;color:var(--pink)}
.rail-list{counter-reset:r;list-style:none;margin:0;padding:0;display:grid;gap:2px}
.rail-list li{counter-increment:r}
.rail-list a{
  display:flex;align-items:center;gap:8px;
  min-height:42px;padding:4px 6px;border-radius:10px;
  color:var(--text);text-decoration:none;font-size:.94rem;line-height:1.4;
  transition:background .2s ease;
}
.rail-list a::before{content:counter(r,decimal-leading-zero);font-size:.72rem;color:var(--pink);letter-spacing:.06em}
.rail-list a:hover,.rail-list a[aria-current="true"]{background:rgba(255,182,193,.18)}

.body{min-width:0;display:flex;flex-direction:column;gap:20px}
.body>*{
  margin:0;padding:24px 22px;
  border-radius:var(--r);border:1px solid var(--line);
  background:var(--glass);box-shadow:var(--shadow);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  animation:rise .48s cubic-bezier(.2,.75,.3,1) both;
}
.body>*:nth-child(1){animation-delay:.02s}
.body>*:nth-child(2){animation-delay:.06s}
.body>*:nth-child(3){animation-delay:.1s}
.body>*:nth-child(4){animation-delay:.14s}
.body>*:nth-child(5){animation-delay:.18s}
.body>*:nth-child(6){animation-delay:.22s}
.body>*:nth-child(7){animation-delay:.26s}
.body>*:nth-child(8){animation-delay:.3s}
.body>*:nth-child(n+9){animation-delay:.34s}

@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

.body article[id]{scroll-margin-top:156px}

.body h2{font-size:1.4rem;line-height:1.42;margin:0 0 .55em;color:#fff}
.body h2 small{
  display:block;margin-bottom:.4em;
  font-size:.76rem;font-weight:400;letter-spacing:.2em;color:var(--pink);
}
.body h3{font-size:1.14rem;margin:1.1em 0 .4em;color:#fff}
.body p{margin:0 0 1em}
.body p:last-child{margin-bottom:0}
.body ul,.body ol{padding-left:1.3em;margin:0 0 1em}
.body li{margin:.3em 0}
.body a{color:var(--rose);text-underline-offset:3px;transition:color .2s ease}
.body a:hover{color:#fff}
.body blockquote{
  margin:0 0 1em;padding:12px 16px;
  border-left:3px solid var(--pink);
  background:rgba(255,182,193,.09);
  border-radius:0 12px 12px 0;
}
.body figure{margin:0 0 1em}
.body figcaption{padding-top:6px;font-size:.85rem;color:var(--muted)}
.body img{border-radius:12px}
.body table{
  width:100%;display:block;overflow-x:auto;
  border-collapse:collapse;font-size:.95rem;
}
.body th,.body td{border:1px solid var(--line);padding:8px 10px;text-align:left}

/* 页脚：订阅块 + 三栏 + 底栏 */
.foot{
  margin-top:26px;padding-bottom:14px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(235,135,156,.10),rgba(34,21,26,0));
}
.foot-top{max-width:1180px;margin:0 auto;padding:26px 16px 0}
.sub{
  display:flex;flex-wrap:wrap;align-items:center;gap:12px;
  padding:16px 18px;border-radius:var(--r);
  background:var(--glass);border:1px solid var(--line);box-shadow:var(--shadow);
}
.sub-l{color:#fff;font-size:1.04rem}
.sub-row{display:flex;gap:10px;flex:1;min-width:220px}
.sub-row input{
  flex:1;min-height:44px;padding:0 14px;
  border-radius:12px;border:1px solid var(--line);
  background:rgba(0,0,0,.3);color:var(--text);
  font:inherit;font-size:.95rem;
}
.sub-row input::placeholder{color:var(--muted)}
.sub-row button{
  min-height:44px;padding:0 20px;border:0;border-radius:12px;
  background:linear-gradient(135deg,var(--rose),var(--pink));
  color:#2a1418;font:inherit;font-weight:700;cursor:pointer;
  box-shadow:0 8px 18px -10px rgba(235,135,156,.95);
  transition:transform .22s ease;
}
.sub-row button:hover{transform:translateY(-1px)}

.cols{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;
  max-width:1180px;margin:0 auto;padding:26px 16px 0;
}
.col-k{margin:0 0 8px;font-size:.76rem;letter-spacing:.22em;color:var(--pink)}
address{font-style:normal}
.foot .sign{display:block;margin-bottom:6px;font-size:1.08rem;font-weight:700;color:#fff}
.foot dl{margin:0;display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:2px 8px;align-items:center}
.foot dt{font-size:.9rem;color:var(--muted);min-height:40px;display:flex;align-items:center}
.foot dd{margin:0}
.foot dd a{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:10px;
  color:var(--rose);text-decoration:none;
  background:rgba(255,182,193,.09);
  transition:background .2s ease,color .2s ease;
}
.foot dd a:hover{background:rgba(255,182,193,.22);color:#fff}
.foot-links{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.foot-links a,.foot address a{
  display:inline-flex;align-items:center;min-height:40px;
  color:var(--text);text-decoration:none;
  border-bottom:1px dashed rgba(255,182,193,.42);
  transition:color .2s ease;
}
.foot-links a:hover,.foot address a:hover{color:var(--rose)}

.base{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;
  max-width:1180px;margin:24px auto 0;padding:14px 16px;
  border-top:1px solid var(--line);
  font-size:.88rem;color:var(--muted);
}
.base-links{display:flex;gap:16px;margin:0}
.base-links a{display:inline-flex;align-items:center;min-height:40px;color:var(--text);text-decoration:none}
.base-links a:hover{color:var(--rose)}

@media (max-width:900px){
  .entry{grid-template-columns:1fr;gap:20px;padding-top:22px}
  .rail{position:static}
  .rail-list{display:flex;flex-wrap:wrap;gap:2px}
  .rail-list a{min-height:44px}
}

@media (max-width:860px){
  .menu-group ul{
    position:static;display:flex;flex-wrap:wrap;
    min-width:0;padding:0;border:0;background:none;box-shadow:none;
  }
  .menu-label::after{display:none}
  .menu-label{padding-right:2px;font-size:.85rem;letter-spacing:.1em}
  .menu-group{display:flex;flex-wrap:wrap;align-items:center}
}

@media (max-width:760px){
  .cols{grid-template-columns:1fr}
  .hero{min-height:auto;padding-top:18px}
  .hero-fig{height:30vh;min-height:170px;margin-top:4px}
}

button[aria-expanded]{min-width:44px;min-height:44px}
