/* ===== CSS Variables ===== */
:root {
    --primary: #0a2463;
    --primary-light: #1a3a7a;
    --primary-dark: #061840;
    --accent: #2563eb;
    --accent-light: #3b82f6;
    --accent-dark: #1d4ed8;
    --gold: #d4a853;
    --gold-light: #f0d78c;
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 36, 99, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 36, 99, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2463 0%, #1a3a7a 30%, #0f2b6b 60%, #061840 100%);
    overflow: hidden;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 168, 83, 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.hero-uni {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    margin-bottom: 8px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particles::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.hero-particles::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    bottom: 15%;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ===== Section Common ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== Major Cards ===== */
.major-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.major-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.major-header {
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.major-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.major-degree {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 300;
}

.major-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.badge-bachelor {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.badge-diploma {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.major-accolades {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.accolade {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.accolade.gold {
    background: rgba(212, 168, 83, 0.3);
    border: 1px solid rgba(212, 168, 83, 0.4);
}

.major-body {
    padding: 32px;
}

.major-block {
    margin-bottom: 28px;
}

.major-block:last-child {
    margin-bottom: 0;
}

.major-block h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    padding-left: 16px;
    border-left: 4px solid var(--accent);
}

.major-block p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.9;
    text-align: justify;
}

.major-feature {
    background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(99,102,241,0.04));
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: var(--radius);
    padding: 24px;
}

.major-feature h4 {
    color: var(--accent);
    border-left-color: var(--accent);
}

/* Course Tags */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.course-tags span {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-alt);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.course-tags span:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Job Cards */
.job-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

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

.job-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.job-card p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

/* ===== Talents Grid ===== */
.talents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.talent-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.talent-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.talent-card.highlight {
    background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(99,102,241,0.05));
    border-color: rgba(37,99,235,0.2);
}

.talent-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.talent-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.talent-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.talent-type {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(37,99,235,0.1);
    color: var(--accent);
    font-size: 11px;
    border-radius: 10px;
    font-weight: 500;
}

/* ===== Base Tables ===== */
.base-section {
    margin-bottom: 48px;
}

.base-level {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge-province {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

.badge-school {
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #fff;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.base-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.base-table thead {
    background: var(--primary);
}

.base-table thead th {
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.base-table thead th:first-child {
    width: 70px;
    text-align: center;
}

.base-table tbody tr {
    transition: var(--transition);
}

.base-table tbody tr:nth-child(even) {
    background: var(--bg-alt);
}

.base-table tbody tr:hover {
    background: rgba(37,99,235,0.04);
}

.base-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.base-table tbody td:first-child {
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(37,99,235,0.08);
    color: var(--accent);
    white-space: nowrap;
}

/* ===== Environment Gallery ===== */
.env-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.env-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.env-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.env-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.env-card p {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

/* ===== Enterprise Grid ===== */
.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.enterprise-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    aspect-ratio: 3/2;
}

.enterprise-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.enterprise-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* ===== Graduates Grid ===== */
.graduates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.graduate-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.graduate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.graduate-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.graduate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.graduate-card:hover .graduate-photo img {
    transform: scale(1.05);
}

.graduate-info {
    padding: 20px;
}

.graduate-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.graduate-year {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    padding: 2px 10px;
    background: rgba(37,99,235,0.06);
    border-radius: 10px;
}

.graduate-info p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
    text-align: justify;
}

/* ===== Certs Gallery ===== */
.certs-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.cert-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.cert-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #f8fafc;
    padding: 16px;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand h3 {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

.footer-links h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.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.35);
}

.footer-bottom a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

.footer-bottom .police-beian {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom .police-beian img {
    width: 18px;
    height: 20px;
    object-fit: contain;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-4px);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .talents-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .enterprise-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        letter-spacing: 3px;
    }
    
    .hero-uni {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .major-header {
        padding: 20px;
    }
    
    .major-body {
        padding: 20px;
    }
    
    .graduates-grid {
        grid-template-columns: 1fr;
    }
    
    .job-cards {
        grid-template-columns: 1fr;
    }
    
    .talents-grid {
        grid-template-columns: 1fr;
    }
    
    .enterprise-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .enterprise-card {
        padding: 12px;
    }
    
    .certs-gallery {
        grid-template-columns: 1fr;
    }
    
    .env-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 28px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .major-header h3 {
        font-size: 18px;
    }
    
    .course-tags span {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .graduate-card {
        flex-direction: column;
    }
    
    .graduate-photo {
        height: 160px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar, .back-to-top, .hero-btn {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
