/* ==================== 
   全局样式 
   ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C7A7B;
    --secondary-color: #38B2AC;
    --accent-color: #4FD1C5;
    --text-dark: #1A365D;
    --text-medium: #2D3748;
    --text-light: #4A5568;
    --bg-gradient-start: #E6FFFA;
    --bg-gradient-end: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    height: 100vh;
    color: var(--text-medium);
    line-height: 1.6;
    padding-bottom: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ==================== 
   容器布局 
   ==================== */

.container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

@media (min-width: 768px) {
    .container {
        padding: 15px 25px;
        box-shadow: var(--shadow-md);
        border-radius: 20px;
    }
}

/* ==================== 
   头部样式 
   ==================== */

.header {
    text-align: center;
    margin-bottom: 12px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 10px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

/* ==================== 
   主要内容区域 
   ==================== */

.main-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 介绍区域 */
.intro-section {
    text-align: center;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.intro-image-wrapper {
    margin-bottom: 8px;
}

.intro-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.main-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.intro-text {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.5;
}


/* 特色功能网格 */
.features-section {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.feature-item {
    text-align: center;
    padding: 10px 6px;
    background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.feature-item h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
}

/* 课程列表 */
.curriculum-section {
    background: white;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.curriculum-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.curriculum-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-medium);
}

.curriculum-list i {
    font-size: 12px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* 信任标识区域 */
.trust-section {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(44, 122, 123, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
}

.trust-badge i {
    font-size: 16px;
}

.trust-divider {
    width: 40px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    opacity: 0.6;
}

.trust-motto {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.3px;
    margin: 0;
}

/* ==================== 
   页脚 
   ==================== */

.footer {
    margin-top: 10px;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(44, 122, 123, 0.1);
}

.footer p {
    font-size: 9px;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ==================== 
   固定CTA按钮 
   ==================== */

/* 呼吸动画 */
@keyframes breathe {
    0%, 100% {
        box-shadow: 0 5px 18px rgba(44, 122, 123, 0.3);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 8px 28px rgba(44, 122, 123, 0.5);
        transform: translateX(-50%) scale(1.03);
    }
}

.cta-button {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 440px;
    width: calc(100% - 40px);
    
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    
    padding: 13px 24px;
    border: none;
    border-radius: 50px;
    
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(44, 122, 123, 0.3);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    
    transition: all 0.3s ease;
    z-index: 1000;
    
    /* 应用呼吸动画 */
    animation: breathe 2.5s ease-in-out infinite;
}

.cta-button:hover {
    animation: none;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 32px rgba(44, 122, 123, 0.5);
}

.cta-button:active {
    animation: none;
    transform: translateX(-50%) translateY(0);
}

.cta-button i {
    font-size: 16px;
}

/* ==================== 
   免责声明样式 
   ==================== */

.disclaimer-notice {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

.disclaimer-notice small {
    font-size: 9px;
    color: #856404;
    line-height: 1.3;
    display: block;
}

/* ==================== 
   页脚链接样式 
   ==================== */

.footer-links {
    margin-top: 6px;
    font-size: 9px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-links span {
    margin: 0 6px;
    color: var(--text-light);
}

/* ==================== 
   模态框样式 
   ==================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.close {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 20px;
}

/* 联系信息样式 */
.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-medium);
}

.contact-item i {
    width: 20px;
    color: var(--secondary-color);
    font-size: 16px;
}

.contact-form h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(56, 178, 172, 0.1);
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.3);
}

/* 政策内容样式 */
.policy-content,
.terms-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-medium);
}

.policy-content h4,
.terms-content h4 {
    margin: 16px 0 8px 0;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.policy-content p,
.terms-content p {
    margin-bottom: 12px;
}

.policy-content ul,
.terms-content ul {
    margin: 8px 0 12px 20px;
}

.policy-content li,
.terms-content li {
    margin-bottom: 4px;
}

/* ==================== 
   响应式设计 
   ==================== */

@media (max-width: 480px) {
    .main-title {
        font-size: 17px;
    }
    
    .intro-text {
        font-size: 10px;
    }
    
    .cta-button {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }

    
    .feature-item h4 {
        font-size: 11px;
    }
    
    .curriculum-list li {
        font-size: 10px;
    }
    
    /* 移动端模态框样式 */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .disclaimer-notice small {
        font-size: 8px;
    }
}

