/* ========================================
   全局重置与基础样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

/* ========================================
   导航栏样式
   ======================================== */
.header {
    background: linear-gradient(90deg, #165DFF, #4080FF);
    color: white;
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 99;
    transition: 0.3s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.nav a {
    color: white;
    margin-left: 24px;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.nav a:hover, .nav a.active {
    transform: translateY(-2px);
    text-decoration: underline;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #165DFF;
    text-decoration: none;
}

/* ========================================
   搜索框样式
   ======================================== */
.search-box {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background: #165DFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.search-box button:hover {
    background: #0E4BD5;
}

/* ========================================
   通用模块标题
   ======================================== */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #165DFF;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "";
    width: 4px; height: 18px;
    background: #165DFF;
    border-radius: 2px;
}

/* ========================================
   卡片容器
   ======================================== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ========================================
   列表项样式
   ======================================== */
.item {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.item:last-child { border-bottom: none; }

.item:hover {
    background-color: #f7f9ff;
    padding-left: 18px;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-info {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: flex; gap: 12px; flex-wrap: wrap;
}

/* ========================================
   分页按钮
   ======================================== */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    margin: 0 3px;
}

.btn:hover, .btn.active {
    background: #165DFF;
    color: white;
    border-color: #165DFF;
}

/* ========================================
   详情弹窗
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-box {
    background: white;
    width: 90%; max-width: 750px;
    border-radius: 12px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal.show .modal-box {
    transform: translateY(0);
}

.close {
    position: absolute;
    right: 20px; top: 16px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    color: #165DFF;
    transform: rotate(90deg);
}

/* ========================================
   加载与空状态
   ======================================== */
.loading {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

.empty {
    text-align: center;
    padding: 40px 0;
    color: #ccc;
    font-size: 14px;
}

/* ========================================
   返回顶部按钮
   ======================================== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 44px; height: 44px;
    background: #165DFF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 98;
}

.back-top.show {
    opacity: 1;
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.footer a {
    color: #999;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    color: #165DFF;
}

/* ========================================
   首页特有样式
   ======================================== */
/* 轮播图 */
.banner {
    height: 380px;
    background: linear-gradient(135deg, #165DFF 0%, #0F48C9 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXR0ZXJuIGlkPSJncmlkIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPjxwYXRoIGQ9Ik0gNDAgMCBMIDAgMCAwIDQwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXJuPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.banner-btn {
    padding: 12px 32px;
    background: white;
    color: #165DFF;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 快速导航 */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.nav-item {
    background: white;
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    color: #165DFF;
}

.nav-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.nav-text {
    font-size: 15px;
    font-weight: 500;
}

/* 通用模块头部 */
.section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header .section-title {
    font-size: 22px;
    margin-bottom: 0;
}

.section-header .section-title::before {
    height: 22px;
}

.more-btn {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.more-btn:hover {
    color: #165DFF;
}

/* 双列布局 */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* 精选项目网格 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 16px;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 公告置顶标签 */
.top-tag {
    background: #f56c6c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

/* 标签切换（公告页） */
.tab-bar {
    display: flex; gap: 10px; margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #f2f3f5;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
}

.tab-btn.active {
    background: #165DFF;
    color: white;
    transform: scale(1.05);
}

/* ========================================
   内容页面样式（关于我们/联系我们等）
   ======================================== */
.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 24px;
}

.content-title {
    font-size: 22px;
    font-weight: 600;
    color: #165DFF;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.content p {
    margin-bottom: 15px;
}

.content h3 {
    margin: 20px 0 10px;
    color: #333;
    font-size: 18px;
}

/* 联系我们表单 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    color: #666;
    line-height: 1.8;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    padding: 10px 20px;
    background: #165DFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

button:hover {
    background: #0E4BD5;
}

/* ========================================
   移动端适配
   ======================================== */
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 10px; }
    .nav a { margin: 0 8px; }
    .banner { height: 280px; }
    .banner h1 { font-size: 28px; }
    .two-column { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
}