/* =========================================================
   必应站长平台 · 官网首页样式（assets/home.css）
   风格：浅色清爽商务（白底 + 深蓝品牌色 · 方正 · 干净 · 可信赖）
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg2: #f5f8fc;
  --line: #e5eaf1;
  --line2: #eef2f7;
  --text: #1b2430;
  --muted: #5d6873;
  --faint: #9aa5b0;
  --brand: #0d47a1;
  --brand-2: #0a3578;
  --brand-bg: #e9f1fb;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ============ 按钮（方角、深蓝） ============ */
.btn { display: inline-block; padding: 13px 30px; font-size: 15px; font-weight: 600; border: 1px solid var(--brand); background: #fff; color: var(--brand); cursor: pointer; transition: .2s; }
.btn:hover { background: var(--brand-bg); }
.btn-solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-solid:hover { background: var(--brand-2); }
.btn-lg { padding: 15px 36px; font-size: 16px; }

/* ============ 顶部导航 ============ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 1px 14px rgba(20,40,80,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 32px; height: 32px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #10141c; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; transition: .2s; }
.nav a:hover { color: var(--brand); }
.header-actions { margin-left: 8px; }
.header-actions .btn { padding: 8px 22px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; padding: 4px 12px; cursor: pointer; }

/* ============ Hero ============ */
.hero { padding: 150px 0 96px; border-bottom: 1px solid var(--line2); background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)), url('../bj.png') center/cover no-repeat #fff; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--brand); font-weight: 700; margin-bottom: 20px; }
.eyebrow.center { margin-bottom: 20px; }
.hero-title { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: .5px; margin-bottom: 22px; color: #10141c; }
.hero-sub { font-size: 16px; color: var(--muted); max-width: 500px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 44px; border-top: 1px solid var(--line2); padding-top: 26px; flex-wrap: wrap; }
.hero-stats li strong { display: block; font-size: 18px; font-weight: 700; margin-bottom: 2px; color: #10141c; }
.hero-stats li span { color: var(--muted); font-size: 12px; }

/* Hero 右侧：控制台示意（浅色、方正） */
.hero-visual { position: relative; }
.console { border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 36px rgba(20,40,80,.08); }
.console-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.console-head .dot { color: var(--brand); }
.console-body { padding: 20px; }
.console-body .row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line2); background: #fbfcfe; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.console-body .row:last-child { margin-bottom: 0; }
.tag { font-size: 11px; padding: 2px 9px; border: 1px solid var(--line); color: var(--muted); flex-shrink: 0; }
.tag.ok { color: var(--brand); border-color: var(--brand); background: var(--brand-bg); }

/* ============ Section ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-title { font-size: 30px; font-weight: 700; margin-bottom: 12px; letter-spacing: .5px; color: #10141c; }
.section-sub { color: var(--muted); font-size: 15px; }

/* ============ 核心功能（方格卡片） ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.feature-card { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: .2s; }
.feature-card:nth-child(3n) { border-right: none; }
.feature-card:nth-last-child(-n+3) { border-bottom: none; }
.feature-card:hover { background: #fbfcfe; box-shadow: 0 8px 24px rgba(20,40,80,.05); }
.feature-card h3 { font-size: 17px; margin-bottom: 12px; color: #141a24; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ============ 使用流程 ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.step { padding: 40px 30px; border-right: 1px solid var(--line); }
.step:last-child { border-right: none; }
.step-n { display: block; font-size: 28px; font-weight: 800; color: var(--brand); margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 10px; color: #141a24; }
.step p { color: var(--muted); font-size: 14px; }

/* ============ 会员方案（方格卡片） ============ */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.tier-card { padding: 40px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.tier-card:last-child { border-right: none; }
.tier-card h3 { font-size: 18px; margin-bottom: 10px; color: #141a24; }
.tier-price { font-size: 26px; font-weight: 800; margin-bottom: 8px; color: var(--brand); }
.tier-meta { color: var(--faint); font-size: 12px; margin-bottom: 18px; }
.tier-desc { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.tier-list { margin-bottom: 28px; flex: 1; }
.tier-list li { padding: 8px 0; border-bottom: 1px solid var(--line2); color: var(--muted); font-size: 14px; }
.tier-card .btn { margin-top: auto; }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); background: #fff; margin-bottom: 14px; }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-size: 15px; font-weight: 600; list-style: none; position: relative; display: flex; justify-content: space-between; align-items: center; color: #141a24; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq-item[open] summary:after { content: "–"; }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 14px; }

/* ============ 最新文章（横向长条列表） ============ */
.article-grid { display: flex; flex-direction: column; gap: 12px; }
.article-card { border: 1px solid var(--line); background: #fff; padding: 18px 24px; display: flex; align-items: center; gap: 24px; transition: .2s; }
.article-card:hover { box-shadow: 0 8px 24px rgba(20,40,80,.05); }
.article-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }
.article-meta time { color: var(--faint); font-size: 12px; }
.a-tag { display: inline-block; padding: 1px 8px; font-size: 11px; border: 1px solid var(--brand); color: var(--brand); background: var(--brand-bg); }
.a-tag.hot { background: var(--brand); color: #fff; }
.article-card h3 { font-size: 17px; line-height: 1.5; flex: 0 0 28%; min-width: 0; }
.article-card h3 a { color: #141a24; }
.article-card h3 a:hover { color: var(--brand); }
.a-summary { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.a-more { color: var(--brand); font-size: 14px; font-weight: 600; flex: 0 0 auto; white-space: nowrap; }
.a-more:hover { text-decoration: underline; }
.article-empty { color: var(--muted); text-align: center; padding: 40px 0; border: 1px dashed var(--line); }

/* ============ 站点地图 ============ */
.sitemap-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; border: 1px solid var(--line); background: #fff; padding: 20px 24px; }
.sm-label { color: var(--muted); font-size: 13px; }
.sitemap-bar a { color: var(--brand); font-size: 14px; font-weight: 600; }
.sitemap-bar a:hover { text-decoration: underline; }

/* ============ CTA（深蓝大气） ============ */
.cta { padding: 96px 0; text-align: center; background: #0d3a72; color: #fff; }
.cta h2 { font-size: 32px; margin-bottom: 14px; color: #fff; }
.cta p { color: #c7d6ee; margin-bottom: 32px; }
.cta .btn-solid { background: #fff; color: var(--brand); border-color: #fff; }
.cta .btn-solid:hover { background: #e8eef7; }

/* ============ 页脚（深蓝沉稳收尾） ============ */
.site-footer { background: #0e1a2c; border-top: 1px solid #1c2b41; color: #8ea0b8; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 60px 24px; }
.footer-brand h3 { font-size: 18px; margin-bottom: 12px; color: #fff; }
.footer-brand p { font-size: 13px; max-width: 360px; color: #8ea0b8; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; color: #dfe8f4; }
.footer-col li { margin-bottom: 9px; }
.footer-col li a { font-size: 13px; transition: .2s; color: #8ea0b8; }
.footer-col li a:hover { color: #fff; }
.contact-list li { font-size: 13px; color: #8ea0b8; }
.contact-list a { color: #8ea0b8; }
.contact-list a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1c2b41; padding: 20px 24px; text-align: center; font-size: 12px; color: #66788e; }
.footer-bottom a { color: #8ea0b8; }
.footer-bottom a:hover { color: #fff; }
.footer-maps { border-top: 1px solid #1c2b41; padding: 16px 24px 24px; text-align: center; font-size: 13px; color: #66788e; }
.footer-maps a { color: #9fb2c8; text-decoration: none; margin: 0 8px; transition: .2s; }
.footer-maps a:hover { color: #fff; }
.footer-maps .fm-sep { color: #43536a; margin: 0 4px; }

/* 滚动显现动画（home.js 触发，克制淡入） */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ 已登录用户区（头像 + 用户名 + 下拉） ============ */
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 4px 8px; color: var(--text); font-size: 14px; font-family: var(--font); }
.user-btn:hover { color: var(--brand); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.user-btn:hover .avatar { background: var(--brand-2); }
.user-drop { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 158px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(20,40,80,.12); padding: 6px 0; z-index: 120; }
.user-drop a { display: block; padding: 9px 16px; color: var(--text); font-size: 13px; text-decoration: none; }
.user-drop a:hover { background: var(--line2); color: var(--brand); }
.user-drop .drop-divider { border-top: 1px solid var(--line); margin: 4px 0; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid, .steps, .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature-card:nth-child(2n) { border-right: none; }
  .feature-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .feature-card:nth-last-child(-n+2) { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 118px 0 60px; }
  .hero-title { font-size: 34px; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 18px; }
  .nav.open { display: flex; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .feature-grid, .steps, .tier-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:nth-child(3n), .feature-card:nth-child(2n) { border-right: none; }
  .feature-card { border-bottom: 1px solid var(--line); }
  .feature-card:last-child, .feature-card:nth-last-child(2) { border-bottom: none; }
  .step, .tier-card { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child, .tier-card:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .section-title { font-size: 26px; }
  .article-grid { gap: 12px; }
  .article-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 20px 22px; }
  .article-card h3 { flex: none; }
  .a-summary { -webkit-line-clamp: 2; }
}
