/* =========================================
   Headwind Club - Camp Style
   活泼 · 热情 · 色彩鲜艳
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
    --summer-orange: #ff6b35;
    --summer-yellow: #ffd93d;
    --summer-red: #ff4757;
    --summer-pink: #ff6b81;
    --newbie-green: #2ecc71;
    --newbie-blue: #3498db;
    --newbie-teal: #1abc9c;
    --dark: #1a1a2e;
    --white: #ffffff;
    --accent: #00d4aa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Summer Theme */
.theme-summer .hero-gradient {
    background: linear-gradient(135deg, var(--summer-orange) 0%, var(--summer-red) 50%, var(--summer-pink) 100%);
}
.theme-summer .primary-btn { background: linear-gradient(135deg, var(--summer-orange), var(--summer-red)); }
.theme-summer .feature-card { border-color: var(--summer-orange); }
.theme-summer .feature-card:hover { background: rgba(255, 107, 53, 0.1); }
.theme-summer .timeline-item::before { background: var(--summer-orange); }
.theme-summer .cta-section { background: linear-gradient(135deg, var(--summer-orange), var(--summer-red)); }

/* Newbie Theme */
.theme-newbie .hero-gradient {
    background: linear-gradient(135deg, var(--newbie-green) 0%, var(--newbie-blue) 50%, var(--newbie-teal) 100%);
}
.theme-newbie .primary-btn { background: linear-gradient(135deg, var(--newbie-green), var(--newbie-blue)); }
.theme-newbie .feature-card { border-color: var(--newbie-green); }
.theme-newbie .feature-card:hover { background: rgba(46, 204, 113, 0.1); }
.theme-newbie .timeline-item::before { background: var(--newbie-green); }
.theme-newbie .cta-section { background: linear-gradient(135deg, var(--newbie-green), var(--newbie-blue)); }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}
.hero-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: rotateGradient 20s linear infinite;
}
@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.85);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.hero-title {
    font-size: clamp(56px, 12vw, 120px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.hero-title span {
    background: linear-gradient(135deg, #ffd93d, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.theme-newbie .hero-title span {
    background: linear-gradient(135deg, #2ecc71, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 22px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}
.hero-emoji {
    font-size: 80px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn:hover { transform: translateY(-5px) scale(1.05); }
.btn-primary {
    background: linear-gradient(135deg, var(--summer-orange), var(--summer-red));
    color: var(--white);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 3px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* Sections */
.section { padding: 100px 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.theme-summer .section-tag { color: var(--summer-orange); }
.theme-newbie .section-tag { color: var(--newbie-green); }
.section-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.section-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: rgba(255,255,255,0.05);
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
}
.feature-card:hover,
.feature-card.tapped {
    transform: translateY(-10px) rotate(2deg);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover::before { opacity: 1; }
.feature-emoji { font-size: 64px; margin-bottom: 20px; }
.feature-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--summer-orange), var(--summer-red), var(--summer-pink));
}
.theme-newbie .timeline::before {
    background: linear-gradient(180deg, var(--newbie-green), var(--newbie-blue), var(--newbie-teal));
}
.timeline-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    width: 28px;
    height: 28px;
    background: var(--summer-orange);
    border-radius: 50%;
    border: 4px solid var(--dark);
    z-index: 1;
}
.theme-newbie .timeline-item::before { background: var(--newbie-green); }
.timeline-time {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.theme-summer .timeline-time { background: var(--summer-orange); color: var(--dark); }
.theme-newbie .timeline-time { background: var(--newbie-green); color: var(--dark); }
.timeline-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.timeline-content p { font-size: 15px; color: rgba(255,255,255,0.7); }

/* Schedule Cards */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.schedule-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s;
}
.schedule-card:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.08);
}
.schedule-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}
.schedule-day {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
}
.theme-summer .schedule-day { color: var(--summer-orange); }
.theme-newbie .schedule-day { color: var(--newbie-green); }
.schedule-title {
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}
.schedule-list { list-style: none; }
.schedule-list li {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}
.schedule-list li::before {
    content: '→';
    font-weight: bold;
}
.theme-summer .schedule-list li::before { color: var(--summer-orange); }
.theme-newbie .schedule-list li::before { color: var(--newbie-green); }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item:first-child { grid-column: span 2; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.gallery-item:hover img,
.gallery-item.overlay-visible img { transform: scale(1.1) rotate(2deg); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}
.gallery-overlay span {
    font-size: 18px;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 80px 24px;
    text-align: center;
    border-radius: 30px;
    margin: 60px auto;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>') repeat;
    animation: patternMove 20s linear infinite;
}
@keyframes patternMove {
    from { transform: translate(0, 0); }
    to { transform: translate(-100px, -100px); }
}
.cta-content { position: relative; z-index: 2; }
.cta-section h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; }
.cta-section p { font-size: 18px; margin-bottom: 32px; opacity: 0.9; }
.cta-section .btn {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s;
    text-decoration: none;
}
.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
}
.contact-emoji { font-size: 48px; }
.contact-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.contact-info p { font-size: 16px; color: rgba(255,255,255,0.7); }
.contact-info .phone {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
}
.theme-summer .contact-info .phone { color: var(--summer-orange); }
.theme-newbie .contact-info .phone { color: var(--newbie-green); }

/* Footer */
.footer {
    background: rgba(0,0,0,0.5);
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }

/* Responsive */
@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .schedule-grid { grid-template-columns: repeat(2, 1fr); }
    .schedule-card:hover:nth-child(2) { transform: scale(1.02) translateY(-10px); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .section { padding: 120px 48px; }
    .schedule-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   iPad 适配 768-1023px
   ========================================= */

/* iPad Mini Portrait (768-834px) */
@media (max-width: 834px) and (min-width: 768px) {
    /* Features - 2列 */
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card { padding: 28px; }
    .feature-emoji { font-size: 48px; }
    .feature-card h3 { font-size: 22px; }

    /* Gallery - 3列 */
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }

    /* Schedule - 紧凑 */
    .schedule-card { padding: 24px; }

    /* CTA */
    .cta-section { padding: 60px 32px; }
    .cta-section h2 { font-size: 30px; }
}

/* iPad Pro Portrait (835-1023px) */
@media (min-width: 835px) and (max-width: 1023px) {
    /* Features - 3列但紧凑 */
    .feature-card { padding: 28px; }
    .feature-emoji { font-size: 52px; }

    /* Gallery - 3列 */
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }

    /* Schedule - 紧凑 */
    .schedule-card { padding: 28px; }
}

/* Mobile Optimization */
@media (max-width: 767px) {
    .nav-inner { padding: 0 16px; }
    .nav-logo span { font-size: 16px; }
    .nav-logo img { height: 28px; }
    .nav-menu-btn {
        width: 28px;
        height: 22px;
        display: flex !important;
    }
    .mobile-menu.active { display: flex; }
    .mobile-menu a {
        font-size: 20px;
        padding: 20px 32px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.8);
    }
    
    /* Hero */
    .hero { padding: 100px 16px 40px; min-height: 90vh; }
    .hero-emoji { font-size: 60px; }
    .hero-title { font-size: 48px; }
    .hero-subtitle { font-size: 16px; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 15px; }
    
    /* Sections */
    .section { padding: 60px 16px; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 32px; }
    .section-desc { font-size: 15px; }
    
    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px; }
    .feature-emoji { font-size: 48px; }
    .feature-card h3 { font-size: 20px; }
    .feature-card p { font-size: 14px; }
    
    /* Timeline */
    .timeline::before { left: 16px; }
    .timeline-item { padding-left: 56px; padding-bottom: 24px; }
    .timeline-item::before { left: 6px; width: 20px; height: 20px; }
    .timeline-time { font-size: 12px; padding: 4px 12px; }
    .timeline-content h3 { font-size: 18px; }
    .timeline-content p { font-size: 14px; }
    
    /* Schedule Cards */
    .schedule-grid { grid-template-columns: 1fr; gap: 16px; }
    .schedule-card { padding: 24px; }
    .schedule-header { gap: 6px; }
    .schedule-day { font-size: clamp(20px, 7vw, 28px); white-space: nowrap; }
    .schedule-title { font-size: clamp(12px, 4vw, 15px); white-space: nowrap; }
    .schedule-list li { font-size: 14px; }
    
    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
    .gallery-item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16/9; }
    .gallery-item { aspect-ratio: 16/9; }
    .gallery-overlay span { font-size: 14px; }
    
    /* CTA Section */
    .cta-section { padding: 60px 16px; margin: 40px 16px; }
    .cta-section h2 { font-size: 28px; }
    .cta-section p { font-size: 16px; margin-bottom: 24px; }
    
    /* Contact Grid */
    .contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-card { padding: 24px; flex-direction: row; }
    .contact-emoji { font-size: 40px; }
    .contact-info h4 { font-size: 16px; }
    .contact-info p { font-size: 14px; }
    .contact-info .phone { font-size: 20px; }
    
    /* Footer */
    .footer { padding: 32px 16px; }
    .footer-links { gap: 16px; font-size: 13px; }
    .footer-copy { font-size: 12px; }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 14px; }
    .btn { font-size: 14px; padding: 14px 20px; }
    .section-title { font-size: 28px; }
}

/* Mobile Menu Button & Close */

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.mobile-menu-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
