/* ===== PCA 官方网站 · 苹果风格设计系统 ===== */
:root {
  --primary: #1f6fd8;
  --primary-hover: #2b7fe0;
  --primary-soft: #e7eef6;
--primary-600: #123c7a;
--primary-50: #eef4fb;
--primary-700: #0e2e5e;
  --text: #1f2a44;
  --text-2: #4a5a6e;
  /* 暖米白压深一档：与纯白卡片形成可见对比，强化"暖纸张"质感（原 #f6f3ec 与纯白几乎无差） */
  --bg: #f1ece1;
  --surface: #ffffff;
  --surface-2: #fffdf8;
  --border: #d2d2d7;
  --green: #34c759;
  --green-soft: #e8f5e9;
  --amber: #ff9500;
  --amber-soft: #fdf3e7;
  --red: #ff3b30;
  --red-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.09);
  --radius: 18px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
/* 正文行宽限制：容器放宽后仍保证中文最佳阅读行长（约 34-40 个汉字/行），避免宽屏行长过长的跳读（认知学之父定） */
.lead, .section-head p, .card p { max-width: 68ch; }

/* ===== 顶部导航（磨砂玻璃） ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 48px; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  height: 42px; width: auto; display: block; flex: none;
}
.brand .name { line-height: 1.15; }
.brand .name .cn { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.brand .name .en { font-size: 10px; color: var(--text-2); letter-spacing: 0.3px; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-login { display: none; }  /* 桌面端登录在 header-cta 按钮，菜单项隐藏；≤1200px 时显示（见媒体查询） */
.nav > li { list-style: none; position: relative; flex: none; white-space: nowrap; }
.nav > li > a {
  display: block; padding: 6px 12px; color: var(--text); font-size: 12.5px; font-weight: 400; border-radius: 8px;
  letter-spacing: 0; transition: background 0.15s; white-space: nowrap;
}
.nav > li > a:hover, .nav > li > a.active { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.nav > li.has-sub > a::after { content: " ▾"; font-size: 9px; color: var(--text-2); }
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; list-style: none;
}
.nav > li:hover .sub, .nav > li.open .sub { display: block; }
.nav .sub a { display: block; padding: 8px 12px; font-size: 13px; color: var(--text); border-radius: 8px; letter-spacing: 0; }
.nav .sub a:hover { background: rgba(0, 0, 0, 0.04); color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 16px; }
/* 用户名截断（经典网站惯例）：导航栏用户名固定小宽度，超长只显示前几个字+省略号（悬停 title 显示全名），
   永远不挤占导航菜单——菜单位置固定不动（认知学之父定） */
.header-cta .btn { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; flex: none; }
.dash-header .who { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; flex: none; }
/* 导航栏布局固定：品牌固定靠左、菜单 flex:1 居中固定、用户名固定靠右——任何长度的用户名都不改变菜单位置。
   菜单项永不换行/不压缩（flex:none + nowrap）；宽度不足时优先让用户名按钮让位（1200px 以下隐藏），导航恒为一行 */
.site-header .bar { flex-wrap: nowrap; }
.site-header .bar .nav { flex: 1 1 auto; justify-content: center; min-width: 0; }
.site-header .bar .brand { flex: none; min-width: 0; }
.site-header .bar .brand .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 平板/小屏（≤1080px）：横向导航在这一区间会挤出视口（实测 768px 溢出 54px、834px 溢出 22px），
   统一切换为汉堡菜单，登录/注册并入菜单，杜绝全站横向溢出（认知学之父定 2026-08-28） */
@media (max-width: 1080px) {
  .header-cta .btn { display: none; }
  .nav-login { display: list-item !important; }
  .nav-login a { color: var(--primary, #123c7a); font-weight: 600; }
  .nav {
    display: none; position: absolute; top: 48px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 10px; align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav .sub { position: static; box-shadow: none; padding-left: 14px; }
  .hamburger { display: block; }
}
@media (max-width: 720px) {
  .dash-header .who { max-width: 80px; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: none; border-radius: 980px;
  padding: 8px 18px; font-size: 13px; font-weight: 500; cursor: pointer; letter-spacing: 0;
  transition: background 0.2s;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.green { background: var(--green); }
.btn.light { background: #fff; color: var(--primary); }
.btn.light:hover { background: #eef4fb; color: var(--primary); }
.btn.green:hover { background: #256d2e; }
.btn.lg { padding: 12px 26px; font-size: 15px; }
.hamburger { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }

/* ===== Hero（浅色大标题 + 渐变文字） ===== */
.hero {
  padding: 0 22px; text-align: center; background: var(--bg);
  /* svh 优先：规避移动端浏览器地址栏导致的 100vh 跳动/内容被裁（不支持时回退 vh） */
  min-height: calc(100vh - 48px);
  min-height: calc(100svh - 48px);
  display: flex; align-items: flex-start; justify-content: center;
  box-sizing: border-box;
}
.hero .container { width: 100%; padding: 120px 0 40px; }
.hero .eyebrow {
  display: inline-block; font-size: 14px; color: var(--text-2);
  /* 中英混排：字距从 0.1em 收到 0.04em——英文大写仍有呼吸感，中文不再被撑散（认知学之父定） */
  letter-spacing: 0.04em; margin-bottom: 30px;
}
.hero h1 { font-size: 76px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.12; color: var(--text); }
.hero h1 .grad {
  /* 兜底色在前：不支持 background-clip:text 的旧浏览器显示蓝色实色，不会变成透明不可见（认知学之父定） */
  color: #1f6fd8;
  background: linear-gradient(90deg, #1f6fd8, #c9a227 55%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .grad { color: transparent; }
}
.hero h1 .en { display: block; font-size: 19px; font-weight: 500; color: var(--text-2); margin-top: 18px; letter-spacing: 0; }
/* 纯中文副标语：中文字距归零（0.06em 会让汉字之间出现可见空隙，观感松散） */
.hero .lead { max-width: 640px; margin: 46px auto 0; font-size: 23px; color: var(--text-2); letter-spacing: 0; }
.hero .slogans { margin-top: 16px; font-size: 15px; color: var(--text-2); }
/* 按钮组：留白从 150px 收到 88px——首屏即可见 CTA，减少无意义空白，提升转化（认知学之父定） */
.hero .actions {
  margin: 88px auto 0; max-width: 560px;
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
}
.hero .actions .btn { flex: 1 1 220px; max-width: 250px; }

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.section-head .en { font-size: 13px; color: var(--text-2); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }
.section-head p { max-width: 620px; margin: 12px auto 0; color: var(--text-2); font-size: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid.g5 { grid-template-columns: repeat(5, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g6 { grid-template-columns: repeat(6, 1fr); }

/* 五维卡片 */
.dim-card { text-align: center; padding: 26px 16px; }
/* 兜底色在前：不支持 background-clip:text 时显示品牌蓝实色，不会透明消失（认知学之父定） */
.dim-card .letter {
  font-size: 34px; font-weight: 700; color: #1f6fd8;
  background: linear-gradient(135deg, #1f6fd8, #c9a227);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .dim-card .letter { color: transparent; }
}
.dim-card .name { font-weight: 600; margin-top: 2px; font-size: 16px; }
.dim-card .en { font-size: 11px; color: var(--text-2); }
/* 卡片描述 12.5px → 14px：中文小字号在手机上偏挤，可读性优先（认知学之父定） */
.dim-card .desc { font-size: 14px; color: var(--text-2); margin-top: 8px; text-align: left; letter-spacing: 0; line-height: 1.7; }
.dim-card .w { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--primary); background: var(--primary-soft); border-radius: 980px; padding: 2px 10px; }

/* 公式带（深色） */
.formula-band {
  background: #000; color: #f6f3ec; border-radius: var(--radius); padding: 28px 32px; overflow-x: auto;
  font-family: "SF Mono", "SFMono-Regular", "Menlo", "Consolas", monospace; font-size: 15px; line-height: 1.9; letter-spacing: 0;
}
.formula-band .hl { color: #4a90d9; font-weight: 600; }

/* 数据背书 */
.stats { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.stat { text-align: center; min-width: 160px; }
.stat .num { font-size: 34px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat .lbl { font-size: 13px; color: var(--text-2); }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 14px; letter-spacing: 0; }
th, td { border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--text); }
td { color: var(--text-2); }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius-sm); padding: 4px 8px; }

/* 徽章 */
.badge { display: inline-block; padding: 3px 12px; border-radius: 980px; font-size: 12px; font-weight: 500; }
.badge.blue { background: var(--primary-soft); color: var(--primary); }
.badge.green { background: var(--green-soft); color: #2e7d32; }
.badge.amber { background: var(--amber-soft); color: #b76e00; }
.badge.red { background: var(--red-soft); color: var(--red); }

/* 时间线 */
.timeline { list-style: none; border-left: 2px solid var(--border); padding-left: 26px; }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary-soft);
}
.timeline .t { font-weight: 600; }
.timeline .d { color: var(--text-2); font-size: 14px; }

/* 注意/声明框 */
.callout { border-radius: var(--radius-sm); padding: 16px 20px; margin: 18px 0; font-size: 14.5px; letter-spacing: 0; background: var(--primary-soft); }
.callout.warn { background: var(--amber-soft); }
.callout.danger { background: var(--red-soft); }
.callout.green { background: var(--green-soft); }

/* 面包屑 */
.crumbs { font-size: 13px; color: var(--text-2); padding: 18px 0 4px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--primary); }

/* 页面头 */
.page-hero { background: var(--surface); height: 193px; padding: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.page-hero p { color: var(--text-2); margin-top: 10px; max-width: 680px; margin-left: auto; margin-right: auto; }
/* 带背景图的页面头：深色遮罩上统一白字 + 文字阴影，确保任何图片上标题清晰可读（认知学之父定） */
.page-hero[style*="url("] h1 { color: #fff; text-shadow: 0 2px 14px rgba(8,20,45,.65), 0 1px 3px rgba(8,20,45,.8); }
.page-hero[style*="url("] p { color: rgba(255,255,255,.95); text-shadow: 0 1px 10px rgba(8,20,45,.6), 0 1px 3px rgba(8,20,45,.75); }
.page-hero[style*="url("] img { filter: drop-shadow(0 2px 10px rgba(8,20,45,.55)); }

/* 新闻 */
.news-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.news-item:last-child { border-bottom: none; }
.news-item .date { color: var(--text-2); font-size: 13px; }
.news-item h3 { font-size: 18px; font-weight: 600; margin: 4px 0 6px; letter-spacing: -0.01em; }

/* FAQ */
.faq details { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq summary { font-weight: 500; cursor: pointer; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px;
  font-family: inherit; letter-spacing: 0; background: var(--surface);
}

/* 页脚 */
/* 页脚改深蓝反白：长页面尾端"压得住"，收尾更具权威感（认知学之父定 2026-08-28） */
.site-footer { background: var(--primary-700); border-top: none; margin-top: 40px; padding: 48px 0 28px; color: rgba(255,255,255,.78); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.72); display: block; padding: 3px 0; font-size: 13px; }
.site-footer a:hover { color: #d9b844; }
.site-footer .brand-line { margin-bottom: 14px; color: #fff; }
.site-footer .brand-line img { filter: brightness(0) invert(1); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 32px; padding-top: 18px; font-size: 12px; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer .legal a { display: inline; padding: 0; margin-left: 12px; color: rgba(255,255,255,.6); }
.site-footer .legal a:hover { color: #d9b844; }

/* 占位框 */
.placeholder {
  border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 24px; text-align: center; color: var(--text-2); font-size: 13px;
}

@media (max-width: 900px) {
  .grid.g5, .grid.g6 { grid-template-columns: repeat(2, 1fr); }
  .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 46px; }
}
/* 标题断点过渡：76 → 60（1024px 笔记本）→ 46（900px 以下），避免中间尺寸跳变过大（认知学之父定） */
@media (max-width: 1024px) {
  .hero h1 { font-size: 60px; }
  .hero .container { padding: 100px 0 34px; }
}
@media (max-width: 720px) {
  .grid.g5, .grid.g6, .grid.g2 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hero { padding: 0 16px; min-height: calc(100vh - 48px); min-height: calc(100svh - 48px); }
  .hero .container { padding: 84px 0 30px; }
  .hero h1 { font-size: 46px; }
  .hero .lead { margin-top: 34px; font-size: 19px; }
  .hero .actions { margin-top: 56px; gap: 14px; }
  .hero .actions .btn { flex: 1 1 100%; max-width: 300px; }
  .section-head h2 { font-size: 28px; }
}

/* ===== 认证 / 门户 / 数据中心 ===== */
:root { --ink-2: #6e6e73; }
.auth-wrap { max-width: 440px; margin: 72px auto; }
.tabs { display:flex; gap:4px; margin-bottom:18px; background:var(--surface-2); padding:4px; border-radius:10px; }
.tab { flex:1; text-align:center; padding:8px; font-size:14px; font-weight:500; color:var(--text-2); border-radius:8px; cursor:pointer; transition:all .15s; }
.tab.active { background:#fff; color:var(--text); box-shadow:var(--shadow-sm); }
.btn.block { width:100%; padding:12px; font-size:15px; }
.dash-header { background:var(--surface); border-bottom:1px solid var(--border); padding:16px 0; position:sticky; top:0; z-index:40; }
.dash-header .bar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.kpi { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.kpi .card { text-align:center; padding:22px 16px; }
.kpi .num { font-size:30px; font-weight:700; color:var(--text); letter-spacing:-0.02em; }
.kpi .lbl { font-size:12px; color:var(--text-2); margin-top:4px; }
.pill { display:inline-block; padding:2px 10px; border-radius:980px; font-size:12px; background:var(--primary-soft); color:var(--primary); }
.table-toolbar { display:flex; gap:10px; margin:16px 0; flex-wrap:wrap; align-items:center; }
.hidden { display:none; }
.result-hero { text-align:center; padding:24px 0; }
.result-hero .big { font-size:56px; font-weight:700; letter-spacing:-0.02em; }
.result-hero .grade { font-size:20px; font-weight:600; color:var(--primary); margin-top:4px; }
.dim-bars { display:grid; gap:14px; margin:20px 0; }
.dim-bar { display:grid; grid-template-columns:110px 1fr 60px; align-items:center; gap:12px; }
.dim-bar .nm { font-size:14px; font-weight:600; }
.dim-bar .track { height:10px; background:var(--surface-2); border-radius:980px; overflow:hidden; }
.dim-bar .fill { height:100%; background:linear-gradient(90deg,#123c7a,#1f6fd8); border-radius:980px; }
.dim-bar .val { font-size:13px; color:var(--text-2); text-align:right; }
@media (max-width:720px){ .kpi { grid-template-columns:repeat(2,1fr); } }
/* 统一返回按钮 */
.back-btn{position:fixed;top:14px;left:14px;z-index:9999;display:inline-flex;align-items:center;gap:5px;text-decoration:none;font-size:13px;font-weight:600;color:var(--primary);background:rgba(255,255,255,.94);border:1px solid var(--border);padding:7px 16px;border-radius:20px;box-shadow:0 2px 10px rgba(0,0,0,.08);backdrop-filter:blur(6px);transition:all .15s;}
.back-btn:hover{background:var(--primary);color:#fff;border-color:var(--primary);}
/* 五维卡片暖点缀：hover 上浮 + 品牌蓝金边（消费心理学：视觉焦点与反馈） */
.dim-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.dim-card:hover{transform:translateY(-4px);border-color:#1f6fd8;box-shadow:0 16px 36px rgba(18,60,122,.16)}
.dim-card .letter{color:#1f6fd8}
/* 排版美化：区块英文小标品牌蓝，链接 hover 星辉金 */
.section-head .en{color:#1f6fd8}
a{transition:color .18s}
a:hover{color:#c9a227}

/* ===== 五维卡片区响应式（P0：移动端横向溢出修复） =====
   原三列 minmax(130px,1fr) 在 ≤430px 视口必然溢出（实测 375px 溢出 63px、390px 溢出 48px）。
   ≤720px 改两列、≤480px 单列，列宽用 minmax(0,1fr) 允许收缩（认知学之父定 2026-08-28） */
@media (max-width: 720px) {
  .dim-grid {
    grid-template-areas: 'o t' 'k p' 'c e' !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 100% !important;
  }
  .dim-card { padding: 20px 12px; }
  .dim-card .desc { font-size: 13.5px; }
}
@media (max-width: 480px) {
  .dim-grid {
    grid-template-areas: 'c' 'o' 't' 'k' 'p' 'e' !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
