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

:root {
    --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-brand: 0 5px 15px rgba(102, 126, 234, 0.4);
    --shadow-brand-soft: 0 4px 15px rgba(102, 126, 234, 0.3);
    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-pill: 25px;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

.header {
    text-align: center;
    padding: 30px 0;
    background: var(--brand-gradient);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.banner-section {
    margin-bottom: 40px;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-text {
    text-align: center;
    padding: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.banner-btn:hover {
    background-color: white;
}

.banner-btn.prev {
    left: 20px;
}

.banner-btn.next {
    right: 20px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.product-section {
    margin-bottom: 50px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: center;
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-card.sold-out {
    opacity: 0.6;
    filter: grayscale(100%);
}

.product-card.sold-out:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.product-image {
    width: 100%;
    height: 200px;
    max-width: 100%;
    background: var(--brand-gradient);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-slider {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    background: var(--brand-gradient);
}

.product-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-slide.active {
    opacity: 1;
    z-index: 1;
}

.product-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.empty-state {
    text-align: center;
    color: #999;
}

.payment-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #07c160;
    border-bottom: 2px solid #07c160;
}

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
}

.paypal-info {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.exchange-rate-tip {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

#paypal-button-container {
    margin-top: 20px;
    min-height: 150px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.8;
}

.product-price {
    font-size: 1.8rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-price::before {
    content: '¥';
    font-size: 1.2rem;
}

.product-price-usd {
    font-size: 1rem;
    color: #555;
    margin-top: -12px;
    margin-bottom: 20px;
}

.buy-btn {
    background: var(--brand-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.buy-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.buy-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.notice-section {
    margin-bottom: 50px;
}

.platform-notice {
    background: var(--brand-gradient);
    color: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-brand-soft);
}

.platform-notice-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.platform-notice-content {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.notice-list {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.notice-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.notice-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.notice-content {
    color: #666;
    line-height: 1.8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.5rem;
}

.qrcode-container {
    margin-bottom: 30px;
}

.qrcode-container img {
    width: 250px;
    height: 250px;
    border: 2px solid #ddd;
    border-radius: 10px;
}

.payment-amount {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

.payment-amount::before {
    content: '¥';
}

.payment-tip {
    color: #666;
    font-size: 1rem;
}

.footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .banner-container {
        height: 250px;
    }

    .banner-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .product-list {
        grid-template-columns: repeat(2, 280px);
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 25px;
        margin: 20% auto;
    }

    .qrcode-container img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .banner-container {
        height: 200px;
    }

    .banner-item {
        font-size: 1.2rem;
    }

    .product-card {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .qrcode-container img {
        width: 180px;
        height: 180px;
    }
}
