/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ff6b35;
    --accent-color: #4a90e2;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --success-color: #28a745;
    --warning-color: #ffc107;
}

body {
    font-family: serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 顶部公告栏 */
.top-announcement {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-announcement .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    transition: color 0.3s;
}

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

.announcement-text {
    display: flex;
    gap: 10px;
    align-items: center;
}

.separator {
    color: var(--secondary-color);
}

.promo-item {
    font-weight: 500;
}

/* 次级公告 */
.secondary-announcement {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.announcement-slider {
    position: relative;
    height: 24px;
}

.announcement-slider .slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.announcement-slider .slide.active {
    opacity: 1;
}

/* 主导航 */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    background: var(--bg-light);
}

.search-box input {
    border: none;
    padding: 10px 20px;
    background: transparent;
    outline: none;
    width: 250px;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-color);
}

.action-link,
.cart-link {
    color: var(--text-color);
    font-size: 20px;
    text-decoration: none;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.product-showcase {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-image-placeholder {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 60px;
    text-align: center;
    margin-bottom: 30px;
}

.product-image-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
}

.product-image-placeholder p {
    font-size: 18px;
    font-weight: 500;
}

.product-specs {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.spec-item {
    text-align: center;
}

.spec-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.spec-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 分类标签 */
.category-tabs {
    background: var(--white);
    padding: 40px 0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tab-button {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-color);
}

.tab-button.active,
.tab-button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 产品网格 */
.products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image i {
    font-size: 60px;
    color: var(--text-light);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-vendor {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.feature-tag {
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
}

.feature-tag strong {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--secondary-color);
}

.quick-view {
    background: var(--bg-light);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.quick-view:hover {
    background: var(--border-color);
}

/* 评价区域 */
.reviews-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
}

.review-rating {
    color: #ffd700;
    margin-bottom: 15px;
}

.review-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.review-text {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.review-author {
    font-weight: 600;
    color: var(--text-color);
}

.review-date {
    font-size: 14px;
    color: var(--text-light);
}

/* 特色区域 */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 80px;
    text-align: center;
    color: var(--white);
}

.image-placeholder.telephoto {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.image-placeholder.macro {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.image-placeholder.microscope {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.image-placeholder i {
    font-size: 100px;
}

/* 优势区域 */
.advantages-section {
    padding: 80px 0;
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 底部特色 */
.bottom-features {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0;
}

.bottom-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.bottom-feature i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.bottom-feature h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.bottom-feature p {
    color: rgba(255, 255, 255, 0.8);
}

/* 页脚 */
.main-footer {
    background: #0a0a0a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #ff5722;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie 通知 */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-accept,
.cookie-decline {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-accept {
    background: var(--success-color);
    color: var(--white);
}

.cookie-decline {
    background: var(--bg-light);
    color: var(--text-color);
}

.cookie-accept:hover {
    background: #218838;
}

.cookie-decline:hover {
    background: var(--border-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .feature-block {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-content h2 {
        font-size: 28px;
    }

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

    .announcement-text {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

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

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .top-announcement .container {
        flex-direction: column;
        gap: 10px;
    }

    .header-actions {
        gap: 10px;
    }

    .search-box {
        display: none;
    }

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

    .hero-section {
        padding: 40px 0;
    }

    .product-specs {
        flex-direction: column;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: var(--text-light);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

