/* 全局样式重置和变量定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #050505;
    --neon-cyan: #00F2FF;
    --cyber-purple: #7000FF;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --card-bg: rgba(10, 10, 15, 0.8);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 网格背景图案 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 背景中文字符装饰 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.chinese-char {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15rem;
    font-weight: 700;
    color: var(--neon-cyan);
    opacity: 0.02;
    user-select: none;
    animation: float-char 20s ease-in-out infinite;
}

.char-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.char-2 {
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.char-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 14s;
}

@keyframes float-char {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA Button */
.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.hero-cta-button:hover::before {
    left: 100%;
}

.hero-cta-button:hover {
    background: var(--neon-cyan);
    color: var(--primary-bg);
    box-shadow: 0 0 30px var(--neon-cyan), 0 0 60px rgba(0, 242, 255, 0.4);
    transform: translateY(-3px);
}

.hero-cta-button:active {
    transform: translateY(-1px);
}

.cta-icon {
    transition: transform var(--transition-medium);
}

.hero-cta-button:hover .cta-icon {
    transform: translateY(3px);
}

/* Hero Visual Effects */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orb-float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--neon-cyan);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--cyber-purple);
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--neon-cyan);
    bottom: 20%;
    left: 30%;
    animation-delay: 6s;
}

@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Products Section */
.products-section {
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    color: var(--primary-bg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.3);
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.product-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Cyber Score */
.cyber-score {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.price-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Product CTA */
.product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-medium);
    margin-top: auto;
}

.product-cta:hover {
    background: var(--neon-cyan);
    color: var(--primary-bg);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: translateY(-2px);
}

.cta-arrow {
    transition: transform var(--transition-medium);
}

.product-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 120px 20px;
    position: relative;
    z-index: 1;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.newsletter-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--neon-cyan);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    animation: border-pulse 3s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 242, 255, 0.5);
    }
}

.newsletter-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 16px;
    font-weight: 500;
}

.newsletter-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.email-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    color: var(--primary-bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

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

.submit-button:active {
    transform: translateY(0);
}

.submit-icon {
    transition: transform var(--transition-medium);
}

.submit-button:hover .submit-icon {
    transform: translateX(4px);
}

.form-notice {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Footer */
.footer {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 1;
    transition: opacity var(--transition-medium);
}

.sticky-newsletter-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--cyber-purple));
    color: var(--primary-bg);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.4);
    transition: all var(--transition-medium);
}

.sticky-newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 255, 0.5);
}

.sticky-icon {
    transition: transform var(--transition-medium);
}

.sticky-newsletter-button:hover .sticky-icon {
    transform: translateX(4px);
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .newsletter-content {
        padding: 50px 30px;
    }
}

/* 响应式设计 - 移动设备 */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta-button {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .products-section {
        padding: 80px 20px;
    }

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

    .newsletter-section {
        padding: 80px 20px;
    }

    .newsletter-content {
        padding: 40px 24px;
    }

    .form-group {
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }
}

/* 响应式设计 - 小屏幕移动设备 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cta-button {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .product-content {
        padding: 20px;
    }

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

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-content {
        padding: 32px 20px;
    }
}

/* 无障碍设计 - 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .product-card:hover {
        transform: none;
    }

    .hero-cta-button:hover {
        transform: none;
    }

    .newsletter-content {
        animation: none;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-purple);
}