/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    max-width: 100%;
}

/* CSS变量定义 */
:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --tertiary-black: #2a2a2a;
    --primary-green: #00ff88;
    --secondary-green: #00cc6a;
    --tertiary-green: #00994d;
    --accent-green: #33ffaa;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: rgba(0, 255, 136, 0.3);
    --shadow-green: rgba(0, 255, 136, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.8);
}

/* 基础样式 */
body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background-color: var(--primary-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 确保根元素不会横向滚动 */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

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

/* 背景动效容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 204, 106, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/* 首页横幅 */
.hero-section {
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section .container {
    text-align: center;
}

.hero-logo {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 15px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: logoSlideIn 0.8s ease-out forwards;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    border: 2px solid var(--primary-green);
}

@keyframes logoSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleSlideIn 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.title-line:nth-child(4) {
    animation-delay: 0.6s;
}

.highlight {
    background: linear-gradient(45deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 200px;
    height: 60px;
    margin: 0;
    font-family: inherit;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

.btn::before {
    display: none;
}

.btn:hover::before {
    display: none;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff41, #00ff88);
    color: var(--primary-black);
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.5);
    border: 2px solid #00ff41;
}

.btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn.disabled small {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.2rem;
    opacity: 0.8;
}

.btn:not(.disabled) small {
    display: none;
}

/* 移除禁用按钮的即将上线提示 */
.btn:not(.disabled) {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

/* 底部 */
.footer {
    background: var(--secondary-black);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    animation: slideGradient 3s linear infinite;
}

@keyframes slideGradient {
    0% { 
        left: -100%;
    }
    100% { 
        left: 100%;
    }
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-logo {
        width: 80px;
        height: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 160px;
        height: 50px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0 1.5rem;
        min-height: calc(100vh - 120px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        align-items: center;
        gap: 0.6rem;
    }
    
    .btn {
        width: 140px;
        height: 45px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 2rem 0 1rem;
        min-height: calc(100vh - 140px);
    }
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* 隐藏滚动条但保持功能 */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Webkit浏览器隐藏滚动条 */
body::-webkit-scrollbar {
    display: none;
}