/* 全局样式重置与基础配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2d8b9e;
    --accent-color: #e8a838;
    --text-dark: #333333;
    --text-light: #666666;
    --text-gray: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header.scrolled {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding var(--transition-speed) ease;
}

.header.scrolled .header-inner {
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list li a {
    font-size: 16px;
    color: var(--text-dark);
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact li i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Banner 样式 */
.banner {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.9), rgba(45, 139, 158, 0.8)), url('../images/banner-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.banner-content .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片样式 */
.card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-gray);
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: left var(--transition-speed) ease;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li a {
        font-size: 18px;
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 内部页面标题区 */
.page-header {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.9), rgba(45, 139, 158, 0.8)), url('../images/page-header-bg.jpg') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.page-header-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    background-color: var(--bg-light);
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 10px;
    color: var(--text-gray);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list li a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li.current {
    color: var(--primary-color);
}

/* 新闻列表样式 */
.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.news-item:hover {
    background-color: var(--bg-light);
}

.news-item-img {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.news-item:hover .news-item-img img {
    transform: scale(1.1);
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: color var(--transition-speed) ease;
}

.news-item:hover .news-item-title {
    color: var(--accent-color);
}

.news-item-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    font-size: 13px;
    color: var(--text-gray);
}

/* 新闻详情样式 */
.news-detail {
    padding: 60px 0;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.news-detail-meta {
    font-size: 14px;
    color: var(--text-gray);
}

.news-detail-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
}

.news-detail-content img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 4px;
}

.news-detail-content p {
    margin-bottom: 20px;
}

/* 侧边栏样式 */
.sidebar {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar-news-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-news-list li:last-child {
    border-bottom: none;
}

.sidebar-news-list li a {
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-news-list li a:hover {
    color: var(--primary-color);
}

.sidebar-news-date {
    font-size: 12px;
    color: var(--text-gray);
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 优势板块 */
.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
}

.advantage-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 快速入口 */
.quick-access {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.access-item {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.access-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.access-item:hover::before {
    opacity: 0.9;
}

.access-item span {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .quick-access {
        grid-template-columns: repeat(2, 1fr);
    }
}
