/* ==========================================
   NYC Music Study - 纽约音乐学院
   Premium Music School Website Styles
   Color: Navy + Gold | Font: Noto Serif/Sans SC
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary-color: #1a1a2e;
    --primary-light: #16213e;
    --secondary-color: #0f3460;
    --accent-color: #c9a84c;
    --accent-light: #e8d5a3;
    --accent-dark: #a8872e;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-color: #fff;
    --bg-light: #f8f6f0;
    --bg-warm: #faf8f3;
    --bg-cream: #f5f0e6;
    --dark-color: #1a1a2e;
    --white: #fff;
    --border-color: #e8e0d0;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 30px rgba(201,168,76,0.15);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'Georgia', serif;
    color: var(--primary-color);
    line-height: 1.4;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary-color);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-left a {
    color: var(--accent-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-social a {
    color: rgba(255,255,255,0.7);
    margin-left: 10px;
    font-size: 1rem;
}

.top-bar-social a:hover {
    color: var(--accent-color);
}

/* ---------- Header / Navigation ---------- */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
    background: rgba(201,168,76,0.08);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.7em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--bg-warm);
    color: var(--accent-color);
}

.dropdown-menu .dropdown-divider {
    border-top: 1px solid var(--border-color);
    margin: 5px 15px;
}

/* CTA Button in Nav */
.nav-cta {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--accent-dark), #8a6e1e) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-text .hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-light);
    margin-bottom: 25px;
    font-family: 'Noto Serif SC', serif;
}

.hero-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(201,168,76,0.2);
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Noto Serif SC', serif;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

/* Hero Right Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-instrument-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.instrument-icon-card {
    width: 110px;
    height: 110px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.instrument-icon-card:hover {
    background: rgba(201,168,76,0.15);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.instrument-icon-card i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.instrument-icon-card span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
    color: var(--white);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ---------- Section Styles ---------- */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-warm {
    background: var(--bg-warm);
}

.section-dark {
    background: var(--primary-color);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.section-header .section-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-header h2 {
    color: var(--white);
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

/* ---------- Course Cards ---------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.course-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card-img i {
    font-size: 3.5rem;
    color: var(--accent-color);
    z-index: 1;
}

.course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.course-card-body {
    padding: 25px;
}

.course-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.course-card-body .course-en {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

.course-card-body p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.course-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
}

.course-card-link:hover {
    gap: 10px;
}

/* ---------- Category Tabs ---------- */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.category-tab.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* ---------- Feature / Advantage Cards ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---------- Teacher Cards ---------- */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.teacher-photo {
    height: 280px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.teacher-photo i {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-dept {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 15px 10px;
    color: var(--accent-light);
    font-size: 0.8rem;
}

.teacher-info {
    padding: 20px;
}

.teacher-info h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.teacher-info .teacher-title {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.teacher-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.teacher-tag {
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ---------- Pricing Cards ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.03);
}

.pricing-card.featured::before {
    content: '\2605 \63A8\8350';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px;
    text-align: center;
    color: var(--white);
}

.pricing-header h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.pricing-header .pricing-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.pricing-amount {
    margin-top: 15px;
}

.pricing-amount .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.pricing-amount .price-unit {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.pricing-body {
    padding: 30px;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-light);
    font-family: 'Georgia', serif;
    line-height: 1;
    opacity: 0.5;
}

.testimonial-content {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-top: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 55%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent-color);
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 1.05rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ---------- Events / Calendar ---------- */
.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.event-item:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.event-date {
    min-width: 80px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-light);
}

.event-date .event-day {
    font-size: 1.8rem;
    font-weight: 700;
}

.event-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.event-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    background: var(--primary-light);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 3px;
}

.gallery-overlay span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* ---------- Blog Cards ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-card-img i {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.5;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-body {
    padding: 25px;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-card-body h3 a {
    color: var(--primary-color);
}

.blog-card-body h3 a:hover {
    color: var(--accent-color);
}

.blog-card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Blog Article */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-article h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.blog-article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.blog-article h2 {
    font-size: 1.5rem;
    margin: 35px 0 15px;
}

.blog-article h3 {
    font-size: 1.2rem;
    margin: 25px 0 10px;
}

.blog-article p {
    margin-bottom: 18px;
    line-height: 1.9;
}

.blog-article ul,
.blog-article ol {
    margin: 15px 0;
    padding-left: 25px;
}

.blog-article li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-article blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 15px 25px;
    margin: 20px 0;
    background: var(--bg-warm);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent-color);
    transition: var(--transition);
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    content: '\2212';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 25px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ---------- Contact Form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Contact Info Panel */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-warm);
    border-radius: var(--radius);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-info-text p,
.contact-info-text a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 15px;
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--border-color);
}

/* ---------- Page Banner ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-dark), var(--accent-color));
}

.page-banner h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.page-banner .banner-subtitle {
    color: var(--accent-light);
    font-size: 1.05rem;
    font-family: 'Noto Serif SC', serif;
}

.page-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    max-width: 600px;
    margin: 15px auto 0;
}

/* ---------- Achievement / Stats ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Noto Serif SC', serif;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ---------- Awards Grid ---------- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.award-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.award-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.award-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.award-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.award-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ---------- Partners / Logos ---------- */
.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    align-items: center;
}

.partner-logo {
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.partner-logo:hover {
    border-color: var(--accent-color);
}

.partner-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.partner-logo span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ---------- Interactive Tools ---------- */
.tool-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.tool-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tool-step.active {
    display: block;
}

.tool-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tool-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: var(--transition);
}

.tool-progress-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.tool-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.tool-option {
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font-size: 0.95rem;
}

.tool-option:hover {
    border-color: var(--accent-color);
    background: rgba(201,168,76,0.05);
}

.tool-option.selected {
    border-color: var(--accent-color);
    background: rgba(201,168,76,0.1);
    color: var(--accent-dark);
    font-weight: 600;
}

.tool-result {
    padding: 30px;
    background: var(--bg-warm);
    border-radius: var(--radius);
    text-align: center;
    margin-top: 20px;
}

.tool-result h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.tool-result p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Calculator */
.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-label {
    font-weight: 600;
    color: var(--primary-color);
}

.calc-value {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.calc-total {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--accent-color);
}

/* Metronome */
.metronome-display {
    text-align: center;
    padding: 30px;
}

.metronome-bpm {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Noto Serif SC', serif;
}

.metronome-bpm-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metronome-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.metronome-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.metronome-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.metronome-play {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border: none;
    color: var(--white);
    font-size: 1.5rem;
}

.metronome-play:hover {
    transform: scale(1.1);
}

.metronome-slider {
    width: 100%;
    margin: 15px 0;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
}

.metronome-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.metronome-beat-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.beat-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.1s;
}

.beat-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* ---------- Area / Location Pages ---------- */
.area-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    color: var(--white);
}

.area-hero h1 {
    color: var(--white);
    font-size: 2.2rem;
}

.area-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.area-cta {
    background: var(--bg-warm);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 40px;
}

/* ---------- Booking Calendar ---------- */
.booking-form {
    max-width: 700px;
    margin: 0 auto;
}

.booking-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.booking-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.booking-step.active .booking-step-num {
    background: var(--accent-color);
    color: var(--white);
}

.booking-step.completed .booking-step-num {
    background: #28a745;
    color: var(--white);
}

.booking-step span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.booking-step.active span {
    color: var(--accent-color);
    font-weight: 600;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    line-height: 2;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section a {
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.footer-partner {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-partner a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-partner a:hover {
    color: var(--white);
}

/* ---------- Utilities ---------- */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-color);
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-gold {
    background: rgba(201,168,76,0.15);
    color: var(--accent-dark);
}

.badge-primary {
    background: rgba(26,26,46,0.1);
    color: var(--primary-color);
}

/* Divider with icon */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-visual {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 5px;
    }

    .header .container {
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 15px 0;
        border-top: 1px solid var(--border-color);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .nav-cta {
        margin-top: 10px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--bg-light);
        border-radius: var(--radius-sm);
        margin: 5px 0;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .courses-grid,
    .features-grid,
    .teachers-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
    }

    .booking-steps {
        flex-direction: column;
        align-items: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tool-container {
        padding: 25px;
    }

    .tool-options {
        grid-template-columns: 1fr;
    }

    .blog-article h1 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }
}

/* ==========================================
   v2 Expansion: AI Tools / Board / Events / Encyclopedia / Community
   ========================================== */

/* ---------- Mega Menu (扩展 nav-dropdown) ---------- */
.dropdown-menu.mega {
    min-width: 720px;
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 30px;
}
.dropdown-menu.mega-2col { grid-template-columns: repeat(2, 1fr); min-width: 520px; }
.dropdown-menu.mega .mega-col-title {
    grid-column: span 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0 6px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}
.dropdown-menu.mega a {
    padding: 7px 0;
    border-bottom: none;
    font-size: 0.92rem;
}
.dropdown-menu.mega a:hover { color: var(--accent-color); padding-left: 6px; }

/* ---------- Hub Page Cards ---------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.hub-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}
.hub-card::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent-color);
    transform: scaleY(0); transform-origin: top;
    transition: transform 0.3s ease;
}
.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}
.hub-card:hover::before { transform: scaleY(1); }
.hub-card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.hub-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.hub-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }
.hub-card .hub-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--bg-light);
    color: var(--accent-dark);
    font-size: 0.7rem;
    border-radius: 12px;
    margin-top: 10px;
    font-weight: 600;
}
.hub-card .hub-tag.new { background: #fef3c7; color: #92400e; }
.hub-card .hub-tag.beta { background: #dbeafe; color: #1e40af; }
.hub-card .hub-tag.coming { background: #f3f4f6; color: #6b7280; }

/* ---------- AI Tool Container ---------- */
.tool-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 720px;
    margin: 0 auto;
}
.tool-panel h2 { margin-bottom: 12px; }
.tool-display {
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
}
.tool-display .big-num {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: 'Georgia', serif;
}
.tool-display .small-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.tool-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.tool-controls .btn { min-width: 120px; }
.tool-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.tool-row label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 100px;
}
.tool-row input[type="number"], .tool-row input[type="text"], .tool-row select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    flex: 1;
    min-width: 120px;
}
.tool-row input[type="range"] { flex: 1; min-width: 150px; }

/* Frequency meter (tuner) */
.meter-bar {
    position: relative;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    overflow: hidden;
    margin: 18px 0;
}
.meter-needle {
    position: absolute;
    top: 0; bottom: 0;
    width: 4px;
    left: 50%;
    background: var(--accent-color);
    transition: left 0.1s ease;
    box-shadow: 0 0 8px rgba(201,168,76,0.6);
}
.meter-mark {
    position: absolute;
    top: 6px;
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.3);
}

/* Virtual keyboard / instruments */
.vk-piano {
    display: flex;
    position: relative;
    height: 200px;
    user-select: none;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.vk-piano .key {
    flex: 1;
    border: 1px solid #888;
    background: white;
    cursor: pointer;
    position: relative;
    transition: background 0.05s;
}
.vk-piano .key:hover { background: #f0e8d0; }
.vk-piano .key.active { background: var(--accent-light); }
.vk-piano .key.black {
    position: absolute;
    width: 4%;
    height: 60%;
    background: var(--primary-color);
    z-index: 2;
    border-radius: 0 0 4px 4px;
}
.vk-piano .key.black:hover { background: var(--primary-light); }
.vk-piano .key.black.active { background: var(--accent-dark); }
.vk-piano .key-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

.vk-strings {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: linear-gradient(180deg, #8b5a2b, #6b3e1c);
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.vk-strings .vk-string {
    height: 28px;
    background: linear-gradient(180deg, #d4af37, #aa8830);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: white;
    font-weight: 600;
    transition: all 0.1s;
    font-size: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.vk-strings .vk-string:hover { transform: translateX(2px); }
.vk-strings .vk-string.active { background: var(--accent-color); transform: scaleY(1.15); }

/* ---------- Status Banner (disabled / coming soon) ---------- */
.status-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #d97706;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    color: #78350f;
    font-size: 0.95rem;
}
.status-banner i { margin-right: 8px; }
.status-banner.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left-color: #2563eb;
    color: #1e40af;
}

/* ---------- Board (信息发布板) ---------- */
.board-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.board-filter a {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 18px;
    font-size: 0.85rem;
    color: var(--text-color);
}
.board-filter a:hover, .board-filter a.active {
    background: var(--accent-color);
    color: var(--white);
}
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}
.board-post {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.board-post:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-color); transform: translateY(-2px); }
.board-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.board-post-cat {
    background: var(--accent-color);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.72rem;
}
.board-post h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}
.board-post p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}
.board-post-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.board-post-foot .post-loc i { color: var(--accent-color); margin-right: 4px; }

.board-grid.board-forum {
    display: block;
    background: transparent;
}
.board-forum {
    border-radius: 8px;
}
.board-forum-head {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 170px 140px 110px 160px;
    gap: 0;
    align-items: center;
    padding: 0 16px 12px;
    color: var(--secondary-color);
    font-size: 0.83rem;
    font-weight: 700;
}
.board-forum-head .tabs {
    display: flex;
    align-items: center;
    gap: 18px;
}
.board-forum-head .tab {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 0;
}
.board-forum-head .tab.active { color: #0f4ec7; }
.board-forum-head .tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 2px;
    background: #0f4ec7;
}
.forum-head-label {
    text-align: left;
    white-space: nowrap;
}
#topicList {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: var(--white);
}
.topic-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 170px 140px 110px 160px;
    align-items: center;
    min-height: 70px;
    padding: 0 16px;
    border-bottom: 1px solid #dbe3ef;
    color: var(--primary-color);
}
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover {
    background: #fbfcff;
    color: var(--primary-color);
}
.topic-title {
    min-width: 0;
    color: #07152d;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.45;
    padding-right: 18px;
}
.topic-summary {
    min-width: 0;
    color: #4e6380;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topic-summary-icon {
    color: #16a34a;
    font-weight: 900;
    margin-right: 4px;
}
.topic-city {
    color: #07152d;
    font-size: 0.95rem;
}
.topic-count {
    color: #075ee8;
    font-size: 1rem;
    font-weight: 900;
}
.topic-last {
    display: grid;
    gap: 1px;
    min-width: 0;
    line-height: 1.35;
}
.topic-last-author {
    color: #075ee8;
    font-size: 0.82rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topic-last-time {
    color: #7890ad;
    font-size: 0.78rem;
}
.forum-loading,
.board-empty {
    margin: 0;
    padding: 34px 20px;
    text-align: center;
    color: var(--text-muted);
}
.board-empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 2.4rem;
    opacity: 0.35;
}
.board-empty .btn { margin-top: 12px; }
.forum-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.forum-page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    background: var(--white);
    color: #0f4ec7;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.forum-page-link.active {
    background: #185bd8;
    border-color: #185bd8;
    color: var(--white);
}
.forum-page-link.disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}
.topic-thread-section {
    background: var(--bg-light);
    padding: 42px 0 70px;
}
.topic-thread-section .container { max-width: 980px; }
.forum-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    color: #0f4ec7;
    font-weight: 900;
}
.topic-post-card,
.article-comments {
    background: var(--white);
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}
.topic-post-card {
    padding: 28px 34px;
}
.topic-post-head,
.reply-head,
.reply-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topic-author,
.reply-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 900;
}
.topic-avatar,
.reply-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.reply-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    color: #7890ad;
    font-size: 0.84rem;
}
.topic-post-card h1 {
    margin: 18px 0 16px;
    color: #07152d;
    font-size: 1.8rem;
    line-height: 1.35;
}
.topic-body,
.reply-body {
    color: #334155;
    line-height: 1.9;
    white-space: pre-wrap;
}
.board-contact-box {
    margin-top: 26px;
    padding: 18px;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    background: #fbfaf6;
}
.board-contact-box h2 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}
.board-contact-box p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 14px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.board-contact-box input,
.board-contact-box textarea,
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    padding: 10px 12px;
}
.board-contact-box textarea,
.comment-form textarea {
    min-height: 112px;
    resize: vertical;
}
.report-link {
    display: block;
    margin: 16px auto 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
}
.report-link:hover { color: #b91c1c; }
.reply-section-head {
    margin: 28px 0 12px;
}
.reply-section-head h2 {
    font-size: 1.25rem;
    margin: 0;
}
.text-gray { color: #7890ad; }
.reply-list {
    display: grid;
    gap: 12px;
}
.reply-card,
.comment-empty {
    background: var(--white);
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 16px 18px;
}
.reply-body { margin-top: 10px; }
.article-comments {
    margin-top: 24px;
    padding: 24px 28px;
}
.article-comments h2 {
    margin-bottom: 4px;
    font-size: 1.28rem;
}
.comment-note {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 18px;
}
.comment-form {
    border-top: 1px solid #dbe3ef;
    padding-top: 18px;
}
.comment-form label {
    display: block;
    margin: 12px 0 6px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 800;
}
.comment-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
.comment-captcha-q {
    color: #0f4ec7;
    font-weight: 900;
}
.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.comment-submit {
    border: 0;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    padding: 10px 18px;
}
.comment-submit:hover { background: var(--accent-dark); }
.comment-result { color: var(--text-muted); font-size: 0.9rem; }
.comment-result.ok { color: #047857; }
.comment-result.err { color: #b91c1c; }

/* Post form */
.post-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.post-form .full { grid-column: span 2; }
.post-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 0.9rem;
}
.post-form input, .post-form select, .post-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
}
.post-form input:focus, .post-form select:focus, .post-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.post-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Calendar (events) ---------- */
.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-row {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}
.event-row:hover { box-shadow: var(--shadow); border-color: var(--accent-color); }
.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
}
.event-date .event-month {
    font-size: 0.75rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.event-date .event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 4px 0;
}
.event-date .event-year {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}
.event-info { flex: 1; }
.event-info h3 { margin-bottom: 6px; font-size: 1.1rem; }
.event-info .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 6px 0;
}
.event-info .event-meta i { color: var(--accent-color); margin-right: 4px; }

/* ---------- Encyclopedia ---------- */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.wiki-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: block;
}
.wiki-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-color); }
.wiki-card .wiki-name { font-weight: 700; color: var(--primary-color); font-size: 0.95rem; }
.wiki-card .wiki-meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 4px; }

/* ---------- Quick Stat Strip (homepage v2) ---------- */
.quick-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    background: var(--primary-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 30px 0;
}
.quick-strip a {
    padding: 24px 20px;
    color: var(--white);
    text-align: center;
    transition: var(--transition);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.quick-strip a:hover { background: var(--secondary-color); color: var(--accent-light); }
.quick-strip a i {
    font-size: 1.6rem;
    color: var(--accent-color);
}
.quick-strip a span { font-size: 0.9rem; font-weight: 600; }
.quick-strip a small { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* ---------- Page Version Tag ---------- */
.page-version {
    position: fixed;
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    z-index: 99;
    pointer-events: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
    .board-forum-head {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 0 12px;
    }
    .board-forum-head .forum-head-label { display: none; }
    .board-forum-head .tabs {
        overflow-x: auto;
        padding: 0 4px 6px;
    }
    .board-forum-head .tab.active::after { bottom: -6px; }
    .topic-row {
        grid-template-columns: 1fr auto;
        gap: 4px 12px;
        min-height: 0;
        padding: 16px;
    }
    .topic-title {
        grid-column: 1 / -1;
        padding-right: 0;
    }
    .topic-summary {
        grid-column: 1 / -1;
    }
    .topic-city,
    .topic-count,
    .topic-last {
        font-size: 0.86rem;
    }
    .topic-last {
        justify-items: end;
    }
    .topic-post-head,
    .reply-head,
    .reply-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .reply-meta {
        justify-content: flex-start;
    }
}
@media (max-width: 768px) {
    .dropdown-menu.mega, .dropdown-menu.mega-2col {
        min-width: 100%;
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .post-form { grid-template-columns: 1fr; padding: 20px; }
    .post-form .full { grid-column: span 1; }
    .tool-panel { padding: 20px; }
    .tool-display .big-num { font-size: 2.5rem; }
    .vk-piano { height: 140px; }
    .event-row { flex-direction: column; }
    .event-date { width: 100%; flex-direction: row; gap: 8px; padding: 8px 14px; }
    .topic-thread-section { padding: 28px 0 48px; }
    .topic-post-card,
    .article-comments {
        padding: 20px;
    }
    .topic-post-card h1 { font-size: 1.42rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .comment-actions { align-items: flex-start; flex-direction: column; }
}
