/* Typewriter Hero Section - 紫色渐变背景 */
/* UI Design 优化版 - 移动优先，3 秒规则，视觉层次 */

.typewriter-hero {
    background: linear-gradient(135deg, #DDD6FE 0%, #C4B5FD 50%, #A78BFA 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: visible;
    min-height: auto;
    max-height: none;
    height: auto;
    display: block;
}

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

.hero-title-box, .mission-box {
    width: 100%;
    box-sizing: border-box;
}

.typewriter-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.typewriter-hero::after {
    content: '✨';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    opacity: 0.08;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
}

.typewriter-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Hero Title Box - 主标题区域 */
.hero-title-box {
    background: rgba(255, 255, 255, 0.15); /* 15% 透明，透出紫色背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3); /* 白色边框 */
    overflow: visible;
}

.hero-title-box h1 {
    font-size: 2.5rem;
    color: #1F2937;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.hero-title-box .price-highlight {
    font-size: 1.75rem;
    color: #10B981;
    font-weight: 700;
    margin: 1.25rem 0 0 0;
    line-height: 1.4;
}

/* Mission Box - 核心理念区域 */
.mission-box {
    background: rgba(255, 255, 255, 0.15); /* 15% 透明，透出紫色背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3); /* 白色边框 */
    overflow: visible;
}

.mission-box p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
    color: #4B5563;
}

.mission-box .intro {
    color: #6B7280;
    display: block;
    margin-bottom: 0.875rem;
}

.mission-box .challenge {
    color: #1F2937;
    font-weight: 700;
    display: block;
    margin-bottom: 0.875rem;
}

.mission-box .highlight {
    color: #7B61C1;
}

.mission-box .solution {
    color: #6B7280;
    display: block;
}

/* CTA Buttons */
.typewriter-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.7s backwards;
}

.typewriter-cta .btn {
    min-height: 56px;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.typewriter-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* PayPal 按钮特殊样式 */
.typewriter-cta .paypal-btn {
    border-color: #0070ba !important;
    color: #0070ba !important;
}

.typewriter-cta .paypal-btn:hover {
    background: #0070ba !important;
    color: #ffffff !important;
}

.typewriter-word {
    display: inline-block;
}

/* Gradient Text Effect - 紫色渐变 (Professional + Trust) */
.gradient-text {
    background: linear-gradient(135deg, #7B61C1 0%, #9D8AD6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    display: inline-block;
}

/* Enhanced gradient animation option (uncomment if needed) */
/*
.gradient-text.animated {
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}
*/

/* Cursor Effect */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 2.5rem;
    background: #ffffff;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========================================
   响应式设计 - 移动优先原则
   - 字体最小 16px (1rem)
   - 触摸目标最小 44x44px
   - 8px 网格间距系统
   ======================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .typewriter-hero {
        padding: 3rem 0;
    }
    
    .typewriter-container {
        padding: 0 20px;
    }
    
    .hero-title-box {
        padding: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-title-box h1 {
        font-size: 2rem !important;
    }
    
    .hero-title-box .price-highlight {
        font-size: 1.5rem !important;
    }
    
    .mission-box {
        padding: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .mission-box p {
        font-size: 1.0625rem !important;
        line-height: 1.6 !important;
    }
    
    .typewriter-cta {
        gap: 0.875rem !important;
    }
    
    .typewriter-cta .btn {
        min-height: 52px;
        padding: 0.875rem 1.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .typewriter-hero {
        padding: 2.5rem 0;
    }
    
    .typewriter-container {
        padding: 0 16px;
    }
    
    .hero-title-box {
        padding: 1.75rem !important;
        margin-bottom: 1.25rem !important;
        border-radius: 12px;
    }
    
    .hero-title-box h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-title-box .price-highlight {
        font-size: 1.25rem !important;
        margin-top: 1rem !important;
    }
    
    .mission-box {
        padding: 1.5rem !important;
        margin-bottom: 1.25rem !important;
        border-radius: 12px;
    }
    
    .mission-box p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .mission-box .intro,
    .mission-box .solution {
        font-size: 0.9375rem !important;
    }
    
    .typewriter-cta {
        flex-direction: column;
        gap: 0.75rem !important;
        margin-top: 2rem;
    }
    
    .typewriter-cta .btn {
        width: 100%;
        min-height: 56px;
        padding: 1rem 1.5rem;
        font-size: 1rem !important;
    }
}

/* Small Mobile (375px and below - iPhone SE) */
@media (max-width: 375px) {
    .typewriter-hero {
        padding: 2rem 0;
    }
    
    .typewriter-container {
        padding: 0 14px;
    }
    
    .hero-title-box {
        padding: 1.5rem !important;
    }
    
    .hero-title-box h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-title-box .price-highlight {
        font-size: 1.125rem !important;
    }
    
    .mission-box {
        padding: 1.25rem !important;
    }
    
    .mission-box p {
        font-size: 0.9375rem !important;
    }
    
    .typewriter-cta .btn {
        min-height: 52px;
        font-size: 0.9375rem !important;
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Typewriter Deleting Animation */
.typewriter-word.deleting {
    animation: deleteWord 0.05s linear forwards;
}

@keyframes deleteWord {
    to {
        width: 0;
        opacity: 0;
    }
}

/* Subtitle below typewriter */
.typewriter-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 1.5rem;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

/* CTA Buttons in Typewriter Hero */
.typewriter-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.7s backwards;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .typewriter-subtitle {
        font-size: 1rem;
    }
    
    .typewriter-cta {
        gap: 0.75rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .typewriter-subtitle {
        font-size: 0.95rem;
    }
    
    .typewriter-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .typewriter-cta .btn {
        width: 100%;
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


