/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 性能优化：减少重排重绘 */
.timer-value, .timer-label, .timer-separator {
    will-change: transform;
}

/* 媒体查询优化：打印样式 */
@media print {
    .navbar, .construction-banner, .subscribe-form, .footer-social {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* 变量定义 */
:root {
    --primary-color: #2196F3;
    --primary-dark: #1565C0;
    --primary-light: #BBDEFB;
    --secondary-color: #03A9F4;
    --accent-color: #FF9800;
    --text-color: #333;
    --text-light: #757575;
    --background-light: #f5f7fa;
    --background-white: #fff;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --dark-bg: #1a202c;
    --code-bg: #f1f1f1;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', 'Courier New', monospace, Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

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

/* 导航栏样式 */
.navbar {
    background-color: var(--background-white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.logo:hover i {
    transform: rotate(15deg);
}

.menu ul {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.menu a:hover {
    color: var(--primary-color);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-dark));
    color: var(--background-white);
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.under-construction {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.under-construction i {
    margin-right: 10px;
    animation: spin 2s linear infinite;
}

/* 倒计时样式 */
.countdown {
    margin-top: 40px;
}

.countdown h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--background-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.timer-value {
    font-size: 2rem;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--background-white);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 70px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-update {
    animation: countdown-bounce 0.5s ease;
}

@keyframes countdown-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: #FFEB3B; }
}

.timer-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.timer-separator {
    font-size: 2rem;
    font-weight: bold;
    color: var(--background-white);
    margin: 0 5px;
}

/* 通用章节样式 */
section {
    padding: 80px 0;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 3px;
}

/* 关于我们样式 */
.about {
    background-color: var(--background-white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    flex: 0 0 200px;
}

.tech-icon {
    width: 200px;
    height: 200px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--background-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.tech-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 核心价值样式 */
.values {
    background-color: var(--background-light);
}

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

.value-item {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--background-white);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.value-item:hover .value-icon {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: var(--background-white);
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.value-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 建设进度样式 */
.progress {
    background-color: var(--background-white);
}

.progress-content {
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background-color: var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 15px;
    position: relative;
    transition: width 1.5s ease;
    width: 0;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    animation: progress-stripes 1s linear infinite;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 订阅通知样式 */
.subscribe {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--background-white);
    position: relative;
    overflow: hidden;
}

.subscribe::before {
    content: '{' '}' '( )' '[]' '\'' '""' '&&' '||';
    position: absolute;
    font-family: monospace;
    font-size: 8rem;
    color: rgba(33, 150, 243, 0.1);
    opacity: 0.2;
    top: -50px;
    left: -50px;
    z-index: 0;
}

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

.subscribe h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.subscribe p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.subscribe-form button {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--background-white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.subscribe-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.subscribe-form button:hover::before {
    width: 300px;
    height: 300px;
}

.subscribe-form button:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-bg);
    color: var(--background-white);
    padding: 40px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-logo i {
    margin-right: 10px;
}

.footer-social {
    margin: 20px 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--background-white);
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    margin-top: 20px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 5px 0;
}

.footer-copyright a {
    color: var(--background-white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-copyright a:hover {
    color: var(--primary-light);
    opacity: 1;
    text-decoration: none;
}

/* 建设中浮动提示 */
.construction-banner {
    position: fixed;
    top: 80px;
    right: -250px;
    background-color: var(--primary-dark);
    color: var(--background-white);
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
    font-family: monospace;
}

.construction-banner:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    right: 0;
}

.construction-banner i {
    margin-right: 10px;
    animation: pulse 2s infinite;
}

/* 动画定义 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}