/* AIDUOTEK 独立站样式 · 照 04_SOP/苹果范的软件UI/05 v2.1 的颜色、圆角、阴影、按钮尺寸；外观对标 apple.com 商店页 */
:root {
  --c-bg: #ffffff; --c-bg-2: #f5f5f7; --c-surface: #ffffff; --c-fill: rgba(0,0,0,.035); --c-fill-2: rgba(0,0,0,.055);
  --c-ink: #1d1d1f; --c-ink-2: #6e6e73; --c-ink-3: #8e8e93;
  --c-line: #e5e5ea; --c-line-2: #d2d2d7; --c-hairline: rgba(0,0,0,.09);
  --c-accent: #007aff; --c-accent-hover: #0066d6; --c-accent-ink: #0058c7; --c-accent-soft: #e8f2ff;
  --c-green: #34c759; --c-green-ink: #1a7f37; --c-orange: #ff9500; --c-orange-ink: #a15c00; --c-red: #ff3b30; --c-red-ink: #d70015;
  --r-s: 6px; --r-m: 10px; --r-l: 14px; --r-xl: 18px;
  --sh-1: 0 1px 2px rgba(0,0,0,.06);
  --sh-card: 0 1px 0 rgba(0,0,0,.03), 0 4px 20px rgba(0,0,0,.07), 0 0 0 .5px rgba(0,0,0,.05);
  --sh-pop: 0 12px 40px rgba(0,0,0,.16), 0 0 0 .5px rgba(0,0,0,.08);
  --ring: 0 0 0 3px rgba(0,122,255,.45);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.23,1,.32,1); --dur-fast: 140ms; --dur: 220ms;
  --nav-h: 48px; --gutter: 22px; --max: 1120px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: light; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 17px/1.47 var(--font-ui); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: 48px; } h2 { font-size: 36px; } h3 { font-size: 24px; letter-spacing: -.015em; } h4 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--c-ink-2); } .small { font-size: 14px; letter-spacing: -.008em; } .caption { font-size: 12px; color: var(--c-ink-2); letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus { outline: none; } :focus-visible { box-shadow: var(--ring); border-radius: 6px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: var(--ring); }

/* 按钮：32px 胶囊（SOP 4.2），大按钮 44px；按下 .97 / 120ms（SOP 4.3.2） */
.btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--c-accent); color: #fff; font: 600 14px/1 var(--font-ui); letter-spacing: -.01em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 120ms var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast); }
.btn:hover { background: var(--c-accent-hover); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { box-shadow: var(--ring); border-radius: 16px; }
.btn.secondary { background: var(--c-surface); color: var(--c-ink); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); font-weight: 500; }
.btn.secondary:hover { background: var(--c-bg-2); }
.btn.ghost { background: transparent; color: var(--c-accent); box-shadow: none; }
.btn.ghost:hover { background: var(--c-accent-soft); }
.btn.lg { height: 44px; padding: 0 24px; border-radius: 22px; font-size: 17px; }
.btn.lg:focus-visible { border-radius: 22px; }
.btn.danger { background: rgba(255,59,48,.12); color: var(--c-red-ink); }
.btn.danger:hover { background: rgba(255,59,48,.18); }
.btn:disabled, .btn[aria-disabled="true"] { background: rgba(118,118,128,.16); color: var(--c-ink-3); cursor: default; transform: none; box-shadow: none; }
.btn.busy { background: rgba(0,122,255,.12); color: var(--c-accent); pointer-events: none; }
.btn.block { width: 100%; }
.icon-btn { -webkit-appearance: none; appearance: none; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--c-ink); cursor: pointer; transition: transform 120ms var(--ease-out), background var(--dur-fast); }
.icon-btn:hover { background: var(--c-fill); } .icon-btn:active { transform: scale(.97); }
.icon-btn svg { width: 18px; height: 18px; }
.link-arrow::after { content: " ›"; }

/* 导航：48px 磨砂浅色条，无底线（透出背景） */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 rgba(0,0,0,.08); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 8px; }
.nav .logo { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-decoration: none; padding: 6px 0; }
.nav .logo img { width: 22px; height: 22px; border-radius: 6px; }
.nav .links { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.nav .links a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 16px; color: var(--c-ink); font-size: 14px; font-weight: 500; letter-spacing: -.01em; opacity: .85; }
.nav .links a:hover { background: var(--c-fill); text-decoration: none; opacity: 1; }
.nav .links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav .spacer { flex: 1; }
.nav .badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.nav .badge:empty, .nav .badge[data-n="0"] { display: none; }
.nav .menu-btn { display: none; }
@media (max-width: 760px) { .nav .links { display: none; } .nav .menu-btn { display: inline-flex; } }

/* 原生 popover：菜单、迷你购物袋（SOP 4.3 / 4.3.1） */
[popover] { margin: 0; padding: 0; border: 0; background: transparent; color: inherit; inset: unset; }
[popover]::backdrop { background: transparent; }
.pop { position: fixed; top: calc(var(--nav-h) + 8px); right: max(12px, calc((100vw - var(--max)) / 2 + var(--gutter))); width: 340px; max-width: calc(100vw - 24px); border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 12px 32px rgba(0,0,0,.16); padding: 14px; animation: pop-in 160ms var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.pop h4 { font-size: 15px; margin-bottom: 10px; }
.pop .rows { display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.pop .row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; }
.pop .row:hover { background: rgba(0,122,255,.04); }
.pop .row img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.pop .row .n { font-size: 14px; font-weight: 500; line-height: 1.25; }
.pop .row .m { font-size: 12px; color: var(--c-ink-2); }
.pop .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: .5px solid var(--c-line); font-size: 14px; }
.pop .empty { padding: 18px 6px; color: var(--c-ink-2); font-size: 14px; text-align: center; }
.menu-pop { width: 260px; padding: 8px; }
.menu-pop a { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--c-ink); font-size: 15px; font-weight: 500; }
.menu-pop a:hover { background: var(--c-fill); text-decoration: none; }

/* 首页：大标题在上、产品在下（apple.com 首页式），灰色圆角舞台放三个盒子；盒子图是白底 JPG，multiply 让它「坐」在灰底上 */
.hero { padding: 72px 0 0; text-align: center; }
.hero h1 { font-size: 64px; max-width: 12ch; margin: 0 auto 16px; letter-spacing: -.028em; }
.hero p.lead { font-size: 21px; color: var(--c-ink-2); max-width: 48ch; margin: 0 auto 28px; letter-spacing: -.015em; }
.hero .cta { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero .cta .link-arrow { font-size: 17px; }
.stage { position: relative; height: 540px; margin-top: 52px; border-radius: 28px; background: var(--c-bg-2); overflow: hidden; isolation: isolate; }
/* multiply 挂在 a 上而不是 img 上：a 一旦有 transform / z-index 就自成层叠上下文，img 的 multiply 只会和透明的 a 混合，白底就露出来 */
.stage a { position: absolute; bottom: 0; display: block; mix-blend-mode: multiply; transition: transform 500ms var(--ease-out); }
.stage img { width: 100%; height: auto; }
.stage .s-main { left: 50%; width: 46%; margin-left: -23%; bottom: 1%; }
.stage .s-left { left: 1%; width: 26%; bottom: 6%; }
.stage .s-right { right: 1%; width: 26%; bottom: 6%; }
.stage a:hover { transform: translateY(-8px); }
@media (max-width: 760px) { .hero { padding: 44px 0 0; } .hero h1 { font-size: 40px; } .hero p.lead { font-size: 17px; } .stage { height: auto; aspect-ratio: 1; margin-top: 32px; border-radius: 20px; } .stage .s-main { width: 90%; margin-left: -45%; bottom: 3%; } .stage .s-left, .stage .s-right { display: none; } }

/* 区块：80px 节奏、40px 标题（苹果官网区块的从容度） */
.section { padding: 80px 0; }
.section.alt { background: var(--c-bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 40px; letter-spacing: -.025em; }
.section-head p { color: var(--c-ink-2); margin-top: 6px; font-size: 19px; }
@media (max-width: 760px) { .section { padding: 44px 0; } .section-head h2 { font-size: 28px; } .section-head p { font-size: 17px; } .section-head { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* 商品格子：不要卡片阴影、不要彩色标签、不要蓝胶囊——灰色圆角图位放盒子，下面名字 / 规格 / 价格（apple.com 商店格子） */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 22px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }
.tile { display: grid; grid-template-rows: auto 1fr; }
.tile a.pic { display: block; position: relative; aspect-ratio: 1; border-radius: 20px; background: var(--c-bg-2); overflow: hidden; isolation: isolate; }
.section.alt .tile a.pic { background: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform 500ms var(--ease-out); }
.tile img.art { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.tile:hover img { transform: scale(1.035); }
.tile .body { padding: 14px 2px 0; display: grid; gap: 3px; }
.tile .kicker { font-size: 12px; font-weight: 600; color: var(--c-orange-ink); letter-spacing: .01em; }
.tile .name { font-size: 17px; font-weight: 600; letter-spacing: -.012em; color: var(--c-ink); line-height: 1.25; }
.tile .name a { color: inherit; } .tile .name a:hover { text-decoration: none; }
.tile .meta { font-size: 14px; color: var(--c-ink-2); }
.tile .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tile .price { font-size: 15px; }
.tile .add { height: 26px; padding: 0 2px; border: 0; background: transparent; color: var(--c-accent); font: 500 14px/1 var(--font-ui); cursor: pointer; border-radius: 6px; transition: transform 120ms var(--ease-out); }
.tile .add:hover { text-decoration: underline; } .tile .add:active { transform: scale(.97); }
@media (max-width: 480px) { .tile .name { font-size: 15px; } .tile .meta { font-size: 13px; } }

/* 系列卡：图在灰色圆角底里，文字在图下面（不压渐变） */
.col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; }
@media (max-width: 1000px) { .col-grid { grid-template-columns: repeat(2, 1fr); } }
.col-card { display: block; color: var(--c-ink); }
.col-card .pic { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--c-bg-2); }
.col-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.col-card:hover img { transform: scale(1.04); } .col-card:hover { text-decoration: none; }
.col-card .cap { padding: 12px 2px 0; }
.col-card .cap b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
.col-card .cap span { font-size: 14px; color: var(--c-ink-2); }

/* 工艺：大数字讲参数 + 一条宽幅画面细节带（苹果用大数字，不用图标卡） */
.craft { text-align: center; }
.craft h2 { font-size: 48px; max-width: 18ch; margin: 0 auto 10px; letter-spacing: -.028em; }
.craft > p { font-size: 19px; color: var(--c-ink-2); max-width: 52ch; margin: 0 auto; }
.bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 56px auto 0; max-width: 900px; }
.bignums b { display: block; font-size: 56px; font-weight: 600; letter-spacing: -.035em; line-height: 1; color: var(--c-ink); }
.bignums span { display: block; margin-top: 10px; font-size: 15px; color: var(--c-ink-2); }
.detail-band { margin-top: 56px; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--c-bg-2); }
.detail-band img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); transform-origin: 42% 46%; }
.craft .foot { margin-top: 22px; font-size: 14px; color: var(--c-ink-2); }
@media (max-width: 760px) { .craft h2 { font-size: 32px; } .craft > p { font-size: 17px; } .bignums { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; } .bignums b { font-size: 44px; } .detail-band { aspect-ratio: 4 / 3; border-radius: 20px; margin-top: 36px; } }

/* 商店页筛选 */
.toolbar { position: sticky; top: var(--nav-h); z-index: 10; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 12px 0; margin-bottom: 18px; }
.toolbar .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 13px; border: 0; border-radius: 15px; background: var(--c-fill); color: var(--c-ink); font: 500 13px/1 var(--font-ui); cursor: pointer; transition: transform 120ms var(--ease-out), background var(--dur-fast); }
.chip:hover { background: var(--c-fill-2); } .chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--c-accent); color: #fff; }
.toolbar .count { color: var(--c-ink-2); font-size: 13px; margin-left: auto; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: rgba(118,118,128,.12); }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font: 500 13px/1 var(--font-ui); color: var(--c-ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
select.sel { height: 30px; padding: 0 28px 0 10px; border: 0; border-radius: 8px; background: var(--c-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231d1d1f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center; font: 500 13px var(--font-ui); color: var(--c-ink); -webkit-appearance: none; appearance: none; cursor: pointer; }

/* 商品详情 */
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 56px; padding: 28px 0 64px; align-items: start; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; gap: 24px; } }
.pd .gallery { position: sticky; top: calc(var(--nav-h) + 16px); }
/* 主图位：正方形灰底；三个视图 = 盒子（multiply 坐在灰底上）/ 完整画面 / 局部细节 */
.pd .gallery .main { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--c-bg-2); cursor: zoom-in; isolation: isolate; }
.pd .gallery .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3%; mix-blend-mode: multiply; }
.pd .gallery .main img.art { padding: 6%; mix-blend-mode: normal; }
.pd .gallery .main img.detail { object-fit: cover; padding: 0; mix-blend-mode: normal; transform: scale(1.8); transform-origin: 38% 42%; }
.pd .gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd .gallery .thumbs button { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--c-bg-2); box-shadow: 0 0 0 .5px rgba(0,0,0,.08); transition: box-shadow var(--dur-fast); isolation: isolate; }
.pd .gallery .thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c-accent); }
.pd .gallery .thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.pd .gallery .thumbs img.art { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.pd .gallery .thumbs img.detail { object-fit: cover; padding: 0; mix-blend-mode: normal; transform: scale(2.2); transform-origin: 38% 42%; }
.pd .info .crumbs { font-size: 13px; color: var(--c-ink-2); margin-bottom: 10px; }
.pd .info .crumbs a { color: var(--c-ink-2); }
.pd .info h1 { font-size: 40px; margin-bottom: 8px; letter-spacing: -.025em; }
.pd .info .sub { color: var(--c-ink-2); font-size: 15px; margin-bottom: 18px; }
.pd .info .price { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.pd .info .ship-note { font-size: 13px; color: var(--c-green-ink); margin-top: 4px; }
.pd .buy { display: flex; gap: 10px; align-items: center; margin: 22px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; height: 44px; border-radius: 22px; background: var(--c-fill); padding: 0 4px; }
.qty button { width: 36px; height: 36px; border: 0; border-radius: 18px; background: transparent; font: 500 20px/1 var(--font-ui); color: var(--c-ink); cursor: pointer; }
.qty button:hover { background: var(--c-fill-2); } .qty button:active { transform: scale(.97); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-size: 16px; }
.pd .amz { font-size: 13px; color: var(--c-ink-2); }
.pd .amz a { display: inline-block; padding: 6px 0; }
.row-item .s { line-height: 26px; }
.specs { margin-top: 26px; display: grid; gap: 0; border-top: .5px solid var(--c-line); }
.specs details { border-bottom: .5px solid var(--c-line); }
.specs summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 0; font-size: 17px; font-weight: 600; cursor: pointer; letter-spacing: -.012em; }
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--c-ink-2); border-bottom: 1.5px solid var(--c-ink-2); transform: rotate(45deg); transition: transform 200ms var(--ease-out); margin-right: 4px; }
.specs details[open] summary::after { transform: rotate(-135deg); }
.specs .c { padding: 0 0 16px; color: var(--c-ink-2); font-size: 15px; }
.specs .c ul { margin: 0; padding-left: 18px; } .specs .c li + li { margin-top: 4px; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 15px; }
.spec-row dt { color: var(--c-ink-2); } .spec-row dd { margin: 0; color: var(--c-ink); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox img { max-width: 96vw; max-height: 96vh; border-radius: 8px; }

/* 列表行（购物车），照 SOP 4.4：无分割线，一层底色，缩略图够大 */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 28px 0 56px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.rows { display: grid; gap: 6px; }
.row-item { display: grid; grid-template-columns: 176px 1fr auto; gap: 16px; align-items: center; padding: 10px; border-radius: 14px; transition: background var(--dur-fast); }
.row-item:hover { background: rgba(0,122,255,.04); }
.row-item img { width: 176px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.row-item .n { font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
.row-item .s { font-size: 13px; color: var(--c-ink-2); margin-top: 2px; }
.row-item .right { display: grid; justify-items: end; gap: 8px; }
.row-item .right .p { font-size: 17px; font-weight: 500; }
@media (max-width: 560px) { .row-item { grid-template-columns: 120px 1fr; } .row-item img { width: 120px; } .row-item .right { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; } }
.card { border-radius: 16px; background: var(--c-surface); box-shadow: var(--sh-card); padding: 20px; }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.sum { display: grid; gap: 8px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { font-size: 19px; font-weight: 600; padding-top: 10px; border-top: .5px solid var(--c-line); margin-top: 4px; }
.empty-state { text-align: center; padding: 64px 0; color: var(--c-ink-2); }
.empty-state h2 { color: var(--c-ink); font-size: 28px; margin-bottom: 8px; }

/* 表单（结账、联系） */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; }
.field label { font-size: 13px; font-weight: 500; color: var(--c-ink-2); }
.field input, .field select, .field textarea { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--c-fill); font: 400 15px var(--font-ui); color: var(--c-ink); -webkit-appearance: none; appearance: none; }
.field textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; }
.field input:invalid:not(:placeholder-shown) { box-shadow: inset 0 0 0 1px var(--c-red); }
.field .err { font-size: 12px; color: var(--c-red-ink); display: none; } .field.bad .err { display: block; }
.group-card { background: var(--c-fill); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; min-height: 28px; }
.check input { accent-color: var(--c-accent); width: 18px; height: 18px; }

/* 文章页（关于、FAQ、政策） */
.article { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.article h1 { font-size: 40px; margin-bottom: 10px; }
.article .lead { font-size: 21px; color: var(--c-ink-2); margin-bottom: 36px; letter-spacing: -.015em; }
.article h2 { font-size: 24px; margin: 36px 0 10px; }
.article p + p { margin-top: 12px; }
.article ul { padding-left: 20px; } .article li + li { margin-top: 6px; }
.faq details { border-bottom: .5px solid var(--c-line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 14px 0; font-size: 17px; font-weight: 600; cursor: pointer; letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--c-ink-2); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--c-ink-2); font-size: 16px; }
.about-hero { border-radius: 20px; overflow: hidden; aspect-ratio: 21 / 9; margin: 0 auto 36px; box-shadow: var(--sh-card); }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.stats div { background: var(--c-bg-2); border-radius: 14px; padding: 18px; text-align: center; }
.stats b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--c-ink-2); }

/* 订阅条 */
.newsletter { background: var(--c-ink); color: #fff; padding: 56px 0; text-align: center; }
.newsletter h2 { font-size: 32px; margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,.7); margin-bottom: 22px; }
.newsletter form { display: inline-flex; gap: 8px; max-width: 460px; width: 100%; }
.newsletter input { flex: 1; height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: rgba(255,255,255,.12); color: #fff; font: 400 16px var(--font-ui); }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter .btn.lg { background: #fff; color: var(--c-ink); }

/* 页脚 */
.footer { background: var(--c-bg-2); color: var(--c-ink-2); font-size: 12px; padding: 28px 0 36px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 20px; border-bottom: .5px solid var(--c-line-2); }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h5 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--c-ink); }
.footer a { display: block; color: var(--c-ink-2); padding: 3px 0; min-height: 26px; }
.footer a:hover { color: var(--c-ink); text-decoration: underline; }
.footer .brandline { font-size: 14px; color: var(--c-ink); font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
.footer .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; }
.footer .legal a { display: inline-block; padding: 4px 0; min-height: 26px; }
.footer .legal span { padding: 4px 0; }

/* 原生 dialog：苹果式确认框（SOP 10.1） */
dialog.ask { width: 300px; max-width: calc(100vw - 32px); padding: 22px 20px 16px; border: 0; border-radius: 14px; background: rgba(246,246,246,.96); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 0 0 .5px rgba(0,0,0,.15), 0 24px 60px rgba(0,0,0,.3); text-align: center; animation: pop-in 160ms var(--ease-out); }
dialog.ask::backdrop { background: rgba(0,0,0,.22); }
dialog.ask .ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent); }
dialog.ask .ic.red { background: #ffecec; color: var(--c-red-ink); }
dialog.ask .ic svg { width: 28px; height: 28px; }
dialog.ask h3 { font-size: 15px; margin-bottom: 4px; }
dialog.ask p { font-size: 13px; color: var(--c-ink-2); margin-bottom: 16px; }
dialog.ask .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
dialog.ask .acts .btn { height: 30px; border-radius: 8px; font-size: 13px; }
dialog.ask .acts .btn.secondary { box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }

/* ⌘K 搜索（SOP 4.3.3） */
dialog.cmdk { width: 560px; max-width: calc(100vw - 32px); margin-top: 12vh; padding: 0; border: 0; border-radius: 14px; background: rgba(250,250,250,.94); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: var(--sh-pop); overflow: hidden; animation: pop-in 160ms var(--ease-out); }
dialog.cmdk::backdrop { background: rgba(0,0,0,.18); }
dialog.cmdk .in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: .5px solid var(--c-line); }
dialog.cmdk .in svg { width: 18px; height: 18px; color: var(--c-ink-3); }
dialog.cmdk input { flex: 1; border: 0; background: transparent; font: 400 20px var(--font-ui); color: var(--c-ink); outline: none; }
dialog.cmdk .list { max-height: 50vh; overflow: auto; padding: 6px; }
dialog.cmdk .h { font-size: 11px; font-weight: 600; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px 4px; }
dialog.cmdk .it { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
dialog.cmdk .it img { width: 40px; height: 30px; object-fit: cover; border-radius: 5px; }
dialog.cmdk .it .k { width: 40px; height: 30px; border-radius: 5px; background: var(--c-fill); display: grid; place-items: center; color: var(--c-ink-2); }
dialog.cmdk .it .k svg { width: 16px; height: 16px; }
dialog.cmdk .it b { font-weight: 500; } dialog.cmdk .it span { color: var(--c-ink-2); font-size: 12px; }
dialog.cmdk .it[aria-selected="true"] { background: var(--c-accent); color: #fff; }
dialog.cmdk .it[aria-selected="true"] span { color: rgba(255,255,255,.8); }
dialog.cmdk .none { padding: 24px; text-align: center; color: var(--c-ink-2); font-size: 14px; }

/* 轻提示 */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: rgba(29,29,31,.92); color: #fff; font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 20px; box-shadow: var(--sh-pop); z-index: 100; transition: transform 220ms var(--ease-out), opacity 220ms; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.toast.on { transform: translateX(-50%); opacity: 1; }
.toast a { color: #8ec5ff; pointer-events: auto; white-space: nowrap; }
.toast svg { width: 16px; height: 16px; flex: none; }
.toast { white-space: nowrap; }

/* 结账页 */
.pay-box { display: grid; gap: 12px; }
.pay-note { background: #fff4e0; color: var(--c-orange-ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.done { text-align: center; padding: 72px 0; }
.done .ic { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px; background: #e6f7ec; color: var(--c-green-ink); display: grid; place-items: center; }
.done .ic svg { width: 36px; height: 36px; }
/* ===== 首页通栏面板（apple.com 首页：全宽面板浅灰 / 黑交替、标题在上、产品悬在底部、面板之间 12px 白缝） ===== */
.units { display: grid; gap: 12px; background: #fff; }
.unit { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 640px; padding: 60px var(--gutter) 0; overflow: hidden; }
.unit.light { background: var(--c-bg-2); color: var(--c-ink); }
.unit.dark { background: #000; color: #f5f5f7; }
.unit h1, .unit h2 { font-size: 56px; letter-spacing: -.028em; line-height: 1.07; max-width: 16ch; }
.unit.hero h1 { font-size: 64px; }
.unit .sub { font-size: 24px; margin-top: 10px; letter-spacing: -.015em; max-width: 44ch; }
.unit.dark .sub { color: rgba(245,245,247,.86); }
.unit .cta { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.unit .note { margin-top: 14px; font-size: 14px; color: var(--c-ink-2); }
.unit.dark .note { color: rgba(245,245,247,.6); }
.unit-img { display: block; width: min(640px, 86vw); margin-top: auto; padding-top: 40px; }
.unit-img img { width: 100%; height: auto; display: block; transition: transform 600ms var(--ease-out); }
.unit-img:hover img { transform: translateY(-6px); }
.unit.light .unit-img img { filter: drop-shadow(0 28px 36px rgba(0,0,0,.16)); }
.unit.dark .unit-img img { filter: drop-shadow(0 24px 48px rgba(0,0,0,.75)); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.unit.half { min-height: 600px; padding-top: 52px; }
.unit.half h2 { font-size: 40px; max-width: 14ch; }
.unit.half .sub { font-size: 19px; }
.unit.half .unit-img { width: min(440px, 80%); padding-bottom: 28px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } .unit, .unit.half { min-height: 0; padding-top: 48px; } .unit h1, .unit h2 { font-size: 40px; } .unit.hero h1 { font-size: 44px; } .unit .sub { font-size: 19px; } .unit-img { width: min(560px, 90vw); padding-top: 32px; } .unit.half .unit-img { width: min(440px, 86%); } }
.btn.outline { background: transparent; color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); font-weight: 500; }
.btn.outline:hover { background: var(--c-accent); color: #fff; }
.unit.dark .btn.outline { color: #2997ff; box-shadow: inset 0 0 0 1px #2997ff; } .unit.dark .btn.outline:hover { background: #2997ff; color: #000; }
.unit.dark a:not(.btn) { color: #2997ff; }

/* 滚动淡入（IntersectionObserver 加 .in；减少动态时直接显示） */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms cubic-bezier(.2,.6,.2,1), transform 900ms cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 140ms; }
.reveal.now { transition: none; }   /* 首屏元素：不做淡入，直接到位 */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 横滑轨（apple.com「Get to know」那种卡片轨，两个圆钮翻页） */
.rail-sec { padding: 80px 0 64px; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.rail-head h2 { font-size: 40px; letter-spacing: -.025em; }
.rail-ctl { display: flex; gap: 8px; }
.rail-ctl button { width: 36px; height: 36px; border: 0; border-radius: 18px; background: rgba(0,0,0,.06); color: var(--c-ink); cursor: pointer; display: grid; place-items: center; transition: background var(--dur-fast), transform 120ms var(--ease-out); }
.rail-ctl button:hover { background: rgba(0,0,0,.1); } .rail-ctl button:active { transform: scale(.95); }
.rail-ctl button:disabled { opacity: .3; cursor: default; }
.rail-ctl svg { width: 14px; height: 14px; }
.rail { --rail-pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--rail-pad) 20px; scroll-padding-inline: var(--rail-pad); scrollbar-width: none; }   /* scroll-padding 和 padding 一样大，否则 snap 会把第一张卡吸到最左边 */
.rail::-webkit-scrollbar { display: none; }
.rail > .tile { flex: 0 0 300px; scroll-snap-align: start; }
@media (max-width: 760px) { .rail > .tile { flex-basis: 240px; } .rail-sec { padding: 48px 0 40px; } .rail-head h2 { font-size: 28px; } }

/* 商品页粘性局部栏（apple.com/iphone 顶部那条：左名字、右价格 + 购买），滚过购买按钮才出现 */
.localnav { position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 40; height: 52px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 rgba(0,0,0,.08); transform: translateY(-110%); opacity: 0; transition: transform 320ms var(--ease-out), opacity 320ms; }
.localnav.show { transform: none; opacity: 1; }
.localnav .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.localnav .n { font-size: 19px; font-weight: 600; letter-spacing: -.015em; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.localnav .p { font-size: 14px; color: var(--c-ink-2); }

/* 售后中心（support.apple.com：蓝圆图标 + 大标题 + 主题卡 + 搜索 + 两张大卡） */
.sup-hero { text-align: center; padding: 64px 0 40px; }
.sup-hero .ic { width: 80px; height: 80px; border-radius: 40px; background: var(--c-accent); color: #fff; display: grid; place-items: center; margin: 0 auto 26px; }
.sup-hero .ic svg { width: 40px; height: 40px; }
.sup-hero h1 { font-size: 48px; letter-spacing: -.028em; }
.sup-hero p { font-size: 19px; color: var(--c-ink-2); margin-top: 10px; }
.sup-h2 { text-align: center; font-size: 32px; letter-spacing: -.02em; margin: 64px 0 24px; }
.sup-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .sup-topics { grid-template-columns: 1fr 1fr; gap: 12px; } }
.sup-topic { display: grid; justify-items: center; gap: 12px; padding: 32px 18px 26px; border-radius: 18px; background: var(--c-surface); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 2px 10px rgba(0,0,0,.04); color: var(--c-accent); font-size: 15px; font-weight: 500; text-align: center; transition: transform 240ms var(--ease-out), box-shadow 240ms; }
.sup-topic:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08); }
.sup-topic svg { width: 40px; height: 40px; color: var(--c-ink); }
.sup-search { max-width: 760px; margin: 0 auto; position: relative; }
.sup-search input { width: 100%; height: 52px; padding: 0 18px 0 46px; border: 0; border-radius: 14px; background: var(--c-surface); box-shadow: 0 0 0 .5px rgba(0,0,0,.12); font: 400 17px var(--font-ui); color: var(--c-ink); }
.sup-search svg { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; color: var(--c-ink-3); }
.sup-faq { max-width: 760px; margin: 28px auto 0; }
.sup-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .sup-cards { grid-template-columns: 1fr; } }
.sup-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; background: var(--c-surface); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 2px 10px rgba(0,0,0,.04); min-height: 300px; }
.sup-card .pic { background: #e8f2ff; display: grid; place-items: center; padding: 28px; }
.sup-card .pic img { width: 100%; max-width: 260px; filter: drop-shadow(0 14px 20px rgba(0,0,0,.14)); }
.sup-card .txt { padding: 32px 28px; display: grid; align-content: center; gap: 8px; }
.sup-card h3 { font-size: 24px; }
.sup-card p { font-size: 15px; color: var(--c-ink-2); }
.sup-crumb { font-size: 13px; color: var(--c-ink-2); margin-bottom: 14px; } .sup-crumb a { color: var(--c-ink-2); }
.faq details.hide { display: none; }
.article .values { list-style: none; padding: 0; display: grid; gap: 12px; }
.article .values li { padding: 16px 18px; background: var(--c-bg-2); border-radius: 14px; font-size: 16px; color: var(--c-ink-2); }
.article .values li + li { margin-top: 0; }
.article .values b { display: block; color: var(--c-ink); font-size: 17px; margin-bottom: 2px; }
@media print { .nav, .footer, .newsletter, .toolbar, .localnav { display: none; } }

/* 2026-10-17 购买改去 Amazon */
.tile a.add { display: inline-flex; align-items: center; text-decoration: none; }
.tile a.add:hover { text-decoration: underline; }
.btn svg { width: 15px; height: 15px; }
.linkbtn { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 6px 0; margin: 0; color: var(--c-accent); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* Amazon 主副图画廊 + A+（2026-10-17） */
.pd .gallery .main img.amz { object-fit: contain; padding: 0; mix-blend-mode: normal; background: #fff; }
.pd .gallery .thumbs { flex-wrap: wrap; }
.pd .gallery .thumbs img.amz { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.aplus { padding: 24px 0 56px; }
.aplus h2 { font-size: 28px; margin: 0 auto 18px; max-width: 970px; }
.aplus-list { display: grid; gap: 0; max-width: 970px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-card); }
.aplus-list img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .aplus h2 { font-size: 22px; } .aplus-list { border-radius: 12px; } }
