/* ============================================
   欧陆家清 - 清洁剂POD商城 高级商务风格
   主色：深墨绿 #0d3b2e | 金色 #c9a961 | 米色 #f8f6f1
   ============================================ */

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #2c2c2c;
    background: #f8f6f1;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   顶部导航
   ============================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(13, 59, 46, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: linear-gradient(90deg, #0d3b2e 0%, #1a5c45 100%);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 12px;
    letter-spacing: 0.5px;
}

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

.header-main {
    padding: 18px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #0d3b2e;
    letter-spacing: 1px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a961;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(13, 59, 46, 0.2);
}

.search-box {
    flex: 1;
    max-width: 520px;
    margin: 0 40px;
    display: flex;
}

.search-box input {
    flex: 1;
    height: 44px;
    padding: 0 18px;
    border: 2px solid #e8e4db;
    border-right: none;
    border-radius: 22px 0 0 22px;
    font-size: 14px;
    outline: none;
    background: #faf8f3;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: #0d3b2e;
    background: #fff;
}

.search-box button {
    width: 90px;
    height: 44px;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: #c9a961;
    border: none;
    border-radius: 0 22px 22px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.search-box button:hover {
    box-shadow: 0 4px 12px rgba(13, 59, 46, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f8f6f1;
    border: 1px solid #e8e4db;
    border-radius: 22px;
    cursor: pointer;
    font-size: 13px;
    color: #0d3b2e;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    background: #0d3b2e;
    color: #c9a961;
    border-color: #0d3b2e;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #c9a961;
    color: #0d3b2e;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(201, 169, 97, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu a {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #0d3b2e;
    transition: all 0.2s ease;
}

.user-menu a:hover {
    background: #0d3b2e;
    color: #c9a961;
}

/* 导航菜单 */
.nav {
    background: #fff;
    border-top: 1px solid #f0ede5;
}

.nav .container {
    display: flex;
    gap: 8px;
}

.nav a {
    padding: 14px 20px;
    font-size: 15px;
    color: #555;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav a:hover, .nav a.active {
    color: #0d3b2e;
    border-bottom-color: #c9a961;
    background: #faf8f3;
}

/* 主内容区 */
.main {
    padding: 28px 0;
    min-height: calc(100vh - 320px);
}

/* ============================================
   Banner轮播
   ============================================ */
.banner {
    height: 360px;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 40%, #2a7a5e 100%);
    border-radius: 16px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13, 59, 46, 0.2);
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-content {
    text-align: center;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.banner h1 {
    font-size: 44px;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.banner h1 span {
    color: #c9a961;
}

.banner p {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.banner-btn {
    display: inline-block;
    padding: 14px 48px;
    background: linear-gradient(135deg, #c9a961 0%, #dbb977 100%);
    color: #0d3b2e;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.5);
}

/* ============================================
   区块标题
   ============================================ */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: 24px;
    color: #0d3b2e;
    position: relative;
    padding-left: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, #c9a961 0%, #0d3b2e 100%);
    border-radius: 3px;
}

.section-title a {
    color: #888;
    font-size: 14px;
    transition: color 0.2s ease;
}

.section-title a:hover {
    color: #c9a961;
}

/* ============================================
   商品网格
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 59, 46, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0ede5;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(13, 59, 46, 0.15);
    border-color: #c9a961;
}

.product-image {
    width: 100%;
    height: 280px;
    background: #faf8f3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #c9a961 0%, #dbb977 100%);
    color: #0d3b2e;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

.custom-badge {
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: #c9a961;
}

.product-info {
    padding: 18px;
}

.product-name {
    font-size: 15px;
    color: #2c2c2c;
    margin-bottom: 10px;
    line-height: 1.5;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 22px;
    color: #0d3b2e;
    font-weight: 700;
}

.price-current::before {
    content: '¥';
    font-size: 14px;
    margin-right: 2px;
}

.price-original {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #f5f2ea;
}

.add-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: #c9a961;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.add-cart-btn:hover {
    background: linear-gradient(135deg, #c9a961 0%, #dbb977 100%);
    color: #0d3b2e;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

/* ============================================
   商品详情页
   ============================================ */
.product-detail {
    display: flex;
    gap: 36px;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(13, 59, 46, 0.06);
    border: 1px solid #f0ede5;
}

.product-gallery {
    width: 460px;
    flex-shrink: 0;
}

.product-main-image {
    width: 100%;
    height: 460px;
    background: #faf8f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

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

.product-thumbs {
    display: flex;
    gap: 12px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    background: #faf8f3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.product-thumb:hover, .product-thumb.active {
    border-color: #c9a961;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-info {
    flex: 1;
}

.product-detail-name {
    font-size: 26px;
    color: #0d3b2e;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.product-detail-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
    padding: 16px;
    background: #faf8f3;
    border-radius: 10px;
    border-left: 4px solid #c9a961;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f2ea 100%);
    border-radius: 12px;
}

.detail-price-current {
    font-size: 36px;
    color: #0d3b2e;
    font-weight: 700;
}

.detail-price-current::before {
    content: '¥';
    font-size: 20px;
    margin-right: 4px;
}

.detail-price-original {
    font-size: 16px;
    color: #bbb;
    text-decoration: line-through;
}

.product-spec {
    margin-bottom: 24px;
}

.spec-label {
    font-size: 15px;
    color: #0d3b2e;
    font-weight: 600;
    margin-bottom: 12px;
}

.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.spec-option {
    padding: 10px 24px;
    border: 2px solid #e8e4db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
    background: #fff;
}

.spec-option:hover {
    border-color: #c9a961;
    color: #0d3b2e;
}

.spec-option.active {
    border-color: #0d3b2e;
    background: #0d3b2e;
    color: #c9a961;
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e8e4db;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: #0d3b2e;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: #0d3b2e;
    background: #0d3b2e;
    color: #c9a961;
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #e8e4db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0d3b2e;
    outline: none;
    transition: border-color 0.2s ease;
}

.quantity-input:focus {
    border-color: #c9a961;
}

.product-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    padding: 14px 40px;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: #c9a961;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(13, 59, 46, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 59, 46, 0.3);
}

.btn-secondary {
    padding: 14px 40px;
    background: #fff;
    color: #0d3b2e;
    border: 2px solid #0d3b2e;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #0d3b2e;
    color: #c9a961;
}

/* ============================================
   购物车页面
   ============================================ */
.cart-page {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(13, 59, 46, 0.06);
    border: 1px solid #f0ede5;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: #c9a961;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #f5f2ea;
    align-items: center;
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: #faf8f3;
}

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

.cart-item-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #faf8f3;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 15px;
    color: #2c2c2c;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.cart-item-spec {
    font-size: 12px;
    color: #999;
}

.cart-item-price {
    font-size: 18px;
    color: #0d3b2e;
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-subtotal {
    font-size: 18px;
    color: #0d3b2e;
    font-weight: 700;
}

.cart-item-remove {
    color: #ccc;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s ease;
    text-align: center;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 16px;
    border-top: 2px solid #f0ede5;
}

.cart-total {
    text-align: right;
}

.cart-total-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.cart-total-amount {
    font-size: 32px;
    color: #0d3b2e;
    font-weight: 700;
}

.cart-total-amount::before {
    content: '¥';
    font-size: 18px;
    margin-right: 4px;
}

/* ============================================
   结算页面
   ============================================ */
.checkout-page {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.checkout-main {
    flex: 1;
}

.checkout-section {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(13, 59, 46, 0.06);
    border: 1px solid #f0ede5;
}

.checkout-section-title {
    font-size: 18px;
    color: #0d3b2e;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f2ea;
    letter-spacing: 0.5px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 2px solid #e8e4db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: #faf8f3;
}

.form-input:focus {
    border-color: #c9a961;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e4db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: #faf8f3;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: #c9a961;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

.pay-methods {
    display: flex;
    gap: 16px;
}

.pay-method {
    flex: 1;
    padding: 20px;
    border: 2px solid #e8e4db;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #faf8f3;
}

.pay-method:hover {
    border-color: #c9a961;
}

.pay-method.active {
    border-color: #0d3b2e;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: #c9a961;
}

.pay-method-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.pay-method-name {
    font-size: 14px;
    font-weight: 600;
}

.checkout-sidebar {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

.order-summary {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(13, 59, 46, 0.06);
    border: 1px solid #f0ede5;
}

.order-summary-title {
    font-size: 18px;
    color: #0d3b2e;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f2ea;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid #f0ede5;
}

.order-summary-total span {
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.order-summary-total .amount {
    font-size: 28px;
    color: #0d3b2e;
    font-weight: 700;
}

.order-summary-total .amount::before {
    content: '¥';
    font-size: 16px;
    margin-right: 2px;
}

/* ============================================
   订单详情页
   ============================================ */
.status-pending { color: #f39c12; }
.status-shipping { color: #3498db; }
.status-completed { color: #27ae60; }
.status-cancelled { color: #999; }

/* ============================================
   登录注册页面
   ============================================ */
.auth-page {
    max-width: 440px;
    margin: 60px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(13, 59, 46, 0.1);
    border: 1px solid #f0ede5;
}

.auth-title {
    text-align: center;
    font-size: 26px;
    color: #0d3b2e;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.auth-subtitle {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 32px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: #c9a961;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 59, 46, 0.3);
}

.auth-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #888;
}

.auth-link a {
    color: #c9a961;
    font-weight: 600;
}

/* ============================================
   用户中心
   ============================================ */
.user-page {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.user-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(13, 59, 46, 0.06);
    border: 1px solid #f0ede5;
}

.user-info-card {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f2ea;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: #c9a961;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.user-name {
    font-size: 16px;
    color: #0d3b2e;
    font-weight: 600;
}

.user-menu-list {
    list-style: none;
}

.user-menu-list li {
    margin-bottom: 4px;
}

.user-menu-list a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-menu-list a:hover, .user-menu-list a.active {
    background: #faf8f3;
    color: #0d3b2e;
    font-weight: 600;
}

.user-content {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(13, 59, 46, 0.06);
    border: 1px solid #f0ede5;
}

/* ============================================
   商品列表页
   ============================================ */
.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(13, 59, 46, 0.06);
    border: 1px solid #f0ede5;
}

.category-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.category-item {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #e8e4db;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
    font-weight: 500;
}

.category-item:hover {
    border-color: #c9a961;
    color: #0d3b2e;
}

.category-item.active {
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    border-color: #0d3b2e;
    color: #c9a961;
    font-weight: 600;
}

/* ============================================
   分页
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border: 2px solid #e8e4db;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
    background: #fff;
}

.pagination a:hover {
    border-color: #c9a961;
    color: #0d3b2e;
}

.pagination .active {
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    border-color: #0d3b2e;
    color: #c9a961;
    font-weight: 600;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5c45 100%);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand h3 {
    color: #c9a961;
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: #c9a961;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #c9a961;
}

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

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-detail {
        flex-direction: column;
    }
    .product-gallery {
        width: 100%;
    }
    .checkout-page {
        flex-direction: column;
    }
    .checkout-sidebar {
        width: 100%;
        position: static;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-main .container {
        flex-wrap: wrap;
    }
    .search-box {
        order: 3;
        max-width: 100%;
        margin: 16px 0 0;
        width: 100%;
    }
    .banner h1 {
        font-size: 32px;
    }
    .cart-header, .cart-item {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 0.5fr;
        font-size: 12px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   2026-10-28 全屏自适应（宽屏铺满，不再留大白边）
   覆盖文件前半部分写死的 1240px 容器与固定列宽
   ============================================ */
.container {
    max-width: 1680px;
    width: 100%;
    padding-left: clamp(16px, 2.2vw, 44px);
    padding-right: clamp(16px, 2.2vw, 44px);
}

/* 导航：宽屏一排放满，窄屏横向滚动，不折行 */
.nav .container {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: clamp(2px, .5vw, 10px);
}
.nav .container::-webkit-scrollbar { display: none; }
.nav a {
    white-space: nowrap;
    padding: 14px clamp(10px, 1.1vw, 20px);
    font-size: clamp(13px, .95vw, 15px);
}

/* 首屏 banner：随屏宽长高，标题不再被挤成单字换行 */
.banner {
    height: auto;
    min-height: clamp(280px, 30vw, 420px);
    padding: clamp(34px, 4.4vw, 76px) clamp(20px, 4vw, 64px);
}
.banner-content { max-width: min(1080px, 94%); }
.banner h1 {
    font-size: clamp(24px, 2.9vw, 46px);
    line-height: 1.28;
    text-wrap: balance;
    letter-spacing: .5px;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}
.banner p {
    font-size: clamp(13px, 1.05vw, 17px);
    line-height: 1.8;
    margin-top: 14px;
}
.banner-btn { font-size: clamp(13px, 1vw, 16px); padding: 12px clamp(26px, 2.4vw, 40px); }

/* 商品网格：按可用宽度自动换列数（宽屏 6~7 列，窄屏自动降） */
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(14px, 1.4vw, 26px);
}

.section-title h2 { font-size: clamp(17px, 1.5vw, 22px); }

/* 表格类页面：宽屏不挤成一坨 */
table { table-layout: auto; }

@media (max-width: 900px) {
    .banner { min-height: 220px; border-radius: 12px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* 首页「热门商品」固定一排（6 款），不再出现孤零零的第二行 */
.product-grid.home-hot { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1240px) { .product-grid.home-hot { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .product-grid.home-hot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================
   2026-10-28 移动端适配（手机/平板）
   断点：900 / 760 / 520
   ============================================ */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

@media (max-width: 900px) {
    .main { padding: 16px 0 24px; }
    .container { padding-left: 14px; padding-right: 14px; }

    /* 顶部信息条压缩 */
    .header-top { font-size: 11px; padding: 6px 0; }
    .header-top .container { gap: 8px; }

    /* 头部：logo / 搜索 / 操作分两行 */
    .header-main .container { flex-wrap: wrap; row-gap: 10px; padding-top: 10px; padding-bottom: 10px; }
    .logo { font-size: 18px; }
    .logo-icon { width: 34px; height: 34px; font-size: 17px; }
    .search-box { order: 3; flex: 1 1 100%; width: 100%; max-width: 100%; margin: 0; }
    .search-box input { font-size: 16px; } /* 防 iOS 自动放大 */
    .header-actions { margin-left: auto; gap: 10px; }

    /* 导航：手指横滑 */
    .nav .container { gap: 0; -webkit-overflow-scrolling: touch; }
    .nav a { padding: 12px 12px; font-size: 13.5px; }
    .nav a:last-child { margin-left: 0 !important; }

    /* 表格：整表横滑，不挤压内容 */
    .main table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .main table th, .main table td { white-space: nowrap; }

    /* 表单控件统一 16px，避免 iOS 聚焦缩放 */
    input[type=text], input[type=password], input[type=number], input[type=email],
    input[type=tel], input[type=search], select, textarea { font-size: 16px !important; }

    /* 按钮更好点 */
    .btn, .btn-primary, .add-cart-btn, .banner-btn { min-height: 42px; }

    /* 生成进度悬浮球：别挡住底部执行栏 */
    .ap-fab { right: 12px; bottom: 88px; }
    .ap-drawer { width: 100vw; }
}

@media (max-width: 760px) {
    .header-top .container > span:first-child { display: none; }
    .header-top .container { justify-content: center; }

    /* 商品卡：两列 */
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
    .product-grid.home-hot { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .product-card .product-image { height: 160px !important; }
    .product-name { font-size: 13px !important; line-height: 1.4; }
    .price-current { font-size: 16px !important; }

    /* 购物车：优惠信息横排 → 卡片式 */
    .cart-header { display: none !important; }
    .cart-item { grid-template-columns: 1fr auto !important; row-gap: 8px !important; padding: 12px !important; }
    .cart-item-info { grid-column: 1 / -1; }
    .cart-item-subtotal { text-align: right; font-weight: 600; }

    /* 结算页两栏 → 单栏 */
    .checkout-page { flex-direction: column !important; }
    .checkout-sidebar { width: 100% !important; position: static !important; }

    /* ===== 选品工作台 ===== */
    .wb-head { padding: 12px 14px; }
    .wb-title { font-size: 16px; }
    .wb-brand { margin-left: 0; width: 100%; flex-wrap: wrap; }
    .wb-brand input, .wb-brand select { width: 100%; max-width: 100% !important; flex: 1 1 100%; }
    .wb-shell { grid-template-columns: 1fr !important; }
    /* 左侧分类：变成横向滑动的小标签 */
    .wb-side {
        display: flex !important; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding: 8px !important; position: static !important; border-radius: 10px;
    }
    .wb-side > * { flex: 0 0 auto; }
    .wb-side a { white-space: nowrap; padding: 8px 12px !important; background: #f5f7fa; }
    .wb-bar { padding: 10px 12px; }
    .wb-bar input[type=text] { min-width: 0; flex: 1 1 100%; }
    .wb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px; }
    .wb-thumb { height: 132px; }
    .wb-name { font-size: 12.5px; height: 36px; }
    .wb-meta { padding: 8px 9px 10px; }
    /* 底部执行栏：整条竖排，按钮满宽 */
    .wb-dock { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
    .wb-dock > div:first-child { display: flex; align-items: baseline; gap: 8px; }
    .wb-dock > div:last-child { margin-left: 0 !important; flex-wrap: wrap; }
    .wb-dock .btn-go { width: 100%; padding: 13px 0; }
    .wb-dock .btn-clear { flex: 0 0 auto; }
    .wb-jobs { padding: 12px 14px; }

    /* ===== 我的店铺 ===== */
    .shop-head { padding: 14px; gap: 10px; }
    .shop-head h2 { font-size: 16px; }
    .shop-head > div:last-child { margin-left: 0 !important; width: 100%; }
    .guide-btn { width: 100%; justify-content: center; }
    .shop-sec { padding: 14px; }
    .shop-sec > div:first-child { flex-direction: column; align-items: stretch !important; }
    .shop-sec .shop-btn { width: 100%; }
    .shop-card { flex-direction: column; align-items: stretch; }
    .shop-card .acts { margin-left: 0; }
    .shop-card .acts a { text-align: center; }
    .shop-form .row { grid-template-columns: 1fr !important; }
    .guide-box { max-height: 92vh; border-radius: 10px; }
    .guide-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .guide-tabs a { white-space: nowrap; }
    .guide-body { padding: 14px 16px 20px; font-size: 13px; }
    .guide-body table { display: block; overflow-x: auto; white-space: nowrap; }
    .guide-body th, .guide-body td { white-space: normal; }
}

@media (max-width: 520px) {
    .ai-poster { padding: 24px 18px; border-radius: 12px; }
    .ai-poster h2 { font-size: 19px; }
    .ai-poster p { font-size: 13px; }
    .ai-list li { font-size: 12.5px; }
    .ai-cta .ai-btn { width: 100%; text-align: center; }
    .ai-poster-visual { height: 170px; }
    .ai-card { width: 150px; padding: 12px 14px; }
    .ai-card b { font-size: 13px; }

    .banner { border-radius: 10px; padding: 24px 16px; }
    .banner h1 { font-size: 20px; }
    .banner p { font-size: 12.5px; }

    .product-grid, .product-grid.home-hot { gap: 8px; }
    .product-card .product-image { height: 140px !important; }
    .add-cart-btn { font-size: 12px !important; padding: 8px 4px !important; }

    .wb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .wb-thumb { height: 112px; }

    .ap-fab { padding: 9px 13px; }
    .ap-fab b { font-size: 12px; }
}

/* 店铺多选器：手机端占满一行 */
@media (max-width: 760px) {
    .wb-picker { width: 100%; }
    .wb-pickbtn { width: 100%; max-width: 100%; justify-content: space-between; }
    .wb-menu { left: 0; right: 0; width: 100%; min-width: 0; }
}
