/* 星连加速器 / SingLink
   ---------------------------------------------------------
   01 主题变量和基础排版
   02 导航与页脚
   03 简约首页
   04 通用内容结构
   05 套餐和下载
   06 帮助搜索和文章
   07 响应式 / 无动画偏好
   修改品牌颜色：优先修改 site.config.json，再执行 build.py
*/

:root {
  --paper: #fbfcf8;
  --white: #ffffff;
  --ink: #1b383c;
  --muted: #687b79;
  --mint: #0da68d;
  --mint-dark: #098a75;
  --mint-soft: #e9f7f1;
  --orange: #ff9d77;
  --line: #e5ece6;
  --shadow: 0 20px 58px rgba(36, 69, 59, .055);
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 36px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--mint); font-weight: 750; letter-spacing: 2px; font-size: 12px; }
.kicker { display: inline-block; color: var(--mint); font-size: 12px; font-weight: 760; letter-spacing: 1.8px; margin-bottom: 15px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { letter-spacing: -.025em; }
h2 { line-height: 1.28; }
.btn { min-height: 50px; padding: 15px 29px; border-radius: 999px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-weight: 750; font-size: 15px; border: 1px solid transparent; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: #19aa91; box-shadow: 0 12px 22px rgba(22, 166, 138, .12); }
.btn-primary:hover { background: var(--mint-dark); box-shadow: 0 16px 28px rgba(22, 166, 138, .18); }
.btn-outline { color: var(--mint-dark); background: white; border-color: #b8dfd2; }
.btn-outline:hover { border-color: var(--mint); background: #f5fbf8; }
.btn-quiet { padding-left: 2px; color: #315453; font-weight: 760; }
.btn-quiet:hover { color: var(--mint-dark); }
.pill { border-radius: 99px; display: inline-flex; background: #edf7f3; color: #159680; padding: 7px 15px; font-size: 12px; font-weight: 700; }

/* 02 导航与页脚 */
.site-header { border-bottom: 1px solid var(--line); background: rgba(251, 252, 248, .96); position: relative; z-index: 30; }
.nav-wrap { height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 23px; font-weight: 850; line-height: 1.1; letter-spacing: -.6px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand small { display: block; color: #9aa8a3; font-size: 10px; letter-spacing: 2.2px; margin-top: 4px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 33px; }
.nav-links a { font-size: 14px; color: #4a605e; font-weight: 570; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--mint-dark); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-actions .btn { font-size: 13px; padding: 11px 26px; min-height: 43px; }
.nav-toggle { display: none; border: 0; color: var(--ink); background: transparent; font-size: 26px; padding: 4px 8px; }
.site-footer { margin-top: 32px; border-top: 1px solid var(--line); padding: 32px 0; color: #82918b; }
.footer-flex { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
.footer-links a:hover { color: var(--mint-dark); }
.footer-subtitle { font-size: 12px; line-height: 1.75; margin: 8px 0 0; }
.footer-copyright { font-size: 12px; }

/* 03 首页——对齐用户确认的精简设计 */
.home-hero { min-height: 646px; display: grid; grid-template-columns: 1.08fr 1fr; gap: 46px; align-items: center; padding-top: 55px; padding-bottom: 70px; }
.home-hero h1 { font-size: clamp(45px, 4.4vw, 65px); line-height: 1.25; letter-spacing: -1.9px; margin: 0 0 27px; font-weight: 850; }
.home-hero h1 span { color: #15a18b; }
.home-hero h1 .hero-brand-line { display:block; color: var(--mint); font-size: 12px; font-weight: 750; letter-spacing: 2px; line-height: 16px; margin-bottom: 38px; }
.home-lead { max-width: 515px; font-size: 16.5px; color: var(--muted); line-height: 2; margin: 0; }
.hero-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.hero-actions .btn-primary { font-size: 16px; min-height: 56px; padding: 17px 38px; }
.hero-footnote { display: flex; align-items: center; gap: 13px; color: #8a9792; margin-top: 38px; font-size: 12.5px; }
.hero-footnote::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero-visual { height: 490px; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual::before { content: ''; position: absolute; width: min(480px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #def4eb 0, #e8f8f1 45%, transparent 73%); }
.hero-visual::after { content: ''; position: absolute; width: min(480px, 100%); height: 320px; border: 1px solid rgba(20, 157, 136, .16); border-radius: 50%; transform: rotate(-18deg); }
.hero-visual img { width: min(440px, 95%); position: relative; z-index: 2; filter: drop-shadow(0 30px 25px rgba(22, 100, 79, .075)); animation: float 7s ease-in-out infinite; }
.hero-dot { position: absolute; z-index: 3; border-radius: 50%; background: var(--orange); width: 16px; height: 16px; top: 17%; right: 10%; }
.hero-dot.second { background: #87d8c5; width: 8px; height: 8px; top: auto; bottom: 17%; left: 7%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.home-benefits { border-top: 1px solid var(--line); padding-top: 42px; padding-bottom: 52px; }
.split-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.split-head h2 { margin: 0; font-size: 23px; }
.split-head a { color: var(--mint-dark); font-size: 13px; font-weight: 700; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.benefit { display: flex; gap: 15px; align-items: flex-start; }
.benefit-icon { border: 1px solid #deeee6; background: #f0f8f4; color: #15a58c; flex: 0 0 47px; height: 47px; border-radius: 17px; display: grid; place-items: center; font-size: 23px; }
.benefit h3 { margin: 2px 0 7px; font-size: 16px; }
.benefit p { margin: 0; color: #7d8b85; font-size: 13px; line-height: 1.75; }

/* 04 子页通用排版 */
.page-head { padding-top: 75px; padding-bottom: 58px; }
.page-head.compact { padding-bottom: 35px; }
.page-head h1 { font-size: clamp(34px, 3.6vw, 49px); line-height: 1.32; margin: 14px 0 18px; }
.page-head p { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 700px; margin: 0; }
.page-head-center { text-align: center; }
.page-head-center p { margin-left: auto; margin-right: auto; }
.section-block { padding: 42px 0 66px; border-top: 1px solid var(--line); }
.section-head { margin: 0 0 30px; }
.section-head h2 { font-size: 29px; margin: 0 0 12px; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.8; }
.soft-panel { background: white; border: 1px solid #e7eee8; border-radius: var(--radius); box-shadow: var(--shadow); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 28px; }
.info-card .symbol { display: inline-grid; place-items: center; width: 47px; height: 47px; background: #eef8f3; border: 1px solid #e2f0e8; color: var(--mint-dark); border-radius: 15px; font-size: 22px; }
.info-card h3 { font-size: 18px; margin: 19px 0 9px; }
.info-card p { color: var(--muted); line-height: 1.9; margin: 0; font-size: 14px; }
.info-card a { display: inline-block; margin-top: 14px; color: var(--mint-dark); font-weight: 700; font-size: 13px; }
.feature-row { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 65px; padding: 35px 0; }
.feature-row.alt > :first-child { order: 2; }
.feature-row .art { min-height: 280px; border-radius: 30px; background: #eef8f2; overflow: hidden; display: grid; place-items: center; }
.feature-row .art img { width: 88%; max-height: 300px; object-fit: contain; }
.feature-row h2 { font-size: 30px; margin: 12px 0 17px; }
.feature-row p { color: var(--muted); line-height: 1.95; font-size: 15px; }
.feature-row ul { color: #4d6760; line-height: 2.2; padding-left: 21px; }
.cta-band { margin: 26px 0 50px; padding: 35px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-radius: 26px; background: #eaf7f1; }
.cta-band h2 { font-size: 23px; margin: 0 0 8px; }
.cta-band p { margin: 0; color: #69817a; line-height: 1.7; }

/* 05 套餐与下载 */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin: 12px 0 44px; }
.price-card { padding: 31px 24px 26px; background: white; border: 1px solid var(--line); border-radius: 24px; position: relative; box-shadow: var(--shadow); }
.price-card.popular { border: 2px solid var(--mint); padding: 30px 23px 25px; }
.price-tag { display: inline-block; color: var(--mint-dark); background: var(--mint-soft); padding: 5px 11px; border-radius: 99px; font-size: 11px; }
.price-card h2 { font-size: 18px; margin: 17px 0 0; }
.price-value { font-size: 48px; letter-spacing: -2px; font-weight: 850; margin-top: 17px; }
.price-value small { font-size: 17px; letter-spacing: 0; margin-right: 3px; }
.price-duration { font-size: 13px; color: var(--muted); }
.price-card ul { border-top: 1px solid var(--line); padding: 19px 0; margin: 24px 0 0; list-style: none; min-height: 122px; }
.price-card li { font-size: 13px; color: #5d7770; line-height: 2.35; }
.price-card li::before { content: '✓'; color: var(--mint); margin-right: 8px; font-weight: 800; }
.price-card .btn { width: 100%; }
.note-box { color: #617771; background: #f0f7f1; padding: 19px 24px; border-radius: 16px; font-size: 13px; line-height: 1.85; }
.device-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 23px; }
.device-tabs button { border: 1px solid #dfebe5; background: #fff; color: #586f68; padding: 12px 18px; border-radius: 99px; }
.device-tabs button[aria-selected="true"] { background: var(--mint); color: white; border-color: var(--mint); }
.device-panel { padding: 34px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 40px; }
.device-panel h2 { font-size: 27px; margin: 0 0 16px; }
.device-panel p { font-size: 15px; line-height: 1.9; color: var(--muted); }
.device-panel ul { padding-left: 20px; color: #5c766e; line-height: 2.3; font-size: 14px; }
.device-art { border-radius: 21px; min-height: 270px; background: #eef8f4; display: grid; place-items: center; }
.device-art .device-symbol { color: var(--mint); font-size: 100px; text-shadow: 0 13px 30px #c5e9d8; }
.device-art .device-label { display: block; text-align: center; font-size: 15px; font-weight: 760; color: #5f8174; }
.device-panel[hidden] { display: none; }

/* 06 帮助文章、搜索、FAQ */
.help-search-wrap { padding: 17px; margin-bottom: 22px; display: flex; gap: 12px; }
.help-input { flex: 1; min-width: 0; border: 1px solid #dceae4; border-radius: 13px; padding: 14px 18px; background: #fff; color: var(--ink); outline-color: var(--mint); }
.help-search-wrap button { min-width: 100px; border: 0; background: var(--mint); color: #fff; border-radius: 13px; font-weight: 750; }
.help-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.help-result { display: block; border: 1px solid var(--line); background: #fff; border-radius: 17px; padding: 19px 22px; }
.help-result:hover { border-color: #9fd7c7; transform: translateY(-1px); }
.help-result small { color: var(--mint-dark); font-size: 12px; }
.help-result h3 { margin: 9px 0 7px; font-size: 16px; }
.help-result p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 13px; }
.help-status { font-size: 13px; color: var(--muted); margin: 0 0 15px; }
.help-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 25px; }
.help-quick button { border: 1px solid #dfece4; background: #fff; padding: 9px 13px; border-radius: 99px; font-size: 12px; color: #59776b; }
.help-quick button:hover { background: #eaf9f2; }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(220px, 260px); gap: 66px; padding-bottom: 62px; }
.article-main { min-width: 0; }
.article-main .lead { font-size: 16px; line-height: 2.05; color: #56716a; margin: 0 0 35px; }
.article-section { padding: 30px 0; border-top: 1px solid var(--line); }
.article-section h2 { font-size: 25px; margin: 0 0 17px; }
.article-section p { line-height: 2.05; font-size: 15px; color: #536e67; }
.article-section ol { padding-left: 25px; line-height: 2.15; color: #536e67; font-size: 15px; }
.article-section ol li { padding-left: 6px; margin: 4px 0; }
.article-aside { align-self: start; position: sticky; top: 28px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 25px 24px; }
.article-aside h3 { margin: 0 0 17px; font-size: 16px; }
.article-aside a { display: block; color: #668078; border-top: 1px solid #f0f3ef; padding: 13px 0; font-size: 13px; line-height: 1.5; }
.article-aside a:hover { color: var(--mint-dark); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; color: #80938a; gap: 8px; font-size: 12px; margin-bottom: 17px; }
.breadcrumb a:hover { color: var(--mint-dark); }
.help-directory { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 21px 25px; }
.help-directory > summary { font-size: 16px; font-weight: 750; cursor: pointer; }
.help-directory h3 { font-size: 15px; margin: 24px 0 11px; }
.help-directory-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.help-directory-links a { color: #53736a; font-size: 13px; }
.help-directory-links a:hover { color: var(--mint-dark); }
.faq { max-width: 930px; margin: 20px auto 52px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; background: white; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); line-height: 1.9; margin-bottom: 0; }

/* 07 响应式 */
@media (max-width: 1020px) {
  .nav-links { gap: 17px; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 32px; }
}
@media (max-width: 850px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .nav-wrap { height: 75px; }
  .nav-links { display: none; position: absolute; top: 74px; left: 16px; right: 16px; padding: 10px 20px; background: #fff; box-shadow: 0 20px 45px #1d4d3a22; border-radius: 17px; border: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; }
  .nav-toggle { display: inline-flex; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; gap: 8px; padding-top: 58px; padding-bottom: 38px; }
  .hero-visual { height: 360px; }
  .hero-visual img { width: 360px; }
  .benefits { grid-template-columns: 1fr; gap: 23px; }
  .info-grid { grid-template-columns: repeat(2,1fr); }
  .feature-row { gap: 25px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 590px) {
  .container { padding-left: 22px; padding-right: 22px; }
  .brand { font-size: 19px; }
  .brand img { width: 45px; height: 45px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn { padding: 10px 14px; font-size: 12px; min-height: 39px; }
  .home-hero { padding-top: 45px; }
  .home-hero h1 { font-size: clamp(35px, 10.2vw, 47px); letter-spacing: -1px; margin: 0 0 19px; }
  .home-hero h1 .hero-brand-line { margin-bottom: 33px; }
  .home-lead { font-size: 15px; line-height: 1.95; }
  .hero-actions { margin-top: 28px; gap: 12px; }
  .hero-actions .btn-primary { font-size: 15px; padding: 16px 24px; }
  .hero-footnote { margin-top: 23px; line-height: 1.6; }
  .hero-visual { height: 305px; }
  .hero-visual img { width: min(320px, 95%); }
  .hero-visual::after { height: 220px; }
  .home-benefits { padding-top: 30px; }
  .split-head h2 { font-size: 20px; }
  .page-head { padding-top: 52px; padding-bottom: 34px; }
  .page-head h1 { font-size: 34px; }
  .page-head p { font-size: 14px; }
  .price-grid, .info-grid, .help-results { grid-template-columns: 1fr; }
  .price-card { padding: 25px; }
  .price-card.popular { padding: 24px; }
  .device-panel { padding: 23px; grid-template-columns: 1fr; }
  .device-art { min-height: 180px; }
  .device-art .device-symbol { font-size: 73px; }
  .help-search-wrap { flex-direction: column; }
  .help-search-wrap button { min-height: 43px; }
  .feature-row, .feature-row.alt { grid-template-columns: 1fr; gap: 20px; }
  .feature-row.alt > :first-child { order: 0; }
  .feature-row .art { min-height: 205px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer-flex { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: 0s !important; }
}

/* 小屏装饰轨道只在主视觉容器内绘制，避免产生横向滚动。 */
@media (max-width: 590px) {
  .hero-visual { overflow: clip; }
}
@media (max-width: 360px) {
  .brand { font-size: 16px; gap: 4px; }
  .brand img { width: 36px; height: 36px; }
  .brand small { font-size: 8px; letter-spacing: 1.6px; }
  .nav-actions .btn { padding: 9px 11px; font-size: 11px; }
  .nav-toggle { font-size: 22px; padding: 2px; }
}
