/* ===== 基础变量 ===== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --warm: #f59e0b;
    --warm-light: #fef3c7;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-warm: #fffbeb;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 6px;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59,130,246,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-large { padding: 16px 40px; font-size: 17px; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 72px;
    padding: 8px 0;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
    text-decoration: none;
}
.logo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
    white-space: nowrap;
}
.logo-mark {
    width: 40px; height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}
.nav { display: flex; gap: 8px; }
.nav a {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav a:hover, .nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 50%, #fef3c7 100%);
    z-index: -2;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -10%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -10%; left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--warm-light);
    color: var(--warm);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; }
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 140px;
    animation: float 6s ease-in-out infinite;
}
.hero-card-icon { font-size: 32px; }
.hero-card strong { font-size: 15px; color: var(--text); }
.hero-card small { font-size: 12px; color: var(--text-light); }
.hero-card-1 { top: 10%; left: 10%; animation-delay: 0s; }
.hero-card-2 { top: 40%; right: 5%; animation-delay: -2s; }
.hero-card-3 { bottom: 15%; left: 25%; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Section ===== */
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.section-warm { background: var(--bg-warm); }
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.feature-icon {
    width: 52px; height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-item { padding: 20px 0; }
.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--warm);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-number::after { content: '+'; font-size: 28px; }
.stat-item:nth-child(4) .stat-number::after { content: '%'; }
.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Teachers ===== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.teacher-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.teacher-avatar {
    width: 80px; height: 80px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.teacher-avatar svg { width: 40px; height: 40px; }
.teacher-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.teacher-title {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.teacher-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}
.cta-content p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-content .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-content .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
    color: #fff;
    padding: 140px 0 60px;
    text-align: center;
}
.page-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== About Page ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-content .section-tag { margin-bottom: 16px; }
.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}
.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.value-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}
.value-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}
.value-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.value-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Team Features ===== */
.team-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.team-feature {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.team-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.team-feature-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 12px;
}
.team-feature h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}
.team-feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
}
.testimonial-author span {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== Services Page ===== */
.services-major {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.service-major-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.service-major-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.service-major-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.service-major-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.service-major-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}
.service-list {
    list-style: none;
    margin-bottom: 28px;
}
.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.service-list li span {
    color: var(--primary);
    font-weight: 700;
}

/* ===== Service Details ===== */
.service-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.service-detail {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.service-detail:hover {
    transform: translateX(6px);
    border-color: var(--primary-light);
}
.service-detail-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.service-detail-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.service-detail-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Schedule ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.schedule-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.schedule-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.schedule-time {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.schedule-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.schedule-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--warm-light);
    color: var(--warm);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}
.contact-info-block .section-tag { margin-bottom: 16px; }
.contact-info-block h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.contact-info-block > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-item-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.contact-item-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.contact-item-content small {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== Contact Form ===== */
.contact-form-block {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact-form-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.contact-form-block > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-light);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== Visit Tips ===== */
.visit-tips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.visit-tip {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.visit-tip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.visit-tip-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.visit-tip h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.visit-tip p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    background: var(--text);
    color: #cbd5e1;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer-links h4, .footer-contact h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: 14px;
    color: #94a3b8;
    transition: var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}
.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 40px; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { height: 300px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: repeat(2, 1fr); }
    .team-features { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .services-major { grid-template-columns: 1fr; }
    .service-details { max-width: 100%; }
    .schedule-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .visit-tips { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .nav.mobile-open { display: flex; }
    .nav a {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: var(--radius-sm);
    }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 100px 0 60px; }
    .hero-text h1 { font-size: 32px; }
    .hero-desc { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .features-grid { grid-template-columns: 1fr; }
    .teachers-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 28px; }
    .stat-number { font-size: 36px; }
    .page-hero { padding: 120px 0 40px; }
    .page-hero h1 { font-size: 32px; }
    .about-values { grid-template-columns: 1fr; }
    .schedule-grid { grid-template-columns: 1fr; }
    .service-detail { flex-direction: column; gap: 16px; }
    .contact-form-block { padding: 24px; }
}
