* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(to right, #ffffff 0%, #f9eee3 38.462%);
    /* Improve font rendering on mobile devices */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

/* Japanese-specific font */
html[lang="ja"] body,
html[lang="ja"] * {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Sans', 'Yu Gothic', sans-serif !important;
}

.container {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative; /* 添加相对定位 */
    scroll-snap-align: start;
    background: linear-gradient(to right, #ffffff 0%, #f9eee3 38.462%);
}

/* 修改图标占位符样式 */
.icon-placeholder {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 40px;
    left: 220px;
    z-index: 10;
    gap: 12px;
}

.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    padding-top: 140px;
    background-color: transparent;
    align-items: center;
    justify-content: flex-start;
}

/* 手绘风格卡片样式 */
.card {
    background: #fefefe;
    border-radius: 25px 15px 20px 30px;
    padding: 96px 72px; /* 增加内边距（按比例放大） */
    width: 480px; /* 增加卡片宽度（按比例放大） */
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid #2c3e50;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    position: relative;
    margin: 20px;
}

/* 响应式调整也需要相应修改 */
@media (max-width: 768px) {
    .card {
        width: 384px; /* 调整移动端宽度（按比例放大） */
        padding: 72px 48px; /* 调整移动端内边距（按比例放大） */
    }
}

.card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20%;
    width: 15px;
    height: 15px;
    border: 3px solid #e74c3c;
    border-radius: 50% 40% 60% 30%;
    background: transparent;
}

.card:hover {
    transform: rotate(1deg) scale(1.02);
}

.card h2 {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2c3e50;
    transform: skew(-2deg, 1deg);
    font-weight: bold;
}

/* 新增：卡片副标题（标语）样式 */
.card .tagline {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif; /* 与标题一致 */
    font-size: 1.2em; /* 稍小于标题 */
    color: #2c3e50;
    margin-bottom: 30px;
    white-space: pre-line; /* Allow line breaks */
}

.card .btn {
    background: transparent;
    color: #27ae60;
    border: 4px solid #27ae60;
    padding: 12px 30px;
    border-radius: 30px 20px 35px 25px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transform: rotate(2deg);
    transition: all 0.3s ease;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    min-width: 60px;
    display: inline-block;
    text-decoration: none;
}

.card .btn:hover {
    border-color: #e67e22;
    color: #e67e22;
    transform: rotate(-1deg) scale(1.05);
}

.card .btn:active {
    transform: rotate(-1deg) scale(0.98);
}

/* 蓝色主题 */
.card.blue .btn {
    border-color: #3498db;
    color: #000000;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
}

.card.blue .btn:hover {
    border-color: #3498db;
    color: #000000;
}

.card.blue .btn:visited,
.card.blue .btn:link {
    border-color: #3498db;
    color: #000000;
}

.card.blue .btn:hover::before {
    border-color: #3498db;
}

.card.blue .btn:active {
    border-color: #3498db;
    color: #000000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        width: 92%;
        max-width: 380px; /* bigger card on mobile */
        padding: 44px 36px; /* roomier padding */
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .card h2 {
        font-size: 2.8em;
        margin-bottom: 0;
    }
    
    .card .tagline {
        font-size: 1.3em; /* larger tagline per design */
        margin-bottom: 0;
        line-height: 1.5;
        text-align: center;
    }
    
    .card .btn {
        padding: 14px 24px;
        font-size: 14px;
        min-width: 230px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .card .btn .apple-logo {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }
    
    .card .btn .btn-text {
        font-size: 14px;
        line-height: 1.25;
        text-align: center;
    }
}

/* 图标占位符样式 */
.icon-placeholder .logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.icon-placeholder .logo-text {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 36px;
    color: #2c3e50;
    letter-spacing: 0.2px;
}

/* 内容盒子样式 */
.content-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
}

.content-box h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-family: serif;
}

.action-button {
    width: 120px;
    height: 40px;
    background-color: #ddd;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 1rem;
}

.right-section {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    padding-top: 200px;
    gap: 20px;
}

.right-section .town-image {
    width: 80%;
    height: auto;
    object-fit: contain;
    transform: translateY(0px); /* Move town downward */
}

.vibe-text {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
    max-width: 600px;
    position: relative;
    transform: translateY(20px); /* Give more space from town */
}

.vibe-text::before {
    content: '"';
    font-size: 48px;
    position: absolute;
    left: -30px;
    top: -10px;
    color: #2c3e50;
    opacity: 0.6;
}

.vibe-text::after {
    content: '"';
    font-size: 48px;
    position: absolute;
    right: -30px;
    bottom: -20px;
    color: #2c3e50;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        padding: 60px 5% 60px;
        min-height: 100vh;
    }
    
    .left-section {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 3; /* bottom */
    }
    
    /* Hide original card title on mobile (we use mobile-title at top) */
    .left-section .card h2 { display: none; }
    
    .right-section {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        order: 2; /* middle */
    }
    
    /* Hide town image on mobile */
    .right-section .town-image {
        display: none;
    }
    
    /* Position vibe text in the middle */
    .vibe-text {
        font-size: 28px;
        max-width: 92%;
        transform: none;
        margin: 0 auto;
        text-align: center;
    }
    
    .vibe-text::before {
        font-size: 36px;
        left: -18px;
        top: -8px;
    }
    
    .vibe-text::after {
        font-size: 36px;
        right: -18px;
        bottom: -12px;
    }
}

/* Mobile headline styles */
@media (max-width: 768px) {
    .mobile-title {
        display: block;
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
        font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif; /* match vibe text */
        font-size: 48px; /* larger headline */
        font-weight: bold;
        color: #2c3e50;
        letter-spacing: 0.5px;
        margin: 0;
        padding: 0;
        order: 1; /* top */
    }
}

@media (min-width: 769px) {
    .mobile-title { display: none; }
}


/* Base button styles */
.btn, 
.btn:visited,  /* 添加访问后的状态 */
.btn:active,   /* 添加激活状态 */
.btn:link {    /* 添加未访问状态 */
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    min-height: 50px;
    border: none;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cloud,
.btn-cloud:visited,
.btn-cloud:active,
.btn-cloud:link {
    border: 4px solid #f9eee3;
    border-radius: 30px 20px 35px 25px;
    transform: rotate(2deg);
    position: relative;
}

.btn-cloud::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20%;
    width: 15px;
    height: 15px;
    border: 4px solid #f9eee3;
    border-radius: 50% 40% 60% 30%;
    background: transparent;
}

.btn-cloud:hover {
    transform: rotate(-1deg) scale(1.05);
    border-color: #f9eee3;
}

.btn-cloud:hover::before {
    border-color: #e67e22;
}

/* Optional: Apple Store specific styling */
.apple-store-btn,
.apple-store-btn:visited,
.apple-store-btn:active,
.apple-store-btn:link {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* App Store按钮样式恢复 */
.card .btn {
    background: #fefefe;
    color: #f9eee3;
    border: 4px solid #3498db;
    padding: 15px 30px;
    border-radius: 30px 20px 35px 25px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transform: rotate(2deg);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.card .btn::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20%;
    width: 15px;
    height: 15px;
    border: 4px solid #3498db;
    border-radius: 50% 40% 60% 30%;
    background: transparent;
}

.card .btn:hover {
    transform: rotate(-1deg) scale(1.05);
    border-color: #f9eee3;
    color: #f9eee3;
}

.card .btn:hover::before {
    border-color: #f9eee3;
}

.card .btn:active {
    transform: rotate(-1deg) scale(0.98);
}

/* 确保按钮在访问后保持样式 */
.card .btn:visited,
.card .btn:link {
    color: #f9eee3;
    text-decoration: none;
}

/* Remove Montserrat font declaration - file doesn't exist */

/* Features Section - Exact Figma Design */
.features-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 0 100px 0;
    background: linear-gradient(to right, #ffffff 0%, #f9eee3 38.462%);
    scroll-snap-align: start;
    position: relative;
}

.features-title {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    margin-bottom: 120px;
}

.features-container {
    position: relative;
    width: 1024px;
    height: 600px;
    margin: 0 auto;
}

/* White background boxes */
.feature-box {
    position: absolute;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25);
}

/* Left Column Boxes */
.feature-box-left-header {
    left: 0;
    top: 0;
    width: 310px;
    height: 120px;
}

.feature-box-left-body {
    left: 0;
    top: 142px;
    width: 310px;
    height: 402px;
}

/* Middle Column Boxes */
.feature-box-middle-top {
    left: 333px;
    top: 0;
    width: 349px;
    height: 254px;
}

.feature-box-middle-bottom {
    left: 333px;
    top: 283px;
    width: 349px;
    height: 261px;
}

/* Right Column Boxes */
.feature-box-right-top {
    left: 705px;
    top: 0;
    width: 319px;
    height: 373px;
}

.feature-box-right-bottom {
    left: 705px;
    top: 392px;
    width: 319px;
    height: 152px;
}

/* Images */
.feature-img-video {
    position: absolute;
    left: 68px;
    top: 196px;
    width: 173px;
    height: 173px;
    object-fit: contain;
    z-index: 2;
}

.feature-img-town {
    position: absolute;
    left: 564px;
    top: -104px;
    width: 284px;
    height: 160px;
    object-fit: contain;
    z-index: 10;
}

.feature-img-gacha {
    position: absolute;
    left: 535px;
    top: 300px;
    width: 280px;
    height: 280px;
    object-fit: contain;
    z-index: 1;
}

.feature-img-pascal {
    position: absolute;
    left: 905px;
    top: 239px;
    width: 126px;
    height: 137px;
    object-fit: contain;
    z-index: 10;
}

/* Titles */
.feature-title {
    position: absolute;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 23px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    line-height: normal;
    z-index: 3;
}

.feature-title-video {
    left: 0;
    top: 47px;
    width: 310px;
}

.feature-title-town {
    left: 333px;
    top: 58px;
    width: 349px;
}

.feature-title-gacha {
    left: 333px;
    top: 320px;
    width: 349px;
}

.feature-title-tribe {
    left: 705px;
    top: 450px;
    width: 319px;
}

/* Descriptions */
.feature-desc {
    position: absolute;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 21px;
    color: #000000;
    text-align: center;
    line-height: 1.3;
    z-index: 3;
}

.feature-desc-video {
    left: 19.5px;
    top: 384px;
    width: 271px;
}

.feature-desc-town {
    left: 357px;
    top: 118px;
    width: 301px;
}

.feature-desc-gacha {
    left: 378px;
    top: 392px;
    width: 259px;
}

.feature-desc-tribe {
    left: 726.5px;
    top: 99px;
    width: 276px;
}

/* Hide mobile cards on desktop */
.mobile-feature-card,
.mobile-feature-title,
.mobile-feature-desc,
.mobile-feature-img {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-container {
        width: 90%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 60px;
        padding: 20px;
    }
    
    .feature-box,
    .feature-title,
    .feature-desc,
    .feature-img-video,
    .feature-img-town,
    .feature-img-gacha,
    .feature-img-pascal {
        position: relative;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        margin: 0 auto;
    }
    
    .feature-box {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .feature-title,
    .feature-desc {
        width: 100% !important;
        max-width: 400px;
    }
    
    .feature-img-video,
    .feature-img-town,
    .feature-img-gacha,
    .feature-img-pascal {
        display: block;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 60px 5% 60px;
        min-height: auto;
    }
    
    .features-title {
        font-size: 32px;
        margin-bottom: 80px;
        letter-spacing: 0;
        line-height: 1.4;
        max-width: 300px;
        font-weight: bold;
    }
    
    /* Hide desktop layout on mobile */
    .features-container {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    /* Specific gaps between mobile cards */
    .mobile-feature-card + .mobile-feature-card {
        margin-top: 18px;
    }
    
    /* Larger gaps after body cards */
    .mobile-feature-card.card-body + .mobile-feature-card {
        margin-top: 46px;
    }
    
    /* Gap after tall cards */
    .mobile-feature-card.card-tall + .mobile-feature-card {
        margin-top: 46px;
    }
    
    /* Reset all absolute positioning */
    .feature-box,
    .feature-title,
    .feature-desc,
    .feature-img-video,
    .feature-img-town,
    .feature-img-gacha,
    .feature-img-pascal {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
    }
    
    /* Hide desktop boxes */
    .feature-box-left-header,
    .feature-box-left-body,
    .feature-box-middle-top,
    .feature-box-middle-bottom,
    .feature-box-right-top,
    .feature-box-right-bottom {
        display: none;
    }
    
    /* Hide desktop titles and descriptions */
    .feature-title-video,
    .feature-title-town,
    .feature-title-gacha,
    .feature-title-tribe,
    .feature-desc-video,
    .feature-desc-town,
    .feature-desc-gacha,
    .feature-desc-tribe {
        display: none;
    }
    
    /* Hide desktop images */
    .feature-img-video,
    .feature-img-town,
    .feature-img-gacha,
    .feature-img-pascal {
        display: none;
    }
    
    /* Show mobile feature cards */
    .mobile-feature-card {
        display: flex;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25);
        padding: 0;
        margin: 0 auto;
        width: calc(100% - 86px);
        max-width: 297px;
        position: relative;
    }
    
    .mobile-feature-title {
        display: block;
    }
    
    .mobile-feature-desc {
        display: block;
    }
    
    .mobile-feature-img {
        display: block;
    }
    
    .mobile-feature-card.card-header {
        min-height: 61px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 17px 20px;
        overflow: visible;
    }
    
    .mobile-feature-card.card-body {
        min-height: 178px;
        padding: 34px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: visible;
    }
    
    .mobile-feature-card.card-tall {
        min-height: 203px;
        padding: 30px 26px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        overflow: visible;
        position: relative;
        z-index: 2;
    }
    
    .mobile-feature-card.card-tall .mobile-feature-title {
        margin-bottom: 0;
    }
    
    .mobile-feature-card.card-tall .mobile-feature-desc {
        margin-bottom: 8px;
    }
    
    .mobile-feature-title {
        font-size: 23px;
        font-weight: bold;
        color: #000000;
        text-align: center;
        line-height: normal;
        letter-spacing: 0;
        margin: 0;
        white-space: normal;
        position: relative;
        z-index: 2;
    }
    
    .mobile-feature-desc {
        font-size: 21px;
        font-weight: normal;
        color: #000000;
        text-align: center;
        line-height: 1.3;
        letter-spacing: 0;
        margin: 0;
        white-space: normal;
        position: relative;
        z-index: 2;
    }
    
    .mobile-feature-img {
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0;
    }
    
    .mobile-feature-img.img-video {
        width: 99px;
        height: 99px;
        position: absolute;
        right: -26px;
        top: 11px;
        z-index: 1;
    }
    
    .mobile-feature-img.img-town {
        width: 177px;
        height: 100px;
        margin-top: 0;
        margin-bottom: 0;
        position: relative;
    }
    
    .mobile-feature-img.img-gacha {
        width: 124px;
        height: 124px;
        position: absolute;
        right: -30px;
        bottom: -60px;
        z-index: 1;
    }
}

/* Ensure mobile cards are absolutely hidden on larger screens */
@media (min-width: 769px) {
    .mobile-feature-card,
    .mobile-feature-title:not(.feature-title),
    .mobile-feature-desc:not(.feature-desc),
    .mobile-feature-img {
        display: none !important;
    }
}

/* Custom font declaration with multiple formats for cross-device compatibility */
@font-face {
    font-family: 'Tract';
    src: url('fonts/Tract-1.woff2') format('woff2'),
         url('fonts/Tract-1.woff') format('woff'),
         url('fonts/Tract-1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Ensures text remains visible during font loading */
}


/* FAQ部分样式 */
.faq-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 15% 60px; /* 统一各页顶部/底部留白 */
    background-color: transparent;
    scroll-snap-align: start;
}

.faq-title {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 48px; /* 与其它页面保持一致 */
    text-transform: none;
    text-align: center;
    letter-spacing: -0.5px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: transparent;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
    box-shadow: none;
    overflow: visible;
    padding: 24px 0;
}

.faq-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.faq-question {
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    gap: 24px;
}

.faq-question:hover {
    background-color: transparent;
    opacity: 0.7;
}

.faq-question span {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1.5;
    flex: 1;
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.faq-toggle svg {
    fill: none;
    stroke: #000000;
    stroke-width: 2;
    stroke-linecap: round;
    width: 20px;
    height: 20px;
}

.faq-item.active .faq-toggle svg {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    padding-top: 16px;
    padding-right: 48px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    padding-bottom: 0;
    color: #666666;
    line-height: 1.7;
    font-size: 16px;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 5%;
    }

    .faq-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .faq-question span {
        font-size: 16px;
    }
    
    .faq-answer {
        padding-right: 32px;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
}


.footer {
    padding: 30px 0 20px;
    text-align: center;
    background-color: transparent;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #333;
}

.footer-separator {
    color: #666;
    font-size: 14px;
}


/* Community section */
.community-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 5% 100px;
    background: transparent;
    scroll-snap-align: start;
}

.community-title {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 50px;
    text-transform: none;
    text-align: center;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 60px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Staggered layout - first row shifts left */
.card-row-1 {
    transform: translateX(-40px);
}

/* Second row shifts right */
.card-row-2 {
    transform: translateX(40px);
}

.avatar-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 12px;
}

.character-info-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 16px 20px;
    max-width: 280px;
    width: 100%;
}

.character-name {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 23px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 8px;
}

.character-desc {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-align: center;
    line-height: 1.45; /* 略微压缩行距，使两行更紧凑 */
}

.bubble {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 280px;
    width: 100%;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 14px;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    text-align: center;
}

@media (max-width: 992px) {
    .community-section {
        padding: 70px 5% 70px;
    }
    .community-title {
        font-size: 42px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .community-section {
        padding: 60px 5% 60px;
    }
    .community-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
    .community-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 50px;
    }
    .avatar-image { 
        width: 190px; 
        height: 190px; 
    }
    .character-info-box {
        max-width: 260px;
    }
    /* Reduce stagger on tablet */
    .card-row-1 {
        transform: translateX(-25px);
    }
    .card-row-2 {
        transform: translateX(25px);
    }
}

@media (max-width: 600px) {
    .community-grid { 
        gap: 30px 20px;
    }
    .avatar-image { 
        width: 140px; 
        height: 140px; 
    }
    .character-info-box {
        max-width: 160px;
        padding: 12px 14px;
    }
    .character-name {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .character-desc {
        font-size: 11px;
        line-height: 1.35;
    }
    /* Remove stagger on mobile */
    .card-row-1,
    .card-row-2 {
        transform: translateX(0);
    }
    
    /* Reorder characters on mobile: swap Lyra and Elara */
    .community-card:nth-child(1) { order: 5; } /* Lyra moves to 5th position */
    .community-card:nth-child(2) { order: 2; } /* Milo stays */
    .community-card:nth-child(3) { order: 3; } /* Pippa stays */
    .community-card:nth-child(4) { order: 4; } /* Bonbon stays */
    .community-card:nth-child(5) { order: 1; } /* Elara moves to 1st position */
    .community-card:nth-child(6) { order: 6; } /* Cadence stays */
}

/* Navigation buttons in top right */
.nav-buttons {
    position: absolute;
    top: 40px;
    right: 100px;
    display: flex;
    gap: 36px;
    align-items: center;
    z-index: 100;
}

.nav-button {
    position: relative;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Chalkboard', 'Marker Felt', 'Trattatello', 'Bradley Hand', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 24px);
    height: 34px;
    background-color: white;
    border-radius: 17px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-button.active::before {
    opacity: 1;
}

@media (max-width: 1200px) {
    .nav-buttons {
        right: 40px;
        gap: 24px;
    }
    
    .nav-button {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav-buttons {
        display: none; /* Hide on mobile for now */
    }
}
