/* 字体导入 */
@import url('css2.css');

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量 */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #ffa726;
    --accent-color: #e53e3e;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --bg-light: #f7fafc;
    --gradient-primary: linear-gradient(135deg, #1a5f7a 0%, #2d5aa0 100%);
    --gradient-secondary: linear-gradient(135deg, #ffa726 0%, #ff8f00 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
}

/* 全局样式 */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Noto Sans SC', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--gradient-primary);
    position: relative;
}

/* 字体权重类 */
.font-extra-bold {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* 装饰花边 */
.decorative-border {
    position: fixed;
    width: 50px;
    height: 50px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.decorative-border::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="rgba(255,167,38,0.7)"><circle cx="20" cy="20" r="3"/><circle cx="80" cy="20" r="3"/><circle cx="80" cy="80" r="3"/><circle cx="20" cy="80" r="3"/><path d="M20,20 Q50,10 80,20 Q90,50 80,80 Q50,90 20,80 Q10,50 20,20" stroke="rgba(255,167,38,0.6)" stroke-width="1.5" fill="none"/></g></svg>') center/contain no-repeat;
}

.decorative-border.top-left {
    top: 20px;
    left: 20px;
}

.decorative-border.top-right {
    top: 20px;
    right: 20px;
    transform: rotate(90deg);
}

.decorative-border.bottom-left {
    bottom: 20px;
    left: 20px;
    transform: rotate(-90deg);
}

.decorative-border.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: rotate(180deg);
}

/* 主容器 - 占屏幕80% */
.main-container {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    z-index: 2;
}

/* 丰富版英雄区 - 严格单屏显示 */
.enriched-hero {
    width: 100%;
    max-width: 420px;
    height: calc(100vh - 30px);
    max-height: calc(100vh - 30px);
    padding: 15px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 167, 38, 0.2);
    /* 印尼语文案更长，内容超出时允许内部微滚动，避免被裁切 */
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 内容较短时均匀填满卡片 */
    gap: 8px; /* 减小间距 */
}

/* 标题区域 */
.hero-header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 0;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.avatar-section img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.credentials-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.credentials-badges span {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.title-section {
    flex: 1;
}

.title-section h1 {
    font-size: 1.15rem;
    line-height: 1.15;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.title-section .highlight {
    color: var(--primary-color);
    display: block;
    position: relative;
}

.title-section .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.subtitle {
    font-size: 0.68rem;
    line-height: 1.25;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.main-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.badge {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.56rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 数据展示 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: var(--white);
}

.stat-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.05;
}

/* 隐藏内部滚动条（保留可滚动能力） */
.enriched-hero::-webkit-scrollbar {
    display: none;
}

.stat-desc {
    font-size: 0.6rem;
    opacity: 0.9;
    margin-top: 1px;
}

/* 课程亮点 */
.highlights-section {
    margin: 0;
}

.highlights-section h3 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-align: center;
    font-weight: 700;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid rgba(26, 95, 122, 0.1);
}

.highlight-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
}

.highlight-content {
    flex: 1;
}

.highlight-content h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1px;
}

.highlight-content p {
    font-size: 0.6rem;
    color: var(--text-light);
    line-height: 1.2;
}

/* 价值主张 */
.value-section {
    margin: 0;
}

.value-content {
    padding: 8px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.value-content p {
    font-size: 0.66rem;
    line-height: 1.25;
    color: var(--text-dark);
}

/* CTA按钮区域 */
.cta-section {
    text-align: center;
    margin: 0;
}

.btn-primary-large {
    width: 100%;
    padding: 10px 16px;
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
    /* 添加脉冲动画 */
    animation: buttonPulse 2s infinite;
    /* 渐变背景动画 */
    background-size: 200% 100%;
    background-image: linear-gradient(45deg, #ffa726 0%, #ff8f00 25%, #ffa726 50%, #ff8f00 75%, #ffa726 100%);
    animation: buttonPulse 2s infinite, gradientMove 3s ease-in-out infinite;
}

/* 添加按钮内部光效 */
.btn-primary-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary-large:hover::before {
    left: 100%;
}

.btn-primary-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4), 0 0 20px rgba(255, 167, 38, 0.3);
    animation-play-state: paused; /* 悬停时暂停脉冲 */
}

.btn-primary-large:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
    transition-duration: 0.1s;
}

/* 按钮脉冲动画 */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(255, 167, 38, 0.7);
    }
    50% {
        box-shadow: var(--shadow-md), 0 0 0 8px rgba(255, 167, 38, 0);
    }
}

/* 渐变移动动画 */
@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 按钮内部元素动画 */
.btn-icon {
    display: inline-block;
    margin-right: 6px;
    animation: iconBounce 1.5s ease-in-out infinite;
    transform-origin: center center;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shineMove 2.5s ease-in-out infinite;
    pointer-events: none;
}

/* 图标弹跳动画 */
@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-3px) rotate(-5deg);
    }
    60% {
        transform: translateY(-1px) rotate(5deg);
    }
}

/* 光效移动动画 */
@keyframes shineMove {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .btn-primary-large {
        /* 移动端减弱动画以节省性能 */
        animation: buttonPulseMobile 3s infinite;
    }
    
    .btn-primary-large:active {
        transform: scale(0.95);
        background: linear-gradient(45deg, #ff8f00, #ffa726);
    }
    
    /* 移动端简化脉冲动画 */
    @keyframes buttonPulseMobile {
        0%, 100% {
            box-shadow: var(--shadow-md);
        }
        50% {
            box-shadow: var(--shadow-md), 0 0 0 4px rgba(255, 167, 38, 0.3);
        }
    }
}

.trust-indicator {
    font-size: 0.65rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
}

.trust-icon {
    font-size: 1rem;
}

/* 福利说明 */
.benefits-section {
    margin: 0;
}

.benefits-section h4 {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-align: center;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(26, 95, 122, 0.05);
    border-radius: 6px;
    font-size: 0.57rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.benefit-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* 风险提示 */
.disclaimer-section {
    margin: 0;
    padding: 6px;
    background: rgba(255, 167, 38, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

.disclaimer-section p {
    font-size: 0.6rem;
    color: var(--text-light);
    line-height: 1.2;
    text-align: center;
}

/* 平板适配 */
@media (min-width: 768px) {
    .main-container {
        padding: 20px;
    }
    
    .enriched-hero {
        max-width: 450px;
        padding: 18px;
        gap: 12px;
    }
    
    .avatar-section img {
        width: 70px;
        height: 70px;
    }
    
    .title-section h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .highlights-section h3 {
        font-size: 1rem;
    }
    
    .highlight-content h4 {
        font-size: 0.75rem;
    }
    
    .highlight-content p {
        font-size: 0.65rem;
    }
    
    .value-content p {
        font-size: 0.75rem;
    }
    
    .btn-primary-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .btn-icon {
        margin-right: 8px;
    }
    
    .benefits-section h4 {
        font-size: 0.9rem;
    }
    
    .benefit-item {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
}

/* 电脑端适配 */
@media (min-width: 1024px) {
    .enriched-hero {
        max-width: 480px;
        padding: 20px;
        gap: 14px;
    }
    
    .avatar-section img {
        width: 80px;
        height: 80px;
    }
    
    .title-section h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .highlights-grid {
        gap: 8px;
    }
    
    .highlight-card {
        padding: 10px;
    }
    
    .highlight-content h4 {
        font-size: 0.8rem;
    }
    
    .highlight-content p {
        font-size: 0.7rem;
    }
    
    .value-content {
        padding: 10px;
    }
    
    .value-content p {
        font-size: 0.8rem;
    }
    
    .btn-primary-large {
        padding: 14px 25px;
        font-size: 1.1rem;
    }
    
    .btn-icon {
        margin-right: 8px;
        font-size: 1.2rem;
    }
    
    .benefits-grid {
        gap: 6px;
    }
    
    .benefit-item {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .decorative-border {
        width: 70px;
        height: 70px;
    }
    
    .decorative-border.top-left,
    .decorative-border.top-right {
        top: 30px;
    }
    
    .decorative-border.bottom-left,
    .decorative-border.bottom-right {
        bottom: 30px;
    }
    
    .decorative-border.top-left,
    .decorative-border.bottom-left {
        left: 30px;
    }
    
    .decorative-border.top-right,
    .decorative-border.bottom-right {
        right: 30px;
    }
}

/* 小屏优化 */
@media (max-width: 360px) {
    .main-container {
        padding: 8px;
    }
    
    .enriched-hero {
        max-width: 340px;
        padding: 12px;
        gap: 8px;
    }
    
    .hero-header {
        gap: 8px;
    }
    
    .avatar-section img {
        width: 50px;
        height: 50px;
    }
    
    .title-section h1 {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 0.65rem;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .stat-card {
        padding: 6px 4px;
    }
    
    .stat-number {
        font-size: 0.8rem;
    }
    
    .highlights-section h3 {
        font-size: 0.8rem;
    }
    
    .highlight-card {
        padding: 6px;
        gap: 4px;
    }
    
    .highlight-content h4 {
        font-size: 0.65rem;
    }
    
    .highlight-content p {
        font-size: 0.55rem;
    }
    
    .btn-primary-large {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .btn-icon {
        margin-right: 4px;
        font-size: 0.9rem;
    }
    
    .benefit-item {
        font-size: 0.55rem;
        padding: 3px 5px;
    }
}

/* 矮屏优化（含 720p 笔记本与老款手机）- 印尼语文案更长，进一步压缩 */
@media (max-height: 820px) {
    .main-container {
        padding: 8px;
    }

    .enriched-hero {
        gap: 6px;
        padding: 12px;
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
    }

    .stats-section,
    .highlights-grid {
        gap: 4px;
    }

    .benefits-grid {
        gap: 3px;
    }

    .avatar-section img {
        width: 52px;
        height: 52px;
    }

    .title-section h1 {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }

    .badge {
        font-size: 0.5rem;
    }

    .credentials-badges span {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .stat-card {
        padding: 6px;
    }

    .stat-number {
        font-size: 0.68rem;
    }

    .stat-desc {
        font-size: 0.54rem;
    }

    .highlights-section h3 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .highlight-card {
        padding: 6px;
    }

    .highlight-content h4 {
        font-size: 0.63rem;
    }

    .highlight-content p {
        font-size: 0.54rem;
    }

    .value-content {
        padding: 6px;
    }

    .value-content p {
        font-size: 0.58rem;
    }

    .btn-primary-large {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .trust-indicator {
        font-size: 0.55rem;
    }

    .benefits-section h4 {
        font-size: 0.72rem;
        margin-bottom: 4px;
    }

    .benefit-item {
        font-size: 0.52rem;
        padding: 3px 5px;
    }

    .disclaimer-section {
        padding: 5px;
    }

    .disclaimer-section p {
        font-size: 0.54rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enriched-hero > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-header {
    animation-delay: 0.1s;
}

.stats-section {
    animation-delay: 0.2s;
}

.highlights-section {
    animation-delay: 0.3s;
}

.value-section {
    animation-delay: 0.4s;
}

.cta-section {
    animation-delay: 0.5s;
}

.benefits-section {
    animation-delay: 0.6s;
}

.disclaimer-section {
    animation-delay: 0.7s;
}

/* 装饰花边动画 */
@keyframes decorativeFloat {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.7;
    }
}

.decorative-border.top-right {
    animation: decorativeFloat 10s ease-in-out infinite;
    animation-delay: 2s;
}

.decorative-border.bottom-left {
    animation: decorativeFloat 10s ease-in-out infinite;
    animation-delay: 5s;
}