/* Visual direction: Emerald-Amber Portal — teal #2BBBAD, amber #F0A202, editorial magazine layout */
:root {
  --teal: #2bbbad;
  --teal-deep: #1f9e92;
  --amber: #f0a202;
  --amber-deep: #d98900;
  --ink: #1a2421;
  --ink-soft: #5a6a64;
  --line: rgba(31, 158, 146, 0.16);
  --bg: #f3fbf8;
  --bg-2: #fff8ea;
  --surface: #ffffff;
  --shadow: 0 14px 34px rgba(31, 158, 146, 0.11);
  --radius: 14px;
  --max: 1140px;
  --font-display: "Noto Serif SC", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 8% -8%, rgba(43,187,173,.16), transparent 55%),
    radial-gradient(800px 360px at 96% 0%, rgba(240,162,2,.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 40%, var(--bg-2) 100%);
  line-height: 1.75;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--amber-deep); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243,251,248,.9);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto; min-height: 70px;
  display: flex; align-items: center; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.22rem;
}
.brand img { border-radius: 10px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .48rem .72rem; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: .93rem;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--teal-deep); background: rgba(43,187,173,.12);
}
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .68rem 1.15rem; border-radius: 10px;
  font-weight: 700; border: 1px solid transparent; transition: .2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #3cc9a8 55%, var(--amber));
  color: #fff !important; box-shadow: 0 10px 22px rgba(43,187,173,.25);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff !important; filter: brightness(1.03); }
.btn-ghost { background: #fff; color: var(--teal-deep) !important; border-color: rgba(43,187,173,.28); }
.btn-ghost:hover { background: #e8f8f5; }
.btn-lg { min-height: 50px; padding: .82rem 1.4rem; font-size: 1.02rem; }

.hero { padding: 0 0 1.5rem; }
.hero-banner {
  position: relative; overflow: hidden;
  border-radius: 0 0 28px 28px;
  min-height: clamp(320px, 48vw, 460px);
  display: grid; align-items: end;
  background: #1a2421;
}
.hero-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .88;
}
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,36,33,.15) 0%, rgba(26,36,33,.72) 78%);
}
.hero-copy {
  position: relative; z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto; padding: 2.4rem 0 2.2rem; color: #fff;
}
.eyebrow {
  display: inline-flex; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #ffe7a8; font-weight: 700; font-size: .84rem;
}
.hero-copy h1 {
  margin: .85rem 0 .65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.2; max-width: 14em;
}
.hero-copy h1 em { font-style: normal; color: #ffd56a; }
.hero-lead { margin: 0 0 1.2rem; max-width: 36em; color: rgba(255,255,255,.9); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-copy .btn-ghost { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.35); }
.hero-copy .btn-ghost:hover { background: rgba(255,255,255,.22); }

.section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: 1.4rem; flex-wrap: wrap;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.25;
}
.section-head p { margin: .35rem 0 0; color: var(--ink-soft); }
.section-head .more { font-weight: 700; color: var(--teal-deep); white-space: nowrap; }

.portal-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem;
}
.feature-story {
  position: relative; overflow: hidden; min-height: 280px;
  border-radius: 18px; background: #1a2421; color: #fff;
  display: flex; align-items: end; padding: 1.3rem;
}
.feature-story::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(43,187,173,.55), rgba(240,162,2,.35)),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.2), transparent 40%);
}
.feature-story > * { position: relative; z-index: 1; }
.feature-story .tag { background: rgba(255,255,255,.18); color: #fff; }
.feature-story h3 { margin: .55rem 0 .35rem; font-family: var(--font-display); font-size: 1.45rem; }
.feature-story p { margin: 0; color: rgba(255,255,255,.9); }

.news-list { display: grid; gap: .75rem; }
.news-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1rem 1.05rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-item .meta { color: var(--ink-soft); font-size: .82rem; margin-bottom: .35rem; }
.news-item h3 { margin: 0 0 .3rem; font-size: 1.02rem; font-family: var(--font-display); line-height: 1.4; }
.news-item h3 a { color: var(--ink); }
.news-item p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.rank-board {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.1rem 1.15rem;
}
.rank-board h3 { margin: 0 0 .9rem; font-family: var(--font-display); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li {
  display: grid; grid-template-columns: 36px 1fr auto; gap: .7rem; align-items: center;
  padding: .7rem 0; border-bottom: 1px dashed var(--line);
}
.rank-list li:last-child { border-bottom: 0; }
.rank-num {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-family: var(--font-display); color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}
.rank-list li:nth-child(n+4) .rank-num { background: #d7ece8; color: var(--teal-deep); }
.rank-list strong { display: block; color: var(--ink); }
.rank-list span { color: var(--ink-soft); font-size: .84rem; }
.rank-tag { color: var(--amber-deep); font-size: .82rem; font-weight: 700; }

.topic-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.topic-card {
  border-radius: 16px; min-height: 150px; padding: 1.1rem;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease;
}
.topic-card:hover { transform: translateY(-3px); }
.topic-card h3 { margin: 0 0 .25rem; font-family: var(--font-display); font-size: 1.12rem; color: #fff; }
.topic-card p { margin: 0; opacity: .92; font-size: .88rem; color: #fff; }
.t1 { background: linear-gradient(145deg, #2bbbad, #57c8a8); }
.t2 { background: linear-gradient(145deg, #f0a202, #f6c14d); }
.t3 { background: linear-gradient(145deg, #2aa8c4, #2bbbad); }
.t4 { background: linear-gradient(145deg, #e89a3c, #2bbbad); }

.feature-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.feature-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.05rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-item .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  margin-bottom: .75rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  font-family: var(--font-display);
}
.feature-item h3 { margin: 0 0 .35rem; font-family: var(--font-display); font-size: 1.05rem; }
.feature-item p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.soft-panel {
  background: rgba(255,255,255,.88); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(1.15rem, 2.6vw, 1.6rem);
}
.checklist { list-style: none; margin: .85rem 0 0; padding: 0; }
.checklist li { position: relative; padding: .45rem 0 .45rem 1.45rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .78rem;
  width: 10px; height: 10px; border-radius: 2px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.article-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.05rem; display: flex; flex-direction: column; gap: .45rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tag {
  display: inline-flex; width: fit-content; padding: .16rem .48rem; border-radius: 6px;
  background: #e7f7f4; color: var(--teal-deep); font-size: .76rem; font-weight: 700;
}
.article-card h3 { margin: 0; font-size: .98rem; line-height: 1.4; font-family: var(--font-display); }
.article-card h3 a { color: var(--ink); }
.article-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; flex: 1; }
.article-card .more { font-weight: 700; color: var(--teal-deep); }

.faq-list { display: grid; gap: .7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: .9rem 1rem;
  font-weight: 700; font-family: var(--font-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--teal-deep); }
.faq-item p { margin: 0; padding: 0 1rem .95rem; color: var(--ink-soft); }

.cta-band {
  border-radius: 20px; padding: clamp(1.5rem, 3.2vw, 2.2rem);
  background: linear-gradient(135deg, rgba(43,187,173,.95), rgba(240,162,2,.88));
  color: #fff; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 .45rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0 0 1rem; opacity: .95; }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep) !important; box-shadow: none; }
.cta-band .btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; }

.page-hero { padding: 2rem 0 .9rem; }
.page-hero h1 {
  margin: .6rem 0 .5rem; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.22;
}
.page-hero p { margin: 0; color: var(--ink-soft); max-width: 42em; }

.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; }
.side-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.05rem; position: sticky; top: 88px;
}
.side-card h3 { margin: 0 0 .6rem; font-family: var(--font-display); }
.side-card ul { margin: 0; padding-left: 1.05rem; color: var(--ink-soft); }
.side-card li { margin: .28rem 0; }

.steps { display: grid; gap: .75rem; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: .9rem 1rem;
}
.step-num {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  color: #fff; font-weight: 800; font-family: var(--font-display);
}
.step h3 { margin: 0 0 .18rem; font-size: 1rem; font-family: var(--font-display); }
.step p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 500px; }
th, td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #e8f7f4; color: var(--teal-deep); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.article-page { padding-bottom: 2.4rem; }
.article-body {
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(1.1rem, 2.6vw, 1.7rem);
}
.article-body h2 { margin: 1.4rem 0 .6rem; font-family: var(--font-display); font-size: 1.25rem; }
.article-body h3 { margin: 1.05rem 0 .4rem; font-size: 1.02rem; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body ul, .article-body ol { padding-left: 1.15rem; }
.lead { font-size: 1.02rem; color: var(--ink) !important; }
.meta-line { color: var(--ink-soft); font-size: .86rem; margin: .3rem 0 1rem; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1rem; }
.related a {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .75rem; color: var(--ink); font-weight: 600;
}

.site-footer {
  margin-top: 1.6rem; padding: 2.2rem 0 1rem;
  background: linear-gradient(180deg, transparent, rgba(43,187,173,.07));
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.15rem; }
.footer-brand p { color: var(--ink-soft); font-size: .9rem; }
.site-footer h3 { margin: 0 0 .6rem; font-size: .96rem; font-family: var(--font-display); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .28rem 0; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--teal-deep); }
.footer-bottom {
  width: min(100% - 2rem, var(--max)); margin: 1.35rem auto 0;
  padding-top: .85rem; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: .83rem;
}
.back-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--teal-deep);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; }

@keyframes rise { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.reveal { animation: rise .65s ease both; }

@media (max-width: 960px) {
  .portal-grid, .topic-strip, .feature-flow, .article-grid, .related, .footer-grid, .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side-card { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav, .nav-cta { display: none; }
  body.nav-open .site-nav {
    display: block; position: absolute; left: 0; right: 0; top: 70px;
    background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
    padding: .7rem 1rem 1rem;
  }
  body.nav-open .site-nav ul { flex-direction: column; }
  body.nav-open .nav-cta {
    display: flex; position: absolute; left: 1rem; right: 1rem; top: calc(70px + 270px);
    padding-bottom: 1rem;
  }
  .portal-grid, .topic-strip, .feature-flow, .article-grid, .related, .footer-grid, .content-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn, .cta-actions .btn, .nav-cta .btn { width: 100%; }
  .section-head { align-items: start; }
}
