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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #1f2937;
}

/* 公告弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.modal-close:hover { color: #3b82f6; }

.modal-title {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.modal-body {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* 图片大图弹窗样式 */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 3001;
    transition: color 0.3s;
}

.lightbox-close:hover { color: #3b82f6; }

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* 导航样式 */
.nav-container {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 16px 20px;
    gap: 12px;
}

.nav-btn {
    background: #f5f7fa;
    border: 2px solid #e5e7eb;
    color: #4b5563;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.nav-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.main-content { padding-top: 80px; }

/* 页面切换 */
.section {
    display: none;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.page-title p {
    color: #6b7280;
    font-size: 1rem;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 产品图片 */
.product-image {
    width: 100%;
    height: 200px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info { padding: 24px; }

.product-name {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-price {
    font-size: 1.1rem;
    color: #10b981;
    margin-bottom: 16px;
    font-weight: 700;
}

.product-details {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.9rem;
}

.product-details p { margin-bottom: 6px; }

/* 联系客服 */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.contact-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.contact-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: #1f2937;
}

.contact-subtitle {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e5e7eb;
    transform: translateX(6px);
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.contact-item-info { text-align: left; }

.contact-item-label {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.contact-item-value {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.contact-item-value a {
    color: #3b82f6;
    text-decoration: none;
}

.contact-item-value a:hover {
    text-decoration: underline;
}

.qr-placeholder {
    margin-top: 24px;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 12px;
}

.qr-placeholder p {
    color: #6b7280;
    margin-bottom: 12px;
}

.qr-image {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
}

/* 视频轮播样式 */
.video-carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-carousel {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 12px;
    background: #1f2937;
    z-index: 1;
}

.video-placeholder p {
    font-size: 1rem;
}

.video-placeholder .video-format {
    font-size: 0.85rem;
    color: #6b7280;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.7);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #f5f7fa;
    border-top: 1px solid #e5e7eb;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #2563eb;
    transform: scale(1.08);
}

.video-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.video-title {
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

.video-counter {
    font-size: 0.85rem;
    color: #6b7280;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #9ca3af;
}

.carousel-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

.carousel-progress {
    width: 100%;
    height: 3px;
    background: #e5e7eb;
}

.progress-bar {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    transition: width 0.1s linear;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav {
        padding: 12px 16px;
        gap: 8px;
    }

    .nav-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .page-title h1 { font-size: 1.5rem; }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card { margin: 0; }

    .product-name { font-size: 1.1rem; }
    .product-price { font-size: 1rem; }

    .contact-container { padding: 32px 24px; }

    .modal-content { padding: 30px 20px; }
    .modal-title { font-size: 1.25rem; }

    .video-carousel { margin: 0; border-radius: 12px; }
    .carousel-controls { padding: 12px 16px; }
    .carousel-btn { width: 40px; height: 40px; }
    .video-title { font-size: 0.95rem; }
    .video-play-btn { width: 56px; height: 56px; }
    .video-play-btn svg { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .nav { padding: 10px 12px; gap: 6px; }
    .nav-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .main-content { padding-top: 70px; }
    .section { padding: 20px 12px; }
    .page-title h1 { font-size: 1.25rem; }
    .page-title p { font-size: 0.85rem; }
    .product-info { padding: 16px; }
    .product-details { font-size: 0.85rem; }
    .contact-item { padding: 12px; }
    .contact-item-icon { width: 40px; height: 40px; margin-right: 12px; }
    .qr-image { width: 120px; height: 120px; }
    .video-carousel-container { padding: 10px; }
}
