* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        :root {
            --primary: #e02f2f;
            --primary-dark: #c32929;
            --jd-red: #e33333;
            --tmall-orange: #ff5000;
            --secondary: #ffd700;
            --dark: #333;
            --light: #f8f9fa;
            --gray: #6c757d;
            --border: #e0e0e0;
            --success: #28a745;
        }

        body {
            background-color: #f5f5f5;
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* 顶部导航 */
        .header {
            background: linear-gradient(to right, #1a1a1a, #333);
            color: white;
            padding: 0 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 20px;
            font-weight: 700;
            color: var(--secondary);
            min-width: 120px;
        }

        .logo i {
            margin-right: 8px;
            color: var(--primary);
            font-size: 18px;
        }

        .mobile-menu-btn {
            display: none;
            font-size: 24px;
            cursor: pointer;
            color: white;
        }

        .nav-links {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            justify-content: center;
        }

        .nav-links li {
            margin: 0 8px;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: color 0.3s;
            padding: 6px 10px;
            border-radius: 4px;
            white-space: nowrap;
        }

        .nav-links a:hover, .nav-links a.active {
            color: var(--secondary);
            background: rgba(255,255,255,0.1);
        }

        .user-actions {
            display: flex;
            align-items: center;
            min-width: 120px;
            justify-content: flex-end;
        }

        .search-box {
            position: relative;
            margin-right: 10px;
        }

        .search-box input {
            padding: 6px 12px 6px 30px;
            border: none;
            border-radius: 20px;
            width: 160px;
            outline: none;
            font-size: 14px;
        }

        .search-box i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
            font-size: 14px;
        }

        .cart-icon {
            position: relative;
            font-size: 18px;
            cursor: pointer;
            margin-right: 8px;
        }

        .cart-count {
            position: absolute;
            top: -6px;
            right: -8px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
        }

        .auth-buttons {
            display: flex;
            gap: 5px;
        }

        .btn {
            padding: 6px 10px;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 12px;
        }

        .btn-login {
            background: transparent;
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
        }

        .btn-login:hover {
            background: rgba(255,255,255,0.1);
        }

        .btn-register {
            background: var(--primary);
            color: white;
        }

        .btn-register:hover {
            background: var(--primary-dark);
        }

        .user-logged {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
            font-size: 14px;
        }

        /* 轮播图区域 - 移动端优化 */
        .banner {
            max-width: 100%;
            margin: 10px auto;
            padding: 0 10px;
            height: 180px;
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .banner-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease;
            background-size: cover;
            background-position: center;
        }

        .banner-slide.active {
            opacity: 1;
        }

        .banner-content {
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            color: white;
            max-width: 70%;
            z-index: 10;
        }

        .banner-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.7);
        }

        .banner-subtitle {
            font-size: 12px;
            margin-bottom: 12px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.7);
        }

        .banner-btn {
            background: var(--primary);
            color: white;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-decoration: none;
            display: inline-block;
            transition: background 0.3s;
        }

        .banner-btn:hover {
            background: var(--primary-dark);
        }

        .banner-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
        }

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

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

        .banner-dot.active {
            background: var(--primary);
        }

        /* 主内容区 */
        .main-content {
            max-width: 100%;
            margin: 15px auto;
            padding: 0 10px;
        }

        /* 平台切换标签 - 移动端优化 */
        .platform-tabs {
            display: flex;
            background: white;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            margin-bottom: 15px;
            overflow-x: auto;
            padding: 3px 10px;
            -webkit-overflow-scrolling: touch;
        }

        .platform-tabs::-webkit-scrollbar {
            display: none;
        }

        .platform-tab {
            padding: 10px 15px;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
            white-space: nowrap;
            font-size: 13px;
        }

        .platform-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        .jd-tab.active {
            color: var(--jd-red);
            border-bottom-color: var(--jd-red);
        }

        .tmall-tab.active {
            color: var(--tmall-orange);
            border-bottom-color: var(--tmall-orange);
        }

        .platform-tab i {
            margin-right: 5px;
            font-size: 12px;
        }

        /* 秒杀活动头部 - 移动端优化 */
        .seckill-header {
            background: white;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 12px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 15px;
            gap: 10px;
        }

        .seckill-title {
            display: flex;
            align-items: center;
            font-size: 16px;
            font-weight: bold;
            color: var(--primary);
            margin-right: 10px;
        }

        .seckill-title i {
            margin-right: 6px;
            font-size: 18px;
        }

        .countdown {
            display: flex;
            align-items: center;
            margin-right: 10px;
        }

        .countdown-label {
            margin-right: 8px;
            color: var(--gray);
            font-size: 12px;
        }

        .time-box {
            background: var(--dark);
            color: white;
            padding: 3px 6px;
            border-radius: 3px;
            font-weight: bold;
            min-width: 30px;
            text-align: center;
            margin: 0 3px;
            font-size: 12px;
        }

        .colon {
            font-weight: bold;
            margin: 0 3px;
            font-size: 12px;
        }

        .view-more {
            margin-left: auto;
            color: var(--primary);
            font-weight: 500;
            font-size: 12px;
            text-decoration: none;
            white-space: nowrap;
        }

        /* 商品网格 - 移动端优化 */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .product-card {
            background: white;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .product-tag {
            position: absolute;
            top: 6px;
            left: 6px;
            background: var(--primary);
            color: white;
            padding: 2px 6px;
            border-radius: 2px;
            font-size: 10px;
            font-weight: bold;
            z-index: 2;
        }

        .jd-tag {
            background: var(--jd-red);
        }

        .tmall-tag {
            background: var(--tmall-orange);
        }

        .product-image-container {
            position: relative;
            width: 100%;
            height: 140px;
            overflow: hidden;
        }

        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-bottom: 1px solid var(--border);
            transition: transform 0.5s;
        }

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

        .qrcode-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 3;
        }

        .product-image-container:hover .qrcode-overlay {
            opacity: 1;
        }

        .qrcode-overlay img {
            width: 145px;
            height: 145px;
            margin-bottom: 5px;
        }

        .qrcode-overlay p {
            color: white;
            font-size: 10px;
            font-weight: 500;
        }

        .favorite-btn {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 26px;
            height: 26px;
            background: rgba(255,255,255,0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 4;
            transition: background 0.3s;
        }

        .favorite-btn:hover {
            background: white;
        }

        .favorite-btn i {
            color: #ccc;
            font-size: 12px;
            transition: color 0.3s;
        }

        .favorite-btn.active i {
            color: var(--primary);
        }

        .product-info {
            padding: 10px;
        }

        .product-title {
            font-weight: 600;
            margin-bottom: 5px;
            height: 36px;
            overflow: hidden;
            font-size: 13px;
            line-height: 1.3;
        }

        .product-price {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }

        .current-price {
            color: var(--primary);
            font-size: 16px;
            font-weight: bold;
        }

        .jd-price {
            color: var(--jd-red);
        }

        .tmall-price {
            color: var(--tmall-orange);
        }

        .original-price {
            color: var(--gray);
            text-decoration: line-through;
            margin-left: 6px;
            font-size: 12px;
        }

        .sale-progress {
            margin-bottom: 10px;
        }

        .progress-bar {
            height: 4px;
            background: #e9ecef;
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 3px;
        }

        .progress-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 2px;
        }

        .jd-progress {
            background: var(--jd-red);
        }

        .tmall-progress {
            background: var(--tmall-orange);
        }

        .progress-text {
            display: flex;
            justify-content: space-between;
            font-size: 10px;
            color: var(--gray);
        }

        .sold-percent {
            color: var(--primary);
            font-weight: bold;
            font-size: 10px;
        }

        .jd-percent {
            color: var(--jd-red);
        }

        .tmall-percent {
            color: var(--tmall-orange);
        }

        .seckill-btn {
            display: block;
            width: 100%;
            padding: 6px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 3px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
            text-align: center;
            text-decoration: none;
            font-size: 12px;
        }

        .jd-btn {
            background: var(--jd-red);
        }

        .tmall-btn {
            background: var(--tmall-orange);
        }

        .seckill-btn:hover {
            background: var(--primary-dark);
        }

        .jd-btn:hover {
            background: #c62b2b;
        }

        .tmall-btn:hover {
            background: #e04400;
        }

        .seckill-btn.disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        /* 分页控件 - 移动端优化 */
        .pagination {
            display: flex;
            justify-content: center;
            margin: 20px 0;
            gap: 5px;
            flex-wrap: wrap;
        }

        .page-item {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            background: white;
            color: var(--dark);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            font-size: 12px;
        }

        .page-item:hover {
            background: #f0f0f0;
        }

        .page-item.active {
            background: var(--primary);
            color: white;
        }

        .page-item.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* 即将开始区域 - 移动端优化 */
        .upcoming-section {
            background: white;
            border-radius: 6px;
            padding: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }

        .section-header {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .section-title {
            font-size: 16px;
            font-weight: bold;
            color: var(--dark);
        }

        .upcoming-products {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .upcoming-product {
            display: flex;
            align-items: center;
            padding: 8px;
            border: 1px solid var(--border);
            border-radius: 4px;
            transition: all 0.3s;
        }

        .upcoming-product:hover {
            border-color: var(--primary);
        }

        .upcoming-image {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 3px;
            margin-right: 10px;
        }

        .upcoming-info {
            flex: 1;
        }

        .upcoming-name {
            font-weight: 500;
            margin-bottom: 3px;
            font-size: 12px;
            line-height: 1.3;
        }

        .upcoming-price {
            color: var(--primary);
            font-weight: bold;
            font-size: 14px;
        }

        .upcoming-time {
            background: #f8f9fa;
            padding: 3px 6px;
            border-radius: 3px;
            font-size: 11px;
            font-weight: 500;
            min-width: 60px;
            text-align: center;
        }

        /* 模态框 - 移动端优化 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            padding: 10px;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal {
            background: white;
            border-radius: 8px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            transform: translateY(-20px);
            transition: transform 0.3s;
        }

        .modal-overlay.active .modal {
            transform: translateY(0);
        }

        .modal-header {
            padding: 15px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 600;
        }

        .modal-close {
            font-size: 20px;
            cursor: pointer;
            color: var(--gray);
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: var(--dark);
        }

        .modal-body {
            padding: 15px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            font-size: 14px;
        }

        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
        }

        .btn-submit {
            width: 100%;
            padding: 10px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        .btn-submit:hover {
            background: var(--primary-dark);
        }

        .form-footer {
            text-align: center;
            margin-top: 15px;
            color: var(--gray);
            font-size: 14px;
        }

        .form-footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }

        /* 底部区域 - 移动端优化 */
        .footer {
            background: var(--dark);
            color: white;
            padding: 20px 15px 15px;
            margin-top: 30px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        .footer-column h3 {
            margin-bottom: 15px;
            font-size: 16px;
            position: relative;
            padding-bottom: 8px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 30px;
            height: 2px;
            background: var(--primary);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 8px;
        }

        .footer-links a {
            color: #aaa;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 13px;
        }

        .footer-links a:hover {
            color: var(--secondary);
        }

        .contact-info {
            color: #aaa;
            line-height: 1.6;
            font-size: 13px;
        }

        .contact-info p {
            margin-bottom: 5px;
        }

        .contact-info i {
            margin-right: 5px;
            width: 16px;
        }

        .social-links {
            display: flex;
            margin-top: 10px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            margin-right: 8px;
            color: white;
            transition: background 0.3s;
            font-size: 14px;
        }

        .social-links a:hover {
            background: var(--primary);
        }

        .copyright {
            text-align: center;
            padding-top: 15px;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: #777;
            font-size: 12px;
        }

        /* 移动菜单 */
        .mobile-menu {
            position: fixed;
            top: 60px;
            left: 0;
            width: 100%;
            height: calc(100vh - 60px);
            background: #333;
            z-index: 999;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            overflow-y: auto;
            padding: 15px;
        }

        .mobile-menu.active {
            transform: translateX(0);
        }

        .mobile-menu-links {
            list-style: none;
        }

        .mobile-menu-links li {
            margin-bottom: 15px;
        }

        .mobile-menu-links a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            display: block;
            padding: 10px;
            border-radius: 4px;
            background: rgba(255,255,255,0.1);
        }

        /* 响应式调整 */
        @media (min-width: 768px) {
            .header {
                padding: 0 20px;
            }

            .nav-container {
                height: 70px;
            }

            .logo {
                font-size: 24px;
            }

            .logo i {
                font-size: 22px;
            }

            .banner {
                height: 300px;
                margin: 20px auto;
                padding: 0 20px;
            }

            .banner-title {
                font-size: 32px;
            }

            .banner-subtitle {
                font-size: 16px;
            }

            .banner-btn {
                padding: 10px 25px;
                font-size: 16px;
            }

            .main-content {
                max-width: 1200px;
                margin: 30px auto;
                padding: 0 20px;
            }

            .products-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 20px;
            }

            .product-image-container {
                height: 200px;
            }

            .upcoming-products {
                grid-template-columns: repeat(4, 1fr);
                gap: 20px;
            }

            .footer-content {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 767px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .search-box input {
                width: 120px;
            }
        }

        @media (max-width: 480px) {
            .search-box {
                display: none;
            }

            .logo span {
                display: none;
            }

            .logo i {
                margin-right: 0;
                font-size: 24px;
            }

            .user-actions {
                min-width: auto;
            }

            .auth-buttons .btn {
                padding: 6px 8px;
                font-size: 11px;
            }

            .products-grid {
                grid-template-columns: 1fr;
            }

            .upcoming-products {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
            }
        }