/* 
 * 前端私教服务 - 纯 HTML/CSS/JS 网站
 * 设计风格：优雅极简风
 * 色彩系统：深灰背景 (#0f1419) + 金色强调 (#d4af37) + 象牙白文字
 * 排版：Playfair Display (标题) + Poppins (强调) + Inter (正文)
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4af37;
    --primary-foreground: #0f1419;
    --background: #0f1419;
    --foreground: #f5f5f5;
    --card: #1a1f2e;
    --card-foreground: #f5f5f5;
    --secondary: #2a3142;
    --secondary-foreground: #e8e8e8;
    --muted: #3a4252;
    --muted-foreground: #b0b0b0;
    --border: #2a3142;
    --radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* Typography */
.font-display {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.font-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    gap: 3rem;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}
}

.nav-link {
    color: var(--foreground) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:link,
.nav-link:visited,
.nav-link:hover,
.nav-link:active,
.nav-link.active {
    color: var(--foreground) !important;
    text-decoration: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663364948717/TQRTiRPLAGz3YUCqmahvYT/hero-background-fXawSu2o7aAHxwfRdu5FT5.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(245, 245, 245, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: var(--primary);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* CTA Button */
.cta-button {
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.cta-button.large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    }
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(245, 245, 245, 0.7);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 1.5rem 0;
    max-width: 200px;
}

/* About Section */
.about {
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-content {
    animation: slideInLeft 0.8s ease-out;
}

.about-text {
    color: rgba(245, 245, 245, 0.8);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.about-image {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.profile-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.image-glow {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    filter: blur(40px);
}

/* Courses Section */
.courses {
    background: rgba(42, 49, 66, 0.3);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663364948717/TQRTiRPLAGz3YUCqmahvYT/course-card-bg-YCs94LdCCg6HSFKyNXPSd9.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.course-card > * {
    position: relative;
    z-index: 1;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    border-color: var(--primary);
}

.course-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.course-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.course-desc {
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Section */
.features {
    background: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(42, 49, 66, 0.5);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.feature-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    background: rgba(42, 49, 66, 0.3);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.testimonial-text {
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.author-avatar {
    font-size: 2rem;
}

.author-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

.author-role {
    color: rgba(245, 245, 245, 0.5);
    font-size: 0.85rem;
}

/* Pricing Section */
.pricing {
    background: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.highlight {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: rgba(212, 175, 55, 0.05);
}

@media (max-width: 768px) {
    .pricing-card.highlight {
        transform: scale(1);
    }
}

.pricing-card:hover {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.pricing-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.pricing-duration {
    color: rgba(245, 245, 245, 0.5);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.pricing-btn {
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: var(--foreground);
    border: none;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background: var(--muted);
}

.pricing-btn.highlight-btn {
    background: var(--primary);
    color: var(--primary-foreground);
}

.pricing-btn.highlight-btn:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Contact Section */
.contact {
    background: rgba(42, 49, 66, 0.3);
}

.contact-subtitle {
    text-align: center;
    color: rgba(245, 245, 245, 0.7);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: rgba(245, 245, 245, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-text {
    color: rgba(245, 245, 245, 0.7);
}

.contact-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    width: 100%;
}

.qrcode-container {
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.qrcode-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.3);
}

.qrcode-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.qrcode-large {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.qrcode-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.qrcode-text {
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.qrcode-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.qrcode-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.contact-photo {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.contact-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    color: rgba(245, 245, 245, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero {
        margin-top: 50px;
    }

    section {
        padding: 3rem 0;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .courses-grid,
    .features-grid,
    .testimonials-grid,
    .pricing-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }
}
