/* ===== 富特来 · 企业官网 基础样式 ===== */
:root {
  --brand: #0f4c81;
  --brand-600: #0b3a63;
  --brand-100: #e9f1f8;
  --accent: #00a9a5;
  --accent-soft: #e5f6f5;
  --gold: #c8a45c;
  --ink: #0e1b2a;
  --ink-2: #27364a;
  --muted: #5c6b80;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(15, 76, 129, .06);
  --shadow: 0 12px 32px rgba(15, 76, 129, .09);
  --shadow-lg: 0 24px 60px rgba(15, 76, 129, .14);
  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 64px 0; }

/* ===== 通用元件 ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--brand); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-head.center .eyebrow { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(15, 76, 129, .22); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand);
  font-size: 12.5px; font-weight: 600;
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: .25s ease;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #dbe4ee; }

/* 数字产品板块：卡片作为链接 */
a.card { display: block; color: inherit; text-decoration: none; }
.product-card .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.product-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--brand); }
/* 文字型链接：首页最新动态 / 数字产品说明 */
.text-link { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-item .text-link { display: inline-block; margin: 8px 0 0 12px; font-size: 13.6px; }

/* ===== 顶部导航 ===== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center; gap: 32px;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 16px rgba(15, 76, 129, .25);
}
.brand-text strong { display: block; font-size: 16.5px; letter-spacing: .01em; line-height: 1.35; }
.brand-text span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }

/* 配置了 logoImage 时的图片 logo */
.brand-logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; flex-shrink: 0; }
/* 页脚是深色背景，给 logo 加一层浅色衬底避免深蓝色块糊掉 */
.footer-brand .brand-logo-img {
  height: 30px; padding: 5px; border-radius: 9px;
  background: #fff; box-sizing: content-box;
}
/* 电话 / 邮箱生成的链接继承原有文字样式 */
.footer-contact a, .info-item .value a { color: inherit; text-decoration: none; }
.footer-contact a:hover, .info-item .value a:hover { color: var(--brand); }
/* 页脚备案号 */
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: .2s;
}
.nav a:hover { color: var(--brand); background: var(--brand-100); }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.user-chip {
  display: none; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px;
}
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand); font-weight: 700; font-size: 12px;
}
.user-chip .email { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .out { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px 6px; font-size: 13px; }
.user-chip .out:hover { color: #d64545; }
body.signed-in .user-chip { display: inline-flex; }
body.signed-in .nav-auth { display: none; }

.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink-2); margin: 3px auto; border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: #fff; }
.hero::before {
  content: ""; position: absolute; inset: -30% auto auto -10%;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(15, 76, 129, .09), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; right: -140px; bottom: -220px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 169, 165, .10), transparent 65%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); margin: 20px 0 22px; line-height: 1.24; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div strong { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1.2; }
.hero-meta div span { font-size: 13.5px; color: var(--muted); }

.hero-art { position: relative; }
.hero-art svg text { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.hero-art .svg-text.muted { font-size: 13px; fill: #5c6b80; }
.hero-art .svg-text.strong { font-size: 19px; font-weight: 700; fill: #0f4c81; }
.hero-art .svg-text.white { font-size: 13.5px; font-weight: 600; fill: #ffffff; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-art .float { animation: floaty 7s ease-in-out infinite; transform-origin: center; }
.hero-art .float-slow { animation: floaty 9.5s ease-in-out infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .hero-art .float, .hero-art .float-slow { animation: none; }
}

/* ===== 通用栅格 ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ===== 业务板块 ===== */
.biz-card { position: relative; overflow: hidden; padding: 30px 26px; background: #fff; }
.biz-card .num { font-size: 13px; font-weight: 700; color: #c3cfdd; letter-spacing: .1em; }
.biz-card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand); margin: 14px 0 16px;
}
.biz-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.biz-card p { color: var(--muted); font-size: 14.6px; }
.biz-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--brand); font-size: 14px; font-weight: 600; }
.biz-card .more svg { transition: transform .22s; }
.biz-card:hover .more svg { transform: translateX(4px); }

/* ===== 优势 ===== */
.adv-item { display: flex; gap: 18px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.adv-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.adv-item h4 { font-size: 1.02rem; margin-bottom: 6px; }
.adv-item p { color: var(--muted); font-size: 14.6px; }

/* ===== 流程 ===== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.flow-step { position: relative; padding: 8px 26px 0 0; }
.flow-step .dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--brand-100); color: var(--brand);
  font-weight: 700; margin-bottom: 16px; position: relative; z-index: 2;
}
.flow-step::before {
  content: ""; position: absolute; top: 22px; left: 46px; right: 0;
  height: 1px; background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
}
.flow-step:last-child::before { display: none; }
.flow-step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.flow-step p { color: var(--muted); font-size: 14.6px; }

/* ===== 新闻 ===== */
.news-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-date {
  flex-shrink: 0; width: 74px; text-align: center; padding: 8px 0;
  border-right: 1px solid var(--line);
}
.news-date strong { display: block; font-size: 1.5rem; color: var(--brand); line-height: 1.1; }
.news-date span { font-size: 12.5px; color: var(--muted); }
.news-item h4 { font-size: 1.02rem; margin-bottom: 6px; transition: color .2s; }
.news-item:hover h4 { color: var(--brand); }
.news-item p { color: var(--muted); font-size: 14.4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== CTA 条 ===== */
.cta-band {
  background: linear-gradient(120deg, var(--brand-600), var(--brand) 45%, #15838c 100%);
  border-radius: 26px; padding: 60px 56px; color: #fff; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -90px; top: -110px;
  width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.cta-band .inner { position: relative; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .82); }
.cta-band .actions { margin-left: auto; display: flex; gap: 12px; }

/* ===== 页脚 ===== */
.footer { background: #0a2237; color: #a9bacd; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #a9bacd; font-size: 14.4px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: #7b8ea4; }
.footer-brand p { font-size: 14.4px; margin: 14px 0 0; max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; font-size: 14.4px; }
.footer-contact svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 13.5px; color: #7b8ea4; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom .sp { margin-left: auto; }
.footer-bottom .policy-links { display: flex; gap: 10px; align-items: center; }
.footer-bottom .policy-links a { color: #7b8ea4; text-decoration: none; font-size: 12.5px; }
.footer-bottom .policy-links a:hover { color: var(--accent); }
.footer-bottom .policy-links .sep { color: #4a5f73; }

/* ===== 页面标题 ===== */
.page-head {
  position: relative; padding: 76px 0 64px; color: #fff;
  background: linear-gradient(120deg, var(--brand-600), var(--brand) 50%, #15838c 100%);
  overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -90px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 14px 0 12px; }
.page-head p { color: rgba(255, 255, 255, .82); max-width: 620px; }
.page-head .container { position: relative; z-index: 2; }
.crumb { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.crumb a:hover { color: #fff; }

/* ===== 关于页 ===== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-intro h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); margin: 14px 0 18px; }
.about-intro p { color: var(--muted); margin-bottom: 14px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 30px 22px; }
.value-card .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; }
.value-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14.4px; }

.about-visual {
  position: relative; overflow: hidden; padding: 40px 36px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand) 45%, #15838c 100%);
  box-shadow: var(--shadow-lg);
}
.about-visual::after {
  content: ""; position: absolute; right: -80px; bottom: -100px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.about-visual .tag { background: rgba(255, 255, 255, .16); color: #fff; position: relative; z-index: 2; }
.about-visual h3 { color: #fff; font-size: 1.4rem; margin: 16px 0 22px; position: relative; z-index: 2; }
.about-visual ul { position: relative; z-index: 2; display: grid; gap: 16px; }
.about-visual li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.2px; color: rgba(255, 255, 255, .92); }
.about-visual .tick {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); color: #fff; margin-top: 2px;
}

.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.tl-item .year { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.tl-item h4 { font-size: 1.06rem; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 14.6px; }

.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fact { background: #fff; padding: 30px 24px; text-align: center; }
.fact strong { display: block; font-size: 2rem; color: var(--brand); line-height: 1.2; }
.fact span { font-size: 14px; color: var(--muted); }

/* ===== 服务页 ===== */
.cat-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-pill {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14.4px; font-weight: 500; color: var(--ink-2); transition: .22s;
}
.cat-pill:hover { color: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.cat-block { margin-bottom: 56px; scroll-margin-top: 96px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-block .grid { margin-top: 4px; }
.cat-head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.cat-head .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.cat-head h3 { font-size: 1.35rem; }
.cat-head p { color: var(--muted); font-size: 14.4px; }
.cat-head .count { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.svc-item { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .24s; }
.svc-item:hover { border-color: #cddced; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.svc-item h4 { font-size: 1.02rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.svc-item h4 .flag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.svc-item p { color: var(--muted); font-size: 14.4px; }

/* ===== 联系页 ===== */
.contact-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; }
.info-list { display: grid; gap: 14px; margin-top: 8px; }
.info-item { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-item .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.info-item .label { font-size: 13px; color: var(--muted); }
.info-item .value { font-size: 15.4px; font-weight: 600; color: var(--ink); word-break: break-all; }
.info-item .sub { font-size: 13px; color: var(--muted); }
.map-note {
  margin-top: 18px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-100), var(--accent-soft));
  border: 1px dashed #c6d8e8; font-size: 14.4px; color: var(--ink-2);
}

/* 表单 */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: #d64545; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: .2s; font-size: 15px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 76, 129, .1);
}
.field .err { display: none; color: #d64545; font-size: 12.8px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #d64545; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ===== 账号页 ===== */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; margin-bottom: 26px; }
.tabs button { flex: 1; height: 40px; border: 0; border-radius: 999px; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .2s; }
.tabs button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.pane { display: none; }
.pane.active { display: block; }
.inline-row { display: flex; gap: 10px; }
.inline-row input { flex: 1; }
.auth-tip { font-size: 13.4px; color: var(--muted); margin-bottom: 18px; }
.form-link { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 20px; font-size: 14px; }
.form-link button { border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; }
.form-link span { color: var(--muted); }

.member-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.member-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.member-side .avatar { width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.member-side h4 { font-size: 1.1rem; word-break: break-all; }
.member-side .uid { font-size: 12.5px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.member-side .meta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.member-side .meta div { display: flex; justify-content: space-between; font-size: 13.6px; }
.member-side .meta span { color: var(--muted); }
.member-main { display: grid; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h3 { font-size: 1.15rem; }
.panel-head .sub { font-size: 13.4px; color: var(--muted); }
.panel-head .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.upload-zone {
  border: 2px dashed #cfdceb; border-radius: var(--radius); padding: 26px; text-align: center;
  background: var(--bg-soft); transition: .2s; cursor: pointer;
}
.upload-zone.drag { border-color: var(--brand); background: var(--brand-100); }
.upload-zone input { display: none; }
.upload-zone .ico { margin: 0 auto 10px; color: var(--brand); }
.upload-zone strong { color: var(--brand); }
.upload-zone p { font-size: 13.4px; color: var(--muted); margin-top: 6px; }

.file-list { display: grid; gap: 10px; margin-top: 18px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file-row .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.file-row .meta { min-width: 0; flex: 1; }
.file-row .name { font-size: 14.8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .sub { font-size: 12.6px; color: var(--muted); }
.file-row .ops { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn.danger:hover { color: #d64545; border-color: #d64545; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); font-size: 14.4px; }
.empty .ico { margin: 0 auto 12px; opacity: .5; }

.msg-list { display: grid; gap: 14px; }
.msg-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.msg-item .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-item .top h5 { font-size: 15px; margin: 0; }
.msg-item .top .date { font-size: 12.6px; color: var(--muted); margin-left: auto; }
.msg-item p { color: var(--ink-2); font-size: 14.6px; white-space: pre-wrap; word-break: break-word; }
.msg-item .foot { margin-top: 10px; font-size: 12.8px; color: var(--muted); }

/* ===== 提示条 / 加载 ===== */
.alert {
  display: none; padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert.show { display: block; }
.alert-error { background: #fdecec; border-color: #f6c9c9; color: #a52f2f; }
.alert-success { background: var(--accent-soft); border-color: #b7e6e3; color: #0a6b68; }
.alert-info { background: var(--brand-100); border-color: #cddfed; color: var(--brand-600); }

.skeleton { background: linear-gradient(90deg, #eef3f8 25%, #e2eaf2 37%, #eef3f8 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 168px; border-radius: var(--radius-lg); }
.sk-line { height: 16px; margin-bottom: 10px; }

.toast-box { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; }
.toast {
  padding: 12px 20px; border-radius: 999px; background: #0e1b2a; color: #fff; font-size: 14.4px;
  box-shadow: var(--shadow-lg); animation: pop .3s ease;
}
.toast.ok { background: #0f7b74; }
.toast.err { background: #a52f2f; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 520px; }
  .grid-4, .grid-5, .value-grid, .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .member-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; margin: 0; padding: 10px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .header-actions { order: 1; }
  .nav-toggle { order: 2; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.active::after { display: none; }
  .header-actions { margin-left: auto; }
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow-step::before { display: none; }
  .cta-band { padding: 40px 28px; }
  .cta-band .actions { margin-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.4px; }
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .value-grid, .fact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 56px 0 56px; }
  .hero-meta { gap: 20px; }
  .form, .auth-card, .panel { padding: 24px 20px; }
  .cat-head { flex-wrap: wrap; }
  .cat-head .count { margin-left: 0; width: 100%; }
  .user-chip .email { display: none; }
  .file-row .ops { flex-direction: column; gap: 6px; }
}
