@charset "UTF-8";

:root {
    --bg-main: #0c0e12;
    --bg-card: rgba(18, 20, 28, 0.85);
    --gold-primary: #d4af37;
    --gold-light: #fdf5a9;
    --gold-dark: #8a6f1c;
    --red-primary: #e53935;
    --red-dark: #8e0000;
    --text-main: #e0e0e0;
    --text-muted: #a0aab2;
    --border-gold: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    --glow-gold: 0 0 15px rgba(212, 175, 55, 0.4);
    --glow-red: 0 0 20px rgba(198, 40, 40, 0.6);
    --font-heading: 'Noto Serif SC', 'Microsoft YaHei', serif;
    --font-body: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-main);
    background-image: url('../images/bg1.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fixed Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 11, 16, 0.95);
    border-bottom: 2px solid var(--gold-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    position: absolute;
    right: 20px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--gold-light);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: var(--transition);
    padding: 5px 15px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #fff;
    text-shadow: var(--glow-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Hero Section */
.hero {
    margin-top: 60px;
    /* Offset for navbar */
    position: relative;
    width: 100%;
    height: 650px;
    background-image: url('../images/header.jpg');
    background-size: cover;
    background-position: top center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid var(--gold-dark);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-main), transparent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Elegant Section Images */
.elegant-section-title {
    text-align: center;
    position: relative;
    margin: 60px auto 40px;
    width: 100%;
    max-width: 800px;
    height: 140px;
    background-image: url('../images/elegant_title_dark.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    mix-blend-mode: screen;
}

.elegant-section-title h2 {
    color: #ffd54f;
    /* Bright gold */
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: bold;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 213, 79, 0.8);
    margin-bottom: 5px;
    z-index: 2;
}

.elegant-section-title .subtitle {
    color: var(--gold-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.9;
    z-index: 2;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-gold);
}

.card-header h3 {
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--gold-dark);
    padding-bottom: 10px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 30px;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

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

.news-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.news-tag {
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
}

.news-tag::after {
    content: '|';
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: normal;
}

.news-tag.type-focus {
    color: var(--red-primary);
}

.news-tag.type-notice {
    color: var(--text-main);
}

.news-title {
    flex-grow: 1;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

.news-item:hover .news-title {
    color: var(--gold-light);
}

.news-item.highlight .news-title {
    color: #ffcc88;
    font-weight: bold;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 15px;
    white-space: nowrap;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.rich-table {
    width: 100%;
    border-collapse: collapse;
}

.rich-table th {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(138, 111, 28, 0.4) 100%);
    color: var(--gold-light);
    border: 1px solid var(--gold-dark);
    padding: 12px 15px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px #000;
}

.rich-table td {
    border: 1px solid rgba(138, 111, 28, 0.3);
    padding: 12px 15px;
    background: rgba(10, 11, 16, 0.4);
    text-align: center;
    line-height: 1.6;
}

.rich-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

/* Colors for specific table rows */
.t-high {
    color: #ff6b6b;
    font-weight: bold;
}

.t-mid {
    color: #ffcc88;
    font-weight: bold;
}

.t-low {
    color: #9dd9ff;
    font-weight: bold;
}

/* Action Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--gold-primary);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2), rgba(138, 111, 28, 0.6));
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    transition: var(--transition);
    text-shadow: 1px 1px 2px #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.8));
    color: #fff;
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

/* Hero Actions Section */
.hero-actions {
    margin-top: -100px;
    /* Pulls buttons up into hero area */
    margin-bottom: 40px;
    position: relative;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

.btn-large {
    position: relative;
    font-size: 1.6rem;
    padding: 18px 50px;
    border-radius: 12px;
    letter-spacing: 2px;
    min-width: 280px;
    text-align: center;
    border: 2px solid var(--gold-primary);
    background: rgba(42, 26, 5, 0.95);
    /* Solid dark base to hide background lines */
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(212, 175, 55, 0.2);
    /* Remove default gradient for large buttons */
    background-image: none !important;
}

.btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/btn_gold.png');
    background-size: cover;
    background-position: center;
    mix-blend-mode: screen;
    z-index: -1;
    opacity: 0.85;
    transition: var(--transition);
}

.btn-large:hover::before {
    opacity: 1;
    transform: scale(1.05);
    /* Slight texture scaling on hover */
}

.btn-large.btn-red {
    border-color: var(--red-primary);
    background: rgba(45, 10, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(229, 57, 53, 0.2);
}

.btn-large.btn-red::before {
    background-image: url('../images/btn_red.png');
}

.btn-red {
    border-color: var(--red-primary);
    background: linear-gradient(180deg, rgba(229, 57, 53, 0.2), rgba(142, 0, 0, 0.6));
    color: #fff;
}

.btn-red:hover {
    background: linear-gradient(180deg, rgba(229, 57, 53, 0.4), rgba(229, 57, 53, 0.8));
    box-shadow: var(--glow-red);
}

/* Floating QR Code */
.floating-qr {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    text-align: center;
    z-index: 999;
}

/* Floating QR Code */
.floating-qr .border{

    background: rgba(18, 20, 28, 0.95);
    border: 2px solid var(--gold-dark);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--glow-gold);
    z-index: 999;
    margin: 20px 0;
}

.floating-qr img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.floating-qr p {
    color: var(--gold-light);
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-all;
}

/* News Section */
.news-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 20;
}

/* Footer */
.site-footer {
    background: rgba(10, 11, 16, 0.95);
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid var(--gold-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .floating-qr {
        display: none;
        /* Hide floating QR on mobile/tablet */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 20px 12px;
    }

    .card {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .card-header h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .elegant-section-title {
        height: 100px;
        margin: 40px auto 25px;
    }

    .elegant-section-title h2 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .elegant-section-title .subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .hero {
        height: 350px;
    }

    .hero::after {
        height: 80px;
    }

    /* Mobile Tables */
    .rich-table th,
    .rich-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .rich-table th {
        font-size: 0.95rem;
    }

    /* Mobile News List */
    .news-item {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .news-title {
        white-space: normal;
        margin-bottom: 5px;
        order: -1;
        width: 100%;
        font-size: 0.95rem;
    }

    .news-tag {
        font-size: 0.85rem;
    }

    .news-tag::after {
        display: none;
    }

    .news-date {
        margin-left: auto;
        font-size: 0.8rem;
    }

    /* Mobile Action Buttons */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: -60px;
        padding: 0 15px;
    }

    .btn-large {
        font-size: 1.3rem;
        padding: 15px 20px;
        width: 100%;
        min-width: auto;
    }

    /* Mobile Nav Styles */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 11, 16, 0.98);
        border-bottom: 2px solid var(--gold-dark);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px;
        width: 100%;
        text-align: center;
        border-bottom: 1px dotted rgba(212, 175, 55, 0.2);
    }

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

    /* Mobile footer */
    .site-footer {
        padding: 25px 15px;
    }

    .site-footer p {
        font-size: 0.85rem;
    }
}

/* Very small screens (<=480px) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .hero {
        height: 280px;
    }

    .hero-actions {
        margin-top: -50px;
    }

    .btn-large {
        font-size: 1.15rem;
        padding: 13px 15px;
    }

    .card {
        padding: 15px 12px;
        border-radius: 6px;
    }

    .rich-table th,
    .rich-table td {
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    .elegant-section-title {
        height: 80px;
        margin: 30px auto 20px;
    }

    .elegant-section-title h2 {
        font-size: 1.35rem;
    }

    .elegant-section-title .subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .class-box h3 {
        font-size: 1.4rem;
    }
}