/* ==========================================================================
   医疗器械商城 · 全站样式
   配色：医疗青蓝 + 洁净白 + 暖橙价格强调
   说明：保留原有变量名，方便各页面内联样式继续复用
   ========================================================================== */

/* ----------------------------- 设计变量 ----------------------------- */
:root {
    --primary-pink: #e8f4f6;
    --secondary-pink: #f2f9fa;
    --accent-pink: #0e7490;
    --dark-pink: #0b4b5e;
    --text-color: #22333b;
    --light-gray: #f4f8f9;
    --white: #ffffff;

    --brand: #0e7490;
    --brand-dark: #0a4c5c;
    --brand-2: #14a3a8;
    --brand-soft: #e8f4f6;
    --ink: #1b2a32;
    --muted: #5d727b;
    --line: #e2ecef;
    --bg: #f5f9fa;
    --price: #d9480f;

    --radius-lg: 20px;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 14px rgba(11, 75, 94, 0.07);
    --shadow: 0 14px 36px rgba(11, 75, 94, 0.12);
    --ease: 0.25s ease;
}

/* ----------------------------- 基础重置 ----------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text-color);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease);
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 2px;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------- 顶部信息条 ----------------------------- */
.header-top {
    background: linear-gradient(90deg, #083a47, #0b4b5e 58%, #0e6474);
    color: #d7ebef;
    font-size: 13px;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    flex-wrap: wrap;
}

.top-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.top-note i {
    color: #7fe0c3;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-contact i {
    margin-right: 5px;
    color: #8fd9e3;
}

.top-contact a:hover,
.top-contact span:hover {
    color: #fff;
}

.top-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
}

/* ----------------------------- 头部 ----------------------------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(11, 75, 94, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.logo-link img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    max-width: 210px;
}

.logo-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-slogan {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 4px;
}

nav ul li {
    margin: 0;
}

nav ul li a.nav-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    color: #31474f;
    white-space: nowrap;
    transition: background-color var(--ease), color var(--ease);
}

nav ul li a.nav-link:hover {
    background-color: var(--brand-soft);
    color: var(--brand);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.header-icons > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #f1f7f8;
    color: #3c5b64;
    cursor: pointer;
    transition: background-color var(--ease), color var(--ease);
    position: relative;
}

.header-icons > div:hover {
    background-color: var(--brand);
    color: #fff;
}

.header-icons > div a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
}

#cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 3px;
    right: 3px;
    background-color: #ef5b3f;
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    display: none;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #fff;
}

/* ----------------------------- 搜索弹窗 ----------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 34, 43, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12vh;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 620px;
    box-shadow: var(--shadow);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content h2 {
    color: var(--brand-dark);
    font-size: 22px;
}

.modal-subtitle {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #8a9aa1;
    transition: color var(--ease);
}

.close-btn:hover {
    color: var(--brand-dark);
}

.search-form {
    display: flex;
    margin-top: 20px;
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px 0 0 10px;
    font-size: 15px;
    outline: none;
    transition: border-color var(--ease);
}

.search-input:focus {
    border-color: var(--brand-2);
}

.search-btn {
    padding: 0 26px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: opacity var(--ease);
}

.search-btn:hover {
    opacity: 0.9;
}

.search-hints {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

.search-hints a {
    padding: 4px 12px;
    background: var(--light-gray);
    border-radius: 20px;
    color: #46636c;
}

.search-hints a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

/* ----------------------------- 首页 Hero ----------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 40px;
    align-items: center;
    margin: 28px 0 34px;
    padding: 52px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 15%, rgba(20, 163, 168, 0.55), transparent 42%),
        radial-gradient(circle at 92% 88%, rgba(127, 224, 195, 0.18), transparent 38%),
        linear-gradient(120deg, #083a47 0%, #0e6474 52%, #0e7490 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    top: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.hero::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transform: rotate(18deg);
}

.hero-content,
.hero-card {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    letter-spacing: 0.6px;
    margin-bottom: 20px;
}

.hero-badge i {
    color: #8ff0d0;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero h1 em {
    font-style: normal;
    color: #8ff0d0;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.86);
    max-width: 560px;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-points i {
    color: #8ff0d0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 18px;
    padding: 26px;
    backdrop-filter: blur(6px);
}

.hero-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #dff7f4;
    margin-bottom: 20px;
}

.hero-card-title i {
    color: #8ff0d0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
}

.hero-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    color: #fff;
}

.hero-stat span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

.hero-card-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-card-foot i {
    color: #8ff0d0;
}

/* ----------------------------- 服务保障条 ----------------------------- */
.service-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow var(--ease), transform var(--ease);
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.service-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 18px;
}

.service-item h3 {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 2px;
}

.service-item p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* ----------------------------- 区块标题 ----------------------------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 48px 0 24px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--brand-2);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-head h2 {
    font-size: 27px;
    line-height: 1.3;
    color: var(--brand-dark);
    letter-spacing: 0.5px;
}

.section-head p {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 6px;
}

.section-more {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--brand);
    padding-bottom: 6px;
}

.section-more:hover {
    color: var(--brand-2);
}

/* 兼容旧页面中的居中式标题 */
.section-title {
    position: relative;
    font-size: 26px;
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 26px;
    padding-left: 14px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

/* ----------------------------- 通用按钮 ----------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-light {
    background: #fff;
    color: var(--brand-dark);
}

.btn-light:hover {
    background: #f1fbfd;
    color: var(--brand);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    box-shadow: none;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ----------------------------- 分类卡片 ----------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 16px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -32px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--brand-soft);
    opacity: 0.7;
    transition: transform var(--ease);
}

.category-card:hover {
    border-color: rgba(14, 116, 144, 0.45);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.category-card:hover::after {
    transform: scale(1.18);
}

.category-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card strong {
    position: relative;
    z-index: 1;
    font-size: 16px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.4;
}

.category-link {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.category-card:hover .category-link {
    color: var(--brand);
}

/* ----------------------------- 商品卡片 ----------------------------- */
.featured-products {
    margin-top: 8px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 116, 144, 0.3);
    box-shadow: var(--shadow);
}

.product-media {
    display: block;
    height: 210px;
    overflow: hidden;
    background: #f7fbfc;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(11, 75, 94, 0.88);
    color: #fff;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
}

.product-info h3 {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info h3 a:hover {
    color: var(--brand);
}

.product-info p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.price {
    color: var(--price);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.2px;
}

.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: var(--brand-soft);
    color: var(--brand);
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--ease), color var(--ease), transform var(--ease);
}

.add-to-cart:hover {
    background-color: var(--brand);
    color: #fff;
    transform: scale(1.05);
}

/* ----------------------------- 品质 / 采购流程区 ----------------------------- */
.quality-band {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
    margin: 56px 0 6px;
    padding: 42px 46px;
    background:
        radial-gradient(circle at 92% 6%, rgba(20, 163, 168, 0.1), transparent 42%),
        var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.quality-band h2 {
    font-size: 26px;
    color: var(--brand-dark);
    line-height: 1.4;
    margin: 6px 0 12px;
}

.quality-band > div > p {
    font-size: 14px;
    color: var(--muted);
    max-width: 540px;
}

.quality-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 22px;
    margin-top: 22px;
}

.quality-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #35525b;
}

.quality-list i {
    color: var(--brand-2);
}

.quality-hotline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 13px 20px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.quality-hotline i {
    font-size: 20px;
    color: var(--brand);
}

.quality-hotline span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.quality-hotline strong {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.purchase-steps {
    display: grid;
    gap: 12px;
}

.purchase-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--light-gray);
}

.purchase-step-num {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.purchase-step h4 {
    font-size: 14.5px;
    color: var(--ink);
    margin-bottom: 2px;
}

.purchase-step p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* ----------------------------- 页面横幅 / 面包屑 ----------------------------- */
.page {
    padding: 8px 0 46px;
    min-height: calc(100vh - 320px);
}

.page.active {
    display: block;
}

.page-banner {
    position: relative;
    margin: 24px 0 30px;
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 94% 10%, rgba(20, 163, 168, 0.16), transparent 46%),
        linear-gradient(120deg, #eef7f8, #f7fcfc);
    border: 1px solid var(--line);
}

.page-banner--compact {
    padding: 26px 30px;
}

.page-banner-title {
    font-size: 30px;
    color: var(--brand-dark);
    line-height: 1.35;
    letter-spacing: 0.5px;
}

.page-banner-desc {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 6px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--brand);
}

.breadcrumb a:hover {
    color: var(--brand-2);
}

.breadcrumb .current {
    color: #4a626b;
}

.breadcrumb .sep {
    color: #a9bcc3;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
    color: #456069;
    transition: all var(--ease);
}

a.filter-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.filter-chip.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--muted);
}

.list-meta strong {
    color: var(--brand-dark);
}

/* ----------------------------- 商品详情页 ----------------------------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    margin-bottom: 28px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.product-gallery {
    position: relative;
}

.product-gallery .image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdfe;
    overflow: hidden;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.35s ease;
}

.zoom-lens {
    position: absolute;
    border: 1px solid rgba(14, 116, 144, 0.4);
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    display: none;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(11, 75, 94, 0.18);
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    opacity: 0.75;
    transition: all var(--ease);
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.product-info-detail h1,
.product-info-detail h2 {
    color: var(--ink);
    font-size: 26px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.product-info-detail .price {
    display: inline-block;
    font-size: 30px;
    color: var(--price);
    font-weight: 700;
    margin-bottom: 12px;
}

.product-info-detail > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 18px;
}

.product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.product-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12.5px;
}

.product-trust i {
    color: var(--brand);
}

.product-meta {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--light-gray);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13.5px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    flex: none;
    min-width: 66px;
    color: var(--muted);
}

.meta-value {
    color: #2c4953;
    font-weight: 500;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f8a5b;
    font-weight: 600;
}

.stock-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #21a366;
    box-shadow: 0 0 0 3px rgba(33, 163, 102, 0.15);
}

.visit-shop-btn {
    margin-left: 8px !important;
    padding: 4px 10px !important;
    border: 1px solid var(--brand) !important;
    border-radius: 999px !important;
    background-color: transparent !important;
    color: var(--brand) !important;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--ease);
}

.visit-shop-btn:hover {
    background-color: var(--brand) !important;
    color: #fff !important;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.quantity button {
    width: 42px;
    height: 44px;
    border: none;
    background: transparent;
    color: #4a626b;
    font-size: 18px;
    cursor: pointer;
    transition: background-color var(--ease), color var(--ease);
}

.quantity button:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.quantity input {
    width: 54px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 15px;
    color: var(--ink);
    background: transparent;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    flex: 1;
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 26px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--ease), transform var(--ease);
}

.add-to-cart-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.purchase-tips {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #fff8ec;
    border: 1px solid #f6e3bf;
    color: #806017;
    font-size: 12.5px;
    line-height: 1.6;
}

.purchase-tips i {
    margin-top: 3px;
    color: #d99a1e;
}

.purchase-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(14, 116, 144, 0.35);
    background: #f6fbfc;
}

.purchase-hotline > i {
    font-size: 20px;
    color: var(--brand);
}

.purchase-hotline span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.purchase-hotline strong,
.purchase-hotline a {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 0.5px;
}

/* 详情标签页 */
.product-tabs {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 34px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--line);
    background: #fbfdfe;
}

.tab-btn {
    padding: 16px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #56707a;
    position: relative;
    transition: color var(--ease), background-color var(--ease);
}

.tab-btn:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.tab-btn.active {
    color: var(--brand-dark);
    font-weight: 600;
    background: #fff;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.tab-content {
    padding: 28px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

#description {
    color: #405a63;
    font-size: 14px;
    line-height: 1.9;
}

#description img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    vertical-align: middle;
    border-radius: 10px;
}

.specifications {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specifications tr {
    border-bottom: 1px solid var(--line);
}

.specifications tr:last-child {
    border-bottom: none;
}

.specifications td {
    padding: 13px 16px;
    color: #35525b;
}

.specifications td:first-child {
    width: 30%;
    font-weight: 500;
    color: var(--muted);
    background: #fbfdfe;
}

#reviews {
    padding: 10px 0;
    color: var(--muted);
    font-size: 14px;
}

.review-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--ink);
}

.review-date {
    color: #93a7ae;
    font-size: 13px;
}

.review-rating {
    color: #f2b53d;
    margin-bottom: 8px;
}

.related-products,
.recommended-section {
    margin-bottom: 40px;
}

/* ----------------------------- 购物车页 ----------------------------- */
.cart-page {
    padding: 8px 0 34px;
    min-height: calc(100vh - 320px);
}

.cart-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
    margin-bottom: 42px;
}

.cart-items {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 6px 22px 10px;
}

.cart-header {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 0.5fr;
    gap: 10px;
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.cart-item {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 0.5fr;
    gap: 10px;
    align-items: center;
    padding: 20px 10px;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item .product-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.cart-item .product-image {
    flex: none;
    width: 78px;
    height: 78px;
    margin-right: 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #f7fbfc;
    border: 1px solid var(--line);
}

.cart-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item .product-details h3 {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
}

.cart-item .product-details p {
    font-size: 12.5px;
    color: var(--muted);
}

.cart-item .price {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.cart-item .price.total {
    color: var(--price);
    font-weight: 700;
}

.remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-gray);
    color: #90a4ab;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--ease);
}

.remove-btn:hover {
    background: #fdecea;
    color: #d9480f;
}

.shop_cart_wrap:empty::before {
    content: "购物车还是空的，去挑选合适的医疗器械吧";
    display: block;
    padding: 70px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='none' stroke='%23c3d6dc' stroke-width='1.4'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M2 3h3l2.4 12.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 7H6'/%3E%3C/svg%3E") center 32px no-repeat;
}

.cart-summary {
    position: sticky;
    top: 126px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.summary-title {
    font-size: 18px;
    color: var(--brand-dark);
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

.summary-item span:last-child {
    color: var(--ink);
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 18px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.summary-total .price_count {
    color: var(--price);
    font-size: 23px;
    font-weight: 700;
}

.summary-note {
    font-size: 12px;
    color: #8a9fa6;
    line-height: 1.6;
    margin-bottom: 16px;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: opacity var(--ease), transform var(--ease);
    margin-bottom: 12px;
}

.checkout-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--brand);
    font-size: 13.5px;
    margin-top: 4px;
}

.continue-shopping:hover {
    color: var(--brand-2);
}

.summary-assurance {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 12.5px;
    color: var(--muted);
}

.summary-assurance li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-assurance i {
    color: var(--brand-2);
    width: 14px;
    text-align: center;
}

.cart-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
}

.cart-notice i {
    margin-top: 3px;
    color: var(--brand);
}

.recommended-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

/* ----------------------------- 结算页 ----------------------------- */
.checkout-page {
    padding: 8px 0 40px;
}

.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.checkout-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8eef0;
    color: #75898f;
    font-size: 11px;
    font-weight: 700;
}

.checkout-step.done {
    color: #5e7a82;
}

.checkout-step.done .checkout-step-num {
    background: #d9f2e5;
    color: #1f8a5b;
}

.checkout-step.active {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.checkout-step.active .checkout-step-num {
    background: var(--brand);
    color: #fff;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
    margin-top: 26px;
}

.checkout-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 126px;
}

.checkout-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.checkout-card h3 {
    font-size: 16px;
    color: var(--brand-dark);
    margin-bottom: 14px;
}

.checkout-card ul {
    display: grid;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.checkout-card li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    line-height: 1.6;
}

.checkout-card li i {
    margin-top: 3px;
    color: var(--brand-2);
}

.checkout-tip {
    background: #fff8ec;
    border-color: #f6e3bf;
}

.checkout-tip h3 {
    color: #8a6414;
}

.checkout-tip p {
    font-size: 12.5px;
    line-height: 1.7;
    color: #806017;
}

/* ----------------------------- 商家 / 店铺 ----------------------------- */
.vendor-profile {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.vendor-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.vendor-logo {
    flex: none;
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--line);
    background: #f7fbfc;
}

.vendor-info h2 {
    color: var(--brand-dark);
    margin-bottom: 10px;
    font-size: 24px;
}

.vendor-info p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 6px;
}

.vendor-info p i {
    color: var(--brand);
    width: 18px;
}

.vendor-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f2b53d;
    font-size: 15px;
    margin: 10px 0 12px;
}

.vendor-rating span {
    font-size: 13px;
    color: var(--muted);
    margin-left: 8px;
}

.vendor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.vendor-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
}

.vendor-description h3 {
    color: var(--brand-dark);
    font-size: 20px;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 4px solid var(--brand);
    line-height: 1.2;
}

/* ----------------------------- 表单（入驻等） ----------------------------- */
.vendor-form {
    background: var(--white);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13.5px;
    color: #35525b;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(20, 163, 168, 0.14);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-hint {
    font-size: 12px;
    color: #94a8ae;
    margin-top: 6px;
}

/* 合作说明面板 */
.form-intro {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 26px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: #35525b;
    font-size: 13px;
    line-height: 1.7;
}

.form-intro i {
    margin-top: 3px;
    color: var(--brand);
}

/* ----------------------------- 页脚 ----------------------------- */
footer {
    background: linear-gradient(160deg, #082f3a 0%, #0a4150 55%, #0b4b5e 100%);
    color: #c9dfe4;
    margin-top: 64px;
    padding: 0;
}

.footer-assurance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-assurance-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-assurance-item i {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #8ff0d0;
    font-size: 16px;
}

.footer-assurance-item strong {
    display: block;
    color: #edf7f9;
    font-size: 14px;
    font-weight: 600;
}

.footer-assurance-item span {
    display: block;
    font-size: 12px;
    color: rgba(201, 223, 228, 0.75);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
    gap: 40px;
    padding: 44px 0 34px;
}

.footer-brand-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(201, 223, 228, 0.8);
    max-width: 340px;
    margin-bottom: 18px;
}

.footer-hotline {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-hotline i {
    font-size: 18px;
    color: #8ff0d0;
}

.footer-hotline span {
    display: block;
    font-size: 11.5px;
    color: rgba(201, 223, 228, 0.7);
}

.footer-hotline strong {
    color: #fff;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-tags span {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11.5px;
    color: rgba(223, 241, 244, 0.85);
}

.footer-column h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-left: 11px;
    border-left: 3px solid var(--brand-2);
    line-height: 1.2;
}

.footer-column ul {
    display: grid;
    gap: 10px;
}

.footer-column ul li {
    font-size: 13px;
    color: rgba(201, 223, 228, 0.82);
    line-height: 1.6;
}

.footer-column ul li i {
    width: 16px;
    margin-right: 6px;
    color: #8ff0d0;
    text-align: center;
}

.footer-column ul li a {
    color: rgba(201, 223, 228, 0.82);
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    margin-top: 4px;
}

.copyright {
    padding: 20px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 12.5px;
    color: rgba(176, 205, 212, 0.85);
    line-height: 1.9;
}

.copyright a {
    color: rgba(201, 223, 228, 0.9);
}

.copyright a:hover {
    color: #fff;
}

/* ----------------------------- 分页 ----------------------------- */
.pagination {
    margin: 36px 0 10px;
    padding: 0;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13.5px;
    color: #456069 !important;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all var(--ease);
}

.pagination li:first-child a {
    background-color: #f5f9fa;
    color: #6f858c !important;
    border-color: var(--line);
    cursor: default;
}

.pagination li.active a {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff !important;
    font-weight: 600;
    cursor: default;
}

.pagination li:not(.active) a:not(:first-child):hover {
    background-color: var(--brand-soft);
    border-color: rgba(14, 116, 144, 0.4);
    color: var(--brand) !important;
    transform: translateY(-1px);
}

.pagination li.disabled a {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f9fa;
    color: #9aacb2 !important;
}

.pagination li.disabled a:hover {
    transform: none;
    background-color: #f5f9fa;
    border-color: var(--line);
}

/* ----------------------------- 通用空状态 ----------------------------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 54px;
    color: #c9dbe1;
    margin-bottom: 16px;
}

/* ----------------------------- 正文链接 ----------------------------- */
#description a,
.page-content-card a,
.article-content a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#description a:hover,
.page-content-card a:hover,
.article-content a:hover {
    color: var(--brand-2);
}

/* ----------------------------- 响应式 ----------------------------- */
@media (max-width: 1100px) {
    .hero {
        padding: 44px 40px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .footer-content {
        grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
        gap: 12px 18px;
        padding: 12px 0;
    }

    nav {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    nav ul {
        flex-wrap: nowrap;
    }

    nav ul li a.nav-link {
        padding: 7px 12px;
        font-size: 14px;
    }

    .service-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-card {
        max-width: 520px;
    }

    .quality-band {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 34px 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-assurance {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-side {
        position: static;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery .image-container {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .header-top-inner {
        justify-content: center;
        text-align: center;
        padding: 7px 0;
    }

    .top-note {
        font-size: 12px;
    }

    .top-contact {
        font-size: 12px;
        gap: 12px;
    }

    .logo-name {
        font-size: 16px;
    }

    .logo-link img {
        height: 38px;
    }

    .hero {
        margin-top: 18px;
        padding: 32px 24px;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 27px;
        letter-spacing: 0.5px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 130px;
    }

    .hero-card {
        padding: 22px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin: 36px 0 20px;
    }

    .section-head h2 {
        font-size: 23px;
    }

    .page-banner {
        padding: 24px 22px;
        border-radius: var(--radius);
        margin: 18px 0 24px;
    }

    .page-banner-title {
        font-size: 24px;
    }

    .service-strip {
        gap: 12px;
    }

    .service-item {
        padding: 14px;
        gap: 11px;
    }

    .service-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(46%, 1fr));
        gap: 14px;
    }

    .product-media {
        height: 160px;
    }

    .product-info {
        padding: 12px 13px 14px;
    }

    .product-info h3 {
        font-size: 14px;
        min-height: 42px;
    }

    .product-info p {
        display: none;
    }

    .price {
        font-size: 17px;
    }

    .product-badge {
        top: 8px;
        left: 8px;
        padding: 2px 8px;
        font-size: 10.5px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px;
    }

    .quality-band {
        padding: 26px 22px;
        border-radius: var(--radius);
    }

    .quality-band h2 {
        font-size: 22px;
    }

    .quality-list {
        grid-template-columns: 1fr;
    }

    .product-detail {
        padding: 20px;
        gap: 24px;
        border-radius: var(--radius);
    }

    .product-gallery .image-container {
        height: 290px;
        padding: 10px;
    }

    .thumbnail {
        width: 64px;
        height: 64px;
    }

    .product-info-detail h1,
    .product-info-detail h2 {
        font-size: 21px;
    }

    .product-info-detail .price {
        font-size: 25px;
    }

    .tab-btn {
        padding: 13px 18px;
        font-size: 14px;
    }

    .tab-content {
        padding: 20px 18px;
    }

    .specifications td {
        padding: 10px 12px;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
        padding: 20px 4px 20px;
        position: relative;
    }

    .cart-item .product-info {
        padding-right: 40px;
    }

    .cart-item .remove-btn {
        position: absolute;
        top: 16px;
        right: 4px;
    }

    .cart-item > div:not(.product-info) {
        font-size: 13px;
    }

    .cart-item .price::before {
        content: "单价：";
        color: var(--muted);
        font-weight: 400;
        font-size: 12.5px;
    }

    .cart-item > .price:nth-child(4)::before {
        content: "小计：";
    }

    .cart-item > div:nth-child(3)::before {
        content: "数量：";
        color: var(--muted);
        font-size: 12.5px;
    }

    .cart-notice {
        margin-top: -10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 34px 0 26px;
    }

    .footer-brand-desc {
        max-width: none;
    }

    .footer-assurance {
        gap: 16px 12px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 14px;
    }

    .header-content {
        gap: 10px;
    }

    .logo-text {
        max-width: 150px;
    }

    .logo-slogan {
        letter-spacing: 0;
    }

    .header-icons {
        gap: 7px;
    }

    .header-icons > div {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .service-strip {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 16px 12px;
    }

    .hero-stat strong {
        font-size: 23px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .footer-assurance {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pagination a {
        padding: 7px 11px;
        font-size: 12.5px;
    }

    .product-actions {
        flex-direction: column;
    }

    .quantity {
        align-self: flex-start;
    }

    .add-to-cart-btn {
        width: 100%;
        flex: none;
        min-width: 0;
    }
}

/* 辅助功能：用户偏好减少动态效果时关闭过渡 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
