﻿/* ============================================
   缃楁箹鏁欒偛淇℃伅缃?- 涓绘牱寮忚〃
   瀵瑰簲鍘?Web.config 涓殑鏍峰紡閰嶇疆鍜?ASP.NET 涓婚
   ============================================ */

/* ---- CSS 鍙橀噺 / 涓婚鑹?---- */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #5f6368;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #0f9d58;
    --danger-color: #db4437;
    --warning-color: #f4b400;
    --header-height: 60px;
    --max-width: 1200px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "寰蒋闆呴粦", sans-serif;
}

/* ---- 鍏ㄥ眬閲嶇疆 ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

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

/* ---- 椤堕儴瀵艰埅 ---- */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: var(--header-height);
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: bold;
}
.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 5px;
}
.main-nav a {
    display: block;
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 15px;
    transition: background 0.2s;
}
.main-nav a:hover {
    background: #e8f0fe;
    color: var(--primary-color);
    text-decoration: none;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}
.user-area a {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}
.user-area a:hover {
    background: #e8f0fe;
    text-decoration: none;
}

/* ---- 涓诲唴瀹瑰尯 ---- */
.site-main {
    flex: 1;
    padding: 20px 0;
}

.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- 棣栭〉 ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #4285f4);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}
.hero-banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
}
.hero-banner p {
    font-size: 16px;
    opacity: 0.9;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.section-header h2 {
    font-size: 20px;
    color: var(--primary-color);
}
.more-link {
    font-size: 13px;
    color: var(--secondary-color);
}

.news-list li, .notice-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}
.news-list a, .notice-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}
.news-list a:hover, .notice-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}
.news-date, .notice-date {
    font-size: 12px;
    color: var(--secondary-color);
    white-space: nowrap;
    margin-left: 15px;
}
.empty {
    padding: 40px 0;
    text-align: center;
    color: var(--secondary-color);
}

/* ---- 鍒楄〃椤?---- */
.news-page h1, .gonggao-page h1, .zhaopin-page h1 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.news-item, .gonggao-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.news-item a, .gonggao-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}
.news-item h3, .gonggao-item h3 {
    font-size: 16px;
    font-weight: normal;
    flex: 1;
}

/* 鏍″叕鍛?/gonggao/gg)锛氭棩鏈?鏍囬宸﹀榻愶紝鏍囬涓嶅啀琚?space-between 鎺ㄥ埌鍙充晶 */
.gg-list .gonggao-item a {
    justify-content: flex-start;
}
.gg-list .gonggao-item .gonggao-title {
    margin-left: 6px;
}

/* 鎷涜仒鍏憡(/news/zhaopin) 琛ㄦ牸锛氭暣瀹介摵婊?+ 涓?/gg 涓€鑷寸殑鐣欑櫧/鎻忚竟/閰嶈壊 */
.zhaopin-list .table {
    width: 100%;
    border-collapse: collapse;
}
.zhaopin-list .table th,
.zhaopin-list .table td {
    padding: 14px;
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.zhaopin-list .table thead th {
    background: #fcf9fc;
    font-weight: 700;
    white-space: nowrap;
}
.zhaopin-list .table tbody tr:hover {
    background: #f7faff;
}
.zhaopin-list .table td a {
    color: var(--text-color);
}
.zhaopin-list .table td a:hover {
    color: var(--primary-color);
}
.news-summary {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

/* ---- 璇︽儏椤?---- */
.news-detail, .gonggao-detail {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.article-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--secondary-color);
}
.article-content {
    line-height: 1.8;
    font-size: 15px;
    min-height: 200px;
}
.article-content img {
    max-width: 100%;
    margin: 10px 0;
}
.article-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.back-link {
    font-size: 14px;
}

/* ---- 鍒嗛〉 ---- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 15px 0;
}
.pagination a {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}
.pagination a:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-color: var(--primary-color);
}
.pagination span {
    color: var(--secondary-color);
}

/* ---- 琛ㄥ崟 ---- */
.login-page, .change-password-page {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}
.login-container, .form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
}
.login-container h2, .form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 22px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}
.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}
.text-danger {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 4px;
}
.validation-summary {
    color: var(--danger-color);
    background: #fde8e8;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
}
.alert-success {
    background: #e6f4ea;
    color: var(--success-color);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

/* ---- 鎸夐挳 ---- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: #e0e0e0;
}

/* ---- 閿欒椤?---- */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-page h1 {
    font-size: 80px;
    color: var(--border-color);
    line-height: 1;
}
.error-page h2 {
    font-size: 24px;
    margin: 15px 0;
}
.error-page p {
    color: var(--secondary-color);
    margin-bottom: 25px;
}
.error-page .btn {
    width: auto;
    padding: 10px 30px;
}

/* ---- 鍏充簬椤?---- */
.about-page {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.about-page h1 {
    font-size: 24px;
    margin-bottom: 20px;
}
.about-content p {
    margin-bottom: 12px;
    line-height: 1.8;
}
.about-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

/* ---- 搴曢儴 ---- */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    font-size: 13px;
    color: var(--secondary-color);
}
.footer-container p {
    margin-bottom: 5px;
}

/* ---- 鍝嶅簲寮?---- */
@media (max-width: 768px) {
    .home-content {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
    }
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-banner h1 {
        font-size: 24px;
    }
    .news-detail, .gonggao-detail {
        padding: 20px;
    }
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================
   鍥剧墖鏂伴椈椤碉紙/news/tupian锛?   瀵瑰簲鍘熺珯 news/tupian1.aspx锛氫笁鍒楀浘鐗囩綉鏍?+ 瀛︽牎绛涢€夊脊绐?+ DevNetPager 鍒嗛〉
   ============================================ */

/* 宸ュ叿鏉★細澶撮儴鍙暀 h1锛堟牱寮忓鐢?.news-page h1锛屼笌 /gonggao/gg 涓€鑷达級锛?   銆岄€夋嫨瀛︽牎銆嶆寜閽笅绉诲埌鍒楄〃涓婃柟銆佸彸瀵归綈 */
.photo-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 15px;
}
.btn-school-picker {
    flex-shrink: 0;
    height: 32px;
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    color: #fff;
    background: var(--success-color);
    border: 1px solid var(--success-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-school-picker:hover {
    background: #0b8043;
}

/* ---- 瀛︽牎绛涢€夊脊绐楋紙瀵瑰簲鍘熼〉 window_css / shadow_css锛?---- */
.school-shadow {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0.6;
    z-index: 997;
}
.school-window {
    position: fixed;
    left: 10%;
    top: 5%;
    width: 80%;
    height: 90%;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    z-index: 998;
    overflow-y: auto;
}
.school-window-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    background: var(--warning-color);
    border-radius: 50%;
}
.school-window-close:hover {
    text-decoration: none;
    color: #fff;
}
.school-window-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.school-window-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.school-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-color);
    background: #f5f7fb;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.school-chip:hover {
    background: #e8f0fe;
    color: var(--primary-color);
    text-decoration: none;
}
.school-chip.active {
    background: var(--primary-color);
    color: #fff;
}

/* ---- 涓夊垪鍥剧墖缃戞牸锛堝搴斿師椤?DataList RepeatColumns="3"锛?---- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
}
.photo-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.photo-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.photo-thumb {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}
.photo-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.photo-item:hover .photo-thumb img {
    transform: scale(1.04);
}
.photo-meta {
    padding: 10px 12px 12px;
}
.photo-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-color);
    min-height: 42px;
}
.photo-title:hover {
    color: var(--primary-color);
}
.photo-date {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--secondary-color);
}

/* ---- 鍒嗛〉锛堝榻愬師椤?DevNetPager锛氶椤?鏈〉/椤电爜/璺宠浆锛?---- */
.photo-pagination {
    flex-wrap: wrap;
    gap: 6px;
}
.photo-pagination a,
.photo-pagination span.page-disabled,
.photo-pagination span.page-current {
    display: inline-block;
    min-width: 34px;
    height: 32px;
    line-height: 30px;
    padding: 0 10px;
    text-align: center;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.photo-pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
}
.photo-pagination span.page-disabled {
    color: #bbb;
    background: #fafafa;
    cursor: not-allowed;
}
.photo-pagination span.page-current {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 700;
}
.photo-pagination .page-info {
    margin-left: 8px;
    color: var(--secondary-color);
}
.photo-pagination .page-goto {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
}
.photo-pagination .page-goto input {
    width: 56px;
    height: 32px;
    padding: 0 6px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}
.photo-pagination .page-goto button {
    height: 32px;
    padding: 0 12px;
    color: #fff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}
.photo-pagination .page-goto button:hover {
    background: var(--primary-dark);
}

/* ---- 鍥剧墖鐏 ---- */
.photo-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    cursor: zoom-out;
}
.photo-lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.photo-lightbox-title {
    max-width: 90vw;
    color: #fff;
    font-size: 14px;
    text-align: center;
}
.photo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 32px;
    line-height: 1;
    color: #fff;
}

/* ---- 鍝嶅簲寮忥細绐勫睆鍥炶惤涓ゅ垪 / 鍗曞垪 ---- */
@media (max-width: 992px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .photo-toolbar {
        justify-content: flex-start;
    }
    .school-window {
        left: 3%;
        top: 3%;
        width: 94%;
        height: 94%;
        padding: 15px;
    }
    .photo-pagination .page-info,
    .photo-pagination .page-goto {
        width: 100%;
        margin-left: 0;
    }
}


/* ---- 濯掍綋閫夌櫥鍒楄〃椤?/news/news2) ---- */
.media-news-page h1 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}
.media-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.media-left {
    flex: 1;
    min-width: 0;
}
.media-right {
    width: 280px;
    flex: 0 0 280px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    text-align: left;
}
.media-news-page .information {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.media-news-page .information a {
    display: inline-block;
    padding: 4px 8px;
    background: #AAA;
    color: #FFF;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}
.media-news-page .information a.active,
.media-news-page .information a:hover {
    background: #266fbd;
    color: #FFF;
}
.media-schoolname {
    padding: 10px 5px 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #DDD;
}
.media-schoolname a {
    margin-left: 10px;
    color: var(--primary-color);
}
.media-list {
    text-align: left;
}
.media-item {
    display: block;
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
}
.media-item:hover {
    background: #f7faff;
}
.media-item .h1 {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: normal;
}
.media-item .h1 .title1 {
    background: #237ac3;
    color: #FFF;
    padding: 2px 10px;
    border-radius: 3px 0 0 0;
    margin-right: 10px;
}
.media-item .h1 .other1 {
    color: #237ac3;
    margin-right: auto;
}
.media-item .h1 .other2 {
    color: var(--secondary-color);
    white-space: nowrap;
}
.media-item .media-title {
    font-size: 15px;
    font-weight: normal;
    line-height: 1.6;
    color: var(--text-color);
}
.media-item .media-date {
    color: var(--secondary-color);
    font-size: 13px;
    margin-left: 6px;
}
.media-right .lastest .title {
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.media-right .lastest_content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.media-right .lastest_content li {
    padding: 5px 0;
    text-align: left;
}
.media-right .lastest_content li a {
    color: var(--text-color);
    text-decoration: none;
}
.media-right .lastest_content li a.active,
.media-right .lastest_content li a:hover {
    color: var(--primary-color);
}
@media (max-width: 900px) {
    .media-content {
        flex-direction: column;
    }
    .media-right {
        width: 100%;
        flex: 1 1 auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 15px;
    }
}

