/* ============================================================
   前台样式 — style.css
   设计规范：Teal #0A6E6E / 浅 Teal #E6F4F4 / 金色 #D4943E
   页面背景 #F5F7F7 / 深色底部 #1A2A2A
   响应式断点：>992px PC / ≤992px 平板 / ≤640px 手机
   ============================================================ */

:root {
    --teal:       #0A6E6E;
    --teal-dark:  #085454;
    --teal-light: #E6F4F4;
    --gold:       #D4943E;
    --gold-hover: #C8893A;
    --text:       #1A1A1A;
    --text-muted: #666666;
    --bg:         #F5F7F7;
    --white:      #FFFFFF;
    --footer-bg:  #1A2A2A;
    --border:     #E0E0E0;
    --radius:     6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 15px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

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

/* ---- 顶部工具栏 ---- */
.top-bar {
    background: #f0f0f0;
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-links a {
    margin-left: 14px;
    color: var(--text-muted);
}
.top-bar-links a:hover { color: var(--teal); }

/* ---- Header ---- */
.site-header {
    padding: 16px 0;
    background: var(--white);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-mobile { display: none; }
.search-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.search-form input {
    border: none;
    padding: 8px 14px;
    width: 220px;
    font-size: 13px;
    outline: none;
}
.search-form button {
    border: none;
    background: var(--teal);
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
}
.search-form button:hover { background: var(--teal-dark); }

/* ---- 主导航 ---- */
.main-nav {
    background: var(--teal);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 16px;
    cursor: pointer;
}
.nav-list {
    display: flex;
    list-style: none;
    justify-content: space-between;
}
.nav-link {
    display: block;
    color: #fff;
    padding: 14px 0;
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.15s;
}
.nav-link:hover,
.nav-link.active { background: var(--teal-dark); color: #fff; }

/* ---- 页脚 ---- */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-grid h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-grid p, .footer-grid a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}
.footer-grid a:hover { color: var(--gold); }
.site-footer a { color: rgba(255,255,255,0.6); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- 通用内容区 ---- */
.page-banner {
    background: var(--teal-light);
    padding: 36px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #D4ECEC;
}
.page-banner h1 {
    font-size: 24px;
    color: var(--teal-dark);
}
.content-area {
    min-height: 400px;
    padding: 20px 0;
}

/* ---- 轮播图 ---- */
.carousel {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 18px;
}
.carousel-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 8px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.carousel-dot.active { background: #fff; }

/* ---- 轮播箭头 ---- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: rgba(0,0,0,0.45); }
.carousel-arrow.prev { left: 30px; }
.carousel-arrow.next { right: 30px; }

/* ---- 快速入口 ---- */
.quick-entry {
    background: var(--teal-light);
    padding: 0;
    display: flex;
    margin: 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.quick-entry-title {
    background: var(--teal);
    color: #fff;
    width: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    writing-mode: vertical-rl;
    letter-spacing: 4px;
    font-weight: 600;
}
.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 24px 30px;
    flex: 1;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.quick-item:hover { transform: translateY(-2px); }
.quick-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: background 0.2s;
}
.quick-item:hover .quick-icon { background: var(--teal) !important; }
.quick-label {
    font-size: 13px;
    color: var(--text);
}

/* ---- 双栏布局 ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin: 30px 0;
}

/* ---- 卡片网格 ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-3px); }
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--teal-light);
}
.card-body { padding: 14px 16px; }
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ---- 通知公告列表 ---- */
.notice-list {
    list-style: none;
}
.notice-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.notice-item:last-child { border-bottom: none; }
.notice-tag {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 2px;
    white-space: nowrap;
    background: var(--teal-light);
    color: var(--teal);
}
.notice-item a {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.notice-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ---- 联系我们 4 块 ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.contact-card {
    background: var(--white);
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    border: 1px solid #ECF0F0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.25s;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.contact-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.contact-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--teal-dark);
}
.contact-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- 友情链接 ---- */
.friend-links {
    margin: 30px 0;
}
.friend-links h2 {
    font-size: 20px;
    color: var(--teal-dark);
    margin-bottom: 16px;
    text-align: center;
}
.friend-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
}
.friend-track {
    display: flex;
    gap: 16px;
    overflow: hidden;
    flex: 1;
    scroll-behavior: smooth;
    justify-content: center;
    flex-wrap: wrap;
}
.friend-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 13px;
    flex-shrink: 0;
}
.friend-arrow {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.friend-arrow:hover { background: var(--teal-light); }

/* ---- 友情链接卡片滚动 ---- */
.links-wrap {
    display: flex;
    align-items: center;
    position: relative;
}
.links-viewport {
    flex: 1;
    overflow: hidden;
}
.links-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}
.links-item {
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
    background: #fff;
    border: 1px solid #ECF0F0;
    border-radius: 10px;
    padding: 24px 12px 14px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.links-item:hover {
    border-color: #0A6E6E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10,110,110,0.08);
}
.links-item .lk-img {
    width: 64px;
    height: 64px;
    background: #F5F7F7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 10px;
}
.links-item p {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}
.links-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #DDD;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}
.links-arrow:hover {
    background: #0A6E6E;
    color: #fff;
    border-color: #0A6E6E;
}
.links-prev { margin-right: 12px; }
.links-next { margin-left: 12px; }

/* ---- 分页 ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
}
.pagination a,
.pagination span {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
}
.pagination a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---- 面包屑 ---- */
.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 10px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--teal); }

/* ---- 文章详情 ---- */
.article-detail h1 { font-size: 24px; color: var(--teal-dark); margin-bottom: 10px; }
.article-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.article-body { line-height: 1.9; font-size: 15px; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---- 搜索页 ---- */
.search-header { margin-bottom: 24px; }
.search-header h2 { font-size: 20px; color: var(--teal-dark); }
.search-result-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.search-result-item h3 { font-size: 16px; margin-bottom: 4px; }
.search-result-item p { font-size: 13px; color: var(--text-muted); }

/* ---- 联系表单 ---- */
.contact-form { max-width: 600px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--teal); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---- 区块标题 ---- */
.section-title {
    font-size: 20px;
    color: var(--teal-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--teal);
}

/* ============================================================
   响应式断点
   ============================================================ */

/* 平板 ≤ 992px */
@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .nav-list {
        display: none;
        flex-direction: column;
    }
    .nav-list.open { display: flex; }
    .nav-link { padding: 10px 16px; }

    .carousel { height: 340px; }
    .quick-entry-grid { grid-template-columns: repeat(3, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机 ≤ 640px */
@media (max-width: 640px) {
    .top-bar-welcome { display: none; }
    .logo-pc { display: none; }
    .logo-mobile { display: block; }
    .search-form input { width: 140px; }

    .carousel { height: 220px; }
    .carousel-caption { font-size: 14px; padding: 12px 16px; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 18px; }
    .carousel-arrow.prev { left: 10px; }
    .carousel-arrow.next { right: 10px; }

    .quick-entry { flex-direction: column; }
    .quick-entry-title {
        writing-mode: horizontal-tb;
        width: 100%;
        min-width: auto;
        padding: 8px 0;
        font-size: 14px;
        letter-spacing: 2px;
    }
    .quick-entry-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; }

    .card-grid { grid-template-columns: 1fr; }
    .card-grid-3 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }

    .two-col { grid-template-columns: 1fr; }

    .site-header .container { flex-direction: column; gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
}
