/* ========================================
   凌特网络科技 - 科幻银河金配色
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(26, 35, 55, 0.9);
    --gold-primary: #d4a843;
    --gold-light: #f0d078;
    --gold-dark: #a07830;
    --gold-glow: rgba(212, 168, 67, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: rgba(212, 168, 67, 0.2);
    --border-hover: rgba(212, 168, 67, 0.5);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
    --transition: all 0.3s ease;
    --shadow-gold: 0 0 20px rgba(212, 168, 67, 0.15);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Starfield Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 24px;
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--gold-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--gold-glow);
    border-color: var(--gold-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   Pages
   ======================================== */
.page {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.5), transparent);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    color: var(--gold-primary);
    letter-spacing: 1px;
    margin-bottom: 32px;
    background: rgba(212, 168, 67, 0.05);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold-primary), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 60px; }
    50% { opacity: 0.3; height: 30px; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
    font-size: 32px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========================================
   Section Title
   ======================================== */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    letter-spacing: 1px;
}

.title-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--gold-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   Preview / Items Grid
   ======================================== */
.preview-section {
    padding: 80px 0 120px;
    position: relative;
    z-index: 1;
}

.preview-grid, .items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.section-more {
    text-align: center;
    margin-top: 48px;
}

/* Item Card */
.item-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
}

.item-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-6px);
}

.item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 48px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-body {
    padding: 20px;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.item-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.item-meta span {
    font-size: 12px;
    color: var(--text-muted);
    padding: 3px 10px;
    background: rgba(212, 168, 67, 0.08);
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.item-price {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--gold-primary);
    font-weight: 700;
}

.item-price small {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

/* ========================================
   Filter Bar
   ======================================== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 24px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 168, 67, 0.08);
}

/* ========================================
   About Page
   ======================================== */
.about-content {
    padding: 0 0 80px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--gold-primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.highlight-item {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition);
}

.highlight-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 28px;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.highlight-item h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    padding: 0 0 80px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}

.contact-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--gold-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-form-wrapper {
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}

.contact-form-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.1);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: var(--gold-primary);
    background: var(--bg-secondary);
    padding: 0 4px;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a843' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: rgba(10, 14, 26, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--gold-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom p + p {
    margin-top: 4px;
}

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

.page.active .hero-content,
.page.active .page-header,
.page.active .stat-card,
.page.active .feature-card,
.page.active .item-card,
.page.active .highlight-item,
.page.active .contact-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .preview-grid,
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.show {
        display: flex;
    }

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

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

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .stats-grid,
    .features-grid,
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .preview-grid,
    .items-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    background: rgba(212, 168, 67, 0.05);
}

.success-message h3 {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.success-message p {
    color: var(--text-muted);
}
