/* --- 全局样式 --- */
:root {
    --primary-color: #005A9C; /* 中化蓝 */
    --secondary-color: #FF6A00; /* 辅助橙色 */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --text-color: #666;
    --font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #004a80;
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: #888;
}

/* --- 导航栏 --- */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar .logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

.navbar nav ul {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.navbar nav a.active,
.navbar nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.navbar .auth-buttons {
    display: flex;
    gap: 15px;
}

/* --- 主视觉区域 --- */
.hero {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh; /* 和hero高度一致 */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- 核心业务特色 --- */
.features {
    padding: 80px 0;
    background-color: var(--light-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    background-color: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- 解决方案 --- */
.solutions {
    padding: 80px 0;
}

.solution-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.solution-text {
    flex: 1;
}

.solution-text .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.solution-text ul {
    margin-bottom: 30px;
}

.solution-text li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.solution-text .icon-check {
    /* 暂时用伪元素代替图标 */
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    font-style: normal;
}
.solution-text .icon-check::before {
    content: '✔';
    font-size: 12px;
}


.solution-image {
    flex: 1;
}

.solution-image img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* --- 新闻中心 --- */
.news {
    padding: 80px 0;
    background-color: var(--light-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-content p {
    margin-bottom: 15px;
}

.news-content a {
    font-weight: bold;
}

/* --- 页脚 --- */
.footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col p {
    margin: 5px 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #ccc;
}
.footer-bottom a:hover {
    color: #fff;
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    .navbar nav {
        order: 3;
        width: 100%;
        display: none; /* 移动端默认隐藏，需要JS切换 */
        flex-direction: column;
        text-align: center;
        margin-top: 15px;
    }
    .navbar nav ul {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .solution-content {
        flex-direction: column;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .navbar .auth-buttons {
        display: none; /* 屏幕过小时可以考虑隐藏 */
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
} 