/* 聪明付官网 — 全站共用样式
   纯静态，无外部依赖（不加载在线字体，国内直连无风险） */

:root {
  --blue:      #2359D8;
  --blue-dark: #1A45AC;
  --blue-soft: #4A86F7;
  --wash:      #EEF4FF;
  --wash-2:    #F7FAFF;
  --ink:       #1B2430;
  --muted:     #5B6775;
  --muted-2:   #8A94A2;
  --line:      #E4E9F0;
  --white:     #FFFFFF;
  --orange:    #FF6A00;
  --orange-dk: #E85D00;
  --red:       #D93025;
  --ok:        #1E8E3E;
  --f: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  --wrap: 1200px;
  --gut: clamp(18px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f); font-size: 15px; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: 15px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------------- 顶栏 ---------------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; height: 68px; gap: 14px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 900; letter-spacing: .04em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
  color: var(--white); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.menu { display: flex; gap: 30px; margin-left: 46px; font-size: 15px; }
.menu a { padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.on { color: var(--blue); border-bottom-color: var(--blue); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.nav-right .sep { color: var(--line); }
.nav-user { color: var(--muted); }
.nav-user b { color: var(--ink); font-weight: 500; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-badge {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--orange); color: #fff; border-radius: 9px;
  font-size: 12px; line-height: 18px; text-align: center;
}
@media (max-width: 1000px) { .menu { gap: 18px; margin-left: 20px; font-size: 14px; } }
@media (max-width: 760px)  { .menu { display: none; } }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 26px; border-radius: 4px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-main   { background: var(--blue); color: var(--white); }
.btn-main:hover { background: var(--blue-dark); }
.btn-line   { border-color: #C6D5F2; color: var(--blue); background: var(--white); }
.btn-line:hover { border-color: var(--blue); }
.btn-buy    { background: var(--orange); color: #fff; }
.btn-buy:hover { background: var(--orange-dk); }
.btn-gray   { background: #EDEFF3; color: var(--muted); }
.btn-lg     { padding: 14px 40px; font-size: 16px; }
.btn-sm     { padding: 7px 16px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------- 通用区块 ---------------- */
section { padding: clamp(46px, 6vw, 78px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(30px, 4vw, 46px); }
.deco { font-size: 14px; color: var(--blue); letter-spacing: .1em; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(23px, 3vw, 32px); }
.sec-head .sub { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 42em; margin-inline: auto; }
.tint { background: var(--wash-2); }

/* 内页页头 */
.page-head { background: linear-gradient(180deg, #E9F1FF 0%, #F6F9FF 100%); border-bottom: 1px solid var(--line); }
.page-head-in { padding: 38px 0 34px; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); }
.page-head p { margin-top: 8px; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted-2); margin-bottom: 12px; }
.crumb a:hover { color: var(--blue); }
.crumb i { font-style: normal; margin: 0 7px; color: #C7CFDA; }

/* ---------------- 首页专用 ---------------- */
.hero { background: linear-gradient(180deg, #E9F1FF 0%, #F4F8FF 55%, var(--white) 100%); }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: clamp(44px, 6vw, 88px) 0 clamp(48px, 6vw, 90px); }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 26px; } }
.hero .eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(29px, 4.2vw, 48px); font-weight: 900; line-height: 1.28; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { margin-top: 20px; font-size: 16px; color: var(--muted); max-width: 30em; line-height: 1.95; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.art { width: 100%; height: auto; display: block; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 950px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px 30px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { box-shadow: 0 10px 28px rgba(35,89,216,.10); border-color: #C9DAFB; transform: translateY(-2px); }
.pico { width: 46px; height: 46px; border-radius: 10px; background: var(--wash); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pico svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pcard h3 { font-size: 18px; margin-bottom: 10px; }
.pcard p { font-size: 14.5px; color: var(--muted); line-height: 1.9; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }
.scene { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px 20px; text-align: center; }
.scene h3 { font-size: 17px; margin-bottom: 8px; }
.scene p { font-size: 14px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px 20px 26px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.85; }

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about .body { font-size: 15.5px; color: var(--muted); line-height: 2; }
.about p + p { margin-top: 16px; }
.facts { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.fact { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fact:last-child { border-bottom: none; }
.fact .k { color: var(--muted-2); }

.cta { background: linear-gradient(135deg, var(--blue) 0%, #3F79EE 100%); color: #fff; padding: clamp(38px, 5vw, 56px) 0; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta h2 { font-size: clamp(21px, 2.6vw, 27px); }
.cta p { margin-top: 8px; font-size: 15px; color: #DCE7FF; }
.cta .btn { background: #fff; color: var(--blue); }

.contact-one { max-width: 760px; margin-inline: auto; }
.crow { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.crow:first-child { border-top: 1px solid var(--line); }
.crow .k { color: var(--muted-2); font-size: 14px; }

/* ---------------- 商城 ---------------- */
.shop-layout { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; padding: 34px 0 60px; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } }
.cat-box { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cat-box h3 { background: #2F3A4A; color: #fff; font-size: 15px; font-weight: 500; padding: 13px 18px; }
.cat-box a { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.cat-box a:last-child { border-bottom: none; }
.cat-box a:hover, .cat-box a.on { background: var(--wash); color: var(--blue); }
.cat-box a span { color: var(--muted-2); font-size: 12px; }

.goods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .goods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .goods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .goods { grid-template-columns: 1fr; } }
.good { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.good:hover { box-shadow: 0 10px 26px rgba(20,40,80,.09); border-color: #C9DAFB; }
.good .thumb { height: 180px; background: var(--wash-2); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.good .thumb svg { width: 76px; height: 76px; }
.good .thumb img.pimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.good .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.good h3 { font-size: 15px; font-weight: 500; line-height: 1.5; }
.good .desc { font-size: 13px; color: var(--muted-2); flex: 1; }
.good .price { color: var(--red); font-size: 19px; font-weight: 700; }
.good .price small { font-size: 13px; font-weight: 400; }
.good .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 商品详情 */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 54px); padding: 30px 0 56px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.detail-pic { border: 1px solid var(--line); border-radius: 8px; background: var(--wash-2); height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-pic svg { width: 190px; height: 190px; }
.detail-pic img.pimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail h1 { font-size: 26px; }
.detail .slogan { color: var(--muted); margin-top: 8px; }
.price-box { background: var(--wash-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin: 20px 0; }
.price-box .old { color: var(--muted-2); font-size: 14px; }
.price-box .old s { margin-left: 6px; }
.price-box .now { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.price-box .now span { color: var(--muted); font-size: 14px; }
.price-box .now b { color: var(--red); font-size: 30px; font-weight: 700; }
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec .k { color: var(--muted-2); }
.qty { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.qty label { font-size: 14px; color: var(--muted-2); }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stepper button { width: 36px; height: 38px; border: none; background: #F3F5F8; color: var(--ink); font-size: 17px; cursor: pointer; }
.stepper button:hover { background: #E7EBF1; }
.stepper input { width: 62px; height: 38px; border: none; border-inline: 1px solid var(--line); text-align: center; }
.detail-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- 购物车 / 表单 / 订单 ---------------- */
.panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 26px 24px; }
.panel h2 { font-size: 19px; margin-bottom: 18px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted-2); padding: 12px 10px; border-bottom: 1px solid var(--line); background: var(--wash-2); }
.tbl td { padding: 16px 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.tbl .name { font-weight: 500; }
.tbl .money { color: var(--red); font-weight: 700; }
.tbl .del { color: var(--muted-2); font-size: 13px; cursor: pointer; background: none; border: none; }
.tbl .del:hover { color: var(--red); }
@media (max-width: 640px) { .tbl th:nth-child(2), .tbl td:nth-child(2) { display: none; } }

.sum { display: flex; justify-content: flex-end; margin-top: 22px; }
.sum-box { width: 320px; max-width: 100%; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; color: var(--muted); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-size: 15px; align-items: baseline; }
.sum-row.total b { color: var(--red); font-size: 26px; }
.sum-act { margin-top: 18px; display: flex; justify-content: flex-end; }

.form-grid { display: grid; grid-template-columns: 120px 1fr; gap: 14px 16px; align-items: center; max-width: 620px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; gap: 6px 0; } .form-grid label { margin-top: 10px; } }
.form-grid label { font-size: 14.5px; color: var(--muted); }
.form-grid .req::before { content: "*"; color: var(--red); margin-right: 4px; }
.inp { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.inp:focus { border-color: var(--blue-soft); outline: none; }
.region { display: flex; gap: 8px; flex-wrap: wrap; }
.region select { flex: 1; min-width: 92px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.hint { font-size: 13px; color: var(--muted-2); margin-top: 6px; }
.err { color: var(--red); font-size: 13.5px; min-height: 20px; }

.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 940px; margin: 34px auto 60px; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } }
.auth > div { padding: 30px 32px 36px; }
.auth > div + div { border-left: 1px solid var(--line); background: var(--wash-2); }
@media (max-width: 820px) { .auth > div + div { border-left: none; border-top: 1px solid var(--line); } }
.auth h2 { font-size: 20px; letter-spacing: .3em; margin-bottom: 6px; }
.auth .tip { font-size: 13px; color: var(--muted-2); margin-bottom: 20px; }
.auth .field { margin-bottom: 14px; }
.auth .cap-row { display: flex; gap: 10px; align-items: center; }
.cap {
  width: 108px; height: 42px; flex: none; border-radius: 4px; border: 1px solid var(--line);
  background: linear-gradient(100deg, #FFF3E0, #FFE2C2); color: #8A4B00;
  font-size: 21px; font-weight: 700; letter-spacing: .22em; font-style: italic;
  display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none;
}
.chk { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 12px 0 18px; }
.chk input { margin-top: 5px; }
.chk a { color: var(--blue); }

.notice { background: #FFF7E6; border: 1px solid #FFE0A3; color: #8A5A00; border-radius: 6px; padding: 12px 16px; font-size: 14px; margin-bottom: 22px; }
.ok-box { text-align: center; padding: 56px 20px 64px; }
.ok-box .mark { width: 62px; height: 62px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.ok-box h1 { font-size: 25px; }
.ok-box p { color: var(--muted); margin-top: 10px; }
.ok-box .acts { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

.order-card { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.order-card .hd { background: var(--wash-2); padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.order-card .bd { padding: 16px 18px; }
.order-card .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted-2); }

/* ---------------- 资讯 ---------------- */
.news-list { padding: 34px 0 60px; display: flex; flex-direction: column; gap: 0; }
.news-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item h2 { font-size: 20px; margin-bottom: 10px; }
.news-item h2 a:hover { color: var(--blue); }
.news-item .abs { color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.news-item .meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13.5px; color: var(--muted-2); }
.news-item .fee { color: var(--red); font-weight: 700; }
.news-item .more { color: var(--blue); cursor: pointer; background: none; border: none; font-size: 13.5px; padding: 0; }
.news-item .more:hover { text-decoration: underline; }

.article { max-width: 800px; margin: 0 auto; padding: 36px 0 64px; }
.article h1 { font-size: clamp(24px, 3vw, 32px); }
.article .meta { margin: 14px 0 26px; font-size: 13.5px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.article .content p { margin-bottom: 18px; color: #2A3542; line-height: 2; }
.paywall { position: relative; margin-top: -60px; padding-top: 60px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 55%); text-align: center; }
.paywall .box { border: 1px solid var(--line); border-radius: 8px; background: var(--wash-2); padding: 26px 20px 30px; }
.paywall h3 { font-size: 17px; margin-bottom: 8px; }
.paywall p { color: var(--muted); font-size: 14px; }
.paywall .fee { color: var(--red); font-weight: 700; }

/* 二维码弹层 */
.mask { position: fixed; inset: 0; background: rgba(15,22,34,.55); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.mask[hidden] { display: none; }
.qr-card { background: #fff; border-radius: 10px; padding: 24px 26px 26px; width: 356px; max-width: 100%; text-align: center; position: relative; }
.qr-card .close { position: absolute; right: 12px; top: 8px; border: none; background: none; font-size: 22px; color: var(--muted-2); cursor: pointer; line-height: 1; }
.qr-card .amt { color: var(--red); font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.qr-holder { width: 240px; height: 240px; margin: 0 auto; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: #fff; }
.qr-holder img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder { font-size: 12.5px; color: var(--muted-2); padding: 14px; line-height: 1.7; }
.qr-card .tipred { color: var(--red); font-size: 13px; margin-top: 14px; }
.qr-card .tipgray { color: var(--muted-2); font-size: 12px; margin-top: 8px; }

/* ---------------- 条款页 ---------------- */
.doc { max-width: 820px; margin: 0 auto; padding: 36px 0 64px; }
.doc h2 { font-size: 21px; margin: 30px 0 12px; }
.doc h3 { font-size: 16px; margin: 20px 0 8px; }
.doc p, .doc li { color: var(--muted); line-height: 2; font-size: 14.5px; }
.doc ul { list-style: disc; padding-left: 22px; margin: 8px 0; }

/* ---------------- 页脚 ---------------- */
footer { background: #1A2333; color: #9AA6B8; font-size: 14px; padding: 44px 0 26px; }
.foot-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; padding-bottom: 28px; border-bottom: 1px solid #2A3547; }
@media (max-width: 780px) { .foot-top { grid-template-columns: 1fr; gap: 24px; } }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 500; }
footer a { color: #9AA6B8; }
footer a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-bottom { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: #78849A; }
