/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* 防止滚动 */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: #1a1a1a;
    background: #ffffff;
    max-width: 768px; /* 限制整个body的宽度 */
    margin: 0 auto; /* 居中显示 */
}

.container {
    width: 100%; /* 使用全宽，因为body已经限制了宽度 */
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== SINGLE PAGE CONTAINER ===== */
.single-page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    flex: 0 0 auto; /* 不再占用剩余空间 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../imgs/bgc.png) no-repeat center center;
    background-size: cover;
    overflow: hidden;
    height: 30vh; /* 固定高度，更小 */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 118, 117, 0.3) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* CTA按钮跳动动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-6px) scale(1.02);
    }
    60% {
        transform: translateY(-3px) scale(1.01);
    }
}

/* CTA按钮脉冲效果 */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 20px -5px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 12px 30px -3px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 8px 20px -5px rgba(37, 211, 102, 0.4);
    }
}

/* CTA按钮呼吸效果 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* CTA按钮注意力抖动效果 */
@keyframes attention-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 4px 12px; /* 减少内边距 */
    border-radius: 50px;
    font-size: 0.7rem; /* 减小字体 */
    font-weight: 500;
    margin-bottom: 0.6rem; /* 减少间距 */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; /* 进一步减小字体 */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.4rem; /* 进一步减少间距 */
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.8rem; /* 进一步减小字体 */
    line-height: 1.3;
    margin-bottom: 0.8rem; /* 进一步减少间距 */
    opacity: 0.9;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.2rem; /* 进一步减少间距 */
    margin-top: 0.6rem; /* 进一步减少间距 */
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* 减少间距 */
    font-size: 1.1rem; /* 减小字体 */
    font-weight: 800;
    margin-bottom: 0.2rem; /* 减少间距 */
}

.stat-number i {
    font-size: 0.9rem; /* 减小图标 */
    color: #ffd700;
}

.stat-label {
    font-size: 0.7rem; /* 减小字体 */
    opacity: 0.8;
    font-weight: 500;
}

/* PC端额外统计项 */
.hero-stat-extra {
    display: none; /* 默认隐藏 */
}

/* Hero特色功能 */
.hero-features {
    display: none; /* 默认隐藏，只在PC端显示 */
    margin-top: 1rem;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-feature-item i {
    font-size: 0.9rem;
    color: #ffd700;
}

/* ===== COMPACT FEATURES SECTION ===== */
.features-compact {
    flex: 0 0 auto;
    padding: 1rem 0; /* 减少内边距 */
    background: #f8fafc;
}

.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端一行4个 */
    gap: 0.5rem; /* 进一步减少间距，更紧凑 */
}

.feature-item {
    background: white;
    padding: 0.6rem; /* 进一步减少内边距，更紧凑 */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.1rem; /* 进一步减小图标 */
    color: #667eea;
    margin-bottom: 0.3rem; /* 减少间距 */
}

.feature-item h3 {
    font-size: 0.75rem; /* 进一步减小字体 */
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem; /* 减少间距 */
    line-height: 1.2;
}

.feature-item p {
    font-size: 0.65rem; /* 进一步减小字体 */
    color: #6b7280;
    line-height: 1.2;
}

/* ===== COMPACT BENEFITS SECTION ===== */
.benefits-compact {
    flex: 0 0 auto;
    padding: 1rem 0 3.5rem 0; /* 减少内边距，底部留空间给固定按钮 */
    background: white;
}

.benefits-content-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* 减少间距 */
    align-items: center;
}

.benefits-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; /* 减小字体 */
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.8rem; /* 减少间距 */
}

.benefit-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* 减少间距 */
}

.benefit-item-compact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.benefit-item-compact i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.benefit-item-compact span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
}

.benefits-right {
    display: flex;
    justify-content: center;
}

.cta-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    padding: 1.2rem; /* 减少内边距 */
    border-radius: 14px;
    text-align: center;
    max-width: 280px; /* 减小宽度 */
}

.cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; /* 减小字体 */
    font-weight: 600;
    margin-bottom: 0.4rem; /* 减少间距 */
}

.cta-box p {
    font-size: 0.8rem; /* 减小字体 */
    opacity: 0.9;
    margin-bottom: 0.8rem; /* 减少间距 */
    line-height: 1.3;
}

.cta-features-compact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* 减少间距 */
}

.cta-features-compact span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.cta-features-compact i {
    color: #10b981;
    font-size: 0.8rem;
}

/* ===== FIXED CTA BUTTON ===== */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

.cta-button {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -5px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: bounce 3s infinite, pulse-glow 2s infinite, attention-shake 0.5s 5s 3; /* 跳动 + 脉冲 + 延迟抖动 */
}

.cta-button:hover {
    animation-play-state: paused; /* 悬停时暂停跳动动画 */
    transform: translateY(-3px) scale(1.02); /* 悬停效果 */
    box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.6);
}

.cta-button i {
    font-size: 1.1rem;
}

/* ===== PC端增强显示 ===== */
@media (min-width: 769px) {
    .hero-stat-extra {
        display: block; /* PC端显示第4个统计项 */
    }
    
    .hero-features {
        display: flex; /* PC端显示特色功能 */
    }
    
    .hero-stats {
        gap: 1.8rem; /* PC端更大的间距 */
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        max-width: 100%; /* 移动端使用全宽 */
    }
    
    .container {
        width: 100%;
        padding: 0 12px; /* 进一步减少内边距 */
    }
    
    .hero {
        height: 25vh; /* 移动端更小的高度 */
    }
    
    .hero-title {
        font-size: 1.4rem; /* 进一步减小 */
    }
    
    .hero-subtitle {
        font-size: 0.75rem; /* 进一步减小 */
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .features-grid-compact {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕一行2个 */
        gap: 0.4rem; /* 更紧凑的间距 */
    }
    
    .benefits-content-compact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefits-left h2 {
        font-size: 1.5rem;
    }
    
    .fixed-cta {
        max-width: calc(100% - 30px);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 28vh; /* 适当增加高度，确保内容完整 */
    }
    
    .hero-title {
        font-size: 1.4rem; /* 适当增大，保持可读性 */
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem; /* 适当增大，保持可读性 */
        margin-bottom: 0.8rem;
    }
    
    .hero-stats {
        flex-direction: row; /* 改回横向排列，更紧凑 */
        gap: 0.8rem;
        justify-content: space-between; /* 均匀分布 */
    }
    
    .stat-item {
        flex: 1; /* 均匀分布宽度 */
        min-width: 0; /* 允许收缩 */
    }
    
    .stat-label {
        font-size: 0.65rem; /* 移动端更小的标签 */
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .features-compact {
        padding: 0.8rem 0; /* 减少内边距 */
    }
    
    .features-grid-compact {
        grid-template-columns: repeat(2, 1fr); /* 移动端也保持一行2个 */
        gap: 0.3rem; /* 更紧凑 */
    }
    
    .feature-item {
        padding: 0.5rem; /* 减少内边距 */
    }
    
    .feature-item h3 {
        font-size: 0.7rem; /* 进一步减小 */
    }
    
    .feature-item p {
        font-size: 0.6rem; /* 进一步减小 */
    }
    
    .benefits-compact {
        padding: 1rem 0 4rem 0;
    }
    
    .benefits-left h2 {
        font-size: 1.3rem;
    }
    
    .benefit-item-compact span {
        font-size: 0.8rem;
    }
    
    .cta-box {
        padding: 1.2rem;
    }
    
    .cta-box h3 {
        font-size: 1.1rem;
    }
    
    .cta-box p {
        font-size: 0.8rem;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 12px 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 25vh; /* 适当增加高度，确保内容完整 */
    }
    
    .hero-title {
        font-size: 1.3rem; /* 保持可读性 */
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.7rem; /* 保持可读性 */
        line-height: 1.3;
    }
    
    .hero-badge {
        font-size: 0.7rem; /* 保持可读性 */
        padding: 4px 12px; /* 适当内边距 */
    }
    
    .hero-stats {
        gap: 0.6rem; /* 紧凑但不过分 */
    }
    
    .stat-label {
        font-size: 0.6rem; /* 小屏幕更小的标签 */
        line-height: 1.2;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .benefits-left h2 {
        font-size: 1.2rem;
    }
    
    .benefit-item-compact span {
        font-size: 0.75rem;
    }
    
    .fixed-cta {
        bottom: 15px;
        max-width: calc(100% - 20px);
    }
}

/* ===== HEIGHT OPTIMIZATION ===== */
@media (max-height: 700px) {
    .hero {
        height: 28vh; /* 适当高度，确保内容完整 */
    }
    
    .hero-title {
        font-size: 1.5rem; /* 保持可读性 */
        margin-bottom: 0.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem; /* 保持可读性 */
        margin-bottom: 0.7rem;
    }
    
    .hero-features {
        margin-top: 0.8rem; /* 减少间距 */
    }
    
    .features-compact {
        padding: 1rem 0;
    }
    
    .benefits-compact {
        padding: 1rem 0 3.5rem 0;
    }
    
    .benefits-left h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .benefit-list-compact {
        gap: 0.6rem;
    }
}

@media (max-height: 600px) {
    .hero {
        height: 25vh; /* 保持适当高度 */
    }
    
    .hero-title {
        font-size: 1.3rem; /* 保持可读性 */
    }
    
    .hero-subtitle {
        font-size: 0.7rem; /* 保持可读性 */
    }
    
    .hero-features {
        display: none; /* 极低高度时隐藏额外功能 */
    }
    
    .features-compact {
        padding: 0.8rem 0;
    }
    
    .benefits-compact {
        padding: 0.8rem 0 3rem 0;
    }
    
    .feature-item {
        padding: 0.6rem;
    }
    
    .cta-box {
        padding: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.feature-item {
    animation: fadeInUp 0.6s ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

/* ===== LANDSCAPE MOBILE OPTIMIZATION ===== */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .single-page-container {
        flex-direction: row;
    }
    
    .hero {
        flex: 1;
        min-height: 100vh;
    }
    
    .features-compact,
    .benefits-compact {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .features-grid-compact {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .feature-item {
        padding: 0.5rem;
    }
    
    .benefits-content-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}