﻿/* ========================================
   CSS Reset & 基础样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    text-size-adjust: none;
}

html, body {
    width: 100%;
    margin: 0;
}

/* 统一重置所有元素 */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img,
ins, kbd, q, samp, small, strong, sub, sup, var,
b, i, dl, dt, dd, ol, ul, li, fieldset, form,
label, legend, table, caption, tbody, tfoot,
thead, tr, th, td, article, aside, canvas,
details, figcaption, figure, footer, header,
hgroup, menu, nav, section, summary, time,
mark, audio, video {
    font-size: 100%;
    font-weight: inherit;
    font-style: normal;
    vertical-align: baseline;
    background: transparent;
    border: 0;
    outline: 0;
}

/* HTML5元素显示为block */
article, aside, figure, figure img, hgroup,
footer, header, nav, section {
    display: block;
}

/* 表格样式 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 列表样式 */
ol, ul {
    list-style: none;
}

/* 引用样式 */
blockquote, q {
    quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
    content: none;
}

/* 图片样式 */
img, embed, object, video {
    max-width: 100%;
}

a img {
    border: none;
}

/* ========================================
   CSS 变量（便于维护）
   ======================================== */
:root {
    --primary-color: rgb(36, 93, 148);
    --primary-dark: rgb(12, 63, 118);
    --primary-light: rgb(58, 120, 179);
    --accent-color: rgb(30, 165, 255);
    --text-color: rgb(51, 51, 51);
    --text-light: rgb(102, 102, 102);
    --text-muted: rgb(157, 157, 157);
    --bg-color: rgb(235, 235, 235);
    --bg-light: rgb(249, 249, 249);
    --bg-white: rgb(255, 255, 255);
    --border-color: rgb(221, 221, 221);
    --footer-bg: rgb(57, 63, 79);
    --footer-text: rgb(236, 236, 236);
    --nav-bg: rgb(34, 34, 34);
    --nav-hover: rgb(1, 91, 170);
}

/* ========================================
   全局基础样式
   ======================================== */
body {
    font-size: 14px;
    font-family: "Microsoft YaHei", "微软雅黑", Helvetica, Arial, Tahoma, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    text-align: center;
    word-break: break-all;
    overflow-wrap: break-word;
    cursor: default;
}

/* 链接样式 */
a {
    color: rgb(62, 62, 62);
    text-decoration: none;
    outline: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

a:active {
    outline: none;
}

/* 标题样式 */
h1 {
    font-size: 24px;
    font-weight: bold;
}

h2 {
    font-size: 14px;
    font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
}

/* 表单元素 */
form {
    text-align: left;
}

form ul {
    margin-left: 130px;
}

form li {
    margin: 5px;
}

input, select, textarea, option {
    vertical-align: middle;
    font-size: 12px;
    color: var(--text-color);
    font-family: "Microsoft YaHei", "微软雅黑", Tahoma, Arial, sans-serif;
    outline: none;
}

input[type="submit"],
input[type="reset"],
input[type="button"],
button {
    appearance: none;
    border-radius: 0;
}

input[type="text"],
input[type="checkbox"],
input[type="submit"] {
    border-radius: 0;
}

input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
    outline: -webkit-focus-ring-color auto 5px;
    outline-offset: -2px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    height: auto;
}

textarea {
    overflow: auto;
    resize: none;
}

label, label input {
    vertical-align: middle;
}

/* 焦点样式 */
:focus {
    outline: 0;
}

/* ========================================
   通用工具类
   ======================================== */
.clear {
    clear: both;
    overflow: hidden;
}

.h15 {
    height: 15px;
}

.sh {
    float: none;
    clear: both;
    font-size: 0;
    line-height: 0;
}

/* 分隔线 */
hr {
    color: var(--bg-white);
    background-color: rgb(222, 224, 227);
    height: 1px;
    border: 0;
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   分页样式 (#PageRows)
   ======================================== */
#PageRows {
    margin: 5px;
    line-height: normal;
    font-size: 14px;
}

#PageRows a,
#PageRows span {
    padding: 5px 5px 4px;
    margin-right: 5px;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    text-align: center;
    display: inline-block;
}

#PageRows a:hover,
#PageRows .aok {
    color: rgb(0, 0, 0);
    border: 1px solid var(--border-color);
}

/* ========================================
   底部区域 (#bottom)
   ======================================== */
#bottom {
    padding-top: 5px;
    padding-bottom: 5px;
    background-image: url("/image/Bottom_Background.jpg");
    background-repeat: repeat-x;
    background-position: 0% 0%;
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

#bottom li {
    margin: 8px 0;
}

#bottom a {
    color: var(--footer-text);
}

#bottom a:hover {
    color: rgb(35, 115, 204);
}

/* ========================================
   导航栏 (nav)
   ======================================== */
nav {
    font-family: Helvetica, Arial, sans-serif;
    text-align: left;
    text-transform: uppercase;
    background-color: var(--nav-bg);
}

nav ul {
    width: 90%;
    max-width: 1024px;
    margin: 0 auto;
    list-style-type: none;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: var(--text-muted);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 1em;
    box-sizing: border-box;
}

nav ul li a:hover {
    color: var(--bg-white);
}

/* ========================================
   顶部导航 (.s_header)
   ======================================== */
.s_header {
    height: 41px;
    background-color: var(--primary-color);
}

.s_header nav {
    position: relative;
    left: 0;
    top: 0;
    line-height: 41px;
    background-color: var(--primary-color);
    width: 100%;
    z-index: 5;
    text-align: center;
    color: var(--bg-white);
    font-size: 150%;
}

.s_header i {
    float: right;
    display: inline-block;
    width: 25px;
    height: 18px;
    background-position: -20px 0;
    margin: 6px 24px 0 0;
}

.s_header #more {
    float: right;
    display: inline-block;
    color: var(--bg-white);
    line-height: 27px;
    padding: 0 10px;
    border: 1px solid var(--primary-dark);
    background-color: var(--primary-light);
    margin-right: 10px;
}

.s_header .s_b {
    float: right;
    display: inline-block;
    width: 26px;
    height: 23px;
    margin-right: 17px;
    margin-top: 5px;
    background-position: -27px -24px;
}

.s_header i#more {
    background-size: 90px 63px;
    border: none;
    width: 24px;
    height: 20px;
    margin-right: 20px;
    padding: 0;
}

.s_header .bg {
    float: left;
}

.s_header .navtitle {
    position: absolute;
    width: 100%;
    line-height: 29px;
    text-align: center;
    color: var(--bg-white);
}

.s_header nav span {
    position: relative;
    margin-left: 10px;
}

.s_header nav .navt::before {
    background-size: 36px 36px;
    height: 36px;
    left: -30px;
    width: 36px;
    position: absolute;
    top: 2px;
    content: "";
}

.s_header nav span.qq {
    position: absolute;
    left: 0;
}

.s_header nav iframe {
    position: absolute;
    top: 7px;
}

.s_header nav .userspan {
    position: absolute;
    right: 10px;
    line-height: 41px;
    font-size: 80%;
    color: var(--bg-white);
}

.s_header nav .userspan a {
    color: var(--bg-white);
}

.s_header nav .userspan::before {
    background-size: 32px 32px;
    height: 36px;
    left: -28px;
    width: 32px;
    position: absolute;
    top: 3px;
    content: "";
}

/* ========================================
   底部导航栏 (.navbarx)
   ======================================== */
.navbarx,
.navbarx ul {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    -webkit-box-align: center;
}

.navbarx ul {
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    background-color: var(--nav-hover);
    display: flex;
}

.navbarx ul li {
    width: 20%;
    flex: 1;
    text-align: center;
}

.navbarx ul li a {
    font: 16px "Microsoft YaHei", "微软雅黑", sans-serif;
    display: block;
    color: var(--bg-white);
    padding: 10px 0;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(51, 110, 163) rgb(1, 76, 141) rgb(1, 76, 141);
}

.navbarx ul li a:hover,
.navbarx a.current {
    background-color: rgb(37, 116, 184);
    color: var(--bg-white);
    text-shadow: rgb(0, 75, 141) 0 1px 0;
}

/* ========================================
   图片画廊 (.gallery-container)
   ======================================== */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image-container {
    width: 100%;
    aspect-ratio: 1 / 0.8;
    overflow: hidden;
}

.gallery-caption {
    font-size: 14px;
    padding: 10px;
    text-align: center;
    background: var(--bg-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: red;
    font-weight: bold;
}

/* ========================================
   响应式优化（可选）
   ======================================== */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbarx ul li {
        width: 25%;
    }
    
    form ul {
        margin-left: 0;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .navbarx ul li {
        width: 50%;
    }
}