/* ====================================
   极简白风格 - 全局样式
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.5;
}

/* 容器 - PC端最大宽度1200px */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================
   导航栏
   ==================================== */
.navbar {
    background-color: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eeeeee;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #111111;
    text-decoration: none;
}

.logo span {
    font-weight: 300;
    color: #888888;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #444444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #000000;
}

/* ====================================
   页面标题
   ==================================== */
.page-title {
    font-size: 28px;
    font-weight: 400;
    margin: 48px 0 40px 0;
    color: #111111;
    letter-spacing: -0.3px;
}

.page-title-small {
    font-size: 20px;
    font-weight: 500;
    margin: 32px 0 24px 0;
    color: #111111;
}

/* ====================================
   商品网格
   ==================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

/* 商品卡片 */
.product-card {
    background: #ffffff;
    overflow: hidden;
    transition: opacity 0.25s ease;
    position: relative;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    opacity: 0.9;
}

/* 商品图片容器 */
.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f8f8f8;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #111111;
}

.product-brief {
    font-size: 13px;
    color: #888888;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    color: #111111;
    margin-bottom: 16px;
}

/* 按钮样式 */
.btn-add-cart {
    width: 100%;
    padding: 12px;
    background-color: #111111;
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.5px;
    font-family: inherit;
    margin-top: 8px;
}

.btn-add-cart:hover {
    background-color: #333333;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: #111111;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background-color: #333333;
}

.btn-primary-full {
    width: 100%;
    padding: 16px;
    background-color: #111111;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary-full:hover {
    background-color: #333333;
}

/* 返回链接 */
.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #888888;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #111111;
}

/* ====================================
   悬浮购物车
   ==================================== */
.floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background-color: #111111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
    text-decoration: none;
}

.floating-cart:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cart-icon {
    font-size: 22px;
    color: white;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #111111;
    color: white;
    font-size: 11px;
    font-weight: 500;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid #ffffff;
}

/* ====================================
   购物车页面样式
   ==================================== */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
}

.cart-empty p {
    color: #888888;
    margin-bottom: 24px;
}

.cart-items {
    background: #ffffff;
}

.cart-item {
    display: flex;
    padding: 24px 0;
    border-bottom: 1px solid #eeeeee;
    gap: 20px;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: #f8f8f8;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 16px;
}

.cart-item-price {
    color: #888888;
    font-size: 14px;
    margin-bottom: 12px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dddddd;
    background: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background-color: #f5f5f5;
}

.cart-item-total {
    text-align: right;
    min-width: 100px;
}

.cart-item-total-price {
    font-weight: 500;
    margin-bottom: 8px;
}

.remove-item {
    color: #aaaaaa;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.cart-summary {
    background: #ffffff;
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid #eeeeee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
}

.summary-total {
    border-top: 1px solid #eeeeee;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 500;
}

/* ====================================
   结算页面样式
   ==================================== */
.form-card {
    background: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111111;
}

.order-summary {
    background: #fafafa;
    padding: 20px;
    margin: 32px 0;
}

.summary-title {
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 14px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666666;
}

/* ====================================
   付款页面样式
   ==================================== */
.payment-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.order-info-box {
    background: #fafafa;
    padding: 24px;
    margin-bottom: 32px;
}

.order-number {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 12px 0;
    color: #111111;
}

.amount-large {
    font-size: 36px;
    font-weight: 500;
    margin: 16px 0;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #f8f8f8;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eeeeee;
}

.qr-placeholder .big-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.address-box {
    background: #fafafa;
    padding: 14px;
    margin: 16px 0;
    word-break: break-all;
    font-family: 'Arial', 'Helvetica', monospace;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    letter-spacing: 0.3px;
    color: #2c3e4e;
}

.copy-btn {
    padding: 10px 20px;
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #dddddd;
    font-size: 13px;
    cursor: pointer;
    margin: 8px 0;
    transition: all 0.2s;
}

.copy-btn:hover {
    background-color: #f5f5f5;
    border-color: #111111;
}

.note-text {
    font-size: 12px;
    color: #888888;
    margin-top: 24px;
    line-height: 1.5;
}

.complete-message {
    text-align: center;
    padding: 60px 20px;
}

.complete-message .icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.complete-message h2 {
    font-weight: 500;
    margin-bottom: 16px;
}

.complete-message p {
    color: #888888;
    margin-bottom: 32px;
}

/* ====================================
   FAQ页面样式
   ==================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
    margin: 48px 0 80px 0;
}

.faq-item {
    border-bottom: none;
}

.faq-question {
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 18px;
    color: #111111;
}

.faq-answer {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* 年龄提示 */
.age-warning {
    text-align: center;
    margin-top: 80px;
    padding: 24px 0;
    font-size: 11px;
    color: #aaaaaa;
    border-top: 1px solid #eeeeee;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #111111;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* ====================================
   响应式设计
   ==================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 24px;
        margin: 32px 0 28px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        gap: 24px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-total {
        text-align: left;
        width: 100%;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
}