/* --- Theme Variables --- */
:root {
    --gold: #d4af37;
    --gold-light: #f9e29c;
    --dark: #121212;
    --dark-light: #1a1a1a;
    --text: #e0e0e0;
    --text-muted: #888;
}

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

html {
    scroll-behavior: smooth;
}

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

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

.gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f9e29c 50%, #d4af37 100%);
}

.gold-text {
    background: linear-gradient(135deg, #d4af37 0%, #f9e29c 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f9e29c 50%, #d4af37 100%);
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 25px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.logo-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--gold);
    cursor: pointer;
}

/* --- Sections --- */
section {
    padding: 100px 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* --- Hero --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://tse-mm.bing.com/th?q=高端科技背景') center/cover no-referrer;
    opacity: 0.2;
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

/* --- News --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-body {
    padding: 20px;
}

.news-date {
    color: var(--gold);
    font-size: 12px;
    margin-bottom: 10px;
    display: block;
}

.news-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-body p {
    font-size: 14px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Dynamics --- */
.dynamics-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dynamic-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dynamic-item:hover {
    background: rgba(255,255,255,0.02);
}

/* --- Products --- */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group select, .filter-group input {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
}

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

.product-card {
    text-align: center;
}

.product-img {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

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

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 25px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

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

.footer-col ul li a:hover {
    color: var(--gold);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 12px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .product-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .stats-grid, .dynamics-list, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
