/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a6b;
    --primary-dark: #0f2547;
    --primary-light: #2c5aa0;
    --accent: #c9a227;
    --accent-light: #e6c547;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --text-light: #888;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border: #e0e4e8;
    --success: #28a745;
    --danger: #dc3545;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #fff;
    margin-left: 20px;
}

.top-bar .hotline {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-light);
}

/* 导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-right: 12px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    position: relative;
}

.nav a {
    display: block;
    padding: 0 22px;
    line-height: 80px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.nav a:hover, .nav a.active {
    color: var(--primary);
    background: var(--bg-light);
}

/* 轮播图 */
.banner {
    height: 500px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.02)"/></svg>');
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
}

.banner-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.banner-text h1 span {
    color: var(--accent-light);
}

.banner-text p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* 通用区块 */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-gray);
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto;
}

/* 服务优势 */
.advantages {
    background: var(--bg-light);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.adv-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.adv-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.adv-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #fff;
}

.adv-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.adv-item p {
    color: var(--text-gray);
    font-size: 14px;
}

/* 业务范围 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.service-card-body {
    padding: 25px;
}

.service-card-body h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card-body p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.service-card-body .more {
    color: var(--accent);
    font-weight: 500;
}

/* 数据统计 */
.stats {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item .num {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.stat-item .label {
    font-size: 16px;
    opacity: 0.9;
}

/* 最新文章 */
.articles-section {
    background: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-card-img {
    width: 200px;
    min-height: 160px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    flex-shrink: 0;
}

.article-card-body {
    padding: 20px 25px;
    flex: 1;
}

.article-card-body .tag {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.article-card-body h3 {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-card-body h3 a {
    color: var(--text-dark);
}

.article-card-body h3 a:hover {
    color: var(--primary);
}

.article-card-body .desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-card-body .meta {
    font-size: 12px;
    color: var(--text-light);
}

/* 案例展示 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.case-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.case-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 25px;
}

.case-header .amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-light);
}

.case-header .type {
    font-size: 14px;
    opacity: 0.9;
}

.case-body {
    padding: 25px;
}

.case-body h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
}

.case-body p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.case-body .result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--success);
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p, .footer-col li {
    font-size: 14px;
    line-height: 2;
    list-style: none;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* 文章列表页 */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: #fff;
}

.article-list-page {
    padding: 50px 0;
}

.article-filters {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    width: 80px;
    flex-shrink: 0;
    font-weight: 500;
    color: var(--text-gray);
    padding-top: 5px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-gray);
}

.filter-options a:hover, .filter-options a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.article-list {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-list-item {
    display: flex;
    padding: 25px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.article-list-item:hover {
    background: var(--bg-light);
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-num {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-right: 20px;
    flex-shrink: 0;
}

.article-list-content {
    flex: 1;
}

.article-list-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-list-content h3 a {
    color: var(--text-dark);
}

.article-list-content h3 a:hover {
    color: var(--primary);
}

.article-list-content .summary {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-list-content .meta {
    font-size: 12px;
    color: var(--text-light);
}

.article-list-content .meta span {
    margin-right: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}

.pagination a:hover, .pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 文章详情页 */
.article-detail {
    padding: 50px 0;
}

.article-detail .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.article-main {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-main h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.article-meta span {
    margin-right: 25px;
}

.article-body {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.article-body h2 {
    font-size: 22px;
    color: var(--primary);
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
}

.article-body h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 25px 0 12px;
}

.article-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article-body ul, .article-body ol {
    margin: 15px 0;
    padding-left: 2em;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body .highlight-box {
    background: #fff8e6;
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.article-body .warning-box {
    background: #fff5f5;
    border-left: 4px solid var(--danger);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.article-body .tip-box {
    background: #f0f7ff;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget li a {
    font-size: 14px;
    color: var(--text-gray);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-widget li a:hover {
    color: var(--primary);
}

.contact-widget {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-align: center;
}

.contact-widget h4 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
}

.contact-widget .phone {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-light);
    margin: 15px 0;
}

/* 关于我们页面 */
.about-page .about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 2;
}

.about-image {
    height: 350px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 80px;
}

/* 联系我们页面 */
.contact-page {
    padding: 50px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item-text p {
    color: var(--text-gray);
    font-size: 15px;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* 响应式 */
@media (max-width: 992px) {
    .adv-grid, .services-grid, .stats-grid, .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-detail .container {
        grid-template-columns: 1fr;
    }
    .about-page .about-intro, .contact-grid {
        grid-template-columns: 1fr;
    }
    .banner-text h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .adv-grid, .services-grid, .stats-grid, .cases-grid {
        grid-template-columns: 1fr;
    }
    .nav {
        display: none;
    }
    .banner-text h1 {
        font-size: 28px;
    }
    .article-card {
        flex-direction: column;
    }
    .article-card-img {
        width: 100%;
        height: 150px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
