/* ============================================================
   前台样式表 —— 蓝色企业主题
   ============================================================ */

:root {
    --primary: #165DFF;
    --primary-hover: #4080FF;
    --primary-active: #0E42D2;
    --primary-1: #E8F1FF;
    --primary-2: #BEDAFF;
    --navy: #0B2A6B;
    --navy-2: #123A8C;
    --text-1: #1D2129;
    --text-2: #4E5969;
    --text-3: #86909C;
    --border: #E5E6EB;
    --border-2: #F2F3F5;
    --bg: #F7F8FA;
    --white: #FFFFFF;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(11, 42, 107, .06);
    --shadow-md: 0 6px 20px rgba(11, 42, 107, .10);
    --shadow-lg: 0 14px 40px rgba(11, 42, 107, .14);
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-1);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; border: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 38px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left span { margin-right: 22px; }
.topbar-left i { font-style: normal; margin-right: 4px; }
.topbar-right a { color: rgba(255, 255, 255, .78); }
.topbar-right a:hover { color: #fff; }

/* ---------- 头部 ---------- */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--navy-2));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(22, 93, 255, .3);
    flex: none;
}
.logo-text strong {
    display: block;
    font-size: 19px;
    line-height: 1.25;
    color: var(--text-1);
    letter-spacing: .5px;
}
.logo-text small { display: block; font-size: 11px; color: var(--text-3); letter-spacing: 1.6px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
    display: block;
    padding: 0 18px;
    height: 74px;
    line-height: 74px;
    font-size: 15px;
    color: var(--text-2);
    position: relative;
    font-weight: 500;
}
.nav > a:hover, .nav > a.active { color: var(--primary); }
.nav > a.active::after {
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(22, 93, 255, .25); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-primary:active { background: var(--primary-active); transform: none; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-1); color: var(--primary); }
.btn-ghost { border-color: var(--border); color: var(--text-2); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-light { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-light:hover { background: #fff; color: var(--primary); }
.btn-lg { height: 48px; padding: 0 32px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

.menu-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    position: absolute;
    left: 50%; margin-left: -9px;
    width: 18px; height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: .25s;
    content: "";
}
.menu-toggle span { top: 50%; margin-top: -1px; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ---------- 首屏 Banner ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 45%, var(--primary) 100%);
    color: #fff;
}
.hero::before {
    content: "";
    position: absolute;
    right: -180px; top: -140px;
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 68%);
}
.hero::after {
    content: "";
    position: absolute;
    left: -140px; bottom: -220px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 70%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 96px 0 104px;
    max-width: 760px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: 44px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.hero p {
    font-size: 17px;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 34px;
    max-width: 620px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-gray { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}
.section-head h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: .5px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}
.section-head h2::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 46px; height: 3px;
    border-radius: 3px;
    background: var(--primary);
}
.section-head p { color: var(--text-3); margin-top: 14px; font-size: 15px; }

/* ---------- 数据条 ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: -56px;
    position: relative;
    z-index: 5;
    overflow: hidden;
}
.stat-item { padding: 30px 20px; text-align: center; border-right: 1px solid var(--border-2); }
.stat-item:last-child { border-right: 0; }
.stat-item b {
    display: block;
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}
.stat-item b em { font-style: normal; font-size: 16px; }
.stat-item span { display: block; color: var(--text-3); font-size: 14px; margin-top: 6px; }

/* ---------- 产品分类快捷入口 ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.cat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 22px;
    text-align: center;
    transition: all .25s;
}
.cat-card:hover {
    border-color: var(--primary-2);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.cat-card .ico {
    width: 54px; height: 54px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: var(--primary-1);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    font-weight: 700;
}
.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { color: var(--text-3); font-size: 13px; }

/* ---------- 工具栏（搜索 / 筛选） ---------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tabs a {
    display: inline-block;
    height: 38px;
    line-height: 36px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-2);
    background: #fff;
}
.filter-tabs a:hover { border-color: var(--primary-2); color: var(--primary); }
.filter-tabs a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 93, 255, .25);
}
.search-form { display: flex; gap: 8px; }
.search-form input {
    width: 240px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 93, 255, .1); }

/* ---------- 产品卡片 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .25s;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-2);
}
.product-thumb {
    position: relative;
    padding-top: 72%;
    background: linear-gradient(140deg, var(--primary-1), #F0F5FF);
    overflow: hidden;
}
.product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-thumb .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-2);
    gap: 8px;
}
.product-thumb .placeholder span { font-size: 40px; font-weight: 700; letter-spacing: 1px; }
.product-thumb .placeholder small { font-size: 12px; color: var(--text-3); letter-spacing: 2px; }
.badge-hot {
    position: absolute;
    left: 12px; top: 12px;
    z-index: 3;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(22, 93, 255, .35);
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-1);
    padding: 2px 10px;
    border-radius: 999px;
    align-self: flex-start;
    margin-bottom: 10px;
}
.product-body h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}
.product-body h3 a:hover { color: var(--primary); }
.product-body .desc {
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}
.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.product-price { color: #E64545; font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.product-price small { font-size: 12px; color: var(--text-3); font-weight: 400; }
.product-more { font-size: 13px; color: var(--primary); }
.product-more::after { content: " →"; }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 34px 26px;
    border: 1px solid var(--border);
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.adv-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.adv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.adv-card:hover::before { transform: scaleX(1); }
.adv-card .ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--navy-2));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(22, 93, 255, .25);
}
.adv-card h3 { font-size: 17px; margin-bottom: 10px; }
.adv-card p { color: var(--text-3); font-size: 14px; line-height: 1.75; }

/* ---------- 关于我们 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.about-visual {
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, var(--navy), var(--primary));
    min-height: 360px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.about-visual::before {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.about-visual .inner { position: relative; z-index: 2; }
.about-visual .inner b { display: block; font-size: 46px; letter-spacing: 1px; line-height: 1.25; }
.about-visual .inner span { display: block; font-size: 15px; color: rgba(255, 255, 255, .78); margin-top: 12px; letter-spacing: 1px; }
.about-text h2 { font-size: 30px; margin-bottom: 18px; letter-spacing: .5px; }
.about-text .line { width: 46px; height: 3px; background: var(--primary); border-radius: 3px; margin-bottom: 22px; }
.about-text p { color: var(--text-2); font-size: 15px; line-height: 1.95; margin-bottom: 26px; white-space: pre-line; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 30px; }
.about-points li { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 14px; }
.about-points li::before {
    content: "✓";
    width: 18px; height: 18px;
    flex: none;
    border-radius: 50%;
    background: var(--primary-1);
    color: var(--primary);
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* ---------- 联系/CTA ---------- */
.cta {
    background: linear-gradient(120deg, var(--navy), var(--primary));
    color: #fff;
    padding: 60px 0;
}
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: 28px; margin-bottom: 8px; letter-spacing: .5px; }
.cta p { color: rgba(255, 255, 255, .8); font-size: 15px; }

/* ---------- 页脚 ---------- */
.footer { background: #0A1F4D; color: rgba(255, 255, 255, .68); padding: 58px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--primary-hover); border-radius: 2px; }
.footer p, .footer li { line-height: 2; }
.footer li a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .logo-mark { box-shadow: none; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-contact li { display: flex; gap: 8px; }
.footer-contact li i { font-style: normal; color: var(--primary-2); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- 内页 Banner ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--navy), var(--primary));
    color: #fff;
    padding: 62px 0;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 32px; letter-spacing: 1px; margin-bottom: 10px; }
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .75); }
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* ---------- 产品详情 ---------- */
.detail-wrap { display: grid; grid-template-columns: 480px 1fr; gap: 46px; }
.detail-gallery {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(140deg, var(--primary-1), #F0F5FF);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .placeholder { color: var(--primary-2); text-align: center; }
.detail-gallery .placeholder span { display: block; font-size: 64px; font-weight: 700; }
.detail-gallery .placeholder small { font-size: 13px; color: var(--text-3); letter-spacing: 3px; }
.detail-info h1 { font-size: 26px; line-height: 1.45; margin-bottom: 16px; }
.detail-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.detail-price-box {
    background: linear-gradient(90deg, var(--primary-1), #F7FAFF);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin-bottom: 26px;
}
.detail-price-box .label { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.detail-price-box .price { font-size: 32px; color: #E64545; font-weight: 700; }
.detail-price-box .price small { font-size: 14px; color: var(--text-3); font-weight: 400; }
.detail-attrs { border-top: 1px solid var(--border-2); padding-top: 22px; margin-bottom: 28px; }
.detail-attrs li { display: flex; padding: 9px 0; font-size: 14px; color: var(--text-2); }
.detail-attrs li b { width: 96px; color: var(--text-3); font-weight: 400; flex: none; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-body { margin-top: 56px; }
.detail-body h2 {
    font-size: 20px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    margin-bottom: 22px;
    line-height: 1.3;
}
.detail-content {
    color: var(--text-2);
    font-size: 15px;
    line-height: 2;
    white-space: pre-line;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 30px 32px;
}

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-2);
    background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 空状态 ---------- */
.empty {
    text-align: center;
    padding: 78px 20px;
    color: var(--text-3);
}
.empty .icon { font-size: 52px; margin-bottom: 16px; opacity: .45; }

/* ---------- 提示条 ---------- */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.alert-error { background: #FFF1F0; border-color: #FFCCC7; color: #CF1322; }
.alert-success { background: #F0F9EB; border-color: #C2E7B0; color: #3F8600; }
.alert-info { background: var(--primary-1); border-color: var(--primary-2); color: var(--primary-active); }

/* ---------- 登录页 ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 48%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}
.login-page::before, .login-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.login-page::before { width: 520px; height: 520px; right: -160px; top: -180px; }
.login-page::after { width: 380px; height: 380px; left: -140px; bottom: -180px; background: rgba(255, 255, 255, .05); }
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(4, 24, 60, .34);
    padding: 46px 40px 40px;
}
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo .logo-mark { width: 54px; height: 54px; font-size: 24px; margin: 0 auto 16px; }
.login-logo h1 { font-size: 22px; letter-spacing: .5px; margin-bottom: 6px; }
.login-logo p { color: var(--text-3); font-size: 13px; letter-spacing: 1px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { height: auto; padding: 12px 16px; line-height: 1.75; resize: vertical; }
.form-group select { height: 46px; cursor: pointer; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, .1);
}
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.login-tips {
    margin-top: 26px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.9;
}
.login-tips b { color: var(--text-2); }
.login-back { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-3); }
.login-back a { color: var(--primary); }

/* ---------- 悬浮联系 ---------- */
.back-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(22, 93, 255, .4);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 90;
    transition: all .25s;
}
.back-top.show { display: flex; }
.back-top:hover { background: var(--primary-hover); transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-wrap { grid-template-columns: 1fr; gap: 30px; }
    .detail-gallery { max-width: 420px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
    .nav {
        position: fixed;
        left: 0; right: 0; top: 74px;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        box-shadow: var(--shadow-md);
        transform: translateY(-140%);
        transition: transform .3s;
        z-index: 99;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
    }
    .nav.open { transform: translateY(0); }
    .nav > a { height: 50px; line-height: 50px; padding: 0 24px; }
    .nav > a.active::after { display: none; }
    .nav > a.active { background: var(--primary-1); }
    .menu-toggle { display: block; }
    .header-actions .btn { display: none; }
    .header-actions .btn.btn-primary { display: inline-flex; height: 36px; padding: 0 14px; font-size: 13px; }
    .hero h1 { font-size: 32px; }
    .hero-inner { padding: 66px 0 78px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border-2); }
    .about-wrap { grid-template-columns: 1fr; gap: 32px; }
    .topbar-left span:nth-child(2) { display: none; }
    .section { padding: 56px 0; }
    .section-head h2 { font-size: 26px; }
}

@media (max-width: 620px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-body { padding: 14px 14px 16px; }
    .product-body h3 { font-size: 14px; min-height: 42px; }
    .product-body .desc { display: none; }
    .product-price { font-size: 16px; }
    .cat-grid, .adv-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-form input { width: 100%; }
    .login-card { padding: 34px 24px 30px; }
    .detail-content { padding: 22px 18px; }
    .cta .container { flex-direction: column; text-align: center; }
}

/* ==================== 语言切换器（默认收起） ==================== */
.lang-switch { position: relative; display: inline-block; }
.lang-switch > summary { list-style: none; }
.lang-switch > summary::-webkit-details-marker,
.lang-switch > summary::marker { display: none; content: ""; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px; border: 1px solid var(--line);
    border-radius: var(--radius); background: #fff; color: var(--ink);
    font-size: 13px; line-height: 1; cursor: pointer; transition: all .2s;
    user-select: none; -webkit-user-select: none;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn svg { flex: 0 0 auto; }
.lang-cur { font-weight: 600; letter-spacing: .2px; }
.lang-caret { font-size: 10px; font-weight: normal; opacity: .6; transition: transform .2s; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-switch[open] .lang-btn { border-color: var(--primary); color: var(--primary); }

.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 900;
    width: 220px; max-height: calc(100vh - 120px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(22, 39, 74, .16);
    list-style: none; margin: 0; padding: 5px;
    /* 11 种语言一屏放得下：行高压缩到 30px */
}
.lang-menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 7px 10px; border-radius: 5px; min-height: 30px;
    color: var(--ink); font-size: 13px; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.lang-menu a:hover { background: var(--primary-soft, #eef4ff); color: var(--primary); }
.lang-menu a.active { background: var(--primary); color: #fff; }
.lang-menu .lang-code {
    font-size: 10px; letter-spacing: .5px; opacity: .55;
    border: 1px solid currentColor; border-radius: 3px; padding: 1px 4px; flex: 0 0 auto;
}
.lang-menu a.active .lang-code { opacity: .9; }
.page-rtl .lang-menu { right: auto; left: 0; }
.page-rtl .lang-menu a { flex-direction: row-reverse; }

/* 登录页底部切换器：向上展开，避免撑出屏幕 */
.login-lang { margin-top: 18px; display: flex; justify-content: center; }
.login-lang .lang-menu { top: auto; bottom: calc(100% + 8px); right: auto; left: 50%; transform: translateX(-50%); }

/* 移动端：菜单宽度自适应，避免被屏幕边缘裁掉 */
@media (max-width: 960px) {
    .lang-btn { height: 34px; padding: 0 10px; font-size: 12px; gap: 5px; }
    .header-actions .lang-btn .lang-cur { display: inline; }
    .lang-menu { width: 200px; max-height: calc(100vh - 110px); }
}
@media (max-width: 380px) {
    .lang-menu { width: 180px; }
}

/* ==================== RTL（阿拉伯语等从右向左语言） ==================== */
.page-rtl { direction: rtl; text-align: right; }
.page-rtl .topbar-left, .page-rtl .topbar-right,
.page-rtl .header-actions, .page-rtl .hero-actions,
.page-rtl .product-foot, .page-rtl .detail-actions,
.page-rtl .footer-bottom { direction: rtl; }
.page-rtl .about-points { padding-right: 20px; padding-left: 0; }
.page-rtl .about-points li, .page-rtl ul { padding-inline-start: 20px; padding-inline-end: 0; }
.page-rtl .section-head .en { letter-spacing: 0; }
.page-rtl .breadcrumb { direction: rtl; }
.page-rtl .detail-attrs li b { min-width: auto; }
.page-rtl .footer-contact li i { margin-right: 0; margin-left: 10px; }

/* 空间不足时向上展开 */
.lang-switch.drop-up .lang-menu { top: auto; bottom: calc(100% + 8px); }

/* ==================== 产品详情：多图画廊 ==================== */
.detail-gallery { position: relative; }
.gallery-main {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: #F5F8FD; border: 1px solid var(--line); cursor: zoom-in;
}
.gallery-main img {
    width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: contain;
    transition: transform .35s ease;
}
.gallery-main:hover img { transform: scale(1.03); }
.gallery-zoom {
    position: absolute; left: 12px; bottom: 12px;
    padding: 5px 11px; border-radius: 20px; font-size: 12px;
    background: rgba(0, 0, 0, .5); color: #fff; opacity: 0; transition: opacity .2s;
    pointer-events: none;
}
.gallery-main:hover .gallery-zoom { opacity: 1; }
.gallery-counter {
    position: absolute; right: 12px; top: 12px;
    padding: 4px 10px; border-radius: 20px; font-size: 12px;
    background: rgba(0, 0, 0, .5); color: #fff;
}
.gallery-counter b { font-weight: 600; }

.gallery-thumbs {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px;
}
.gallery-thumb {
    padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
    background: #F5F8FD; cursor: pointer; transition: border-color .2s;
    aspect-ratio: 1 / 1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: rgba(22, 93, 255, .45); }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(22, 93, 255, .15); }

/* 大图查看器 */
.lightbox {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center;
    background: rgba(8, 13, 24, .93);
    padding: 40px 60px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lb-close, .lb-nav {
    position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
    cursor: pointer; border-radius: 50%; transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 20px; right: 20px; width: 42px; height: 42px; font-size: 26px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 32px; line-height: 1; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .85); font-size: 13px; letter-spacing: 1px;
}

@media (max-width: 760px) {
    .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .lightbox { padding: 20px 12px; }
    .lb-nav { width: 38px; height: 38px; font-size: 26px; }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
    .lb-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 22px; }
}
