/*
Theme Name: MobileAcc
Description: 手机配件外贸官网主题 v2 — 现代 B2B 外贸风（demo 定稿版）
Author: yinwei
Version: 2.0
*/
/* mobileacc v2 — 现代 B2B 外贸风 demo */
:root {
  --blue: #1565c0;
  --blue-dark: #0f4c96;
  --deep: #0d2b4e;
  --text: #3a4a5e;
  --muted: #6b7a8d;
  --light: #f5f9ff;
  --line: #e3ecf5;
  --white: #fff;
  --shadow: 0 4px 16px rgba(13, 43, 78, .06);
  --shadow-hover: 0 10px 28px rgba(21, 101, 192, .12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(13,43,78,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--deep); letter-spacing: .5px; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), #42a5f5); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 20px; height: 20px; }
.logo span em { color: var(--blue); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a { font-size: 15.5px; font-weight: 500; color: var(--text); position: relative; padding: 6px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 2px; background: var(--blue); }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--blue); background: none; border: none; cursor: pointer; padding: 6px 0; font-family: inherit; transition: color .2s; }
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn .chev { width: 13px; height: 13px; color: #9fb0c3; transition: transform .25s; }
.lang-btn:hover { color: var(--deep); }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 132px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(13,43,78,.12); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 90; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; padding: 9px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.lang-menu a:hover { background: #f5f9ff; color: var(--blue); }
.lang-menu a.on { background: #f5f9ff; color: var(--blue); font-weight: 700; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--deep); }

/* ===== hero ===== */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: var(--deep); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg img.on { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,30,55,.82) 0%, rgba(13,43,78,.55) 48%, rgba(13,43,78,.18) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 96px 0 130px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 6px 16px; margin-bottom: 22px; backdrop-filter: blur(4px); }
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6db3f8; }
.hero h1 { font-size: 48px; line-height: 1.22; color: #fff; font-weight: 800; letter-spacing: -.5px; margin-bottom: 20px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: #7cc0ff; }
.hero p { font-size: 17.5px; color: rgba(255,255,255,.88); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; border-radius: 8px; padding: 13px 30px; transition: all .2s; cursor: pointer; border: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(21,101,192,.28); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--deep); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.hero .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.hero .btn-primary:hover { background: #eaf3fd; }
.hero .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.car-dots { position: absolute; bottom: 56px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; z-index: 3; }
.car-dots button { width: 26px; height: 5px; border-radius: 3px; border: none; cursor: pointer; background: rgba(255,255,255,.4); transition: all .3s; padding: 0; }
.car-dots button.on { background: #fff; width: 44px; }
.car-tag { position: absolute; top: 96px; right: 48px; z-index: 3; background: rgba(13,43,78,.55); color: #fff; font-size: 13px; font-weight: 600; border-radius: 18px; padding: 6px 16px; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.2); }
.hero-badge {
  position: absolute; left: -18px; bottom: 34px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero-badge .ico { width: 40px; height: 40px; border-radius: 10px; background: #e3effc; display: grid; place-items: center; color: var(--blue); }
.hero-badge .ico svg { width: 22px; height: 22px; }
.hero-badge b { display: block; font-size: 15px; color: var(--deep); }
.hero-badge small { font-size: 12.5px; color: var(--muted); }

/* ===== stats ===== */
.stats { margin-top: -44px; position: relative; z-index: 5; }
.stats-card {
  background: linear-gradient(120deg, #0d2b4e 0%, #1565c0 78%, #1976d2 100%);
  border-radius: 14px; box-shadow: 0 12px 30px rgba(13,43,78,.28);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.stats-card div { padding: 26px 12px; text-align: center; }
.stats-card div + div { border-left: 1px solid rgba(255,255,255,.14); }
.stats-card b { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.stats-card small { font-size: 13.5px; color: rgba(255,255,255,.78); }

/* ===== section ===== */
.section { padding: 84px 0; }
.section.alt { background: var(--light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; font-weight: 800; color: var(--deep); margin-bottom: 14px; letter-spacing: -.3px; }
.section-head h2::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 2px; background: var(--blue); margin: 16px auto 0; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ===== categories ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.cat-card {
  background: #f8fbff; border: 1px solid #e3ecf5; border-radius: 14px;
  padding: 34px 26px; text-align: center; transition: all .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); background: #fff; border-color: #cfe2f7; }
.cat-card .ico { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 16px; background: #e3effc; color: var(--blue); display: grid; place-items: center; transition: all .25s; }
.cat-card:hover .ico { background: var(--blue); color: #fff; }
.cat-card .ico svg { width: 30px; height: 30px; }
.cat-card h3 { font-size: 18px; color: var(--deep); margin-bottom: 8px; }
.cat-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cat-card .more { font-size: 13.5px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.cat-card .more svg { width: 14px; height: 14px; transition: transform .2s; }
.cat-card:hover .more svg { transform: translateX(3px); }

/* ===== products ===== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: all .25s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.prod-card .pic { background: #fafcff; aspect-ratio: 4/3; overflow: hidden; }
.prod-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.prod-card:hover .pic img { transform: scale(1.05); }
.prod-card .info { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.prod-card .sku { font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: .5px; margin-bottom: 4px; }
.prod-card h3 { font-size: 15.5px; color: var(--deep); font-weight: 600; line-height: 1.45; }
.prod-card .go { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--blue); opacity: 0; transform: translateY(4px); transition: all .25s; display: flex; align-items: center; gap: 4px; }
.prod-card:hover .go { opacity: 1; transform: none; }
.prod-card .go svg { width: 14px; height: 14px; }
.section-foot { text-align: center; margin-top: 44px; }

/* ===== why us ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { text-align: left; background: #fff; border-radius: 14px; padding: 28px 24px; border: 1px solid var(--line); }
.why-card .ico { width: 50px; height: 50px; border-radius: 12px; background: #e3effc; color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.why-card .ico svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 17px; color: var(--deep); margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* ===== CTA ===== */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); border-radius: 18px; padding: 56px 60px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; }
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { opacity: .85; font-size: 15.5px; }
.cta-band .btn { background: #fff; color: var(--blue); flex-shrink: 0; }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ===== footer ===== */
.site-footer { background: var(--deep); color: #c6d4e4; margin-top: 84px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 56px 0 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 380px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col li { list-style: none; font-size: 14px; margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start; }
.footer-col li svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-qr { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.05); border-radius: 12px; padding: 14px 18px; }
.footer-qr .qr { width: 72px; height: 72px; background: #fff; border-radius: 8px; padding: 6px; }
.footer-qr small { font-size: 12.5px; line-height: 1.6; }

/* ===== breadcrumb / filters / page ===== */
.page-top { background: var(--light); padding: 44px 0; }
.page-top h1 { font-size: 30px; color: var(--deep); font-weight: 800; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.breadcrumb a { color: var(--blue); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-bar a { font-size: 14.5px; font-weight: 600; padding: 9px 22px; border-radius: 22px; border: 1.5px solid var(--line); color: var(--text); background: #fff; transition: all .2s; }
.filter-bar a:hover { border-color: var(--blue); color: var(--blue); }
.filter-bar a.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .prod-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 540px; }
  .hero h1 { font-size: 40px; }
  .car-dots { bottom: 46px; }
  .car-tag { display: none; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stats-card div:nth-child(3) { border-left: none; }
  .stats-card div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 32px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(13,43,78,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--light); }
  .main-nav a.active::after { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 480px; }
  .hero-inner { padding: 64px 0 110px; }
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 15.5px; }
  .car-dots { bottom: 36px; }
  .prod-grid, .why-grid { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== detail page ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { background: #fafcff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs img { border-radius: 8px; border: 2px solid transparent; cursor: pointer; aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: border-color .2s, opacity .2s; opacity: .75; }
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.on { border-color: var(--blue); opacity: 1; }
.detail-info .sku { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--blue); background: #e3effc; border-radius: 14px; padding: 4px 14px; letter-spacing: .5px; margin-bottom: 14px; }
.detail-info h1 { font-size: 30px; color: var(--deep); font-weight: 800; line-height: 1.35; margin-bottom: 14px; }
.detail-info .lead { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.spec-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 26px; }
.spec-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.spec-list li svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 4px; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-note { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.detail-note span { display: inline-flex; gap: 6px; align-items: center; }
.detail-note svg { width: 15px; height: 15px; color: var(--blue); }
/* tabs */
.tabs { margin-top: 64px; }
.tab-bar { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 30px; }
.tab-bar button { background: none; border: none; cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--muted); padding: 12px 26px; position: relative; transition: color .2s; }
.tab-bar button.on { color: var(--blue); }
.tab-bar button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px; background: var(--blue); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tab-panel .rich { max-width: 820px; }
.tab-panel .rich p { margin-bottom: 14px; font-size: 15px; }
.tab-panel .rich img { border-radius: 10px; margin: 10px 0 20px; width: 100%; }
.video-box { background: var(--deep); border-radius: 14px; aspect-ratio: 16/9; max-width: 860px; display: grid; place-items: center; color: #fff; }
.video-box .play { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; cursor: pointer; transition: all .25s; }
.video-box .play:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
.video-box .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-box p { margin-top: 16px; font-size: 13.5px; opacity: .75; }

/* ===== form ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--deep); margin-bottom: 7px; }
.field label em { color: #e53935; font-style: normal; margin-left: 2px; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form-foot { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 12.5px; }

/* ===== about ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-grid .pic { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-hover); border: 1px solid var(--line); }
.about-grid .pic img { width: 100%; height: 420px; object-fit: cover; }
.about-grid h2 { font-size: 30px; font-weight: 800; color: var(--deep); margin-bottom: 18px; line-height: 1.35; }
.about-grid h2::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 2px; background: var(--blue); margin-top: 14px; }
.about-grid p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.about-checks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.about-checks li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 500; color: var(--deep); }
.about-checks svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; transition: all .25s; }
.contact-card:hover { border-color: #cfe2f7; box-shadow: var(--shadow); }
.contact-card .ico { width: 44px; height: 44px; border-radius: 11px; background: #e3effc; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card b { display: block; font-size: 15px; color: var(--deep); margin-bottom: 3px; }
.contact-card span { font-size: 14px; color: var(--muted); }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px; box-shadow: var(--shadow); }
.contact-form-card h3 { font-size: 20px; color: var(--deep); margin-bottom: 22px; }

@media (max-width: 1024px) {
  .detail-layout, .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .about-grid .pic img { height: 300px; }
}
@media (max-width: 640px) {
  .spec-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tab-bar { overflow-x: auto; }
  .tab-bar button { padding: 10px 16px; white-space: nowrap; }
}

/* ===== CF7 表单接管（form-grid 结构由 CF7 _form 输出） ===== */
.form-grid p { margin: 0; }
.wpcf7 .wpcf7-not-valid-tip { color: #e53935; font-size: 12.5px; }
.wpcf7 .wpcf7-response-output { margin: 16px 0 0; border-radius: 8px; font-size: 14px; }
