/* 天量基金官网 · 全站样式
   设计令牌依据：outputs/handoff/前端开发交接说明.md
   基准：桌面 1920 设计稿（内容宽 1520）/ 移动 375 */

:root {
  /* 配色 */
  --c-bg: #FAF8F5;
  --c-bg-alt: #F0EDE9;
  --c-surface: #FFFFFF;
  --c-ink: #1A1A1A;
  --c-body: #5A5A5A;
  --c-muted: #A0A0A0;
  --c-line: #E2DDD6;
  --c-line-dark: #333333;
  --c-brand: #FE0002;

  /* 字号 */
  --fs-h1: 56px;
  --fs-page-title: 40px;
  --fs-section: 30px;
  --fs-quote: 34px;
  --fs-item-title: 18px;
  --fs-tab: 17px;
  --fs-brand: 20px;
  --fs-sub: 18px;
  --fs-body: 16px;
  --fs-btn: 16px;
  --fs-nav: 15px;
  --fs-link: 14px;
  --fs-meta: 13px;
  --fs-foot: 12px;

  /* 尺寸 */
  --nav-h: 80px;
  --container: 1520px;
  --nav-container: 1760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.nav-inner {
  width: 100%;
  max-width: var(--nav-container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ---------- 导航 ---------- */
.nav {
  height: var(--nav-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav-brand { font-size: var(--fs-brand); font-weight: 700; color: var(--c-ink); }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-item {
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--c-ink);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-item:hover { color: var(--c-brand); }
.nav-item.is-active {
  color: var(--c-brand);
  font-weight: 600;
  border-bottom-color: var(--c-brand);
}
.nav-icp { font-size: var(--fs-foot); color: var(--c-muted); white-space: nowrap; }
.nav-toggle { display: none; font-size: 14px; color: var(--c-ink); background: #F5F2EE; border: 1px solid var(--c-line); border-radius: 6px; padding: 8px 14px; min-height: 40px; cursor: pointer; font-family: inherit; white-space: nowrap; align-items: center; gap: 6px; }
.nav-toggle:hover { background: #EAE5DE; }
.nav-toggle:active { background: #E0DAD0; }
.nav-hello { font-size: 14px; color: var(--c-muted); white-space: nowrap; }
.nav-logout { font-size: 13px; color: var(--c-ink); background: #F5F2EE; border: 0; border-radius: 4px; padding: 6px 12px; cursor: pointer; font-family: inherit; }
.nav-logout:hover { background: #EAE5DE; }
.nav-login { font-size: 13px; color: var(--c-ink); background: #F5F2EE; border: 0; border-radius: 4px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.nav-login:hover { background: #EAE5DE; }

/* ---------- 内页头 ---------- */
.page-header {
  background: var(--c-bg-alt);
  padding: 52px 0;
}
.crumb { font-size: var(--fs-meta); color: var(--c-body); margin-bottom: 12px; }
.crumb a:hover { color: var(--c-brand); }
.page-title { font-size: var(--fs-page-title); font-weight: 700; margin: 0; }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section--white { background: var(--c-surface); }
.section--alt { background: var(--c-bg-alt); }
.section--bg { background: var(--c-bg); }
.section-title { font-size: var(--fs-section); font-weight: 700; margin: 0 0 8px; }
.section-sub { font-size: var(--fs-sub); color: var(--c-body); margin: 0 0 32px; }
.lead { font-size: var(--fs-sub); color: var(--c-body); line-height: 1.9; margin: 0 0 18px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--c-bg);
  padding: 96px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero h1 { font-size: var(--fs-h1); font-weight: 700; margin: 0 0 20px; line-height: 1.2; }
.hero-sub { font-size: var(--fs-sub); color: var(--c-body); margin: 0 0 36px; }
.hero-logo { width: 360px; height: 360px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* 首页 hero 文案轮播（替代原大 LOGO，合规三版每 2 秒轮换） */
.hero-rotate {
  position: relative;
  flex: 0 1 600px;
  max-width: 600px;
  min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: 72px 48px;
  box-shadow: 0 14px 50px rgba(0,0,0,.06);
}
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide__title { font-size: 30px; line-height: 1.45; font-weight: 700; color: var(--c-ink); margin: 0 0 18px; letter-spacing: .3px; }
.hero-slide__sub { font-size: 17px; line-height: 1.8; color: var(--c-body); margin: 0; }
.hero-rotate__dots { margin-top: 40px; text-align: center; }
.hero-rotate__dots .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-line); margin: 0 5px; transition: background .3s, width .3s; }
.hero-rotate__dots .dot.is-active { background: var(--c-brand); width: 22px; border-radius: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 52px;
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-btn);
  font-weight: 700;
  border-radius: 6px;
  transition: opacity .2s;
}
.btn:hover { opacity: .88; }

/* ---------- 档案数字条 ---------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: baseline;
}
.fact-item { font-size: var(--fs-sub); }
.fact-item strong { font-size: 28px; font-weight: 700; margin-right: 8px; }
.fact-sep { color: var(--c-line); }

/* ---------- 三支柱 / 卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.card h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.card h3 .num { color: var(--c-brand); margin-right: 10px; }
.card p { color: var(--c-body); margin: 0; line-height: 1.9; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-body);
  vertical-align: top;
}
.table th { width: 180px; color: var(--c-body); font-weight: 500; }
.table td { color: var(--c-ink); }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}
.timeline .time { width: 90px; flex-shrink: 0; font-weight: 700; color: var(--c-brand); }
.timeline .event { color: var(--c-body); line-height: 1.9; }

/* ---------- 流程 / 编号块 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 24px; }
.step .no { font-size: 24px; font-weight: 700; color: var(--c-brand); margin-bottom: 8px; }
.step h4 { font-size: var(--fs-item-title); margin: 0 0 8px; }
.step p { color: var(--c-body); font-size: 14px; margin: 0; line-height: 1.8; }

/* ---------- 引言 ---------- */
.quote-block {
  background: var(--c-ink);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.quote-block .quote { font-size: var(--fs-quote); font-weight: 700; margin: 0 0 12px; }
.quote-block .quote-note { font-size: var(--fs-sub); color: #D8D8D8; margin: 0; }

/* ---------- 资质二维码 ---------- */
.qr-group { display: flex; gap: 64px; flex-wrap: wrap; }
.qr-item { text-align: center; }
.qr-item img { width: 160px; height: 160px; object-fit: cover; border: 1px solid var(--c-line); background: #fff; }
.qr-item p { font-size: var(--fs-meta); color: var(--c-body); margin: 12px 0 0; }

/* ---------- 公司动态列表 ---------- */
.tabs { display: flex; gap: 48px; padding: 24px 0; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.tab { font-size: var(--fs-tab); font-weight: 500; color: var(--c-ink); padding-bottom: 6px; border-bottom: 2px solid transparent; }
.tab.is-active { font-weight: 700; color: var(--c-brand); border-bottom-color: var(--c-brand); }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { border-bottom: 1px solid var(--c-line); }
.news-item a { display: block; padding: 24px 0; }
.news-item .meta { font-size: var(--fs-meta); color: var(--c-muted); margin-bottom: 6px; }
.news-item .title { font-size: var(--fs-item-title); font-weight: 700; color: var(--c-ink); }
.news-item a:hover .title { color: var(--c-brand); }
/* 公告分类标签（公司公告 / 产品公告） */
.news-item .meta .cat {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px;
  font-size: 12px; line-height: 18px; vertical-align: 1px; border: 1px solid transparent;
}
.news-item .meta .cat--company { color: var(--c-body); background: rgba(0, 0, 0, .05); border-color: var(--c-line); }
.news-item .meta .cat--product { color: var(--c-brand); background: rgba(254, 0, 2, .06); border-color: rgba(254, 0, 2, .28); }

.pagination { display: flex; gap: 12px; align-items: center; padding: 40px 0; }
.page-num {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line); background: var(--c-surface); font-size: 14px;
}
.page-num.is-active { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

/* ---------- 公告详情（公文式） ---------- */
.article { background: var(--c-surface); padding: 56px 0; }
.article-inner { max-width: 1200px; margin: 0 auto; }
.article h1 { font-size: 32px; font-weight: 700; margin: 0 0 16px; text-align: center; }
.article .article-meta { text-align: center; font-size: var(--fs-meta); color: var(--c-muted); margin-bottom: 40px; }
.article .salutation { font-size: var(--fs-body); margin: 0 0 20px; }
.article p {
  font-size: var(--fs-body);
  line-height: 30px;
  text-indent: 2em;
  text-align: justify;
  margin: 0 0 18px;
  color: var(--c-ink);
}
.article .block { font-size: var(--fs-body); font-weight: 700; text-indent: 2em; text-align: justify; margin: 0 0 10px; color: var(--c-ink); }
.article .block-table { width: 100%; max-width: 720px; margin: 14px auto 24px; border-collapse: collapse; font-size: 15px; }
.article .block-table caption { caption-side: top; text-align: center; font-size: var(--fs-meta); color: var(--c-muted); margin-bottom: 8px; }
.article .block-table th, .article .block-table td { border: 1px solid var(--c-line); padding: 10px 14px; text-align: left; }
.article .block-table th { background: #F5F2EE; font-weight: 600; }
.article .block-table td:nth-child(1) { width: 32%; font-family: "Sarasa Mono SC", "JetBrains Mono", Consolas, monospace; }
.article figure { margin: 32px 0; text-align: center; }
.article figure img { margin: 0 auto; border-radius: 8px; background: var(--c-line); }
.article figcaption { font-size: var(--fs-meta); color: var(--c-muted); margin-top: 8px; }
.article .sign {
  text-align: right;
  margin-top: 40px;
  line-height: 1.9;
  font-size: var(--fs-body);
}
.article-nav { display: flex; justify-content: space-between; padding: 32px 0; border-top: 1px solid var(--c-line); gap: 24px; }
.article-nav a { font-size: 14px; color: var(--c-body); }
.article-nav a:hover { color: var(--c-brand); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { font-size: var(--fs-sub); padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.contact-list li span { color: var(--c-body); margin-right: 8px; }
.mp-qr { width: 160px; height: 160px; object-fit: cover; border: 1px solid var(--c-line); background: #fff; }
.mp-note { font-size: var(--fs-meta); color: var(--c-body); margin-top: 12px; text-align: center; }

/* ---------- 合格投资者声明（公文式正文） ---------- */
.doc { max-width: 1200px; }
.doc-h { font-size: var(--fs-item-title); font-weight: 700; margin: 36px 0 12px; }
.doc-h:first-child { margin-top: 0; }
.doc .lead { margin-bottom: 12px; }
.doc-list { margin: 0 0 16px; padding-left: 22px; }
.doc-list li { font-size: var(--fs-sub); color: var(--c-body); line-height: 1.9; margin-bottom: 6px; }

/* ---------- 合规提示块 ---------- */
.compliance {
  background: var(--c-bg-alt);
  padding: 56px 0;
}
.compliance p { color: var(--c-body); font-size: 14px; line-height: 1.9; margin: 0 0 12px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--c-ink); color: #fff; padding: 36px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer-brand { font-size: var(--fs-brand); font-weight: 700; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: var(--fs-link); }
.footer-links a:hover { color: var(--c-brand); }
.footer-divider { height: 1px; background: var(--c-line-dark); margin: 24px 0 18px; }
.footer-bottom { font-size: var(--fs-foot); color: var(--c-muted); line-height: 1.8; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--c-brand); text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  :root { --fs-h1: 40px; --fs-page-title: 32px; --fs-quote: 26px; --fs-section: 26px; }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-logo { width: 220px; height: 220px; }
  .hero-rotate { width: 100%; max-width: 700px; flex: 0 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .container, .nav-inner { padding: 0 24px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; --fs-h1: 32px; --fs-page-title: 26px; --fs-sub: 16px; }
  .nav-menu {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 12px 28px rgba(26,26,26,.10);
    padding: 6px 20px 14px;
    z-index: 60;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu .nav-item {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--c-line);
    border-bottom-color: var(--c-line);
  }
  .nav-menu .nav-item:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; font-size: 14px; padding: 10px 16px; min-height: 42px; }
  .nav-icp { display: none; }
  .nav-hello { display: none; }
  .nav-brand { font-size: 17px; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0; }
  .facts { gap: 20px; }
  .fact-item { font-size: 14px; }
  .fact-item strong { font-size: 20px; }
  .steps { grid-template-columns: 1fr; }
  .tabs { gap: 24px; }
  .qr-group { gap: 32px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .article p { line-height: 28px; }
  /* 手机版：hero 卡片通栏满屏（左右顶边，抵消容器的 24px 内边距） */
  .hero-rotate {
    width: calc(100% + 48px);
    max-width: none;
    margin: 0 -24px;
    padding: 36px 26px 40px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
  }
  .hero-slide__title { font-size: 22px; }
  .hero-slide__sub { font-size: 15px; }
  .hero-rotate__dots { margin-top: 26px; }
}

/* ---------- 404 页面不存在 ---------- */
.nf {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  background: var(--c-bg);
}
.nf-inner { width: 100%; max-width: 620px; text-align: center; }
.nf-code {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--c-brand);
  margin: 0;
}
.nf-rule { width: 56px; height: 3px; border-radius: 2px; background: var(--c-brand); margin: 26px auto 28px; }
.nf-title { font-size: var(--fs-section); font-weight: 700; margin: 0 0 16px; }
.nf-desc { font-size: var(--fs-sub); color: var(--c-body); line-height: 1.9; margin: 0 0 40px; }
.nf-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.nf-btn { width: 168px; font-family: inherit; cursor: pointer; }
/* 次按钮（描边）：通用，用于「次要操作」，如 404 页的返回上一页 */
.btn--ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-line); }
.btn--ghost:hover { opacity: 1; border-color: var(--c-ink); background: #F5F2EE; }

@media (max-width: 768px) {
  .nf { min-height: calc(100vh - 240px); padding: 56px 20px; }
  /* 手机浏览器地址栏收放会改变视口高度，dvh 避免内容被顶出首屏 */
  @supports (height: 100dvh) {
    .nf { min-height: calc(100dvh - 240px); }
  }
  .nf-code { font-size: 44px; letter-spacing: 1px; }
  .nf-rule { width: 44px; margin: 18px auto 20px; }
  .nf-title { font-size: 22px; margin-bottom: 14px; }
  .nf-desc { font-size: 15px; line-height: 1.85; margin-bottom: 30px; }
  .nf-actions { gap: 12px; }
  .nf-btn { width: 100%; max-width: 320px; }
}
