/* Reset & Base Styles */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #ffffff;
    --hover-color: #cccccc;
    --spacing-unit: 20px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 40px;
    width: auto;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-image removed, using canvas */
    background-color: var(--bg-color);
    text-align: center;
    position: relative;
    overflow: hidden; /* 防止canvas超出 */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 底层 */
}

.hero-content {
    position: relative;
    z-index: 2; /* 内容在上层 */
    pointer-events: none; /* 让鼠标事件穿透到 canvas（如果需要交互的话） */
}

/* 恢复文字可选中，如果 pointer-events: none 在父级被设置 */
.hero-content * {
    pointer-events: auto; 
}

.intro-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.sub-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 300;
}

/* Products Section */
.products-section {
    background-color: var(--bg-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.product-image {
    height: 200px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.product-info {
    padding: 30px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
    min-height: 3rem;
}

.btn-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--text-primary);
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* About Section */
.about-section {
    background-color: #0f0f0f;
}

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

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
}

.contact-email:hover {
    border-bottom-color: var(--text-primary);
}

/* Footer */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.footer-content p {
    margin-bottom: 10px;
}

.site-footer a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .content-container {
        padding: 0 20px;
    }

    .intro-text h1 {
        font-size: 2.5rem;
    }
    
    .main-nav {
        display: none; /* Mobile menu needed if complex, but kept simple for now */
    }
}
