/* style.css - 网站视觉风格定义 */

/* --- 1. 全局变量与重置 --- */
:root {
    /* 配色方案：深邃蓝与科技银 */
    --primary-blue: #003366;       /* 主背景色 */
    --secondary-blue: #0F2847;     /* 次级背景/板块背景 */
    --accent-blue: #1E3A8A;        /* 强调色/卡片背景 */
    --tech-silver: #E5E7EB;        /* 主要文字颜色 */
    --tech-highlight: #3B82F6;     /* 按钮、链接、高亮色 */
    --text-gray: #9CA3AF;          /* 辅助文字 */
    --white: #ffffff;
    
    /* 布局变量 */
    --container-width: 1200px;
    --header-height: 70px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background-color: var(--primary-blue);
    color: var(--tech-silver);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 2. 通用布局组件 --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* 标题组件 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--tech-highlight);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tech-highlight);
}

/* 按钮组件 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--tech-highlight);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--tech-highlight);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--tech-highlight);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--tech-silver);
    color: var(--tech-silver);
}

.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
}

/* --- 3. 导航栏 --- */
header {
    background-color: rgba(10, 25, 49, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo span { color: var(--tech-highlight); }

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--tech-highlight);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* --- 4. Hero Section (首屏) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* 背景图占位符，实际使用时请在HTML中替换 */
    background: linear-gradient(135deg, rgba(10, 25, 49, 0.9) 0%, rgba(15, 40, 71, 0.8) 100%);
}

/* 装饰性背景元素 */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn Up 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--tech-silver);
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--tech-highlight);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* --- 5. 核心价值 --- */
.core-value { background-color: var(--secondary-blue); }

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background: rgba(255,255,255,0.03);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--tech-highlight);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
}

.value-card:hover::before { transform: scaleY(1); }

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--white);
}

/* --- 6. 全案服务 --- */
.service-card {
    position: relative;
    height: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
    group: cursor;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    transition: var(--transition);
}

.service-card:hover .service-img { transform: scale(1.1); }
.service-card:hover .service-overlay { transform: translateY(0); }

.service-card h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- 7. 数智化技术 --- */
.tech-section { background-color: var(--secondary-blue); }

.tech-highlight-box {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(10, 25, 49, 0.6));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 50px;
}

.tech-modules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--tech-highlight);
    padding: 12px 24px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--tech-highlight);
    color: var(--white);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* --- 8. 标杆案例 --- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    color: #333;
}

.case-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.case-thumb {
    height: 240px;
    overflow: hidden;
}

.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-card:hover .case-thumb img { transform: scale(1.05); }

.case-body { padding: 30px; }

.case-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #EFF6FF;
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1F2937;
}

.case-desc {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.6;
}

/* --- 9. 关于我们 --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.check-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--tech-silver);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tech-highlight);
    font-weight: bold;
}

/* --- 10. 联系我们 --- */
.contact-section {
    background: linear-gradient(to bottom, var(--primary-blue), var(--secondary-blue));
}

.contact-container {
    display: flex;
    gap: 60px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 60px;
    border-radius: var(--border-radius);
}

.contact-info { flex: 1; }
.contact-form-wrapper { flex: 1.5; }

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--tech-highlight);
}

.form-group { margin-bottom: 20px; }

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--tech-highlight);
    background: rgba(255,255,255,0.08);
}

select.form-control { cursor: pointer; }

/* --- 11. 页脚 --- */
footer {
    background-color: #050e1c;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- 12. 响应式适配 --- */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-container { flex-direction: column; padding: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* 移动端需添加JS交互 */
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .section-padding { padding: 60px 0; }
}
