﻿:root {
    --primary: #003366;
    --accent: #aa28c2;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* 头部 */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.header-logo { display: flex; align-items: center; gap: 15px; }
.header-logo img { height: 60px; }
.header-logo-text { font-size: 18px; font-weight: bold; color: var(--primary); }
.header-logo-text span { display: block; font-size: 12px; color: var(--text-light); font-weight: normal; }
.header-contact { font-size: 14px; color: var(--text-light); }

.nav { display: flex; border-top: 1px solid var(--border); }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 15px 20px; color: var(--text); font-size: 15px; transition: all 0.3s; }
.nav-item > a:hover { color: var(--accent); }
.nav-item.active > a { color: var(--accent); font-weight: bold; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.15); min-width: 180px; border-top: 3px solid var(--accent); z-index: 100; }
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 12px 20px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 14px; }
.nav-dropdown a:hover { background: var(--primary); color: #fff; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; background: none; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: var(--primary); }

/* Banner */
.banner { height: 450px; position: relative; overflow: hidden; }
.banner-slider { display: flex; height: 100%; transition: transform 0.5s; }
.banner-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.banner-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,51,102,0.85) 0%, rgba(0,51,102,0.4) 100%); }
.banner-slide:nth-child(1) { background: linear-gradient(135deg, #003366 0%, #aa28c2 100%); }
.banner-slide:nth-child(2) { background: linear-gradient(135deg, #aa28c2 0%, #003366 100%); }
.banner-slide:nth-child(3) { background: linear-gradient(135deg, #003366 0%, #aa28c2 100%); }
.banner-content { position: relative; z-index: 1; text-align: center; color: #fff; max-width: 700px; padding: 0 20px; }
.banner-title { font-size: 42px; font-weight: bold; margin-bottom: 15px; }
.banner-subtitle { font-size: 18px; margin-bottom: 25px; opacity: 0.9; }
.banner-btn { display: inline-block; padding: 12px 35px; background: #aa28c2; color: #fff; font-size: 15px; border-radius: 4px; transition: all 0.3s; }
.banner-btn:hover { background: #fff; color: #003366; transform: translateY(-2px); }
.banner-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.banner-dot.active { background: #aa28c2; transform: scale(1.2); }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(0,0,0,0.3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; z-index: 2; transition: all 0.3s; }
.banner-arrow:hover { background: #aa28c2; }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

/* 页面标题 */
.page-header { background: var(--primary); color: #fff; padding: 50px 0; text-align: center; }
.page-title { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.page-subtitle { font-size: 16px; opacity: 0.9; }
.breadcrumb { margin-top: 15px; font-size: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--accent); margin: 0 5px; }

/* 内容区域 */
.content { padding: 50px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }

/* 区块标题 */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 32px; color: var(--primary); margin-bottom: 10px; position: relative; display: inline-block; }
.section-title::after { content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background: var(--accent); }
.section-subtitle { color: var(--text-light); font-size: 15px; }

/* 新闻卡片 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: all 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.12); }
.news-card-img { height: 160px; overflow: hidden; position: relative; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-card-img img { transform: scale(1.1); }
.news-card-tag { position: absolute; top: 10px; left: 10px; padding: 4px 12px; background: var(--accent); color: #fff; font-size: 12px; border-radius: 3px; }
.news-card-body { padding: 15px; }
.news-card-date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.news-card-title { font-size: 15px; font-weight: bold; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-title:hover { color: var(--accent); }

/* 全屏横条轮播 - 和首页banner一样 */
.simple-slider-wrap {
    position: relative;
    overflow: hidden;
}
.simple-slider {
    display: flex;
    transition: transform 0.5s ease;
}
.simple-slide {
    min-width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.simple-slide:nth-child(1) { background: linear-gradient(135deg, #003366 0%, #aa28c2 100%); }
.simple-slide:nth-child(2) { background: linear-gradient(135deg, #aa28c2 0%, #4a148c 100%); }
.simple-slide:nth-child(3) { background: linear-gradient(135deg, #1a237e 0%, #aa28c2 100%); }
.simple-slide:nth-child(4) { background: linear-gradient(135deg, #aa28c2 0%, #7b1fa2 100%); }
.simple-slide:nth-child(5) { background: linear-gradient(135deg, #4a148c 0%, #003366 100%); }
.simple-slide a {
    text-align: center;
    color: #fff;
    display: block;
    padding: 60px;
}
.simple-slide h3 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}
.simple-slide p {
    font-size: 20px;
    opacity: 0.9;
}
.simple-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 2;
}
.simple-arrow:hover { background: #aa28c2; }
.simple-arrow.prev { left: 30px; }
.simple-arrow.next { right: 30px; }

/* 侧边栏 */
.sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-widget { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 25px; overflow: hidden; }
.sidebar-title { background: var(--primary); color: #fff; padding: 15px 20px; font-size: 16px; font-weight: bold; }
.sidebar-menu a { display: block; padding: 12px 20px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 14px; transition: all 0.3s; }
.sidebar-menu a:last-child { border-bottom: none; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: var(--bg-light); color: var(--accent); padding-left: 25px; }

/* 文章内容 */
.article-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.article-content p { margin-bottom: 15px; text-indent: 2em; }
.article-content h2 { font-size: 20px; color: var(--primary); margin: 25px 0 15px; padding-left: 15px; border-left: 4px solid var(--accent); }
.article-title { font-size: 28px; font-weight: bold; color: var(--primary); margin-bottom: 20px; }

/* 联系方式 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 40px; }
.contact-item { background: var(--bg-light); padding: 35px 20px; border-radius: 10px; text-align: center; transition: all 0.3s; }
.contact-item:hover { background: var(--primary); color: #fff; }
.contact-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; transition: all 0.3s; }
.contact-item:hover .contact-icon { background: #fff; color: var(--primary); }
.contact-item h4 { font-size: 18px; margin-bottom: 10px; color: inherit; }
.contact-item p { font-size: 15px; color: var(--text-light); }
.contact-item:hover p { color: rgba(255,255,255,0.9); }

/* 表单 */
.form-box { background: var(--bg-light); padding: 35px; border-radius: 10px; }
.form-box h3 { text-align: center; color: var(--primary); margin-bottom: 25px; font-size: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.form-group input, .form-group textarea { padding: 12px 15px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { text-align: center; margin-top: 20px; }
.form-submit button { padding: 14px 45px; background: var(--accent); color: #fff; font-size: 15px; border-radius: 6px; border: none; cursor: pointer; transition: all 0.3s; }
.form-submit button:hover { background: var(--primary); }

/* 底部 */
.footer { background: var(--primary); color: #fff; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 35px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer h4 { font-size: 18px; margin-bottom: 20px; }
.footer p { font-size: 14px; opacity: 0.8; line-height: 1.8; }
.footer ul li { margin-bottom: 12px; font-size: 14px; opacity: 0.8; }
.footer ul li:hover { opacity: 1; color: var(--accent); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; opacity: 0.7; }

/* 按钮 */
.btn { display: inline-block; padding: 12px 30px; background: var(--accent); color: #fff; font-size: 14px; border-radius: 4px; transition: all 0.3s; border: none; cursor: pointer; }
.btn:hover { background: var(--primary); color: #fff; }

/* 响应式 */
@media (max-width: 1024px) {
    .container { max-width: 960px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-main { flex-direction: column; gap: 15px; }
    .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
    .nav.active { display: flex; }
    .menu-toggle { display: flex; }
    .banner { height: 300px; }
    .banner-title { font-size: 28px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .simple-arrow { width: 40px; height: 40px; font-size: 18px; }
    .simple-arrow.prev { left: 10px; }
    .simple-arrow.next { right: 10px; }
    .simple-slide h3 { font-size: 28px; }
    .simple-slide { height: 350px; }
}
