/* ============================================
   哆喜净 - 清洁剂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;
    display: flex;
    align-items: center;
}

.nav .container {
    display: flex;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

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

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

.nav-magic {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #c9a961 !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #0d3b2e, #1a5c45);
    border: none !important;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-magic:hover {
    color: #fff !important;
    background: #0d3b2e;
}

/* 手机端导航横向滚动 */
.nav-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar {
    display: none;
}

/* 主内容区 */
.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;
    }
    /* 手机端导航紧凑化 */
    .nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
    .nav-magic {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav a {
        padding: 9px 10px;
        font-size: 12px;
    }
    .header-top {
        display: none;
    }
}
