/* ===== 昆明市艺术学校 共享样式 ===== */
:root {
    --primary: #961e23;
    --primary-dark: #7a181c;
    --primary-light: #c43137;
    --primary-soft: #fdf0f0;
    --primary-glow: rgba(150,30,35,0.08);
    --gold: #c9a96e;
    --gold-light: #e8d5a8;
    --cream: #faf6f0;
    --dark: #1a1a2e;
    --text: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(150,30,35,0.10);
    --shadow-lg: 0 20px 60px rgba(150,30,35,0.15);
    --transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Topbar */
.topbar {
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    padding: 6px 0;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1001;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gold-light); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* Header */
.header {
    background: var(--white);
    padding: 18px 0;
    border-bottom: 1px solid rgba(150,30,35,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 900;
    font-family: 'Noto Serif SC', serif;
    box-shadow: 0 4px 12px rgba(150,30,35,0.3);
    flex-shrink: 0;
}
.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== 导航栏 ===== */
.header-right { display: flex; align-items: center; gap: 20px; }
.search-box {
    display: flex; align-items: center;
    border: 2px solid #eee; border-radius: 25px;
    overflow: hidden; transition: var(--transition);
}
.search-box:focus-within { border-color: var(--primary); }
.search-box input {
    border: none; outline: none; padding: 8px 16px;
    font-size: 13px; width: 180px; background: transparent;
}
.search-box button {
    background: transparent; border: none;
    padding: 8px 14px; cursor: pointer; color: var(--primary);
    font-size: 16px; transition: var(--transition);
}

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 96px;
    z-index: 999;
    transition: var(--transition);
}
.navbar.scrolled { top: 60px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.nav-list {
    display: flex; list-style: none;
    justify-content: center; flex-wrap: wrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block; padding: 14px 18px;
    text-decoration: none; color: var(--text);
    font-size: 14px; font-weight: 500;
    transition: var(--transition);
    position: relative; white-space: nowrap;
}
.nav-list > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%; height: 3px; background: var(--primary);
    transition: transform 0.3s ease;
    border-radius: 2px;
}
.nav-list > li:hover > a { color: var(--primary); }
.nav-list > li:hover > a::after { transform: translateX(-50%) scaleX(1); }
.nav-list > li > a.active { color: var(--primary); }
.nav-list > li > a.active::after { transform: translateX(-50%) scaleX(1); }
.nav-list > li > a.has-sub::before { content: '▾'; margin-left: 4px; font-size: 10px; }

/* Dropdown */
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--white); border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition); z-index: 100;
    padding: 8px 0;
}
.nav-list > li:hover .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
    display: block; padding: 10px 20px;
    color: var(--text); text-decoration: none;
    font-size: 13px; transition: var(--transition);
}
.dropdown a:hover {
    background: var(--primary-soft); color: var(--primary);
    padding-left: 26px;
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span {
    width: 26px; height: 2.5px; background: var(--primary);
    border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }
.mobile-nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 998;
}
.mobile-nav-overlay.show { display: block; }

/* Breadcrumb */
.breadcrumb-area {
    background: var(--primary-soft);
    padding: 30px 0 20px;
    border-bottom: 1px solid rgba(150,30,35,0.08);
}
.breadcrumb-area h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px; color: var(--primary);
    margin-bottom: 8px;
}
.breadcrumb-area .breadcrumb {
    font-size: 13px; color: var(--text-light);
}
.breadcrumb-area .breadcrumb a {
    color: var(--primary); text-decoration: none;
}
.breadcrumb-area .breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-area .breadcrumb span { color: var(--text-light); }

/* Page Content */
.page-content { padding: 50px 0 80px; }
.page-content .section-title {
    text-align: center; margin-bottom: 40px;
}
.page-content .section-title h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px; font-weight: 900; color: var(--primary);
    letter-spacing: 3px;
}
.page-content .section-title::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    margin: 10px auto 0; border-radius: 2px;
}

/* Cards */
.info-card {
    background: var(--white); border-radius: var(--radius);
    padding: 30px; margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(150,30,35,0.06);
    transition: var(--transition);
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.info-card h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px; color: var(--primary);
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-soft);
}
.info-card p { font-size: 14px; line-height: 1.8; color: var(--text); }
.info-card ul { list-style: none; padding: 0; }
.info-card ul li {
    padding: 8px 0; border-bottom: 1px dashed #f0f0f0;
    font-size: 14px; line-height: 1.6;
}
.info-card ul li:last-child { border-bottom: none; }
.info-card ul li::before { content: '◆ '; color: var(--primary-light); font-size: 10px; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
    width: 3px; background: var(--primary-soft); border-radius: 2px;
}
.timeline-item {
    position: relative; padding: 0 0 30px 20px;
}
.timeline-item::before {
    content: ''; position: absolute; left: -26px; top: 6px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--primary); border: 3px solid var(--primary-soft);
}
.timeline-item h5 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.timeline-item p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* Person card (reused) */
.person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.person-card {
    background: var(--white); border-radius: var(--radius);
    padding: 30px 20px 20px; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid rgba(150,30,35,0.06);
    cursor: pointer;
}
.person-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.person-card .avatar {
    width: 100px; height: 100px; margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px; font-weight: 600;
    font-family: 'Noto Serif SC', serif;
    overflow: hidden;
    border: 3px solid var(--gold-light);
}
.person-card .avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.person-card .badge {
    display: inline-block;
    background: var(--gold-light); color: #7a5c1e;
    font-size: 11px; padding: 2px 12px; border-radius: 10px;
    margin-bottom: 8px;
}
.person-card h4 { font-size: 16px; font-weight: 700; }
.person-card p { font-size: 12px; color: var(--text-light); margin-top: 6px; line-height: 1.6; }

/* Table */
.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.data-table th {
    background: var(--primary); color: #fff;
    padding: 12px 16px; font-size: 14px; text-align: left;
    font-weight: 600;
}
.data-table td {
    padding: 10px 16px; font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}
.data-table tr:hover td { background: var(--primary-soft); }

/* Banner subpage hero */
.sub-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0; text-align: center; position: relative;
    overflow: hidden;
}
.sub-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201,169,110,0.15) 0%, transparent 60%);
}
.sub-hero h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 36px; color: #fff; font-weight: 900;
    letter-spacing: 4px; position: relative;
}
.sub-hero p {
    font-size: 15px; color: rgba(255,255,255,0.75);
    margin-top: 8px; letter-spacing: 2px; position: relative;
}

/* Feature list */
.feature-list { list-style: none; }
.feature-list li {
    padding: 14px 0; border-bottom: 1px solid #f0f0f0;
    display: flex; gap: 12px; align-items: flex-start;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li .f-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-soft); display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 16px;
}
.feature-list li .f-text h5 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature-list li .f-text p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* Footer */
.footer {
    background: var(--dark); color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h5 {
    color: #fff; font-size: 16px; margin-bottom: 16px;
    font-family: 'Noto Serif SC', serif;
    position: relative; padding-bottom: 10px;
}
.footer h5::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 2px; background: var(--primary-light);
}
.footer p, .footer li { font-size: 13px; line-height: 1.8; }
.footer ul { list-style: none; }
.footer ul li::before { content: '› '; color: var(--primary-light); margin-right: 4px; }
.footer ul li a { color: rgba(255,255,255,0.65); text-decoration: none; transition: var(--transition); }
.footer ul li a:hover { color: var(--gold-light); }
.footer .footer-bottom {
    margin-top: 40px; padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center; font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.footer .footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer .footer-bottom a:hover { color: var(--gold-light); }

/* Responsive */
@media (max-width: 992px) {
    .navbar .container { padding: 0; }
    .hamburger { display: flex; }
    .nav-list {
        position: fixed; top: 0; right: -320px; width: 300px;
        height: 100vh; background: var(--white);
        flex-direction: column; padding: 80px 24px 24px;
        transition: right 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
        z-index: 999; overflow-y: auto;
        box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    }
    .nav-list.open { right: 0; }
    .nav-list > li > a { padding: 12px 0; font-size: 15px; }
    .nav-list > li > a::after { display: none; }
    .nav-list > li > a.active { color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 12px 16px; }
    .dropdown {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none;
        display: none; padding: 0 0 8px 16px;
    }
    .nav-list > li.open .dropdown { display: block; }
    .dropdown a { padding: 8px 0; }
    .dropdown a:hover { padding-left: 8px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header.scrolled { top: 0; }
    .navbar.scrolled { top: 0; }
    .sub-hero h2 { font-size: 26px; }
    .breadcrumb-area h2 { font-size: 22px; }
    .search-box input { width: 100px; }
}
@media (max-width: 480px) {
    .person-grid { grid-template-columns: 1fr 1fr; }
}

/* Animations */
.fade-in-up {
    opacity: 0; transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* Modal */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
    padding: 20px; animation: modalFadeIn 0.3s ease;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--white); border-radius: 20px;
    max-width: 600px; width: 100%; max-height: 85vh; overflow-y: auto;
    padding: 40px; position: relative;
    animation: modalSlideIn 0.35s ease;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.modal-close {
    position: absolute; top: 16px; right: 20px;
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: var(--primary-soft);
    color: var(--primary); font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }
.modal-header {
    text-align: center; margin-bottom: 24px;
    padding-bottom: 20px; border-bottom: 2px solid var(--primary-soft);
}
.modal-header .avatar-large {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
    border: 4px solid var(--gold-light);
    object-fit: cover; display: block;
}
.modal-header h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px; color: var(--primary); font-weight: 900;
}
.modal-header .modal-badge {
    display: inline-block;
    background: var(--gold-light); color: #7a5c1e;
    font-size: 13px; padding: 4px 16px; border-radius: 12px;
    margin-top: 8px; font-weight: 500;
}
.modal-body { line-height: 1.9; }
.modal-body p { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.modal-body .info-row {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.modal-body .info-row:last-child { border-bottom: none; }
.modal-body .info-row .label {
    min-width: 80px; font-weight: 600; color: var(--primary); font-size: 13px;
}
.modal-body .info-row .value { font-size: 14px; color: var(--text); }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
