/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 900;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

strong {
    font-weight: 900;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: #2563eb;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.cta-button i {
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100); /* 移动端视口修复 */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.stock-chart-animation {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.stock-chart-animation::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 260px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f59e0b);
    animation: chartLine 3s ease-in-out infinite;
}

@keyframes chartLine {
    0%, 100% { transform: scaleX(0.3); }
    50% { transform: scaleX(1); }
}

.ai-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ai-particles::before,
.ai-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.ai-particles::before {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.ai-particles::after {
    top: 60%;
    left: 80%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); opacity: 0.5; }
    50% { transform: translateY(-20px); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.feature-item i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.hero-cta {
    margin-bottom: 3rem;
    font-size: 1.3rem;
    padding: 20px 40px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #3b82f6;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Introduction Section */
.introduction {
    padding: 6rem 0;
    background: #f8fafc;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.intro-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.intro-card h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.intro-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Image-Text Sections */
.image-text-section {
    padding: 6rem 0;
}

.image-text-section.alt {
    background: #f8fafc;
}

.image-text-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-text-content.right-image {
    grid-template-columns: 1fr 1fr;
}

.image-text-content.right-image .text-part {
    order: 1;
}

.image-text-content.right-image .image-part {
    order: 2;
}

.placeholder-image {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 15px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
    border: 2px dashed #94a3b8;
}

.placeholder-image i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.placeholder-image p {
    font-weight: 700;
    font-size: 1.1rem;
}

.text-part h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.text-part p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1e293b;
}

.feature-list i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Activity Details Section */
.activity-details {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.activity-details .section-header h2,
.activity-details .section-header p {
    color: white;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.card-number {
    font-size: 2rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.detail-card h3 {
    margin-bottom: 1rem;
    color: white;
}

.detail-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.activity-benefits {
    text-align: center;
}

.activity-benefits h3 {
    margin-bottom: 2rem;
    color: white;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.benefit-item i {
    color: #10b981;
    font-size: 1.2rem;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #3b82f6;
}

.faq-question h4 {
    font-weight: 700;
}

.faq-answer {
    padding: 0 0 1.5rem 0;
    color: #64748b;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Fixed CTA Button */
.fixed-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.fixed-cta-button {
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 移动端脉冲动画调整 */
@media (max-width: 768px) {
    .fixed-cta-button {
        animation: mobilePulse 2s infinite;
    }
}

@keyframes mobilePulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    }
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.link-group h4 {
    margin-bottom: 1rem;
    color: white;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* 移动端设备检测优化 */
.mobile-device .stock-chart-animation::before,
.mobile-device .ai-particles::before,
.mobile-device .ai-particles::after {
    animation-duration: 6s; /* 减少动画频率 */
}

.mobile-device .placeholder-image {
    background: #e5e7eb; /* 简化背景避免性能问题 */
}

/* 防止移动端缩放 */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* 移动端触摸优化 */
.cta-button,
.faq-question,
.intro-card,
.detail-card {
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Responsive Design */

/* 超小屏幕 (手机竖屏) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        text-align: center;
    }
    
    .feature-item {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .hero-cta {
        padding: 16px 28px;
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Stock chart animation - 移动端简化 */
    .stock-chart-animation {
        width: 200px;
        height: 120px;
        top: 10%;
        right: 5%;
    }
    
    /* Section spacing */
    .introduction,
    .image-text-section,
    .activity-details,
    .faq {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Introduction cards */
    .intro-grid {
        gap: 1.5rem;
    }
    
    .intro-card {
        padding: 2rem 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Image-text sections */
    .image-text-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .image-text-content.right-image .text-part,
    .image-text-content.right-image .image-part {
        order: unset;
    }
    
    .placeholder-image {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    .placeholder-image i {
        font-size: 2.5rem;
    }
    
    .text-part {
        text-align: left;
    }
    
    .text-part p {
        font-size: 1rem;
    }
    
    .feature-list {
        margin-bottom: 1.5rem;
    }
    
    .feature-list li {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    /* Activity details */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .card-number {
        font-size: 1.5rem;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    /* FAQ */
    .faq-question h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .faq-answer {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Fixed CTA */
    .fixed-cta {
        position: fixed;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 400px;
        z-index: 1000;
    }
    
    .fixed-cta-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 25px;
        display: block;
        text-align: center;
    }
    
    /* 按钮优化 */
    .cta-button {
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 48px; /* 触摸友好 */
    }
}

/* 小屏幕 (手机横屏/小平板) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-text-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 3rem;
    }
    
    .fixed-cta {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 500px;
        z-index: 1000;
    }
    
    .fixed-cta-button {
        width: 100%;
        padding: 16px 32px;
        font-size: 1.1rem;
        display: block;
        text-align: center;
    }
}

/* 中等屏幕 (平板) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .image-text-content {
        gap: 3rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .cta-button {
        min-height: 44px; /* iOS推荐的最小触摸目标 */
        padding: 16px 24px;
    }
    
    .faq-question {
        padding: 1.5rem 0;
        min-height: 44px;
    }
    
    .fixed-cta-button {
        min-height: 48px;
    }
    
    /* 移除hover效果，使用更明显的点击状态 */
    .cta-button:active {
        transform: scale(0.98);
    }
    
    .intro-card:active {
        transform: translateY(-2px);
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .placeholder-image {
        background-size: cover;
    }
    
    .hero-background {
        background-attachment: scroll; /* 避免移动端背景固定问题 */
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .image-text-section,
    .introduction,
    .activity-details {
        padding: 2.5rem 0;
    }
}

/* 性能优化 - 减少动画复杂度 */
@media (prefers-reduced-motion: reduce) {
    .stock-chart-animation::before,
    .ai-particles::before,
    .ai-particles::after,
    .fixed-cta-button {
        animation: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .intro-card:hover {
        transform: none;
    }
}
