/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes chartGrow {
    from {
        height: 0;
    }
    to {
        height: var(--target-height);
    }
}

/* Stock Ticker */
.stock-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    overflow: hidden;
    z-index: 100;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: url('../images/bgc.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-cta-module {
    padding: 40px 0;
}

.hero-image-module {
    position: relative;
}

.hero-image-container {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 60, 114, 0.3);
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-right: 60px;
    display: inline-flex;
    align-items: center;
}

.ticker-item::before {
    content: '📈';
    margin-right: 8px;
}

/* Teacher Profile */
.teacher-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.profile-image {
    flex-shrink: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: avatarFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.profile-info h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 3px;
}

/* Achievement Badges */
.achievement-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    animation: badgeGlow 2s infinite alternate;
}

.badge-icon {
    font-size: 1.2rem;
}

/* Stock Chart Visual */
.stock-chart-visual {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.chart-container {
    text-align: center;
}

.chart-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 120px;
    gap: 10px;
}

.chart-bar {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, #ffd700, rgba(255, 255, 255, 0.8));
    border-radius: 4px 4px 0 0;
    animation: chartGrow 2s ease-out;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.bar-label {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.badge-text {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.title-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.feature-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-cta {
    margin-bottom: 60px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

.cta-button.secondary {
    background: transparent;
    color: #2a5298;
    border: 2px solid #2a5298;
}

.cta-button.secondary:hover {
    background: #2a5298;
    color: white;
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 22px 44px;
    font-size: 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #1e3c72;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ffd700);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #2a5298, #1e3c72);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 15px;
}

.about-card p {
    color: #666;
    line-height: 1.6;
    font-weight: 500;
}

/* Program Details */
.program-details {
    padding: 100px 0;
    background: white;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.detail-card {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    padding: 40px;
    border-radius: 20px;
    border-left: 6px solid #2a5298;
    position: relative;
}

.card-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.detail-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 25px;
    margin-top: 10px;
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    padding: 10px 0;
    font-weight: 500;
    color: #555;
    position: relative;
    padding-left: 30px;
}

.detail-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2a5298;
    font-weight: bold;
    font-size: 16px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    border-left: 4px solid #2a5298;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    color: rgba(42, 82, 152, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-left-color: #ff6b6b;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 5px;
}

.testimonial-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 14px;
}

.testimonial-content {
    margin-bottom: 15px;
}

.testimonial-content p {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    font-weight: 500;
}

.testimonial-date {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

.testimonials-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.summary-item {
    text-align: center;
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2a5298;
    margin-bottom: 5px;
}

.summary-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials-cta {
    text-align: center;
}

.testimonials-cta p {
    font-size: 1.2rem;
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #f8fafc;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-content {
    padding: 20px;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.feature-content h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e3c72;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 500;
}

.feature-highlights {
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #555;
}

.highlight-icon {
    color: #2a5298;
    font-weight: bold;
    margin-right: 12px;
    font-size: 16px;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(42, 82, 152, 0.3);
}

.chart-animation {
    display: flex;
    align-items: end;
    gap: 15px;
    height: 150px;
}

.chart-bar {
    width: 25px;
    background: linear-gradient(to top, #ffd700, #fff);
    border-radius: 4px 4px 0 0;
    animation: chartGrow 2s ease-out;
}

.chart-bar:nth-child(1) { --target-height: 60%; animation-delay: 0.2s; }
.chart-bar:nth-child(2) { --target-height: 80%; animation-delay: 0.4s; }
.chart-bar:nth-child(3) { --target-height: 45%; animation-delay: 0.6s; }
.chart-bar:nth-child(4) { --target-height: 90%; animation-delay: 0.8s; }
.chart-bar:nth-child(5) { --target-height: 70%; animation-delay: 1s; }

.media-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px;
}

.media-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.community-visualization {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 40px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ffd700, #fff);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-avatar.center {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    transform: scale(1.2);
}

.user-avatar::before {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 500;
}

.cta-note {
    margin-top: 20px !important;
    font-size: 14px !important;
    opacity: 0.8 !important;
    font-style: italic;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffd700;
}

.footer-info p {
    color: #ccc;
    font-weight: 500;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin-bottom: 20px;
    color: #ccc;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.floating-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }
    
    .hero-image-module {
        order: -1;
    }
    
    .hero-image-container {
        padding: 30px 20px;
    }
    
    .teacher-profile {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .chart-bars {
        height: 80px;
    }
    
    .hero-features {
        gap: 20px;
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-summary {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .floating-button span {
        display: none;
    }
    
    .floating-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-content h3 {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
}
