/* 公共基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-dark: #0a0e17;
    --secondary-dark: #1a2238;
    --accent-blue: #0066cc;
    --accent-silver: #a0aec0;
    --accent-red: #e53e3e;
    --accent-orange: #ed8936;
    --light-gray: #e2e8f0;
    --text-light: #f7fafc;
    --text-gray: #cbd5e0;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--accent-blue);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-filled {
    background: var(--accent-blue);
    color: var(--text-light);
    border-color: var(--accent-blue);
}

.btn-red {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-red:hover {
    background: var(--accent-red);
    color: var(--text-light);
}

.btn-red.btn-filled {
    background: var(--accent-red);
    color: var(--text-light);
    border-color: var(--accent-red);
}

.btn-orange {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-orange:hover {
    background: var(--accent-orange);
    color: var(--text-light);
}

.btn-orange.btn-filled {
    background: var(--accent-orange);
    color: var(--text-light);
    border-color: var(--accent-orange);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid rgba(160, 174, 192, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    background-color: rgba(10, 14, 23, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), #4fd1c7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.lang-switch {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.lang-switch a {
    color: var(--accent-silver);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 5px;
}

.lang-switch a.active {
    color: var(--accent-blue);
    font-weight: bold;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* 页脚 */
footer {
    background-color: #080c14;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-blue);
    width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* 技术标签样式 */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 25px 0;
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tech-tag.green {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border-color: rgba(72, 187, 120, 0.3);
}

/* 卡片基础样式 */
.card-base {
    background: rgba(26, 34, 56, 0.8);
    border-radius: 8px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(160, 174, 192, 0.1);
    position: relative;
    overflow: hidden;
}

.card-base:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-base:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-blue);
}

.icon-base {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--accent-blue);
}

.icon-base.red {
    background: rgba(229, 62, 62, 0.1);
    color: var(--accent-red);
}

.icon-base.orange {
    background: rgba(237, 137, 54, 0.1);
    color: var(--accent-orange);
}