/* 雅彤首饰店 - 红白电商模板 */
:root {
    --tz-primary: #DE0539;
    --tz-primary-dark: #b8032e;
    --tz-primary-light: #ff1a52;
    --tz-secondary: #383635;
    --tz-bg: #f7f7f7;
    --tz-surface: #ffffff;
    --tz-text: #333333;
    --tz-text-secondary: #666666;
    --tz-text-muted: #999999;
    --tz-border: #e5e5e5;
    --tz-border-light: #eeeeee;
    --tz-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.06);
    --tz-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --tz-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --tz-radius: 8px;
    --tz-radius-sm: 4px;
    --container: 1200px;
    /* 兼容旧模板变量 */
    --tz-primary-soft: rgba(222,5,57,0.08);
    --tz-accent: var(--tz-primary);
    --tz-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--tz-bg);
    color: var(--tz-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--tz-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--tz-primary); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

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

/* 顶部工具栏 */
.topbar {
    background: #f8f8f8;
    border-bottom: 1px solid var(--tz-border);
    font-size: 12px;
    color: var(--tz-text-muted);
}
.topbar a { color: var(--tz-text-muted); }
.topbar a:hover { color: var(--tz-primary); }
.topbar-sep { color: #dddddd; }
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar a { color: var(--tz-text-secondary); }
.topbar a:hover { color: var(--tz-primary); }
.topbar-sep { color: #ccc; }

/* 头部 */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--tz-border);
    box-shadow: var(--tz-shadow);
}
.site-header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
    gap: 30px;
}
.site-header .logo { flex-shrink: 0; }
.site-header .logo img { height: 54px; max-width: 220px; object-fit: contain; }

.search-box {
    flex: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.search-wraper { width: 100%; }
.search-form {
    display: flex;
    border: 2px solid var(--tz-primary);
    border-radius: var(--tz-radius-sm);
    overflow: hidden;
    background: var(--tz-surface);
}
.search-form input {
    flex: 1;
    height: 40px;
    border: none;
    padding: 0 14px;
    font-size: 14px;
    color: var(--tz-text);
    outline: none;
    background: transparent;
}
.search-form input::placeholder { color: #b4b4b4; }
.search-form button {
    width: 85px;
    height: 40px;
    background: var(--tz-primary);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tz-transition);
}
.search-form button:hover { background: var(--tz-primary-dark); }
.kw-hot {
    margin-top: 6px;
    font-size: 12px;
    color: #b4b4b4;
    line-height: 1.4;
}
.kw-hot a { color: #b4b4b4; margin-right: 12px; }
.kw-hot a:last-child { margin-right: 0; }
.kw-hot a:hover { color: var(--tz-primary); }

.topbar-cart {
    position: relative;
    flex-shrink: 0;
}
.cart-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--tz-border);
    padding: 10px 18px;
    border-radius: var(--tz-radius);
    font-size: 13px;
    color: var(--tz-primary);
}
.cart-mini .count {
    background: var(--tz-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}
.cart-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--tz-border);
    box-shadow: var(--tz-shadow-md);
    padding: 15px;
    display: none;
    z-index: 1000;
    margin-top: 5px;
    font-size: 13px;
    color: var(--tz-text-secondary);
}
.topbar-cart:hover .cart-menu { display: block; }

/* 移动端搜索 */
.mobile-search {
    display: none;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--tz-border);
}
.mobile-search form {
    display: flex;
    border: 1px solid var(--tz-primary);
    border-radius: var(--tz-radius-sm);
    overflow: hidden;
}
.mobile-search input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}
.mobile-search button {
    min-width: 56px;
    padding: 0 12px;
    background: var(--tz-primary);
    color: #fff;
    border: none;
    font-size: 14px;
    white-space: nowrap;
}

/* 主导航 */
.main-nav-bar {
    background: #fff;
    border-bottom: 1px solid var(--tz-border);
}
.main-nav-bar > .container {
    display: flex;
    align-items: center;
    height: 44px;
}
.category-menu {
    position: relative;
    width: 210px;
    background: var(--tz-secondary);
    height: 44px;
    flex-shrink: 0;
}
.category-menu > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.category-menu > a:hover { color: #fff; }
.category-dropdown {
    position: absolute;
    top: 44px;
    left: 0;
    width: 210px;
    background: #fff;
    border: 1px solid var(--tz-border);
    border-top: none;
    box-shadow: var(--tz-shadow-md);
    z-index: 900;
    display: none;
}
.category-menu:hover .category-dropdown { display: block; }
.category-dropdown > li {
    border-bottom: 1px solid var(--tz-border-light);
    position: relative;
}
.category-dropdown > li:last-child { border-bottom: none; }
.cat-main { padding: 10px 14px; }
.cat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tz-text);
    display: block;
    margin-bottom: 4px;
}
.cat-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.cat-subs a {
    font-size: 12px;
    color: var(--tz-text-muted);
}
.cat-subs a:hover { color: var(--tz-primary); }
.cat-promo { background: var(--tz-primary); }
.cat-promo a { display: block; padding: 14px; color: #fff; text-align: center; }
.cat-promo strong { display: block; font-size: 15px; }
.cat-promo span { font-size: 12px; opacity: 0.9; }

.nav-links {
    display: flex;
    align-items: center;
    padding-left: 30px;
    gap: 4px;
}
.nav-links a {
    padding: 0 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tz-text);
    line-height: 44px;
    display: block;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: var(--tz-primary);
    transform: scaleX(0);
    transition: var(--tz-transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--tz-primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* 移动端菜单 */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tz-text);
    transition: 0.3s;
}
.menu-toggle-checkbox:checked ~ .mobile-menu-overlay { display: block; }
.menu-toggle-checkbox:checked ~ .mobile-nav { transform: translateX(0); }
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s;
    overflow-y: auto;
    box-shadow: var(--tz-shadow-lg);
}
.mobile-nav-header {
    background: var(--tz-primary);
    color: #fff;
    padding: 16px;
    position: relative;
}
.mobile-nav-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
}
.mobile-nav-header .welcome { font-size: 14px; margin-bottom: 12px; }
.mobile-nav-header .username { font-size: 15px; font-weight: 600; }
.user-btns { display: flex; gap: 10px; }
.user-btns a {
    flex: 1;
    background: #fff;
    color: var(--tz-primary);
    text-align: center;
    padding: 8px 0;
    border-radius: var(--tz-radius);
    font-size: 13px;
    font-weight: 600;
}
.mobile-nav > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tz-border-light);
    font-size: 15px;
}
.mobile-nav > a.active { color: var(--tz-primary); background: #fff5f5; }
.nav-icon {
    width: 28px;
    height: 28px;
    background: var(--tz-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--tz-text-secondary);
}
.mobile-nav > a.active .nav-icon { background: var(--tz-primary); color: #fff; }
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: #fff;
    border-top: 1px solid var(--tz-border);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
}
.mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--tz-text-secondary);
    padding: 6px 0;
}
.mobile-bottom-nav a.active { color: var(--tz-primary); }

/* 提示消息 */
.flash-container { padding: 12px 0; }
.msg {
    padding: 12px 16px;
    border-radius: var(--tz-radius);
    font-size: 14px;
}
.msg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.msg-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.msg-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.alert { padding: 12px 16px; border-radius: var(--tz-radius); margin-bottom: 15px; }
.alert-success { background: #f0fdf4; color: #166534; }
.alert-error { background: #fef2f2; color: #991b1b; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--tz-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--tz-transition);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(196,30,58,0.15);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--tz-shadow-md); }
.btn-primary {
    background: linear-gradient(135deg, var(--tz-primary) 0%, var(--tz-primary-dark) 100%);
    color: #fff;
}
.btn-primary:hover { color: #fff; }
.btn-secondary { background: var(--tz-secondary); color: #fff; }
.btn-secondary:hover { background: #000; color: #fff; }
.btn-outline {
    background: #fff;
    color: var(--tz-primary);
    border: 1px solid var(--tz-primary);
    box-shadow: none;
}
.btn-outline:hover { background: var(--tz-primary); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--tz-primary-light) 0%, var(--tz-primary) 100%); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 通用标题 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
    font-size: 22px;
    font-weight: 700;
}
.section-title strong {
    color: var(--tz-text);
    padding-left: 14px;
    border-left: 4px solid var(--tz-primary);
}
.section-title a {
    font-size: 13px;
    font-weight: 500;
    color: var(--tz-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-title a:hover { color: var(--tz-primary); }

/* 面包屑 */
.breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: var(--tz-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--tz-text-secondary); }
.breadcrumb a:hover { color: var(--tz-primary); }
.breadcrumb strong { color: var(--tz-text); font-weight: 600; }

/* 底部 */
.site-footer {
    background: #2e2e2e;
    color: #aaaaaa;
    font-size: 13px;
    margin-top: 50px;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 30px;
    padding: 45px 15px;
}
@media (max-width: 1100px) {
    .footer-content { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
.footer-brand h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}
.footer-brand p { margin-bottom: 12px; line-height: 1.9; }
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.footer-links-col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-links-col a, .footer-links-col span {
    display: block;
    color: #aaaaaa;
    margin-bottom: 10px;
    transition: var(--tz-transition);
}
.footer-links-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
}
.footer-bottom-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copyright p { margin: 2px 0; line-height: 1.6; }
.footer-meta a, .footer-meta span { color: #888; }
.footer-meta a:hover { color: #fff; }
.footer-meta .divider { margin: 0 10px; color: #555; }

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tz-primary);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: var(--tz-shadow-md);
}

/* 页面标题区 */
.page-hero {
    background: linear-gradient(135deg, var(--tz-primary) 0%, var(--tz-primary-dark) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}
.page-hero p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--tz-radius);
    border: 1px solid var(--tz-border);
}
.empty-state .empty-icon { font-size: 48px; color: var(--tz-text-muted); margin-bottom: 12px; }
.empty-state p { color: var(--tz-text-secondary); margin-bottom: 20px; }

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tz-text-secondary);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--tz-text-secondary); }
.breadcrumb a:hover { color: var(--tz-primary); }
.breadcrumb strong { color: var(--tz-text); font-weight: 600; }

/* 购物车 & 结算 */
.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tz-text-muted);
    font-size: 14px;
}
.checkout-steps .step.active { color: var(--tz-primary); font-weight: 600; }
.checkout-steps .step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--tz-border-light);
    color: var(--tz-text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
}
.checkout-steps .step.active .step-num { background: var(--tz-primary); color: #fff; }
.checkout-steps .step-line {
    width: 60px; height: 2px;
    background: var(--tz-border);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.cart-table th, .cart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--tz-border-light);
    font-size: 14px;
}
.cart-table th { background: var(--tz-bg); font-weight: 600; color: var(--tz-text); }
.cart-table td { color: var(--tz-text-secondary); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item { display: flex; align-items: center; gap: 12px; }
.cart-item img {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: var(--tz-radius-sm); border: 1px solid var(--tz-border-light);
}
.cart-item .name { color: var(--tz-text); font-weight: 500; }
.cart-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 20px;
    flex-wrap: wrap;
}
.cart-total { font-size: 16px; color: var(--tz-text); }
.cart-total strong { color: var(--tz-primary); font-size: 22px; margin-left: 6px; }

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
.checkout-main { display: flex; flex-direction: column; gap: 20px; }
.checkout-section {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 20px;
}
.checkout-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tz-border-light);
}
.checkout-section table {
    width: 100%;
    border-collapse: collapse;
}
.checkout-section table th, .checkout-section table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--tz-border-light);
    font-size: 14px;
}
.checkout-section table th { color: var(--tz-text); font-weight: 600; background: var(--tz-bg); }
.checkout-section table td { color: var(--tz-text-secondary); vertical-align: middle; }
.checkout-section table tr:last-child td { border-bottom: none; }
.item-info { display: flex; align-items: center; gap: 12px; }
.item-info .item-thumb {
    width: 56px; height: 56px; object-fit: cover;
    border-radius: var(--tz-radius-sm); border: 1px solid var(--tz-border-light);
}
.item-info .item-name { color: var(--tz-text); font-weight: 500; }
.price { color: var(--tz-primary); font-weight: 600; }

.checkout-address-list { display: flex; flex-direction: column; gap: 10px; }
.address-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    cursor: pointer;
    transition: all 0.2s;
}
.address-card.selected, .address-card:hover { border-color: var(--tz-primary); background: #fff5f5; }
.address-info .name { font-weight: 600; color: var(--tz-text); margin-bottom: 4px; }
.address-info .detail { font-size: 13px; color: var(--tz-text-secondary); }

.checkout-summary {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 20px;
    position: sticky;
    top: 20px;
}
.checkout-summary h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tz-border-light);
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--tz-text-secondary);
    border-bottom: 1px dashed var(--tz-border-light);
}
.checkout-summary-row.total {
    border-bottom: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--tz-text);
    margin-top: 6px;
}
.checkout-summary-row .amount { color: var(--tz-primary); font-size: 22px; }
.checkout-submit { width: 100%; margin-top: 16px; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--tz-border);
    background: #fff;
    border-radius: var(--tz-radius-sm);
    font-size: 13px;
    color: var(--tz-text-secondary);
}
.pagination a:hover { border-color: var(--tz-primary); color: var(--tz-primary); }
.pagination span.current { background: var(--tz-primary); color: #fff; border-color: var(--tz-primary); }
.pagination span.ellipsis { border: none; background: transparent; }

/* 首页 Banner */
.home-banner-section {
    background: #fff;
    padding: 20px 0;
}
.home-banner-section > .container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.banner-sidebar {
    flex: 0 0 220px;
    width: 220px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.banner-sidebar-head {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 16px;
    box-shadow: var(--tz-shadow);
}
.banner-sidebar-head .welcome {
    font-size: 13px;
    color: var(--tz-text-secondary);
    margin-bottom: 12px;
}
.banner-sidebar-head .user-btns { display: flex; gap: 10px; margin-bottom: 14px; }
.banner-sidebar-head .user-btns a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border: 1px solid var(--tz-primary);
    color: var(--tz-primary);
    border-radius: var(--tz-radius);
    font-size: 13px;
    font-weight: 600;
    transition: var(--tz-transition);
}
.banner-sidebar-head .user-btns a:hover { background: var(--tz-primary); color: #fff; }
.notice-list { border-top: 1px dashed var(--tz-border); padding-top: 12px; }
.notice-list a {
    display: block;
    font-size: 12px;
    color: var(--tz-text-secondary);
    padding: 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--tz-transition);
}
.notice-list a:hover { color: var(--tz-primary); padding-left: 4px; }
.banner-sidebar-ad {
    display: block;
    background: linear-gradient(135deg, var(--tz-primary) 0%, var(--tz-primary-dark) 100%);
    color: #fff;
    padding: 20px 16px;
    text-align: center;
    border-radius: var(--tz-radius);
    box-shadow: var(--tz-shadow);
    transition: var(--tz-transition);
}
.banner-sidebar-ad:hover { transform: translateY(-2px); box-shadow: var(--tz-shadow-md); color: #fff; }
.banner-sidebar-ad span { font-size: 12px; opacity: 0.9; }
.banner-sidebar-ad strong { display: block; font-size: 18px; line-height: 1.4; margin-top: 6px; }

.banner-slider {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: var(--tz-radius);
    overflow: hidden;
    box-shadow: var(--tz-shadow-md);
}
.banner-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 560;
    overflow: hidden;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: block;
}
.banner-slide.active { opacity: 1; z-index: 2; }
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.85);
    color: var(--tz-text);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tz-shadow);
    opacity: 0;
    transition: var(--tz-transition);
}
.banner-slider:hover .banner-prev,
.banner-slider:hover .banner-next { opacity: 1; }
.banner-prev { left: 16px; }
.banner-next { right: 16px; }
.banner-prev:hover, .banner-next:hover { background: #fff; color: var(--tz-primary); }
.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.banner-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--tz-transition);
}
.banner-dots span.active { background: #fff; width: 20px; border-radius: 4px; }

/* 首页品牌墙 */
.home-brand-section {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 16px;
    margin: 24px 0;
}
.brand-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tz-radius);
    overflow: hidden;
    min-height: 180px;
    box-shadow: var(--tz-shadow);
    transition: var(--tz-transition);
}
.brand-ad:hover { transform: translateY(-3px); box-shadow: var(--tz-shadow-md); }
.brand-promo {
    text-align: center;
    color: #fff;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-promo.red { background: linear-gradient(135deg, var(--tz-primary), var(--tz-primary-light)); }
.brand-promo.dark { background: linear-gradient(135deg, #374151, #111827); }
.brand-promo strong { font-size: 22px; display: block; margin-bottom: 8px; }
.brand-promo span { font-size: 13px; opacity: 0.9; }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.brand-item {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 8px;
    position: relative;
    min-height: 84px;
    box-shadow: var(--tz-shadow);
    transition: var(--tz-transition);
    overflow: hidden;
}
.brand-item:hover {
    border-color: var(--tz-primary);
    transform: translateY(-3px);
    box-shadow: var(--tz-shadow-md);
}
.brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tz-text);
    transition: var(--tz-transition);
}
.brand-hover {
    position: absolute;
    font-size: 12px;
    color: var(--tz-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--tz-transition);
}
.brand-item:hover .brand-name { opacity: 0; transform: translateY(-10px); }
.brand-item:hover .brand-hover { opacity: 1; transform: translateY(0); }

/* 新品横向滚动 */
.new-products-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 4px 14px;
    scrollbar-width: thin;
}
.new-products-scroll::-webkit-scrollbar { height: 6px; }
.new-products-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.new-product-item {
    flex: 0 0 150px;
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--tz-shadow);
    transition: var(--tz-transition);
}
.new-product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--tz-shadow-md);
    border-color: var(--tz-primary);
}
.new-product-item .img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}
.new-product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tz-transition);
}
.new-product-item:hover img { transform: scale(1.06); }
.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--tz-primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: var(--tz-radius-sm);
    font-weight: 600;
}
.new-product-item .name {
    padding: 10px;
    font-size: 13px;
    color: var(--tz-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 商品卡片 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    overflow: hidden;
    transition: var(--tz-transition);
    box-shadow: var(--tz-shadow);
}
.product-card:hover {
    box-shadow: var(--tz-shadow-md);
    transform: translateY(-4px);
    border-color: rgba(196,30,58,0.3);
}
.product-card .img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fafafa;
}
.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tz-transition);
}
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--tz-primary) 0%, var(--tz-primary-dark) 100%);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--tz-radius-sm);
    z-index: 2;
    font-weight: 600;
}
.product-card .no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--tz-text-muted);
    font-size: 13px;
}
.product-card .info { padding: 14px; }
.product-card .info h3 {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    margin-bottom: 10px;
}
.product-card .info h3 a { color: var(--tz-text); }
.product-card .info h3 a:hover { color: var(--tz-primary); }
.product-card .sales {
    font-size: 12px;
    color: var(--tz-text-muted);
    margin-bottom: 10px;
}
.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--tz-primary);
}
.product-card .price small { font-size: 12px; margin-right: 2px; }

/* 楼层商品 */
.floor-goods {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1px;
    background: var(--tz-border);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.floor-left {
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.floor-left-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tz-primary);
    margin-bottom: 20px;
}
.floor-left-list a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    color: var(--tz-text-secondary);
    border-bottom: 1px dashed var(--tz-border-light);
}
.floor-left-list a:last-child { border-bottom: none; }
.floor-left-list a:hover { color: var(--tz-primary); }
.floor-right {
    background: #fff;
    padding: 15px;
    grid-template-columns: repeat(4, 1fr) !important;
}

/* 分类页 */
.category-filter-bar {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 12px 16px;
    margin-bottom: 15px;
}
.category-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--tz-border-light);
}
.category-filter-row:last-child { border-bottom: none; }
.filter-label {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--tz-text);
    width: 50px;
    padding-top: 4px;
}
.category-list, .sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-list a, .sort-bar a {
    padding: 4px 12px;
    border-radius: var(--tz-radius-sm);
    font-size: 13px;
    color: var(--tz-text-secondary);
    background: #f5f5f5;
}
.category-list a:hover, .sort-bar a:hover { color: var(--tz-primary); background: #fff0f0; }
.category-list a.active, .sort-bar a.active { background: var(--tz-primary); color: #fff; }
.category-list a.active:hover, .sort-bar a.active:hover { color: #fff; }
.result-count {
    font-size: 13px;
    color: var(--tz-text-muted);
    font-weight: 400;
}

/* 商品详情页 */
.product-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    margin-bottom: 14px;
}
.product-category-list a {
    padding: 5px 14px;
    border-radius: var(--tz-radius-sm);
    font-size: 13px;
    color: var(--tz-text-secondary);
    background: #fff;
    border: 1px solid var(--tz-border);
}
.product-category-list a:hover,
.product-category-list a.active {
    background: var(--tz-primary);
    color: #fff;
    border-color: var(--tz-primary);
}
.product-detail { margin-bottom: 30px; }
.product-top {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    margin-bottom: 24px;
    box-shadow: var(--tz-shadow);
}
.product-gallery {
    background: #fafafa;
    border-radius: var(--tz-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
}
.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tz-transition);
}
.product-gallery:hover img { transform: scale(1.04); }
.product-gallery .no-img {
    color: var(--tz-text-muted);
    font-size: 15px;
}
.product-summary h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}
.product-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--tz-text-secondary);
    margin-bottom: 18px;
}
.product-price {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 18px 20px;
    border-radius: var(--tz-radius);
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    border: 1px solid rgba(196,30,58,0.1);
}
.product-price .price-label { font-size: 14px; color: var(--tz-text-secondary); }
.product-price .price-value {
    font-size: 34px;
    font-weight: 700;
    color: var(--tz-primary);
}
.product-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.product-guarantees span {
    font-size: 12px;
    color: var(--tz-text-secondary);
    padding: 5px 12px;
    background: var(--tz-bg);
    border-radius: var(--tz-radius-sm);
}
.product-qty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}
.product-qty label { font-size: 14px; color: var(--tz-text-secondary); }
.qty-stepper {
    display: flex;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius-sm);
    overflow: hidden;
}
.qty-stepper button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--tz-bg);
    cursor: pointer;
    font-size: 16px;
    transition: var(--tz-transition);
}
.qty-stepper button:hover { background: var(--tz-border-light); }
.qty-stepper input {
    width: 56px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--tz-border);
    border-right: 1px solid var(--tz-border);
    outline: none;
    font-weight: 600;
}
.product-actions { display: flex; gap: 14px; }
.product-actions .btn { padding: 14px 36px; font-size: 16px; }

.product-section {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--tz-shadow);
}
.product-section .section-title { margin-top: 0; margin-bottom: 20px; }
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.spec-table th, .spec-table td {
    padding: 12px 16px;
    border: 1px solid var(--tz-border);
    text-align: left;
}
.spec-table th {
    width: 160px;
    background: #f8f8f8;
    color: var(--tz-text-secondary);
    font-weight: 500;
}
.product-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--tz-text-secondary);
}
.product-desc img { max-width: 100%; height: auto; margin: 10px 0; }
.empty-tip { color: var(--tz-text-muted); padding: 20px 0; }

.purchase-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}
.purchase-summary .purchase-count { color: var(--tz-primary); font-weight: 600; }
.purchase-summary .purchase-coupon { color: var(--tz-text-secondary); }

.review-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff8f0;
    border-radius: var(--tz-radius);
    margin-bottom: 20px;
}
.review-score { font-size: 36px; font-weight: 700; color: var(--tz-primary); }
.review-stars { color: #f59e0b; font-size: 18px; }
.review-count { font-size: 13px; color: var(--tz-text-muted); }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item {
    padding: 16px;
    border-bottom: 1px solid var(--tz-border-light);
}
.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-user { font-weight: 600; }
.review-rating { color: #f59e0b; }
.review-date { color: var(--tz-text-muted); font-size: 12px; margin-left: auto; }
.review-body { color: var(--tz-text-secondary); line-height: 1.6; }

.mobile-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--tz-border);
    padding: 10px 15px;
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
}

/* 商品详情页用底部购买条替代通用底部导航 */
.product-page .mobile-bottom-nav { display: none; }
.mobile-buy-bar .price-group { display: flex; flex-direction: column; }
.mobile-buy-bar .price-label { font-size: 12px; color: var(--tz-text-muted); }
.mobile-buy-bar .price { font-size: 22px; font-weight: 700; color: var(--tz-primary); }


/* 结算页 */
.checkout-page { padding-bottom: 80px; }
.checkout-section {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 20px;
    margin-bottom: 15px;
}
.checkout-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-left: 10px;
    border-left: 3px solid var(--tz-primary);
}
.checkout-address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.address-card {
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color 0.2s;
}
.address-card:hover { border-color: var(--tz-primary); }
.address-card input { margin-top: 3px; }
.address-card.selected { border-color: var(--tz-primary); background: #fff5f5; }
.address-info { flex: 1; }
.address-info .name { font-weight: 600; margin-bottom: 4px; }
.address-info .detail { font-size: 13px; color: var(--tz-text-secondary); }
.address-card .tag {
    font-size: 12px;
    color: var(--tz-primary);
    border: 1px solid var(--tz-primary);
    padding: 2px 6px;
    border-radius: var(--tz-radius-sm);
    margin-left: auto;
}
.add-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px dashed var(--tz-primary);
    color: var(--tz-primary);
    border-radius: var(--tz-radius);
    margin-top: 10px;
    cursor: pointer;
    background: #fff;
}

.checkout-items table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.checkout-items th, .checkout-items td {
    padding: 12px;
    border-bottom: 1px solid var(--tz-border-light);
    text-align: left;
}
.checkout-items th { background: #f8f8f8; color: var(--tz-text-secondary); font-weight: 500; }
.checkout-items .item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--tz-radius-sm);
    border: 1px solid var(--tz-border);
}
.checkout-items .item-info { display: flex; align-items: center; gap: 12px; }
.checkout-items .item-name { font-weight: 500; }
.checkout-items .item-sub { font-size: 12px; color: var(--tz-text-muted); }
.checkout-items .price { color: var(--tz-primary); font-weight: 600; }

.checkout-remark textarea {
    width: 100%;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 10px;
    min-height: 80px;
    outline: none;
    resize: vertical;
}
.checkout-remark textarea:focus { border-color: var(--tz-primary); }

.checkout-summary {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 20px;
    position: sticky;
    top: 20px;
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--tz-border-light);
    font-size: 14px;
}
.checkout-summary-row.total {
    border-bottom: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--tz-primary);
}
.checkout-summary-row.total .amount { font-size: 24px; }
.checkout-submit {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    font-size: 16px;
}
.checkout-coupon {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.checkout-coupon input {
    flex: 1;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 9px 12px;
    outline: none;
}
.checkout-coupon button {
    background: var(--tz-secondary);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--tz-radius);
    cursor: pointer;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* 表单通用 */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--tz-transition);
    background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--tz-primary);
    box-shadow: 0 0 0 3px var(--tz-primary-soft);
}
.form-group .hint { font-size: 12px; color: var(--tz-text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* 内页通用 */
.container { padding-top: 20px; padding-bottom: 40px; }
.site-header .container,
.site-footer .container,
.page-hero .container { padding-top: 0; padding-bottom: 0; }

/* 页面主内容区与页脚之间保持统一的底部留白 */
.site-footer { margin-top: 0; }

.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}
.page-sidebar { position: sticky; top: 20px; }
.sidebar-card {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 22px;
    box-shadow: var(--tz-shadow);
}
.sidebar-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tz-border-light);
}
.sidebar-card p {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    font-size: 13px;
}
.sidebar-card p strong { color: var(--tz-text); font-weight: 600; }
.sidebar-card p span { color: var(--tz-text-secondary); }
.sidebar-card a {
    display: block;
    padding: 8px 0;
    color: var(--tz-text-secondary);
    border-bottom: 1px solid var(--tz-border-light);
    font-size: 14px;
}
.sidebar-card a:last-child { border-bottom: none; }
.sidebar-card a:hover { color: var(--tz-primary); padding-left: 4px; }
.page-main { min-width: 0; }
.page-section {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 32px;
    box-shadow: var(--tz-shadow);
}
.page-section h1, .page-section h2 {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tz-border-light);
}
.page-section h1 { font-size: 26px; }
.page-section h2 { font-size: 20px; margin-top: 32px; }
.page-section p { margin-bottom: 14px; line-height: 1.8; color: var(--tz-text-secondary); }
.page-section ul { margin: 14px 0 14px 20px; list-style: disc; }
.page-section li { margin-bottom: 10px; color: var(--tz-text-secondary); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--tz-bg);
    border-radius: var(--tz-radius);
    border: 1px solid var(--tz-border-light);
}
.feature-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--tz-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    flex-shrink: 0;
}
.feature-text { display: flex; flex-direction: column; gap: 4px; }
.feature-text strong { color: var(--tz-text); font-size: 14px; }
.feature-text span { color: var(--tz-text-secondary); font-size: 13px; line-height: 1.5; }

/* 登录注册 */
.auth-card {
    max-width: 440px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 40px;
    box-shadow: var(--tz-shadow-lg);
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 24px;
    color: var(--tz-text);
}
.auth-card .btn { width: 100%; margin-top: 14px; }
.auth-card p {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--tz-text-secondary);
}
.auth-card p a { color: var(--tz-primary); font-weight: 600; }
.auth-card p a:hover { text-decoration: underline; }
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
}

/* 会员中心 */
.member-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-top: 20px;
}
.member-sidebar {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    overflow: hidden;
    box-shadow: var(--tz-shadow);
}
.member-sidebar .profile {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--tz-primary) 0%, var(--tz-primary-dark) 100%);
    color: #fff;
}
.member-sidebar .avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}
.member-sidebar .username { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.member-sidebar .email { font-size: 12px; opacity: 0.85; }
.member-sidebar a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--tz-border-light);
    font-size: 14px;
    color: var(--tz-text-secondary);
    transition: var(--tz-transition);
}
.member-sidebar a:last-child { border-bottom: none; }
.member-sidebar a.active,
.member-sidebar a:hover {
    background: var(--tz-primary-soft);
    color: var(--tz-primary);
    padding-left: 24px;
}
.member-main {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 28px;
    min-height: 400px;
    box-shadow: var(--tz-shadow);
}
.page-header {
    margin-bottom: 20px;
}
.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tz-text);
}
.member-card {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--tz-shadow);
}
.member-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tz-border-light);
}
.member-card p { margin-bottom: 12px; color: var(--tz-text-secondary); }
.member-card p strong { color: var(--tz-text); font-weight: 600; }

/* 会员中心统计卡片 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--tz-transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.stat-card .icon {
    font-size: 26px;
    margin-bottom: 10px;
    line-height: 1;
}
.stat-card .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--tz-title);
    margin-bottom: 6px;
    line-height: 1;
}
.stat-card.primary .value { color: var(--tz-primary); }
.stat-card.accent .value { color: var(--tz-accent); }
.stat-card.success .value { color: #28a745; }
.stat-card .label {
    font-size: 13px;
    color: var(--tz-text-secondary);
}
.member-main h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tz-border-light);
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.order-table th, .order-table td {
    padding: 12px;
    border-bottom: 1px solid var(--tz-border-light);
    text-align: left;
}
.order-table th { background: #f8f8f8; color: var(--tz-text-secondary); font-weight: 500; }
.order-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--tz-radius-sm);
    font-size: 12px;
}
.order-status-paid { background: #f0fdf4; color: #166534; }
.order-status-pending { background: #fff7ed; color: #9a3412; }
.order-status-cancel { background: #f3f4f6; color: #6b7280; }

/* 响应式 */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .home-brand-section { grid-template-columns: 140px 1fr 140px; }
    .brand-grid { grid-template-columns: repeat(4, 1fr); }
    .floor-goods { grid-template-columns: 1fr; }
    .floor-right { grid-template-columns: repeat(3, 1fr) !important; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}

@media (max-width: 768px) {
    body { padding-bottom: 70px; padding-top: 110px; }
    .topbar { display: none; }
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .mobile-search {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 999;
    }
    .site-header > .container {
        height: 60px;
        gap: 10px;
    }
    .site-header .logo img { height: 42px; max-width: 160px; }
    .search-box { display: none; }
    .topbar-cart { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-search { display: flex; }
    .main-nav-bar { display: none; }
    .mobile-bottom-nav { display: flex; }

    .home-banner-section > .container { flex-direction: column; }
    .banner-sidebar { display: none; }
    .banner-slider { width: 100%; }
    .banner-slides { aspect-ratio: 16 / 6; }
    .banner-prev { left: 10px; }
    .banner-next { right: 10px; }

    .home-brand-section { grid-template-columns: 1fr; margin: 15px 0; }
    .brand-ad { min-height: 100px; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .floor-right { grid-template-columns: repeat(2, 1fr) !important; }
    .new-product-item { flex: 0 0 120px; }

    .product-top { grid-template-columns: 1fr; }
    .product-gallery { max-width: 340px; margin: 0 auto; }
    .product-actions { flex-direction: column; }
    .mobile-buy-bar { display: flex; }
    .product-actions .add-cart { display: none; }

    .category-filter-row { flex-direction: column; }
    .filter-label { width: auto; }

    .member-layout { grid-template-columns: 1fr; }
    .member-sidebar { display: flex; overflow-x: auto; }
    .member-sidebar a { white-space: nowrap; border-bottom: none; border-right: 1px solid var(--tz-border-light); }

    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { margin-bottom: 12px; border: 1px solid var(--tz-border); border-radius: var(--tz-radius); overflow: hidden; }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--tz-border-light); }
    .cart-table td::before { content: attr(data-label); font-weight: 600; color: var(--tz-text); }
    .cart-summary { flex-direction: column; align-items: stretch; gap: 12px; }

    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }

    .page-layout { grid-template-columns: 1fr; }
    .page-sidebar { position: static; }
    .feature-grid { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px 15px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .back-to-top { bottom: 90px; right: 15px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .floor-right { grid-template-columns: repeat(2, 1fr) !important; }
    .auth-card { padding: 25px 20px; margin: 20px auto; }
    .page-section { padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
}
