/* 镜缘轩 - 淘宝风格样式 */

/* ========== 变量 ========== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --accent: #10b981;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --taobao-red: #ff5000;
    --taobao-orange: #ff6a00;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ========== 重置 ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    -webkit-touch-callout: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: 16px;
}

/* 防止iOS输入框聚焦时缩放 */
@media screen and (max-width: 768px) {
    input, textarea, select {
        font-size: 16px;
    }
}

/* ========== 淘宝顶部快捷栏 ========== */
.top-bar {
    background: var(--taobao-red);
    color: #fff;
    height: 35px;
    line-height: 35px;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #fff;
    margin: 0 8px;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ========== 头部导航 ========== */
.header {
    background: var(--bg-white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.logo img {
    height: 45px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
}

/* ========== 淘宝风格头部 ========== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, var(--taobao-red) 0%, var(--taobao-orange) 100%);
    padding: 10px 0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo .logo-text {
    color: var(--bg-white);
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.header-logo a:hover {
    opacity: 0.9;
}

/* 搜索框 */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-white);
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-btn {
    padding: 10px 20px;
    background: var(--taobao-red);
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #e64500;
}

/* 购物车 */
.header-cart .cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-white);
    font-size: 15px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    transition: all 0.2s;
}

.header-cart .cart-link:hover {
    background: rgba(255,255,255,0.25);
}

.cart-count {
    background: var(--bg-white);
    color: var(--taobao-red);
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

/* 主导航 */
.header-nav {
    background: var(--bg-white);
    border-bottom: 2px solid var(--taobao-red);
}

.header-nav .container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 25px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--taobao-red);
    border-bottom-color: var(--taobao-red);
}

.nav-item a i {
    font-size: 14px;
}

/* 主体内容 */
.site-main {
    min-height: calc(100vh - 150px);
    padding: 20px 0;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 600px;
    display: flex;
}

.search-box input {
    flex: 1;
    height: 40px;
    border: 2px solid var(--taobao-red);
    border-right: none;
    padding: 0 15px;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box button {
    height: 40px;
    padding: 0 25px;
    background: var(--taobao-red);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 16px;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--taobao-orange);
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--taobao-red);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--taobao-red);
}

/* 头部图标链接 */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    font-size: 12px;
}

.header-icon svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--taobao-red);
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ========== 分类导航 ========== */
.category-nav {
    background: var(--text-dark);
    color: #fff;
}

.category-nav .container {
    display: flex;
}

.category-nav .category-title {
    background: var(--taobao-red);
    width: 200px;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-nav .category-list {
    display: flex;
    flex: 1;
}

.category-nav .category-list a {
    color: #fff;
    padding: 10px 20px;
    font-size: 15px;
    transition: background 0.2s;
}

.category-nav .category-list a:hover {
    background: rgba(255,255,255,0.1);
}

/* ========== 幻灯片 ========== */
.slider {
    background: var(--bg-white);
    padding: 20px 0;
}

.slider .container {
    display: flex;
    gap: 20px;
}

.slider-main {
    flex: 1;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.slider-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-sidebar {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-sidebar img {
    height: 125px;
    border-radius: var(--radius);
    object-fit: cover;
}

/* ========== 精选推荐 ========== */
.section {
    padding: 30px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2::before {
    content: '';
    width: 5px;
    height: 24px;
    background: var(--taobao-red);
    border-radius: 3px;
}

.section-title a {
    color: var(--text-muted);
    font-size: 14px;
}

.section-title a:hover {
    color: var(--taobao-red);
}

/* ========== 产品网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.product-card .product-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background: var(--taobao-red);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.product-card .product-info {
    padding: 12px;
}

.product-card .product-name {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
}

.product-card .product-price {
    color: var(--taobao-red);
    font-size: 20px;
    font-weight: bold;
    font-family: "DIN Alternate", "Helvetica Neue", monospace;
}

.product-card .product-price .original {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: normal;
    margin-left: 5px;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 分类卡片 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-card .category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.category-card .category-name {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.category-card .category-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ========== 关于我们 ========== */
.about-section {
    background: var(--bg-white);
    padding: 40px 0;
}

.about-content {
    display: flex;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: var(--primary);
    border-radius: 3px;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.about-feature {
    text-align: center;
}

.about-feature .number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    font-family: "DIN Alternate", "Helvetica Neue", monospace;
}

.about-feature .label {
    font-size: 13px;
    color: var(--text-muted);
}

.about-contact {
    width: 300px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.about-contact h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.about-contact .contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--taobao-red);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-light);
}

/* ========== 产品详情页 ========== */
.product-detail {
    background: var(--bg-white);
    padding: 20px 0 40px;
}

/* 隐藏移动端元素（桌面端显示） */
.mobile-product-swiper,
.mobile-price-bar,
.mobile-product-base,
.mobile-service-bar,
.mobile-product-tabs,
.mobile-recommend,
.mobile-action-bar {
    display: none;
}

/* 产品详情页容器 */
.product-detail .container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 图片+信息主体区域（左右排列） */
.product-main {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

/* 左侧图片 */
.product-gallery {
    width: 450px;
    flex-shrink: 0;
}

.product-gallery .main-image {
    width: 100%;
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-gallery .thumbnails img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    object-fit: cover;
}

.product-gallery .thumbnails img.active,
.product-gallery .thumbnails img:hover {
    border-color: var(--taobao-red);
}

/* 右侧信息 */
.product-summary {
    flex: 1;
}

.product-summary h1 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.product-summary .product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.product-summary .tag {
    background: #fff5f5;
    color: var(--taobao-red);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
}

/* 价格区块 */
.price-block {
    background: #fff9f5;
    border: 1px solid #ffe4d4;
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
}

.price-block .label {
    font-size: 13px;
    color: var(--text-muted);
    display: inline;
}

.price-block .price {
    color: var(--taobao-red);
    font-size: 32px;
    font-weight: bold;
    font-family: "DIN Alternate", "Helvetica Neue", monospace;
}

.price-block .price small {
    font-size: 18px;
}

.price-block .original-price {
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 15px;
    text-decoration: line-through;
}

.price-block .discount {
    background: var(--taobao-red);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

/* 参数区块 */
.product-params {
    margin-bottom: 20px;
}

.product-params .param-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.product-params .param-label {
    width: 80px;
    color: var(--text-muted);
}

.product-params .param-value {
    flex: 1;
    color: var(--text-dark);
}

/* 数量选择 */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector .label {
    width: 80px;
    color: var(--text-muted);
    font-size: 14px;
}

.quantity-selector .qty-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.quantity-selector .qty-box button {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--bg-light);
    font-size: 16px;
    color: var(--text-muted);
}

.quantity-selector .qty-box button:hover {
    background: var(--border);
}

.quantity-selector .qty-box input {
    width: 50px;
    height: 35px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
}

.quantity-selector .stock {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 15px;
}

/* 按钮区块 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn {
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--taobao-red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--taobao-orange);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--taobao-red);
    border: 2px solid var(--taobao-red);
}

.btn-outline:hover {
    background: #fff5f5;
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-dark);
}

/* 服务承诺 */
.service-promise {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.service-promise .promise-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.service-promise .promise-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* 产品详情Tab */
.product-tabs {
    margin-top: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-tabs .tab-header,
.product-tabs .tabs-nav {
    display: flex;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.product-tabs .tab-header button,
.product-tabs .tabs-nav button {
    padding: 12px 25px;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.product-tabs .tab-header button.active,
.product-tabs .tabs-nav button.active {
    color: var(--taobao-red);
    background: var(--bg-white);
    border-bottom-color: var(--taobao-red);
}

.product-tabs .tab-content {
    padding: 25px;
    background: var(--bg-white);
}

.product-tabs .tab-content .tab-pane {
    display: none;
}

.product-tabs .tab-content .tab-pane.active {
    display: block;
}

/* Markdown内容样式 */
.markdown-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin: 20px 0 10px;
    font-weight: 600;
}

.markdown-content h2 {
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.markdown-content h3 {
    font-size: 16px;
}

.markdown-content p {
    margin-bottom: 15px;
}

.markdown-content ul,
.markdown-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.markdown-content li {
    margin-bottom: 8px;
}

.markdown-content img {
    border-radius: var(--radius);
    margin: 15px 0;
}

.markdown-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.markdown-content table th,
.markdown-content table td {
    border: 1px solid var(--border);
    padding: 10px 15px;
    text-align: left;
}

.markdown-content table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* ========== 产品列表页 ========== */
.products-page {
    padding: 20px 0;
}

.products-page .container {
    display: flex;
    gap: 20px;
}

/* 左侧筛选 */
.products-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.filter-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
}

.filter-box h3 {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.filter-box .filter-list a {
    display: block;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.filter-box .filter-list a:hover,
.filter-box .filter-list a.active {
    color: var(--taobao-red);
}

/* 右侧产品区 */
.products-main {
    flex: 1;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.products-toolbar .result-count {
    color: var(--text-muted);
    font-size: 13px;
}

.products-toolbar .sort-options {
    display: flex;
    gap: 15px;
}

.products-toolbar .sort-options a {
    color: var(--text-muted);
    font-size: 13px;
    padding: 5px 10px;
    border-radius: var(--radius);
}

.products-toolbar .sort-options a:hover,
.products-toolbar .sort-options a.active {
    color: var(--taobao-red);
    background: #fff5f5;
}

.products-main .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ========== 购物车 ========== */
.cart-page {
    padding: 20px 0;
}

.cart-page h1 {
    font-size: 22px;
    margin-bottom: 20px;
}

.cart-table {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: var(--bg-light);
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.cart-table .product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-table .product-cell img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-table .product-cell .name {
    font-size: 14px;
    color: var(--text-dark);
}

.cart-table .price {
    color: var(--taobao-red);
    font-weight: bold;
}

.cart-table .qty-box {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cart-table .qty-box button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-light);
    font-size: 14px;
}

.cart-table .qty-box input {
    width: 40px;
    height: 28px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
}

.cart-table .subtotal {
    color: var(--taobao-red);
    font-weight: bold;
    font-size: 16px;
}

.cart-table .remove-btn {
    color: var(--text-muted);
    font-size: 13px;
}

.cart-table .remove-btn:hover {
    color: var(--taobao-red);
}

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary .total {
    font-size: 14px;
    color: var(--text-muted);
}

.cart-summary .total strong {
    color: var(--taobao-red);
    font-size: 24px;
}

.cart-summary .checkout-btn {
    background: var(--taobao-red);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
}

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

.checkout-page h1 {
    font-size: 22px;
    margin-bottom: 20px;
}

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

.checkout-main {
    flex: 1;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
}

.checkout-main h2 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--taobao-red);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

/* 验光单信息 */
.prescription-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 15px;
    margin-top: 10px;
}

.prescription-box h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.prescription-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.prescription-grid .form-group {
    margin-bottom: 0;
}

.prescription-grid label {
    font-size: 12px;
}

/* 订单侧边栏 */
.checkout-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.order-summary {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 90px;
}

.order-summary h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.order-summary .summary-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-dark);
}

.order-summary .summary-item.total strong {
    color: var(--taobao-red);
    font-size: 22px;
}

.order-summary .submit-order {
    width: 100%;
    background: var(--taobao-red);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
}

.order-summary .notice {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

/* ========== 订单成功页 ========== */
.order-success {
    padding: 60px 0;
    text-align: center;
}

.order-success .success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.order-success .success-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.order-success h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.order-success .order-no {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.order-success .order-no strong {
    color: var(--taobao-red);
    font-family: "DIN Alternate", "Helvetica Neue", monospace;
}

.order-success .notice {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
}

.order-success .notice h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.order-success .notice p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ========== 底部 ========== */
.footer {
    background: var(--text-dark);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
    text-align: center;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
    text-align: center;
}

.footer-links li a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    padding: 2px 8px;
}

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

.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-top: 10px;
}

/* 关注我们（桌面端） */
.footer-wechat-col img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.footer-wechat-col p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin: 8px 0 0;
    text-align: center;
}

.footer-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-services li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-services li i {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-gallery {
        width: 350px;
    }

    .checkout-form {
        flex-direction: column;
    }

    .checkout-sidebar {
        width: 100%;
    }
}

/* ========== 移动端基础 ========== */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px auto;
    transition: all 0.3s;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, var(--taobao-red) 0%, var(--taobao-orange) 100%);
    color: #fff;
}

.mobile-nav-header h3 {
    font-size: 18px;
}

.mobile-nav-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.mobile-nav-links {
    padding: 10px 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-dark);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-links a i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--bg-light);
    color: var(--taobao-red);
}

.mobile-nav-divider {
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-links a.mobile-cart {
    color: var(--taobao-red);
    font-weight: 500;
}

/* ========== 768px 及以下 ========== */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 10px;
    }

    .header .logo {
        flex-shrink: 0;
    }

    .header .logo .logo-text {
        font-size: 18px;
    }

    .header .logo small {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
    }

    .search-box {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .header-icons {
        flex-shrink: 0;
    }

    .header-icon span {
        display: none;
    }

    .header-icon svg {
        width: 22px;
        height: 22px;
    }

    /* 分类导航移动端 */
    .category-nav {
        display: none;
    }

    /* 幻灯片 */
    .slider {
        padding: 10px 0;
    }

    .slider .container {
        flex-direction: column;
    }

    .slider-main {
        height: 200px;
    }

    .slider-sidebar {
        display: none;
    }

    /* 产品网格 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card .product-img {
        height: 120px;
    }

    .product-card .product-info {
        padding: 8px;
    }

    .product-card .product-name {
        font-size: 13px;
        height: 36px;
        -webkit-line-clamp: 2;
    }

    .product-card .product-price {
        font-size: 16px;
    }

    .product-card .product-price small {
        font-size: 11px;
    }

    .product-card .btn-add-cart {
        padding: 6px 12px;
        font-size: 12px;
    }

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

    /* 文章列表移动端 */
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .article-card {
        display: flex !important;
        flex-direction: row !important;
        height: auto !important;
    }

    .article-card-image {
        width: 100px !important;
        height: 100px !important;
        flex-shrink: 0 !important;
    }

    .article-card-body {
        padding: 10px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .article-card-title {
        font-size: 14px !important;
        -webkit-line-clamp: 2 !important;
        line-height: 1.4 !important;
    }

    .article-card-meta {
        margin-top: auto !important;
    }

    /* 产品详情 */
    .product-main {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }

    .product-gallery {
        width: 100%;
    }

    .product-info {
        padding: 0 5px;
    }

    .product-info h1 {
        font-size: 18px;
    }

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

    /* 产品详情tabs */
    .product-tabs {
        margin-top: 0;
    }

    /* ===== 淘宝风格移动端商品详情 ===== */

    /* 隐藏桌面端元素 */
    .desktop-product-layout {
        display: none;
    }

    /* 移动端顶部轮播 */
    .mobile-product-swiper {
        display: block;
        position: relative;
        background: #f5f5f5;
    }

    .swiper-container {
        width: 100%;
        overflow: hidden;
    }

    .swiper-wrapper {
        display: flex;
    }

    .swiper-slide {
        width: 100%;
        flex-shrink: 0;
    }

    .swiper-slide img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        display: block;
    }

    .swiper-pagination {
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .swiper-pagination span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.6);
    }

    .swiper-pagination span.active {
        background: #ff4b4b;
        width: 18px;
        border-radius: 3px;
    }

    /* 价格栏 */
    .mobile-price-bar {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 10px 12px;
        background: linear-gradient(135deg, #ff4b4b, #ff6b6b);
        color: #fff;
    }

    .price-main {
        display: flex;
        align-items: baseline;
        gap: 4px;
    }

    .price-symbol {
        font-size: 14px;
    }

    .price-num {
        font-size: 26px;
        font-weight: 700;
    }

    .price-original {
        font-size: 12px;
        color: rgba(255,255,255,0.7);
        text-decoration: line-through;
        margin-left: 6px;
    }

    .discount-tag {
        background: rgba(255,255,255,0.2);
        padding: 3px 8px;
        border-radius: 10px;
        font-size: 12px;
    }

    /* 商品基础信息 */
    .mobile-product-base {
        display: block;
        padding: 12px;
        background: #fff;
    }

    .mobile-product-name {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        line-height: 1.5;
        margin: 0 0 10px 0;
    }

    .mobile-product-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
    }

    .m-tag {
        background: #fff0f0;
        color: #ff4b4b;
        padding: 3px 8px;
        border-radius: 3px;
        font-size: 11px;
    }

    .mobile-product-meta {
        display: flex;
        gap: 15px;
        font-size: 12px;
        color: #999;
    }

    .mobile-product-meta i {
        margin-right: 3px;
        color: #ff4b4b;
    }

    /* 服务保障栏 */
    .mobile-service-bar {
        display: flex;
        padding: 8px 12px;
        background: #fff;
        border-top: 1px solid #f0f0f0;
        margin-top: 2px;
    }

    .service-item {
        flex: 1;
        text-align: center;
        font-size: 11px;
        color: #666;
    }

    .service-item i {
        color: #ff4b4b;
        margin-right: 2px;
    }

    /* 移动端Tab */
    .mobile-product-tabs {
        display: block;
        margin-top: 10px;
        background: #fff;
    }

    .m-tabs-nav {
        display: flex;
        border-bottom: 1px solid #eee;
    }

    .m-tab-btn {
        flex: 1;
        padding: 12px 0;
        border: none;
        background: none;
        font-size: 14px;
        color: #666;
        border-bottom: 2px solid transparent;
        cursor: pointer;
    }

    .m-tab-btn.active {
        color: #ff4b4b;
        border-bottom-color: #ff4b4b;
    }

    .m-tab-content {
        display: none;
        padding: 15px 12px;
    }

    .m-tab-content.active {
        display: block;
    }

    .params-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .params-table td {
        padding: 9px 8px;
        border-bottom: 1px solid #f5f5f5;
    }

    .params-table td:first-child {
        color: #999;
        width: 90px;
    }

    .params-table td:last-child {
        color: #333;
    }

    .params-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
    }

    /* 看了又看推荐 */
    .mobile-recommend {
        display: block;
        padding: 15px;
    }

    /* 吸底操作栏 */
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 54px;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        z-index: 1000;
        padding: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }

    .action-left {
        display: flex;
        width: 45%;
    }

    .action-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        color: #666;
        text-decoration: none;
        position: relative;
        border-right: 1px solid #f0f0f0;
    }

    .action-item i {
        font-size: 18px;
        margin-bottom: 3px;
        color: #666;
    }

    .action-item .cart-badge {
        position: absolute;
        top: 2px;
        right: 8px;
        background: #ff4b4b;
        color: #fff;
        font-size: 10px;
        padding: 1px 5px;
        border-radius: 10px;
        font-style: normal;
    }

    .action-right {
        display: flex;
        width: 55%;
    }

    .btn-add-cart-m,
    .btn-buy-m {
        flex: 1;
        border: none;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .btn-add-cart-m {
        background: #ff9500;
        color: #fff;
    }

    .btn-buy-m {
        background: #ff4b4b;
        color: #fff;
    }

    /* 产品列表页 */
    .products-page .container {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        display: none;
    }

    .products-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 购物车 */
    .cart-page h1 {
        font-size: 18px;
    }

    .cart-table {
        overflow-x: auto;
    }

    .cart-table table {
        min-width: 600px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }

    .cart-summary {
        width: 100%;
        padding: 15px;
    }

    .cart-summary .btn {
        width: 100%;
    }

    /* 结算页 */
    .checkout-form {
        flex-direction: column;
    }

    .checkout-sidebar {
        width: 100%;
        margin-top: 20px;
    }

    /* 订单页 */
    .orders-page h1 {
        font-size: 18px;
    }

    .order-card .order-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .order-card .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-contact .contact-item {
        justify-content: center;
    }

    .footer-bottom {
        padding: 15px;
        font-size: 12px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-contact {
        width: 100%;
    }

    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    /* 搜索页 */
    .search-page h1 {
        font-size: 16px;
    }

    /* Toast 提示位置调整 */
    .toast {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 20px;
        text-align: center;
    }

    /* 模态框/弹窗移动端 */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    /* 登录/注册表单 */
    .auth-page .form-container {
        padding: 20px 15px;
    }
}

/* ========== 480px 及以下 ========== */
@media (max-width: 480px) {
    .header .container {
        padding: 0 8px;
    }

    .header .logo .logo-text {
        font-size: 16px;
    }

    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .mobile-menu-btn span {
        width: 18px;
        height: 2px;
        margin: 4px auto;
    }

    .header-icons {
        gap: 12px;
    }

    .header-icon svg {
        width: 20px;
        height: 20px;
    }

    .cart-count {
        top: -6px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .slider-main {
        height: 160px;
    }

    .product-grid {
        gap: 8px;
    }

    .product-card .product-img {
        height: 100px;
    }

    .product-card .product-info {
        padding: 6px;
    }

    .product-card .product-name {
        font-size: 12px;
        height: 32px;
    }

    .product-card .product-price {
        font-size: 14px;
    }

    .product-card .btn-add-cart {
        padding: 5px 10px;
        font-size: 11px;
    }

    .section-title h2 {
        font-size: 16px;
    }

    .section-title h2::before {
        height: 18px;
    }

    /* 购物车数量调整 */
    .qty-box {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .qty-box input {
        width: 40px;
        text-align: center;
    }

    /* 结算按钮 */
    .btn-checkout {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* 订单卡片 */
    .order-card .order-header {
        padding: 10px 12px;
    }

    .order-card .order-body {
        padding: 12px;
    }

    .order-card .order-footer {
        padding: 10px 12px;
    }

    .order-card .order-footer .total strong {
        font-size: 16px;
    }

    /* 搜索框 */
    .search-page .search-form {
        flex-direction: column;
    }

    .search-page .search-form input {
        border-radius: var(--radius);
        margin-bottom: 10px;
    }

    .search-page .search-form button {
        border-radius: var(--radius);
    }
}

/* ========== 375px 及以下 (小屏手机) ========== */
@media (max-width: 375px) {
    .header .logo .logo-text {
        font-size: 15px;
    }

    .mobile-menu-btn span {
        width: 16px;
    }

    .slider-main {
        height: 140px;
    }

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

    .product-card .product-img {
        height: 90px;
    }

    .product-card .product-info {
        padding: 5px;
    }

    .product-card .product-name {
        font-size: 11px;
        height: 28px;
    }

    .product-card .product-price {
        font-size: 13px;
    }

    .product-card .btn-add-cart {
        padding: 4px 8px;
        font-size: 10px;
    }

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

    .section {
        padding: 15px 0;
    }

    .section-title {
        margin-bottom: 12px;
    }

    .section-title h2 {
        font-size: 14px;
    }

    /* 产品详情页 */
    .product-info .product-actions {
        flex-direction: column;
    }

    .product-info .btn-add-cart,
    .product-info .quantity-selector {
        width: 100%;
    }

    .product-info .quantity-selector {
        justify-content: center;
        margin-bottom: 10px;
    }

    /* 订单列表 */
    .order-list {
        gap: 10px;
    }

    /* Footer 移动端 */
    .footer {
        padding: 24px 0 80px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
        text-align: center;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 10px;
        color: #fff;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-section ul li {
        margin-bottom: 8px;
        text-align: center;
    }

    .footer-section ul li a {
        color: rgba(255,255,255,0.65);
        font-size: 13px;
        text-decoration: none;
        display: inline-block;
        padding: 2px 8px;
        text-align: center;
    }

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

    .footer-links li a::after {
        display: none;
    }

    /* 服务保障 */
    .footer-services {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-services li {
        display: flex;
        align-items: center;
        gap: 6px;
        color: rgba(255,255,255,0.65);
        font-size: 12px;
    }

    .footer-services li i {
        color: rgba(255,255,255,0.5);
        font-size: 11px;
    }

    /* 关注我们 - 二维码居中 */
    .footer-wechat-col img {
        width: 20px !important;
        height: 20px !important;
        border-radius: 4px;
        display: block;
        margin: 0 auto 6px;
    }

    .footer-wechat-col p {
        color: rgba(255,255,255,0.5);
        font-size: 11px;
        margin: 0;
    }

    /* 底部版权 */
    .footer-bottom {
        padding: 16px;
        font-size: 11px;
        color: rgba(255,255,255,0.35);
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 8px;
    }

    .footer-bottom p {
        margin: 0;
        padding: 0 16px;
    }

    .footer-contact {
        align-items: center;
    }
}

/* ========== 320px 及以下 (最小屏幕) ========== */
@media (max-width: 320px) {
    .header .logo .logo-text {
        font-size: 14px;
    }

    .header-icons {
        gap: 8px;
    }

    .slider-main {
        height: 120px;
    }

    .product-grid {
        gap: 5px;
    }

    .product-card .product-img {
        height: 80px;
    }

    .product-card .product-name {
        font-size: 10px;
        height: 26px;
    }

    .product-card .product-price {
        font-size: 12px;
    }

    .product-card .btn-add-cart {
        padding: 3px 6px;
        font-size: 9px;
    }

    .pagination a,
    .pagination span {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .footer-section h4 {
        font-size: 13px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 11px;
    }
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--taobao-red); }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.pagination a:hover {
    color: var(--taobao-red);
    border-color: var(--taobao-red);
}

.pagination a.active {
    color: #fff;
    background: var(--taobao-red);
    border-color: var(--taobao-red);
}

.pagination .prev,
.pagination .next {
    padding: 0 15px;
}

/* ========== 我的订单 ========== */
.orders-page {
    padding: 20px 0;
}

.orders-page h1 {
    font-size: 22px;
    margin-bottom: 20px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.order-card .order-header .order-no {
    font-size: 13px;
    color: var(--text-muted);
}

.order-card .order-header .order-no strong {
    font-family: "DIN Alternate", "Helvetica Neue", monospace;
}

.order-card .order-header .status {
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 3px;
}

.order-card .order-header .status.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.order-card .order-header .status.contacted {
    background: #e6f7ff;
    color: #1890ff;
}

.order-card .order-header .status.completed {
    background: #f6ffed;
    color: #52c41a;
}

.order-card .order-body {
    padding: 15px;
}

.order-card .order-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .order-item .name {
    font-size: 14px;
    color: var(--text-dark);
}

.order-card .order-item .price {
    color: var(--text-muted);
    font-size: 13px;
}

.order-card .order-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 15px;
    border-top: 1px solid var(--border);
}

.order-card .order-footer .total {
    font-size: 14px;
    color: var(--text-muted);
}

.order-card .order-footer .total strong {
    color: var(--taobao-red);
    font-size: 18px;
}

/* ========== 搜索页 ========== */
.search-page {
    padding: 20px 0;
}

.search-page h1 {
    font-size: 20px;
    margin-bottom: 20px;
}

.search-page h1 span {
    color: var(--taobao-red);
}

/* ============================================
   移动端底部导航栏（所有页面通用）
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    position: relative;
    padding: 4px 0;
    gap: 2px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    line-height: 1;
}

.mobile-bottom-nav .nav-item.active {
    color: #ff5500;
}

.mobile-bottom-nav .nav-item.active i {
    color: #ff5500;
}

.mobile-bottom-nav .cart-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(16px);
    background: #ff5500;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 14px;
}

/* 桌面端隐藏底部导航 */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}
