/* ========================================
   style.css - 你好英文 品牌样式表
   主色：#0284c7 (天空蓝)
   辅色：#0ea5e9, #e0f2fe, #f0f9ff
   中性色：#1e293b, #64748b, #94a3b8, #e2e8f0
   ======================================== */

/* 重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: #0284c7;
    transition: color 0.2s;
}

a:hover {
    color: #0ea5e9;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 排版 */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 40px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 8px;
}

.btn-primary {
    background: #0284c7;
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #0284c7;
    border: 2px solid #0284c7;
}

.btn-secondary:hover {
    background: #e0f2fe;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

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

.mt-40 {
    margin-top: 40px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: #1e293b;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: #e0f2fe;
    color: #0284c7;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero区 */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 200px;
    margin: 0 auto 24px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 特色展示 */
.features {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: #f8fafc;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #bae6fd;
}

.feature-icon {
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-card p {
    color: #64748b;
    font-size: 14px;
}

/* 问候语预览 */
.greetings-preview {
    padding: 80px 0;
    background: #f8fafc;
}

.greetings-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.greeting-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: default;
}

.greeting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: #bae6fd;
}

.greeting-card .english {
    font-size: 18px;
    font-weight: 600;
    color: #0284c7;
    margin-bottom: 4px;
}

.greeting-card .chinese {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.greeting-card .category-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: #e0f2fe;
    color: #0284c7;
}

/* 课程预览 */
.courses-preview {
    padding: 80px 0;
    background: #fff;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.courses-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #bae6fd;
}

.course-card .course-level {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.level-beginner { background: #d1fae5; color: #059669; }
.level-intermediate { background: #fef3c7; color: #d97706; }
.level-advanced { background: #fce7f3; color: #db2777; }

.course-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.course-card p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}

.course-card .course-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

/* 统计 */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 16px;
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.85;
}

/* 用户反馈 */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: #f8fafc;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.testimonial-card .quote {
    font-style: italic;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.7;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.testimonial-card .author-name {
    font-weight: 600;
    font-size: 14px;
}

.testimonial-card .author-title {
    font-size: 13px;
    color: #94a3b8;
}

/* CTA */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.cta p {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 18px;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
}

.footer-logo {
    width: 160px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    color: #94a3b8;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
    color: #64748b;
}

/* 页面通用Hero */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    text-align: center;
}

.page-hero h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.page-hero p {
    color: #64748b;
    font-size: 18px;
}

/* 关于页 - 故事 */
.about-story {
    padding: 60px 0;
    background: #fff;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    margin-bottom: 20px;
}

.story-content p {
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.8;
}

/* 使命愿景 */
.mission-vision {
    padding: 60px 0;
    background: #f8fafc;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mv-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.mv-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.mv-card p {
    color: #64748b;
    font-size: 14px;
}

/* 时间轴 */
.timeline {
    padding: 60px 0;
    background: #fff;
}

.timeline-list {
    max-width: 600px;
    margin: 40px auto 0;
    position: relative;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    position: relative;
}

.timeline-year {
    flex-shrink: 0;
    width: 100px;
    font-weight: 700;
    color: #0284c7;
    font-size: 15px;
    text-align: right;
    padding-top: 2px;
}

.timeline-desc {
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    flex: 1;
}

/* 团队 */
.team {
    padding: 60px 0;
    background: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.team-card .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.team-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.team-card .role {
    color: #0284c7;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.team-card .bio {
    color: #64748b;
    font-size: 13px;
}

/* 联系页 */
.contact-main {
    padding: 60px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form-wrap h2,
.contact-info h2 {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #475569;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success h3 {
    margin: 16px 0 8px;
    color: #059669;
}

.form-success p {
    color: #64748b;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.info-item h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.info-item p {
    color: #64748b;
    font-size: 14px;
}

.social-links-large {
    margin-top: 32px;
}

.social-links-large h4 {
    margin-bottom: 12px;
}

/* 问候语页面 */
.greetings-page {
    padding: 60px 0;
    background: #fff;
}

.filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    flex: 1;
    min-width: 200px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    outline: none;
    flex: 1;
    font-family: inherit;
}

.category-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}

.greetings-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 后台管理页面 */
.admin-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f8fafc;
    padding: 24px;
}

.admin-login-box {
    background: #fff;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.admin-login-box .logo-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.admin-login-box h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.admin-login-box .form-group {
    text-align: left;
}

.admin-login-box .error-msg {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.admin-panel {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #1e293b;
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-sidebar .logo-link {
    padding: 0 20px 20px;
    border-bottom: 1px solid #334155;
    margin-bottom: 16px;
}

.admin-sidebar .logo-text {
    color: #fff;
}

.admin-nav {
    list-style: none;
}

.admin-nav li a {
    display: block;
    padding: 12px 20px;
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.2s;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: #334155;
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 32px;
    background: #f8fafc;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h2 {
    font-size: 24px;
}

.admin-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
}

.admin-table td .action-btn {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s;
}

.action-btn.edit {
    background: #e0f2fe;
    color: #0284c7;
}

.action-btn.edit:hover {
    background: #bae6fd;
}

.action-btn.delete {
    background: #fce7f3;
    color: #db2777;
}

.action-btn.delete:hover {
    background: #fbcfe8;
}

.action-btn.toggle {
    background: #d1fae5;
    color: #059669;
}

.action-btn.toggle:hover {
    background: #a7f3d0;
}

.admin-form {
    display: grid;
    gap: 16px;
    max-width: 600px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #059669;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 响应式 */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .greetings-carousel { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid-full { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mv-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .greetings-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .hero-title { font-size: 36px; }
    .hero-logo { width: 160px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .features-grid { grid-template-columns: 1fr 1fr; }
    .greetings-carousel { grid-template-columns: 1fr 1fr; }
    .courses-grid { grid-template-columns: 1fr; }
    .courses-grid-full { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 32px; }
    .greetings-list { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }

    .admin-sidebar { width: 200px; }
    .admin-main { padding: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .hero { padding: 100px 0 60px; }
    .features-grid { grid-template-columns: 1fr; }
    .greetings-carousel { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .admin-form .form-row { grid-template-columns: 1fr; }
}