/* 风格：浅底 + 窄版居中白卡片 + 蓝青渐变主色 + 柔和投影 */
:root {
  --grad: linear-gradient(135deg, #0a2bff 0%, #1f6bff 50%, #00d4ff 100%);  /* 品牌蓝 → 品牌青 */
  --grad-shadow: 0 5px 6px 0 rgba(10, 43, 255, .22);
  --card-shadow: 0 7px 29px 0 rgba(18, 52, 91, .06);
  --title: #545454;
  --text: #333;
  --muted: #94a3b8;
  --name: #475569;
  --line: #f0f0f0;
  --price: #e4393c;
  --price-list: #4f46e5;
  --green: #16a34a;
  --blue: #1f5bff;     /* 品牌蓝 #0A2BFF 稍提亮，做文字更好读 */
  --purple: #8a2cff;  /* 品牌紫 */
  --select: #1f5bff;
  --width: 1200px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #f7f9fc; }
body { font: 14px/1.6 "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Tahoma, Arial, sans-serif; color: var(--text); }
a { color: inherit; text-decoration: none; }

/* ---------- 顶栏：和内容同宽的品牌卡片，只放公司品牌 ---------- */
.header { max-width: var(--width); margin: 16px auto 0; padding: 0 16px; }
.header .inner { height: 72px; padding: 0 28px; border-radius: 6px; box-shadow: var(--card-shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: radial-gradient(420px 120px at 8% 50%, rgba(18, 107, 255, .22), transparent 70%), #000625; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 52px; height: 50px; display: block; }
.brand b { font: italic 800 25px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif; letter-spacing: .04em; color: #fff; }
.brand span { font-size: 14px; color: #93a0d8; letter-spacing: .2em; border-left: 1px solid rgba(120, 150, 255, .3); padding-left: 10px; }

/* 首页首屏：和下面的内容卡片同宽的深色横幅，地球图贴在卡片底部，只在首页出现 */
/* 首页没有顶栏，品牌放在首屏左上角（.hero-top） */
.hero { max-width: var(--width); margin: 16px auto 0; padding: 0 16px; color: #eaf0ff; }
.hero .inner { position: relative; isolation: isolate; display: grid; gap: 10px; padding: 18px 40px 34px; border-radius: 6px; overflow: hidden; box-shadow: var(--card-shadow);
  background: radial-gradient(460px 170px at 4% 0%, rgba(18, 107, 255, .24), transparent 70%), #000625; }
/* 地球：整张图缩小放在右下角（不裁切），左边和上边淡出到底色，文字在左边不受影响 */
.hero .inner::after { content: ""; position: absolute; right: 0; bottom: 0; z-index: -1; width: 62%; aspect-ratio: 1774 / 299;
  background: url("img/hero-globe.jpg?v=2") no-repeat center / 100% 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to bottom, transparent 0, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to bottom, transparent 0, #000 30%);
  mask-composite: intersect; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }

/* 顶部导航：商城 / 教程 / 订单查询（品牌右边） */
/* 分段条：三个入口合在一个圆角条里，当前页蓝色填满（像切换开关） */
.site-nav { display: flex; margin: 0 auto 0 36px; padding: 4px; border-radius: 12px; font-size: 13.5px; font-weight: 500;
  background: rgba(18, 26, 63, .85); border: 1px solid rgba(70, 95, 190, .55); }
.site-nav a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 16px; border-radius: 9px;
  color: #c9d4f5; transition: background .15s, color .15s; }
.site-nav a svg { flex: none; width: 14px; height: 14px; opacity: .9; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav a.on { color: #fff; background: var(--blue); }

/* ---------- 教程 ---------- */
.blog-head h1 { margin: 0 0 6px; font-size: 22px; color: var(--name); }
.blog-head p { margin: 0; color: #64748b; font-size: 14px; }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.article-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(226,232,240,.8); transition: border-color .15s, box-shadow .15s; }
.article-card:hover { border-color: #9db5ff; box-shadow: 0 8px 24px -12px rgba(60,140,231,.35); }
.article-card h2 { margin: 0; font-size: 16px; line-height: 1.45; color: var(--name); }
.article-card p { margin: 0; flex: 1; font-size: 13px; line-height: 1.7; color: #64748b;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .meta { font-size: 12px; color: #94a3b8; }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; font-size: 13px; color: #64748b; }
.blog-pager a { color: var(--blue); }
.crumbs { display: flex; gap: 6px; font-size: 13px; color: #94a3b8; }
.crumbs a { color: #64748b; }
.crumbs a:hover { color: var(--blue); }
.crumbs i { font-style: normal; }
.article h1 { margin: 12px 0 6px; font-size: 26px; line-height: 1.35; color: var(--name); }
.article .meta { font-size: 13px; color: #94a3b8; margin-bottom: 18px; }
/* 文章正文（Markdown 转出来的 HTML） */
.prose { font-size: 15px; line-height: 1.9; color: #334155; overflow-wrap: anywhere; }
.prose h2 { margin: 28px 0 10px; font-size: 20px; color: var(--name); }
.prose h3 { margin: 22px 0 8px; font-size: 17px; color: var(--name); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.5em; }
.prose li { margin: 4px 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--name); }
.prose blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--blue); background: #f1f5ff; color: #475569; border-radius: 0 8px 8px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose code { padding: 2px 6px; border-radius: 4px; background: #f1f5f9; font-size: .9em; }
.prose pre { padding: 14px 16px; border-radius: 10px; background: #0f172a; color: #e2e8f0; overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid #e2e8f0; text-align: left; }
.prose th { background: #f8fafc; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
/* 专题：教程首页的专题卡片、专题页目录、文章顶部的「第 n / N 篇」 */
.series-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #e8efff; color: var(--blue); font-size: 12px; font-weight: 600; }
.series-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.series-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px; color: inherit;
  background: linear-gradient(135deg, #f3f7ff, #eefcff); border: 1px solid #d6e2ff; transition: border-color .15s, box-shadow .15s; }
.series-card:hover { border-color: #9db5ff; box-shadow: 0 8px 24px -12px rgba(60,140,231,.35); }
.series-card .series-tag { align-self: flex-start; background: #fff; }
.series-card h2 { margin: 0; font-size: 17px; color: var(--name); }
.series-card p { margin: 0; flex: 1; font-size: 13px; line-height: 1.7; color: #64748b; }
.series-card .meta { font-size: 12px; color: var(--blue); font-weight: 600; }
.series-head h1 { margin: 8px 0 6px; font-size: 24px; color: var(--name); }
.series-head > p { margin: 0 0 14px; color: #64748b; font-size: 14px; line-height: 1.8; }
.series-head .crumbs { margin-bottom: 12px; }
.series-start { display: inline-flex; align-items: center; height: 38px; padding: 0 20px; }
.series-toc { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.series-toc li { counter-increment: toc; border-bottom: 1px dashed #e2e8f0; }
.series-toc li:last-child { border-bottom: 0; }
.series-toc a { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 12px 0; color: inherit; }
.series-toc a::before { content: counter(toc); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #e8efff; color: var(--blue); font-weight: 700; font-size: 13px; }
.series-toc b { font-size: 15px; color: var(--name); }
.series-toc span { font-size: 13px; color: #64748b; line-height: 1.6; }
.series-toc a:hover b { color: var(--blue); }
.series-box { margin: 0 0 20px; padding: 10px 14px; border-radius: 10px; background: #f3f7ff; border: 1px solid #d6e2ff; font-size: 14px; }
.series-box summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.series-box summary::-webkit-details-marker { display: none; }
.series-box summary a { color: var(--name); font-weight: 600; }
.series-box summary em { font-style: normal; color: #64748b; font-size: 13px; }
.series-box summary i { margin-left: auto; font-style: normal; color: var(--blue); font-size: 13px; }
.series-box summary i::after { content: " ▾"; }
.series-box[open] summary i::after { content: " ▴"; }
.series-box ol { margin: 10px 0 2px; padding-left: 1.6em; line-height: 2; }
.series-box li.on { color: var(--blue); font-weight: 600; }
.series-box li a { color: #475569; }
.series-box li a:hover { color: var(--blue); }
/* 干货资料 */
.resource-list { display: grid; gap: 12px; }
.resource-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; }
.resource-icon { flex: none; width: 52px; height: 60px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: #fff; background: linear-gradient(160deg, #ef4444, #b91c1c); letter-spacing: .04em; }
.resource-icon.sm { width: 36px; height: 42px; font-size: 10px; }
.resource-body { flex: 1; min-width: 0; }
.resource-body h2 { margin: 0 0 4px; font-size: 16px; color: var(--name); }
.resource-body p { margin: 0 0 6px; font-size: 13px; color: #64748b; line-height: 1.7; }
.resource-body .meta { font-size: 12px; color: #94a3b8; }
.resource-btn { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 20px; }
.resource-join { font-size: 14px; color: #475569; line-height: 1.8; transition: box-shadow .3s, border-color .3s; border: 1px solid transparent; }
.resource-join p { margin: 4px 0 0; }
.resource-join.flash { border-color: #9db5ff; box-shadow: 0 0 0 4px rgba(31, 91, 255, .12); }
.resource-teaser { display: flex; align-items: center; gap: 12px; color: inherit; font-size: 14px; }
.resource-teaser b { margin-right: 8px; color: var(--blue); }
.resource-teaser em { margin-left: auto; font-style: normal; color: var(--blue); white-space: nowrap; }
.resource-teaser:hover b + * { color: var(--blue); }
/* 常见问题 */
.faq-head h1 { margin: 0 0 6px; font-size: 22px; color: var(--name); }
.faq-head p { margin: 0 0 14px; color: #64748b; font-size: 14px; }
.faq-search { width: 100%; max-width: 420px; height: 38px; }
.faq-group[hidden], .faq-item[hidden], .faq-none[hidden] { display: none; }
.faq-item { border-bottom: 1px solid #eef2f7; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--name); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #e8efff; color: var(--blue); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--blue); }
.faq-item .prose { padding: 0 2px 16px; font-size: 14.5px; }
.faq-item .prose p:last-child { margin-bottom: 0; }
.faq-none { color: #64748b; text-align: center; }
.faq-contact { font-size: 14px; color: #475569; line-height: 1.9; }
/* 文末引导卡片 */
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0 8px; padding: 18px 20px;
  border-radius: 12px; background: linear-gradient(135deg, #0a1a5c, #0b3d8f); color: #fff; }
.cta-card p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6; }
.cta-card .btn-grad { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 22px; }
/* 上一篇 / 下一篇 */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.prev-next a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid #e2e8f0; color: inherit; }
.prev-next a:hover { border-color: #9db5ff; }
.prev-next .next { text-align: right; }
.prev-next small { font-size: 12px; color: var(--blue); }
.prev-next b { font-size: 14px; color: var(--name); line-height: 1.5; }
.more-link { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--blue); }
.more-articles { list-style: none; margin: 0; padding: 0; }
.more-articles li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; font-size: 14px; }
.more-articles li:last-child { border-bottom: 0; }
.more-articles a { color: var(--name); }
.more-articles a:hover { color: var(--blue); }
.more-articles span { flex: none; color: #94a3b8; font-size: 12px; }

/* 语言切换：中文 | EN（顶栏右边、首页首屏右上角） */
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #93a0d8; }
.lang-switch b { color: #fff; font-weight: 700; }
.lang-switch a { color: #93a0d8; }
.lang-switch a:hover { color: #00d4ff; }
.lang-switch i { width: 1px; height: 12px; background: rgba(120, 150, 255, .35); }
/* 浏览器语言不是中文时，中文页面顶部提示一次可以切换到英文 */
.lang-suggest { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 40px 8px 16px; position: relative;
  background: #eef4ff; color: #334155; font-size: 13px; }
.lang-suggest a { color: var(--blue); font-weight: 600; }
.lang-suggest button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  font-size: 18px; color: #94a3b8; cursor: pointer; }
.hero .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .22em; color: #00d4ff; }
.hero h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; font-weight: 700; max-width: 26em; text-wrap: balance; }
.hero h1 em { font-style: normal; white-space: nowrap; background: linear-gradient(90deg, #a066ff, #3d8bff 50%, #00d4ff);  /* 品牌紫 → 蓝 → 青 */
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: #93a0d8; font-size: 15px; max-width: 38em; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #93a0d8; margin-top: 4px; }
.hero .chips span { display: inline-flex; align-items: center; gap: 7px; }
.hero .chips i { width: 6px; height: 6px; border-radius: 50%; background: #00d4ff; box-shadow: 0 0 8px #00d4ff; }
.btn-grad { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  color: #fff; background: var(--grad); box-shadow: var(--grad-shadow); border-radius: 5px; font-size: 14px; }
.btn-grad.sm { height: 34px; padding: 0 14px; }
.btn-grad.lg { height: 45px; min-width: 170px; padding: 0 24px; font-size: 18px; font-weight: 700; }
.btn-grad:disabled { opacity: .55; cursor: not-allowed; }
.btn-grad:not(:disabled):hover { filter: brightness(1.05); }

/* ---------- 卡片 ---------- */
.wrap { max-width: var(--width); margin: 18px auto 40px; padding: 0 16px; }
.main-box { background: #fff; border-radius: 6px; box-shadow: var(--card-shadow); padding: 14px 20px 20px; margin-bottom: 18px; }
.title { display: flex; align-items: center; gap: 6px; color: var(--title); font-weight: 600; padding-bottom: 6px; }
.title svg { color: var(--blue); }

/* 公告 */
.notice { font-size: 13.5px; font-weight: 600; color: #444; line-height: 1.9; }
.notice p { margin: 4px 0; }
.c-green { color: #16a34a; } .c-blue { color: #2563eb; } .c-red { color: #dc2626; } .c-purple { color: #9333ea; }

/* 分类 */
.cate { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding-top: 12px; }
.cate-box { display: block; background: #f1f1f1; border-radius: 10px; padding: 12px 18px; cursor: pointer; transition: transform .15s; }
.cate-box:hover { transform: translateY(-2px); }
.cate-box p { margin: 0; font-size: 12px; font-weight: 800; color: #545454; }
.cate-box span { font-size: 12px; color: #999; }
.cate-box.active { background: var(--grad); box-shadow: 0 7px 10px 0 rgba(54,144,248,.23); }
.cate-box.active p, .cate-box.active span { color: #fff; }

/* 地区标签：选中某个分类后出现，国家多了就横向滑动，不占高度 */
.regions { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 14px; }
.regions[hidden] { display: none; }
.regions a { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent;
  background: #f1f5f9; color: var(--name); font: inherit; font-size: 12px; cursor: pointer; }
.regions a em { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 11px; }
.regions a.active { background: #fff; border-color: var(--blue); color: var(--blue); font-weight: 600; }
.regions a.active em { color: var(--blue); }
.regions a[hidden], .st-row[hidden], .goods-group[hidden] { display: none; }
/* 地区很多时：标签换行，只显示两行，点“展开”看全部；上面多一个搜索框 */
.regions.many { flex-wrap: wrap; overflow: hidden; max-height: 76px; }  /* padding-top 14 + 两行 28 + 间距 6 */
.regions.many.open { max-height: none; }
.regions-more { display: block; margin: 8px auto 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: 12px; cursor: pointer; }
.regions-more[hidden] { display: none; }
.region-search { padding-top: 14px; }
.region-search[hidden] { display: none; }
.region-search .input { width: 100%; max-width: 320px; height: 34px; }
.flag { flex: none; width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; }  /* 国旗是 img/flags 里的 SVG */
.regions a .flag { width: 16px; height: 16px; margin-right: 5px; }

/* 价格表：一行一个国家，一列一个规格；每格是一个链接，点进去就是那件商品 */
.spec-table { margin-top: 14px; }
.st-head, .st-row { display: grid; grid-template-columns: 120px repeat(var(--cols), minmax(0, 1fr)); gap: 10px; align-items: center; }
.st-head { padding: 0 14px 8px; font-size: 12px; font-weight: 700; color: #64748b; }
.st-row { padding: 8px 14px; margin-bottom: 8px; border-radius: 12px; background: #fff; border: 1px solid rgba(226,232,240,.6);
  box-shadow: 0 0 16px rgba(121,85,52,.04), 0 7px 22px -21px rgba(15,23,42,.3); }
.st-region { font-size: 14px; font-weight: 700; color: var(--name); display: flex; align-items: center; }
.st-region:hover { color: var(--blue); }
.st-cell { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px 4px 12px; border-radius: 10px; background: #f8fafc;
  border: 1px solid transparent; transition: border-color .15s, background .15s; }
a.st-cell:hover { border-color: #9db5ff; background: #fff; }
a.st-cell:hover .goods-buy { color: #fff; background: var(--grad); border-color: transparent; }
.st-cell b { color: var(--price-list); font-weight: 800; }
.st-cell .st-stock { font-size: 11px; font-weight: 600; color: var(--green); }
.st-cell .goods-buy { margin-left: auto; }
.st-cell.soldout { opacity: .55; }
.st-none { justify-content: center; color: #cbd5e1; background: none; }
/* 需要联系客服的商品：不显示库存，按钮写“咨询” */
.goods-stock.consult-tip, .st-cell.consult .st-stock { color: #f59e0b; }
.goods-box.consult .goods-price { width: auto; min-width: 70px; white-space: nowrap; }  /* 「¥30.00 起」不换行 */
.goods-box.consult .goods-buy, a.st-cell.consult .goods-buy { color: var(--blue); border-color: #bfd0ff; }
.detail-price.consult { font-size: 22px; font-weight: 800; color: var(--price-list); }
.consult-box { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 13px; line-height: 1.8; }
.consult-box b { color: #c2410c; }
.consult-box p { margin: 4px 0 0; color: #475569; }
.consult-box a { color: var(--blue); text-decoration: underline; }
.desc-text { white-space: pre-line; }  /* 后台填的描述保留换行 */
.st-spec { display: none; }  /* 规格名在表头里；窄屏没有表头时才显示在格子里 */

/* 商品列表 */
.goods-group { margin-top: 14px; }
.goods-divider { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 12px; font-weight: 700; color: #64748b; }
.goods-divider::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--grad); }
.goods-divider em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.goods-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #e2e8f0, transparent); }
.goods-box { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(226,232,240,.6);
  box-shadow: 0 0 16px rgba(121,85,52,.04), 0 7px 22px -21px rgba(15,23,42,.3); transition: transform .15s, box-shadow .15s; }
.goods-box:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(60,140,231,.35); }
.goods-box.soldout { opacity: .55; }
.goods-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px; }
.goods-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--name);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-price { flex: none; width: 70px; text-align: right; color: var(--price-list); font-weight: 800; }
.goods-stock { flex: none; width: 76px; font-size: 11px; font-weight: 600; color: var(--green); }
.goods-stock.none { color: var(--muted); }
.stock-bar { height: 3px; border-radius: 999px; background: #e2e8f0; margin-top: 2px; overflow: hidden; }
.stock-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #86efac, #22c55e); }
.goods-buy { flex: none; height: 28px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--name);
  background: #fff; border: 1px solid rgba(203,213,225,.72); box-shadow: 0 2px 7px rgba(15,23,42,.05); display: grid; place-items: center; }
.goods-box:hover .goods-buy { color: #fff; background: var(--grad); border-color: transparent; }

/* ---------- 商品详情 / 下单 ---------- */
.detail { display: flex; gap: 24px; padding-top: 10px; }
.detail-pic { flex: none; width: 180px; height: 180px; border-radius: 6px; box-shadow: var(--grad-shadow);
  display: grid; place-items: center; color: #fff; font-size: 64px; font-weight: 800; }
.detail-info { flex: 1; min-width: 0; }
.detail-name { margin: 0; font-size: 18px; font-weight: 700; color: var(--title); line-height: 1.5; }
.tips { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; line-height: 16px; }
.tips-green { background: #dff7ea; color: #28c76f; }
.tips-blue { background: #dbe4ff; color: #1f5bff; }
.tips-orange { background: #ffedd5; color: #ea580c; }
.detail-price { color: var(--price); margin: 6px 0 4px; }
.detail-price b { font-size: 22px; font-weight: 400; }
.detail-price del { color: var(--muted); font-size: 12px; margin-left: 8px; }
.form-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.form-row > label { flex: none; width: 70px; color: #666; text-align-last: justify; }
.form-row > label::after { content: "："; }
.input { width: 100%; max-width: 300px; height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 14px; color: #333; box-shadow: 0 4px 10px rgba(135,142,154,.07); outline: none; transition: border-color .15s; }
.input:focus { border-color: #9db5ff; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #555; background: #fff; cursor: pointer;
  font-size: 16px; line-height: 1; color: #333; display: grid; place-items: center; padding: 0; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty .input { width: 75px; text-align: center; font-size: 20px; font-weight: 500; }
.sub-tip { color: var(--muted); font-size: 12px; margin-left: 10px; }
.pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pay-type { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 5px; cursor: pointer;
  background: #f7f7f7; border: 1px solid #e7e7e7; transition: all .15s; user-select: none; }
.pay-type:hover { border-color: #c7d6ff; }
.pay-type.selected { background: #f8faff; border-color: rgba(31,91,255,.48); color: var(--select); }
.pay-type .fee { font-size: 11px; color: #ea580c; background: #fff7ed; border-radius: 3px; padding: 0 4px; }
.pay-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.total-line { margin-top: 16px; color: #666; }
.total-line b { color: var(--price); font-size: 20px; }
.buy-bar { text-align: center; margin-top: 22px; }
.err { color: #dc2626; font-size: 13px; margin-top: 10px; min-height: 20px; text-align: center; }
.desc { color: #444; font-size: 13.5px; line-height: 1.9; }
.desc code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; font-weight: 700; color: #334155; }

/* ---------- 收银台 ---------- */
.cashier { text-align: center; padding: 6px 0 4px; }
.cashier .amount { color: var(--price); font-size: 34px; font-weight: 700; margin: 4px 0; }
.cashier .amount small { font-size: 18px; }
.cashier .channel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: #f8faff; color: var(--select); border: 1px solid rgba(31,91,255,.3); font-size: 13px; }
.qr-box { display: inline-block; margin: 18px auto 8px; padding: 12px; border-radius: 10px; background: #fff;
  border: 1px solid #e5edff; box-shadow: var(--card-shadow); position: relative; }
.qr-box canvas, .qr-box img { display: block; }
.qr-mask { position: absolute; inset: 0; border-radius: 10px; background: rgba(255,255,255,.94); display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.qr-mask.show { display: flex; }
.countdown { color: #666; font-size: 13px; }
.countdown b { color: var(--price); font-variant-numeric: tabular-nums; }
.waiting { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; margin-top: 8px; }
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; font-size: 13.5px; text-align: left; }
.kv span:nth-child(odd) { color: #999; }
.kv span:nth-child(even) { color: #333; word-break: break-all; }
.steps { display: flex; justify-content: space-between; margin: 6px 0 16px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 12px; height: 2px; background: #e5e7eb; }
.step { position: relative; flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.step i { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%;
  background: #e5e7eb; color: #fff; font-style: normal; font-weight: 700; }
.step.done i, .step.now i { background: var(--grad); box-shadow: var(--grad-shadow); }
.step.done, .step.now { color: var(--blue); font-weight: 600; }

/* ---------- 订单结果 ---------- */
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.st-Pending { background: #fff7ed; color: #ea580c; }
.st-Paid, .st-Delivered { background: #dff7ea; color: #16a34a; }
.st-Closed { background: #f1f5f9; color: #64748b; }
.keys { list-style: none; padding: 0; margin: 10px 0 0; }
.keys li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 8px; border-radius: 8px;
  background: #f8fafc; border: 1px dashed #cbd5e1; font-family: Consolas, Menlo, monospace; font-size: 13px; word-break: break-all; }
.keys li span { flex: 1; min-width: 0; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.6; } /* 长卡密（带邮箱 Token）自动换行 */
.copy { flex: none; border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 600; }
.toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.link-btn { border: 1px solid rgba(203,213,225,.8); background: #fff; border-radius: 999px; padding: 4px 14px; font-size: 12px;
  font-weight: 600; color: var(--name); cursor: pointer; }

/* ---------- 提示 ---------- */
.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); background: rgba(15,23,42,.85); color: #fff;
  padding: 8px 18px; border-radius: 6px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 99; }
.toast.show { opacity: 1; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }
/* 订单查询页：我的最近订单 */
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name price go" "meta price go";
  align-items: center; gap: 2px 16px; padding: 10px 14px; margin-bottom: 8px; border: 1px solid #edf0f5; border-radius: 6px; cursor: pointer; }
.recent li:hover, .recent li.on { border-color: #9db5ff; background: #f8faff; }
.recent .r-name { grid-area: name; color: var(--name); font-weight: 600; }
.recent .r-meta { grid-area: meta; color: var(--muted); font-size: 12px; word-break: break-all; }
.recent .r-price { grid-area: price; color: var(--price); font-weight: 700; }
.recent .r-go { grid-area: go; color: var(--blue); font-size: 13px; }
.recent-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* 页脚：免责声明（居中）+ 版权 */
.footer { max-width: var(--width); margin: 0 auto; padding: 8px 16px 28px; text-align: center; color: #94a3b8; font-size: 13px; line-height: 1.9; }
.footer .inner { position: relative; padding-top: 22px; }
.footer .inner::before { content: ""; position: absolute; top: 0; left: 5%; right: 5%; height: 1px;  /* 两头淡出的分隔线 */
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .35), rgba(31, 91, 255, .35), transparent); }
.footer h4 { margin: 0 0 10px; font-size: 13.5px; color: #64748b; font-weight: 600; }
.footer p { margin: 0; }
.footer .credits { margin-top: 2px; font-size: 11px; color: #c4ccd6; }  /* 国旗图标的授权要求注明出处 */
.footer .credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer .copy-right { margin-top: 22px; font-size: 12px; color: #b6c0cc; }
.notice a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .detail { flex-direction: column; align-items: center; }
  .detail-info { width: 100%; }
  .goods-stock { display: none; }
  .cate { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .form-row > label { width: 62px; }
  /* 窄屏：商品名单独占一行（否则价格和按钮把名字挤没了），价格和购买按钮放第二行 */
  .goods-box { flex-wrap: wrap; row-gap: 4px; }
  .goods-name { flex-basis: calc(100% - 54px); }
  .goods-price { width: auto; text-align: left; margin-left: 54px; }
  .goods-buy { margin-left: auto; }
  /* 窄屏价格表：没有表头，每个国家一张小卡片，里面每个规格一行 */
  .st-head { display: none; }
  .st-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; }
  .st-spec { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;  /* 规格名最多两行，不截成省略号 */
    flex: 1; min-width: 0; font-size: 12px; line-height: 1.4; color: #64748b; }
  .st-cell { padding-top: 6px; padding-bottom: 6px; }
  .st-cell .goods-buy { margin-left: 0; }
  .st-none { justify-content: flex-start; padding-left: 12px; }
  .brand img { width: 40px; height: 38px; }
  .brand b { font-size: 19px; }
  .brand span { display: none; }
  /* 手机：顶栏分两行——品牌 + 语言切换一行，导航单独一行，英文也不挤 */
  .header .inner, .hero-top { flex-wrap: wrap; row-gap: 2px; }
  .site-nav { order: 3; width: 100%; margin: 6px 0 4px; font-size: 12.5px; }
  .site-nav a { flex: 1; padding: 6px 4px; gap: 4px; }
  .site-nav a svg { display: none; }  /* 手机上 4 个入口，只留文字 */
  .site-nav a, .lang-switch { white-space: nowrap; }
  .article-list, .series-list { grid-template-columns: minmax(0, 1fr); }
  .prev-next { grid-template-columns: minmax(0, 1fr); }
  .resource-card { flex-wrap: wrap; }
  .resource-body { flex-basis: calc(100% - 68px); }
  .resource-btn { width: 100%; justify-content: center; }
  .cta-card .btn-grad { width: 100%; justify-content: center; }
  .article h1 { font-size: 21px; }
  .prose { font-size: 14.5px; }
  .hero .inner { padding: 16px 18px 64px; }  /* 手机上地球铺满底部一条，文字停在它上面 */
  .hero .inner::after { width: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
  .header { margin-top: 12px; }
  .header .inner { height: auto; padding: 8px 16px 4px; }
  .hero { margin-top: 12px; }
  .hero-top { margin-bottom: 4px; }
}

/* 订单页卡密：一个大文本框装下全部卡密（一行一张），下面一行：提示 + 复制全部 / 导出 TXT */
.keys-box { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 8px;
  background: #f8fafc; color: var(--name); font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13px; line-height: 1.6;
  word-break: break-all; resize: vertical; min-height: 90px; max-height: 70vh; box-sizing: border-box; }
.keys-box:focus { outline: none; border-color: #9db5ff; background: #fff; }
.keys-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }  /* 左边提示，右边两个小按钮 */
.keys-tip { margin-right: auto; font-size: 12px; color: var(--muted); }
.btn-grad.alt { background: linear-gradient(135deg, #6a7ef5, #7b4fc9); }

/* 下单验证码：输入框 + 验证码图（点击换一张） */
.captcha-input { flex: 0 1 160px; width: 160px; min-width: 0; max-width: 160px; text-transform: uppercase; letter-spacing: 2px; }
.captcha-img { width: 150px; height: 44px; border: 1px solid #dbe3ef; border-radius: 6px; cursor: pointer; background: #f3f6fb; flex: none; }
@media (max-width: 480px) { .captcha-img { width: 112px; height: 33px; } }  /* 手机上验证码图缩小，和输入框放得下一行 */
