﻿/*
 * Homepage Specific Styles
 * 棣栭〉涓撶敤鏍峰紡锛屽熀浜庣幇浠ｈ璁＄郴缁?
 */

/* ========== Navigation Styles ========== */
.nav-container {
    width: 100%;
    padding: var(--space-4) 0;
    position: relative;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.nav-brand .brand-link:hover {
    transform: scale(1.02);
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--starlight-cyan), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.auth-buttons {
    display: flex;
    gap: var(--space-3);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all var(--transition-fast);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.user-avatar:hover {
    border-color: var(--starlight-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 240px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: var(--space-4);
    z-index: 100;
    animation: fadeIn 0.2s ease-out;
}

.user-info {
    padding-bottom: var(--space-3);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 212, 255, 0.15);
    margin: var(--space-3) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.05);
    color: var(--starlight-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
    margin: var(--space-2) var(--space-6);
    padding: var(--space-4);
    z-index: 50;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.mobile-nav-link {
    padding: var(--space-3);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background: rgba(0, 212, 255, 0.05);
    color: var(--starlight-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

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

/* ========== Hero Section ========== */
.hero-section {
    padding: var(--space-24) 0 var(--space-20);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    animation: pulseGrid 4s ease-in-out infinite alternate;
}

@keyframes pulseGrid {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-12);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}
.typewriter-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--starlight-cyan);
    text-shadow: 0 0 8px var(--starlight-cyan);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.highlight-text {
    background: linear-gradient(135deg, var(--starlight-cyan), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--starlight-cyan);
    box-shadow: 0 0 10px var(--starlight-cyan);
}

.hero-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.hero-card .card-title {
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-500);
    animation: pulse 2s infinite;
}

.card-stats {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-4);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--starlight-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.progress-85 {
    width: 85%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== Features Section ========== */
.features-section {
    padding: var(--space-20) 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-6);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--starlight-cyan);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    box-shadow: 0 0 10px var(--starlight-cyan);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), inset 0 0 0 1px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--starlight-cyan);
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 10px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 15px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== How It Works Section ========== */
.how-it-works-section {
    padding: var(--space-20) 0;
    position: relative;
    z-index: 1;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.step-card {
    flex: 1;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), inset 0 0 0 1px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    color: var(--starlight-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 10px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all var(--transition-normal);
}

.step-card:hover .step-number {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 15px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-arrow {
    color: var(--starlight-cyan);
    opacity: 0.6;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 2px rgba(0, 212, 255, 0.2)); opacity: 0.4; }
    100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8)); opacity: 0.8; }
}

/* ========== CTA Section ========== */
.cta-section {
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    z-index: 1;
    background: transparent;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%2300d4ff" fill-opacity="0.03"><circle cx="30" cy="30" r="1.5"/></g></svg>');
    z-index: -1;
}

.cta-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
    position: relative;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.cta-content:hover {
    box-shadow: 0 12px 48px rgba(0, 212, 255, 0.1), inset 0 0 0 1px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.cta-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========== Modal Styles ========== */
.modal {
    max-width: 480px;
}

.modal-footer-text {
    text-align: center;
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.modal-footer-text p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.modal-footer-text a {
    color: var(--starlight-cyan);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer-text a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.btn-full-width {
    width: 100%;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(12, 14, 26, 0.5);
    cursor: pointer;
    accent-color: var(--starlight-cyan);
    margin: 0;
    transition: all var(--transition-fast);
}

.form-checkbox:checked {
    background: var(--starlight-cyan);
    border-color: var(--starlight-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .steps-container {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-content {
        padding: 0 var(--space-4);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .feature-card {
        padding: var(--space-6);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--space-16) 0 var(--space-12);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header {
        margin-bottom: var(--space-12);
    }
    
    .features-section,
    .how-it-works-section {
        padding: var(--space-16) 0;
    }
    
    .cta-section {
        padding: var(--space-16) 0;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
}

/* ========== Dark Mode Enhancements ========== */
@media (prefers-color-scheme: dark) {
    .hero-card {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
            0 0 40px rgba(0, 212, 255, 0.1);
    }
    
    .feature-card:hover {
        box-shadow: 
            0 8px 32px rgba(0, 212, 255, 0.15), inset 0 0 0 1px rgba(0, 212, 255, 0.3),
            0 0 30px rgba(0, 212, 255, 0.1);
    }
    
    .cta-content {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
            0 0 40px rgba(0, 212, 255, 0.05);
    }
    
    .cta-content:hover {
        box-shadow: 
            0 12px 48px rgba(0, 212, 255, 0.1), inset 0 0 0 1px rgba(0, 212, 255, 0.2),
            0 0 50px rgba(0, 212, 255, 0.1);
    }
}
