/* css/style.css - 终极全量修复版 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* --- 全局配色 --- */
    --primary: #0a192f;        /* 深午夜蓝 */
    --primary-light: #172a45;
    --accent: #0056b3;
    --accent-bright: #64ffda;  /* 亮青色 (数据高亮) */
    --text-main: #ccd6f6;
    --text-dark: #112240;
    --bg-light: #f4f7f9;
    --white: #ffffff;
}

body {
    font-family: 'Manrope', sans-serif;
    margin: 0; padding: 0;
    color: #333; line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* --- 基础排版 --- */
h1, h2, h3, h4 { color: var(--primary); font-weight: 800; letter-spacing: -0.02em; margin-top: 0; }
h1 { font-size: 52px; line-height: 1.1; }
h2 { font-size: 36px; }
p { font-size: 16px; font-weight: 500; color: #555; }
a { text-decoration: none; transition: 0.3s; }
.container { width: 90%; max-width: 1280px; margin: 0 auto; position: relative; }
.section { padding: 100px 0; }

/* --- 导航栏 --- */
header {
    background: var(--white); padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: -0.5px; }
nav ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
nav a { color: #444; font-weight: 700; font-size: 15px; text-transform: uppercase; }
nav a:hover, nav a.active { color: var(--accent); }

/* --- 按钮样式 --- */
.btn {
    display: inline-block; padding: 15px 35px;
    background-color: var(--primary); color: var(--white);
    border-radius: 6px; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.3);
}
.btn:hover { background-color: var(--accent); transform: translateY(-3px); }

/* --- 通用网格与卡片 (Home, Portfolio, About) --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }

.service-card {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }

.card-img-top {
    height: 200px; background-size: cover; background-position: center; position: relative;
    background-color: #ddd; /* 图片加载失败时的底色 */
}
.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 20px; margin-bottom: 15px; color: var(--primary); }
.card-link {
    color: var(--accent); font-weight: 800; font-size: 14px; 
    text-transform: uppercase; letter-spacing: 1px; margin-top: 20px;
}

/* --- Logo 墙 (Home) --- */
.clients-section { background: #e6eaee; padding: 50px 0; text-align: center; }
.logos-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 40px; }
.client-logo { height: 35px; width: auto; opacity: 0.7; filter: grayscale(100%); transition: 0.3s; }
.client-logo:hover { opacity: 1; filter: grayscale(0%); }

/* --- 业绩数据看板 (Portfolio & About) --- */
.performance-section {
    background: var(--primary); /* 深蓝底色 */
    color: var(--white);
    padding: 80px 0;
    margin-top: 50px;
}
.perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
/* About 页面的 4 列布局适配 */
.performance-section .perf-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.perf-item { padding: 20px; }
.perf-icon { font-size: 36px; color: var(--accent-bright); margin-bottom: 20px; }
.perf-item h3 { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.perf-num { font-size: 42px; font-weight: 900; color: var(--accent-bright); display: block; margin-bottom: 5px; }
.perf-desc { color: #8892b0; font-size: 14px; margin: 0; }

/* --- 时间轴 (About) --- */
.timeline-item {
    display: flex; gap: 30px; padding: 30px 0; border-bottom: 1px solid #eee;
}
.timeline-year {
    font-size: 24px; font-weight: 900; color: var(--accent); min-width: 100px;
}
.timeline-content h4 { margin: 0 0 10px 0; font-size: 18px; color: var(--primary); }
.timeline-content p { margin: 0; font-size: 15px; color: #666; }

/* --- Contact 页面专属样式 --- */
.contact-page-bg {
    background-color: #eef2f6;
    min-height: 100vh;
    display: flex; flex-direction: column;
}
.contact-card-wrapper {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.15);
    margin: 60px auto;
    max-width: 1100px;
    min-height: 600px;
}
.contact-left {
    flex: 2;
    background-color: #0a192f; /* 深蓝背景 */
    padding: 60px;
    color: #ffffff;
    display: flex; flex-direction: column; justify-content: space-between;
}
.contact-left h1 { color: #ffffff; margin-bottom: 20px; }
.contact-left p { color: #8892b0; margin-bottom: 40px; }
.contact-label {
    font-size: 12px; font-weight: 800; color: #64ffda;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.contact-value { font-size: 18px; color: #ffffff; }
.contact-value a { color: #ffffff; border-bottom: 1px solid rgba(255,255,255,0.3); }

.contact-right {
    flex: 3; background: #fff; padding: 60px;
    display: flex; flex-direction: column; justify-content: center;
}
.form-header h3 { font-size: 24px; color: #0a192f; margin-bottom: 10px; }
.form-group { margin-bottom: 25px; }
.form-label-small {
    display: block; font-size: 12px; font-weight: 700; 
    color: #0a192f; margin-bottom: 8px; text-transform: uppercase;
}
.form-input {
    width: 100%; padding: 15px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 15px; font-family: inherit; box-sizing: border-box;
}
.form-submit-btn {
    width: 100%; padding: 18px;
    background: #0a192f; color: white;
    font-weight: 800; border: none; border-radius: 8px; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
}
.form-submit-btn:hover { background: #0056b3; }

/* --- Footer 强力修复版 (System1 风格) --- */
footer {
    background-color: #0a192f !important;
    color: #8892b0;
    padding: 80px 0 40px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr; 
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}
.footer-col h4 {
    color: #ffffff !important;
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-top: 0;
}
.footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.footer-col ul li {
    margin-bottom: 12px;
    padding-left: 0 !important;
}
.footer-col a {
    color: #8892b0 !important;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}
.footer-col a:hover {
    color: #64ffda !important;
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #555;
}

/* --- 响应式 --- */
@media (max-width: 800px) {
    .grid-3, .perf-grid, .footer-container { grid-template-columns: 1fr; }
    .contact-card-wrapper { flex-direction: column; margin: 20px; }
    .contact-left, .contact-right { padding: 40px; }
    .timeline-item { flex-direction: column; gap: 10px; }
    h1 { font-size: 38px; }
}