/* 海外独立站前台样式：科技感蓝白风格（深空蓝 + 电光青渐变、玻璃头部、网格纹理、辉光），响应式（手机+网页），支持 RTL */
:root {
  --primary: #2563eb;
  --primary-2: #0ea5e9;
  --accent: #22d3ee;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --dark: #050e1f;
  --text: #2c3648;
  --text-2: #5b667a;
  --muted: #97a0b2;
  --border: #e4eaf4;
  --bg-alt: #f4f7fc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(9, 30, 66, 0.07);
  --shadow-hover: 0 18px 42px rgba(37, 99, 235, 0.14);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.14);
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); line-height: 1.6; background: radial-gradient(900px 420px at 50% -240px, rgba(37, 99, 235, 0.06), transparent 60%), #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }
[dir="rtl"] body { direction: rtl; }
::selection { background: rgba(37, 99, 235, 0.18); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 4px; }
html { scrollbar-color: #9fb4d8 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7ea4e8, #6cc4dd); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #4f83e0, #38b1d4); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.mt { margin-top: 40px; }

/* 按钮：胶囊 + 渐变主按钮 + 辉光 */
.btn { display: inline-block; padding: 11px 30px; border-radius: 30px; font-size: 15px; font-weight: 500; transition: all 0.25s; border: 1px solid transparent; text-align: center; }
.btn-primary { position: relative; overflow: hidden; background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28); }
.btn-primary::after { content: ""; position: absolute; top: 0; height: 100%; width: 40%; inset-inline-start: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-20deg); transition: inset-inline-start 0.5s; }
.btn-primary:hover::after { inset-inline-start: 120%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4); filter: brightness(1.05); }
.btn-outline { border-color: rgba(37, 99, 235, 0.5); color: var(--primary); background: rgba(37, 99, 235, 0.04); }
.btn-outline:hover { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3); }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 6px 18px rgba(2, 8, 20, 0.25); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(2, 8, 20, 0.35); }
.btn-whatsapp { background: #25d366; color: #fff; margin-top: 14px; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.linklike { color: var(--muted); }
.linklike:hover { color: var(--primary); }

/* 头部：玻璃拟态 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid rgba(9, 30, 66, 0.06); transition: background 0.3s, box-shadow 0.3s; }
.site-header::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 2px; background: var(--grad); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 32px rgba(9, 30, 66, 0.1); }
.site-header.scrolled::after { opacity: 0.75; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--dark); flex-shrink: 0; letter-spacing: -0.2px; }
.logo img { height: 40px; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav a { display: block; padding: 20px 14px; font-size: 15px; white-space: nowrap; }
.caret { display: inline-block; font-size: 10px; opacity: 0.6; margin-inline-start: 5px; vertical-align: 1px; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav > ul > li > a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 13px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform 0.25s; }
.main-nav > ul > li > a.active::after, .main-nav > ul > li > a:hover::after { transform: scaleX(1); }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; inset-inline-start: 0; min-width: 200px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(9, 30, 66, 0.06); border-radius: 12px; box-shadow: 0 18px 42px rgba(9, 30, 66, 0.14); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s; z-index: 101; }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 9px 18px; font-size: 14px; }
.dropdown a:hover { background: rgba(37, 99, 235, 0.06); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-btn { font-size: 14px; color: var(--text-2); padding: 8px 4px; white-space: nowrap; }
.lang-btn:hover { color: var(--primary); }
.lang-dropdown { inset-inline-start: auto; inset-inline-end: 0; max-height: 420px; overflow-y: auto; }
.lang-dropdown a.active { color: var(--primary); font-weight: 600; }
.member-entry { display: flex; align-items: center; gap: 10px; }
.member-link { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.member-link:hover { color: var(--primary); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--dark); transition: 0.3s; }

/* 幻灯片：暗色蒙层 + 科技网格纹理 + 极光光晕 */
.hero-slider { position: relative; height: 520px; overflow: hidden; background: var(--dark); }
.hero-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s; display: flex; align-items: center; }
.hero-slider .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 14, 31, 0.5) 0%, rgba(5, 14, 31, 0.25) 45%, rgba(5, 14, 31, 0.62) 100%); }
.hero-slider::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 46px 46px; }
.hero-slider::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(460px 320px at 14% 18%, rgba(37, 99, 235, 0.3), transparent 62%), radial-gradient(560px 360px at 88% 82%, rgba(34, 211, 238, 0.22), transparent 62%); }
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.slide-caption { position: relative; z-index: 2; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
.slide-caption h2 { font-family: var(--font-display); font-size: 50px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; margin-bottom: 14px; max-width: 760px; }
.slide-caption p { font-size: 18px; margin-bottom: 26px; opacity: 0.92; max-width: 640px; }
.hero-slider::before { animation: heroGlow 9s ease-in-out infinite alternate; }
.slide-caption h2, .slide-caption p, .slide-caption .btn { opacity: 0; transform: translateY(26px); }
.slide.active .slide-caption h2 { animation: rise 0.7s 0.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.slide.active .slide-caption p { animation: rise 0.7s 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.slide.active .slide-caption .btn { animation: rise 0.7s 0.46s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes heroGlow { to { opacity: 0.55; transform: translateY(-14px); } }
.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.slider-dots .dot { width: 10px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.45); transition: all 0.3s; }
.slider-dots .dot.active { background: #fff; width: 26px; box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }

/* 数据条：渐变数字；紧跟幻灯片时上浮为玻璃悬浮卡 */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 16px; gap: 16px; }
.stat { text-align: center; }
@media (min-width: 721px) { .stat + .stat { border-inline-start: 1px solid rgba(37, 99, 235, 0.12); } }
/* 数字用系统无衬线：Space Grotesk 的 "1" 字形怪异 */
.stat-value { font-size: 40px; font-weight: 700; letter-spacing: -0.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.hero-slider + .stats-bar { background: transparent; border: none; margin-top: -54px; position: relative; z-index: 5; }
.hero-slider + .stats-bar .stats-grid { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 22px; box-shadow: 0 26px 60px rgba(9, 30, 66, 0.18); padding: 30px 16px; }

/* 区块 */
.section { padding: 84px 0; }
.section-alt { background-color: var(--bg-alt); background-image: radial-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px); background-size: 22px 22px; }
.section-title { text-align: center; font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.6px; color: var(--dark); margin-bottom: 12px; }
.section-title::after { content: ""; display: block; width: 52px; height: 4px; border-radius: 2px; background: var(--grad); margin: 14px auto 0; box-shadow: 0 2px 14px rgba(37, 99, 235, 0.5); }
.section-subtitle { text-align: center; color: var(--text-2); margin-bottom: 24px; }
.section-title + .product-grid, .section-title + .feature-grid, .section-title + .post-grid, .section-title + .gallery-grid { margin-top: 36px; }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.product-card { position: relative; background: #fff; border: 1px solid rgba(9, 30, 66, 0.06); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(37, 99, 235, 0.35); }
/* 卡片顶部渐变发丝线：hover 点亮 */
.product-card::before, .post-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity 0.25s; z-index: 1; }
.product-card:hover::before, .post-card:hover::before { opacity: 1; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f4f6fa; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
/* 图片高光扫过 */
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%); transform: translateX(-130%); pointer-events: none; }
.product-card:hover .card-img::after, .post-card:hover .card-img::after { transition: transform 0.65s ease; transform: translateX(130%); }
.product-card:hover .card-img img, .post-card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 16px; flex: 1; }
.card-body h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; }
.card-body p { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; font-size: 18px; margin-top: 8px; width: fit-content; }
.card-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.card-actions .btn { flex: 1; }

/* 特性卡片 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.feature-card { position: relative; background: #fff; border: 1px solid rgba(9, 30, 66, 0.06); border-radius: var(--radius); padding: 32px 22px; text-align: center; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity 0.25s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(37, 99, 235, 0.35); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 34px; border-radius: 20px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.12)); border: 1px solid rgba(37, 99, 235, 0.12); transition: transform 0.25s, box-shadow 0.25s; }
.feature-card:hover .feature-icon { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22); }
.feature-img img { margin: 0 auto 14px; height: 72px; object-fit: contain; }
.feature-card h3 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }

/* 图片墙（专利/资质）：不满一行时居中 */
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 36px; }
.gallery-item { width: calc((100% - 72px) / 4); }
.gallery-item { background: #fff; border: 1px solid rgba(9, 30, 66, 0.06); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); text-align: center; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(37, 99, 235, 0.3); }
.gallery-item img { margin: 0 auto 10px; border-radius: 8px; }
.gallery-item figcaption { font-size: 14px; color: var(--text-2); }

/* 博客卡片 */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.post-card { position: relative; background: #fff; border: 1px solid rgba(9, 30, 66, 0.06); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(37, 99, 235, 0.35); }
.post-meta { font-size: 12px; color: var(--muted); display: block; margin-top: 10px; }

/* CTA：深空渐变 + 青色辉光 + 网格 */
.cta-strip { position: relative; overflow: hidden; background: radial-gradient(820px 380px at 82% -40%, rgba(34, 211, 238, 0.28), transparent 62%), radial-gradient(700px 320px at 8% 130%, rgba(37, 99, 235, 0.35), transparent 60%), linear-gradient(120deg, #081b3f, #04214d); color: #fff; padding: 64px 0; }
.cta-strip::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 46px 46px; }
.cta-strip::after { content: ""; position: absolute; inset: -45%; pointer-events: none; background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.16) 90deg, transparent 160deg, rgba(37, 99, 235, 0.2) 260deg, transparent 340deg); filter: blur(50px); }
.cta-strip::after { animation: auroraSpin 20s linear infinite; }
@keyframes auroraSpin { to { transform: rotate(360deg); } }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.5px; text-shadow: 0 0 32px rgba(34, 211, 238, 0.4); }

/* 页面横幅/面包屑：深空渐变 + 网格 */
.page-banner { position: relative; overflow: hidden; background: radial-gradient(700px 320px at 85% -60%, rgba(34, 211, 238, 0.22), transparent 60%), linear-gradient(120deg, var(--dark), #0a2a55); color: #fff; padding: 50px 0; background-size: cover; background-position: center; }
.page-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 46px 46px; }
.page-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 220px at 10% 130%, rgba(37, 99, 235, 0.35), transparent 62%); }
.page-banner::before { animation: heroGlow 9s ease-in-out infinite alternate; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.6px; }
.page-banner h1::before { content: ""; display: block; width: 42px; height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 12px; box-shadow: 0 0 14px rgba(34, 211, 238, 0.8); }
.breadcrumb { font-size: 14px; opacity: 0.85; }
.breadcrumb a:hover { color: #7dd3fc; }

/* 分类筛选 */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-tabs a { padding: 8px 22px; border-radius: 30px; border: 1px solid var(--border); font-size: 14px; transition: all 0.2s; }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { min-width: 36px; height: 36px; line-height: 34px; text-align: center; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; padding: 0 8px; transition: all 0.2s; }
.pagination a.active, .pagination a:hover { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.main-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #f4f6fa; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.2s; }
.thumbs img:hover { border-color: var(--primary); }
.detail-info h1 { font-family: var(--font-display); font-size: 28px; color: var(--dark); margin-bottom: 12px; letter-spacing: -0.3px; }
.detail-info .summary { color: var(--text-2); margin-bottom: 18px; }
.price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.price-row .price { font-size: 28px; }
.stock.in { color: #16a34a; }
.stock.out { color: #dc2626; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qty-row input { width: 90px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rich-content { margin-top: 48px; font-size: 15px; }
.rich-content img { border-radius: var(--radius); margin: 12px 0; max-width: 100%; height: auto; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { color: var(--dark); margin: 20px 0 10px; }
.rich-content p { margin-bottom: 12px; }
.rich-content a { color: var(--primary, #2a6df4); text-decoration: underline; }
.rich-content ul, .rich-content ol { margin: 0 0 12px 24px; }
.rich-content blockquote { border-left: 4px solid var(--border, #e5e7eb); margin: 12px 0; padding: 6px 14px; color: #666; background: #fafafa; }
.rich-content pre { background: #f5f5f5; padding: 12px; border-radius: 6px; overflow-x: auto; }
/* wangEditor 表格：默认无边框，补上 */
.rich-content table { border-collapse: collapse; margin: 12px 0; width: auto; max-width: 100%; overflow-x: auto; display: block; }
.rich-content table td, .rich-content table th { border: 1px solid #ccc; padding: 6px 10px; }
.rich-content table th { background: #f5f5f5; font-weight: 600; }

/* 关键词标签 */
.keyword-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.keyword-tags-label { font-size: 14px; color: var(--muted); }
.keyword-tag { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 13px; border: 1px solid var(--border); background: rgba(37, 99, 235, 0.05); color: var(--primary); transition: all 0.2s; }
.keyword-tag:hover { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }

/* 博客详情 */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.blog-article h1 { font-family: var(--font-display); font-size: 30px; color: var(--dark); margin-bottom: 10px; letter-spacing: -0.3px; }
.blog-article .cover { border-radius: var(--radius); margin: 18px 0; }
.blog-side { border-inline-start: 1px solid var(--border); padding-inline-start: 24px; }
.blog-side h3 { margin-bottom: 12px; color: var(--dark); }
.blog-side li { margin-bottom: 10px; font-size: 14px; }
.blog-side a:hover { color: var(--primary); }

/* 联系我们 */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-list li { margin-bottom: 14px; color: var(--text-2); }
.contact-form h2, .contact-info h2 { margin-bottom: 18px; color: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea, .auth-form input, .account-form input, .account-form textarea, .checkout-form input, .checkout-form textarea, .track-form input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form input:focus, .contact-form textarea:focus, .auth-form input:focus, .account-form input:focus, .account-form textarea:focus, .checkout-form input:focus, .checkout-form textarea:focus, .track-form input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.form-tip { color: #16a34a; margin-top: 10px; }

/* 售后留言记录 */
.inquiry-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.inquiry-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.inquiry-kind { font-size: 12px; padding: 2px 10px; border-radius: 20px; background: rgba(37, 99, 235, 0.08); color: var(--primary); }
.inquiry-subject { font-weight: 600; color: var(--dark); }
.inquiry-status { margin-inline-start: auto; font-size: 13px; color: #d97706; }
.inquiry-status.ok { color: #16a34a; }
.inquiry-msg { font-size: 14px; color: var(--text-2); white-space: pre-wrap; }
.inquiry-reply { margin-top: 10px; background: rgba(37, 99, 235, 0.05); border-inline-start: 3px solid var(--primary); border-radius: 8px; padding: 10px 14px; font-size: 14px; white-space: pre-wrap; }
.inquiry-time { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* 物流查询 */
.track-form { display: flex; gap: 12px; }
.track-form input { flex: 1; margin-bottom: 0; }
.track-result { margin-top: 24px; }
.track-events li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.track-events .tm { color: var(--muted); margin-inline-end: 10px; }

/* 登录注册：深空科技背景 + 玻璃卡片 */
.auth-section { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100vh - 68px); background: radial-gradient(700px 340px at 82% -20%, rgba(34, 211, 238, 0.16), transparent 60%), radial-gradient(620px 320px at 8% 115%, rgba(37, 99, 235, 0.25), transparent 60%), linear-gradient(150deg, var(--dark), #0a2a55); }
.auth-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 46px 46px; }
.auth-box { max-width: 420px; background: #fff; border: 1px solid rgba(9, 30, 66, 0.06); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.auth-section .auth-box { position: relative; z-index: 1; width: 100%; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.65); box-shadow: 0 30px 80px rgba(2, 8, 20, 0.5); }
.auth-box h1 { margin-bottom: 22px; color: var(--dark); text-align: center; }
.auth-box h1::after { content: ""; display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--grad); margin: 12px auto 0; box-shadow: 0 2px 12px rgba(37, 99, 235, 0.5); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-alt a { color: var(--primary); }
/* 密码显隐切换（site.js 自动包裹密码框） */
.pwd-wrap { position: relative; margin-bottom: 14px; }
.pwd-wrap input { margin-bottom: 0; padding-inline-end: 44px; }
.pwd-toggle { position: absolute; inset-inline-end: 4px; top: 0; height: 100%; display: flex; align-items: center; padding: 0 10px; color: var(--muted); transition: color 0.2s; }
.pwd-toggle:hover { color: var(--primary); }

/* 个人中心 */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.account-nav ul { position: sticky; top: 90px; background: #fff; border: 1px solid rgba(9, 30, 66, 0.06); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.account-nav a, .account-nav button { display: block; width: 100%; text-align: start; padding: 13px 20px; font-size: 14px; }
.account-nav a.active, .account-nav a:hover { background: rgba(37, 99, 235, 0.06); color: var(--primary); }
.account-main h1 { font-size: 24px; color: var(--dark); margin-bottom: 20px; }
.account-main h2 { font-size: 18px; color: var(--dark); margin-bottom: 14px; }
.account-form label { display: block; font-size: 13px; color: var(--text-2); }
.account-form label input { margin-top: 4px; }

/* 购物车 */
.cart-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-row .name { flex: 1; }
.cart-row .qty { width: 72px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; }
.cart-foot { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-top: 22px; }
.cart-foot .total { font-size: 18px; font-weight: 700; color: var(--primary); }

/* 结算 */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.checkout-form h1 { margin-bottom: 20px; font-size: 24px; color: var(--dark); }
.checkout-form label { display: block; font-size: 13px; color: var(--text-2); }
.checkout-side { background: var(--bg-alt); border: 1px solid rgba(9, 30, 66, 0.05); border-radius: var(--radius); padding: 26px; height: fit-content; }
.checkout-side h2 { margin-bottom: 16px; font-size: 18px; }
.checkout-items li { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.checkout-total { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 14px; text-align: end; }

/* 订单 */
.order-card { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.order-head { display: flex; justify-content: space-between; background: var(--bg-alt); padding: 10px 18px; font-size: 14px; }
.order-status { font-weight: 600; }
.status-paid { color: #16a34a; }
.status-pending { color: #d97706; }
.status-cancelled { color: var(--muted); }
.status-shipped { color: var(--primary); }
.order-items { padding: 6px 18px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; }
.order-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.order-item .name { flex: 1; }
.order-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text-2); }
.order-foot .total { color: var(--primary); font-weight: 700; }

/* 页脚：深空底色 + 顶部渐变发丝线 */
.site-footer { position: relative; overflow: hidden; background: radial-gradient(680px 260px at 50% -80px, rgba(37, 99, 235, 0.22), transparent 65%), linear-gradient(180deg, #071531, var(--dark)); color: #b6c2d6; margin-top: 40px; }
.site-footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--grad); opacity: 0.7; }
.site-footer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 46px 46px; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 32px; padding: 52px 16px 36px; }
/* 友情链接列在该语言无译名时整列不渲染：只剩 3 列时重新分配宽度，避免右侧留出空档 */
.footer-grid:not(:has(> .footer-col:nth-of-type(4))) { grid-template-columns: 2fr 1fr 1.4fr; }
.footer-bottom { position: relative; z-index: 1; }
.footer-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; font-size: 14px; }
.footer-col a { transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: #7dd3fc; padding-inline-start: 4px; }
.footer-contact li { color: #8fa1bd; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; text-align: center; font-size: 13px; color: #64748b; }

/* WhatsApp 浮窗 */
.whatsapp-float { position: fixed; bottom: 26px; inset-inline-end: 26px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); z-index: 99; transition: transform 0.2s; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: waPulse 2.6s ease-out infinite; z-index: -1; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* 提示 */
.toast { position: fixed; top: 84px; left: 50%; transform: translate(-50%, -12px); opacity: 0; display: flex; align-items: center; gap: 10px; max-width: min(90vw, 480px); color: #fff; padding: 11px 22px; border-radius: 30px; z-index: 999; font-size: 14px; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast.toast-in { opacity: 1; transform: translate(-50%, 0); }
.toast-success { background: #15803d; box-shadow: 0 10px 30px rgba(21, 128, 61, 0.35); }
.toast-error { background: #b91c1c; box-shadow: 0 10px 30px rgba(185, 28, 28, 0.35); }
.toast-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.empty-tip { color: var(--muted); text-align: center; padding: 40px 0; }
.big404 { font-family: var(--font-display); font-size: 96px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 滚动渐入（site.js 配合） */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.reveal-in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 992px) {
  /* 导航折叠：28 种语言里长文案(菲律宾语/德语等)在中等宽度也放不下，992 以下统一收进汉堡菜单 */
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; top: 68px; inset-inline-start: 0; width: 100%; background: #fff; box-shadow: var(--shadow); display: none; max-height: calc(100vh - 68px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav a { padding: 13px 20px; border-bottom: 1px solid var(--bg-alt); white-space: normal; }
  .main-nav > ul > li > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-inline-start: 16px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  /* 语言下拉在头部工具区，保持绝对定位悬浮，不能撑开 68px 头部 */
  .lang-switch .dropdown { position: absolute; top: 100%; inset-inline-start: auto; inset-inline-end: 0; box-shadow: var(--shadow); border: 1px solid rgba(9, 30, 66, 0.06); padding-inline-start: 0; max-height: 60vh; }
  .product-grid, .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item { width: calc((100% - 48px) / 3); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout, .contact-layout, .checkout-layout { grid-template-columns: 1fr; }
  .blog-side { border: none; padding: 0; }
  .product-detail { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav ul { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .hero-slider { height: 360px; }
  .slide-caption h2 { font-size: 28px; }
  .slide-caption p { font-size: 15px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 30px; }
  .hero-slider + .stats-bar { margin-top: -34px; }
  .hero-slider + .stats-bar .stats-grid { border-radius: 16px; padding: 20px 10px; }
  .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-grid { gap: 14px; }
  .gallery-item { width: calc((100% - 14px) / 2); }
  .post-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 36px 16px 24px; }
}
