/* ================= 基础配置与变量 ================= */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary-orange: #ff6a00;
    --text-main: #ffffff;
    --text-sub: #888888;
    --border-color: #333333;
    --dashed-border: #444444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* ================= 1. 网站头部 (Logo及标题) ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-text h1 {
    font-size: 24px;
    font-weight: normal;
}

.header-left img {
    max-width: 150px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

header > img {
    max-width: 100px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-text p {
    color: var(--text-sub);
    font-size: 12px;
}

/* ================= 2. 无序列表导航栏 ================= */
nav {
    background-color: #1a1a1a;
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li a {
    display: block;
    padding: 15px 30px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-list li a:link {
    color: var(--text-main);
    background-color: transparent;
}

.nav-list li a:visited {
    color: #aaaaaa;
    background-color: #111111;
}

.nav-list li a:hover {
    color: #ffffff;
    background-color: var(--primary-orange);
}

/* ================= 3. 广告条 Banner ================= */
.hero {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #000;
}

.hero-about {
    height: 300px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero-content p {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.hero-content .en-title {
    letter-spacing: 10px;
    font-size: 12px;
    color: var(--text-sub);
}

/* ================= 主体内容网格 ================= */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.card-title {
    font-size: 16px;
    border-left: 4px solid var(--primary-orange);
    padding-left: 10px;
}

.card-more {
    font-size: 12px;
    color: var(--text-sub);
    text-decoration: none;
}

/* ================= 4 & 5. 新闻与公告列表规范 ================= */
.news-list {
    list-style: none;
}

.news-list li {
    border-bottom: 1px dashed var(--dashed-border);
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.news-list li a:link {
    color: #dddddd;
}

.news-list li a:visited {
    color: #777777;
}

.news-list li a:hover {
    color: var(--primary-orange);
}

.news-list li .date {
    color: var(--text-sub);
    font-family: monospace;
    font-size: 12px;
}

/* ================= 6. 视频模块 ================= */
.video-container {
    width: 100%;
    background-color: #000;
    margin-bottom: 10px;
}

video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    outline: none;
}

/* ================= 7. 会员登录窗口 (CSS布局美化) ================= */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 10px 12px 35px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: white;
    margin-bottom: 15px;
    border-radius: 2px;
}

.login-form input:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.login-options {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 15px;
}

.login-options a {
    text-decoration: none;
    color: var(--text-sub);
}

.login-options a:hover {
    color: var(--primary-orange);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-orange);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 2px;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: #e65c00;
}

.register-link {
    text-align: center;
    font-size: 12px;
    color: var(--text-sub);
}

.register-link a {
    color: var(--primary-orange);
    text-decoration: none;
    cursor: pointer;
}

/* ================= 8. 友情链接 (图片和文字混合) ================= */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.link-item:hover h4 {
    color: var(--primary-orange);
}

.link-item img {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    object-fit: contain;
    flex-shrink: 0;
}

.link-text h4 {
    font-size: 12px;
    font-weight: normal;
    transition: color 0.2s;
}

.link-text p {
    font-size: 10px;
    color: var(--text-sub);
}

/* ================= 9. 页脚与版权 (快速菜单与版权信息) ================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background-color: #121212;
    font-size: 12px;
    color: var(--text-sub);
}

footer .container {
    display: flex;
    justify-content: space-between;
}

.footer-title {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
}

.quick-menu a {
    margin-right: 15px;
    text-decoration: none;
    color: var(--text-sub);
}

.quick-menu a:hover {
    color: var(--primary-orange);
}

.copyright-info p {
    line-height: 1.8;
    text-align: right;
}

/* ================= 补充组件样式 ================= */
.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 12px;
    color: #888;
}

.video-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
}

.more-link {
    color: var(--primary-orange);
    font-size: 12px;
    text-decoration: none;
}

.links-header {
    border-bottom: none;
    margin-bottom: 0;
    margin-left: 20px;
}

.footer-title-right {
    text-align: right;
}

.auth-result {
    margin-top: -10px;
    margin-bottom: 12px;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.4;
    height: 20px;
    visibility: hidden;
}

.auth-success {
    color: #7dcea0;
}

.auth-error {
    color: #e07070;
}

.auth-warn {
    color: #e0c070;
}

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    header {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .header-left {
        gap: 12px;
    }

    .header-text h1 {
        font-size: 18px;
    }

    .header-text p {
        font-size: 11px;
    }

    header > img {
        max-width: 80px;
        max-height: 40px;
    }

    .nav-list {
        justify-content: center;
    }

    .nav-list li a {
        padding: 12px 18px;
        font-size: 13px;
    }

    .hero {
        height: 220px;
        margin-bottom: 15px;
    }

    .hero-about {
        height: 180px;
    }

    .hero-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .hero-content p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hero-content .en-title {
        letter-spacing: 4px;
        font-size: 10px;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .news-list li {
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 0;
        font-size: 13px;
    }

    .news-list li a {
        margin-right: 0;
        white-space: normal;
    }

    .news-list li .date {
        width: 100%;
        margin-left: 14px;
        margin-top: -6px;
    }

    video {
        height: 180px;
    }

    .login-options {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .link-item {
        justify-content: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .quick-menu-area,
    .copyright-info {
        text-align: center;
    }

    .copyright-info p {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .header-left img {
        max-width: 110px;
        max-height: 38px;
    }

    header > img {
        max-width: 65px;
        max-height: 32px;
    }

    .header-text h1 {
        font-size: 16px;
    }

    .nav-list li a {
        padding: 10px 14px;
        font-size: 12px;
    }

    .hero {
        height: 160px;
    }

    .hero-about {
        height: 130px;
    }

    .hero-content h2 {
        font-size: 16px;
    }

    .hero-content p {
        font-size: 11px;
    }

    .hero-content .en-title {
        letter-spacing: 2px;
        font-size: 9px;
    }

    .card-title {
        font-size: 14px;
    }

    .news-list li {
        font-size: 12px;
    }

    .link-item img {
        width: 30px;
        height: 30px;
    }

    video {
        height: 150px;
    }
}
