/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: white;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
}

.btn-secondary:hover {
    background: #FF6B6B;
    color: white;
}

/* 头部区域样式 */
.hero {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.8em;
    margin-bottom: 35px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* 邀请码样式 */
.invite-code {
    margin: 40px auto;
    max-width: 400px;
    animation: fadeInUp 1s ease 0.3s;
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.invite-label {
    font-size: 1.3em;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.invite-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 5px;
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 12px;
    border: 2px dashed rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.invite-number:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-buttons {
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s;
    margin-top: 40px;
}

.download-buttons .btn {
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 30px;
    background: white;
    color: #FF6B6B;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.download-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    background: #FFD700;
    color: #333;
}

/* 装饰圆圈 */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 30%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 发光文字效果 */
.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 30px rgba(255, 255, 255, 0.2);
}

/* 描述文本 */
.hero-description {
    font-size: 1.2em;
    margin: 20px 0 30px;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s;
}

/* 徽章样式 */
.badge {
    background: #FFD700;
    color: #333;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 8px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 复制提示 */
.copy-hint {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
    cursor: pointer;
}

/* 按钮图标 */
.btn-icon {
    margin-right: 10px;
    font-size: 1.2em;
    vertical-align: middle;
}

.btn-text {
    vertical-align: middle;
}

/* 邀请码点击效果 */
.invite-number {
    cursor: pointer;
    user-select: all;
}

.invite-number:active {
    transform: scale(0.98);
}

/* APP介绍部分 */
.app-intro {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.app-intro h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3436;
    font-size: 2em;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: justify;
    color: #333;
    padding: 0 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.category-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-text {
        font-size: 1.1em;
        padding: 0 15px;
    }
}

/* 特性区域样式 */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2d3436;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* 优惠券区域样式 */
.coupons {
    padding: 80px 0;
}

.coupons h2 {
    text-align: center;
    margin-bottom: 50px;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.coupon-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px dashed #FF6B6B;
}

.coupon-amount {
    font-size: 2.5em;
    color: #FF6B6B;
    font-weight: bold;
    margin-bottom: 10px;
}

.coupon-desc {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.coupon-limit {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.coupon-note {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: #FF6B6B;
    font-size: 1.1em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* APP预览部分增强样式 */
.app-preview {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.app-preview h2 {
    text-align: center;
    margin-bottom: 50px;
}

.preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.preview-text {
    flex: 1;
    min-width: 300px;
}

.preview-text h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #FF6B6B;
}

.feature-list p {
    margin: 15px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.preview-highlight {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fff4e6, #fff0f0);
    border-radius: 10px;
    border-left: 4px solid #FF6B6B;
}

.preview-highlight p {
    font-size: 1.2em;
    font-weight: 600;
    color: #FF6B6B;
    margin-bottom: 10px;
}

.preview-highlight ul {
    padding-left: 20px;
}

.preview-highlight li {
    margin: 8px 0;
    font-size: 1.05em;
}

.preview-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 280px;
    height: 500px;
    background: linear-gradient(135deg, #f1f3f5, #e9ecef);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 10px solid #fff;
    position: relative;
}

.image-placeholder p {
    color: #adb5bd;
    font-size: 1.2em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .preview-content {
        flex-direction: column;
    }
    
    .preview-text, .preview-image {
        width: 100%;
    }
    
    .image-placeholder {
        width: 220px;
        height: 400px;
    }
}

/* FAQ部分样式 */
.faq {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,107,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2d3436;
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
}

.faq h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #FF6B6B;
    margin: 20px auto 0;
    border-radius: 2px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3436;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #FF6B6B;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-top: 0px solid #e9ecef;
    color: #636e72;
    line-height: 1.6;
}

.faq-answer.active {
    padding: 20px;
    max-height: 300px;
    border-top: 1px solid #e9ecef;
}

.faq-answer p {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out 0.2s;
}

.faq-answer.active p {
    opacity: 1;
    transform: translateY(0);
}

.faq-answer p {
    margin: 0;
}

@media (max-width: 768px) {
    .faq {
        padding: 40px 0;
    }
    
    .faq h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .faq h2::after {
        width: 40px;
        margin: 15px auto 0;
    }
    
    .faq-container {
        padding: 0 20px;
    }
    
    .faq-item {
        margin-bottom: 15px;
    }
    
    .faq-question {
        padding: 15px 45px 15px 15px;
        font-size: 0.95em;
    }
    
    .faq-icon {
        right: 15px;
        font-size: 18px;
    }
    
    .faq-answer.active {
        padding: 15px;
        max-height: 400px; /* 增加移动端最大高度，确保长答案可以完全显示 */
    }
    
    .faq-answer {
        font-size: 0.9em;
    }
}

/* 添加平板设备的优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq h2 {
        font-size: 2.2em;
    }
    
    .faq-container {
        padding: 0 30px;
    }
}

/* 添加触摸设备的优化 */
@media (hover: none) {
    .faq-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .faq-question:active {
        background: #e9ecef;
    }
}

/* APP预览区域样式 */
.app-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.preview-text h3 {
    margin-bottom: 30px;
    font-size: 1.8em;
}

.preview-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* 页脚样式 */
footer {
    background: #2d3436;
    color: white;
    padding: 50px 0;
    text-align: center;
}

footer p {
    margin-bottom: 30px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .hero .subtitle {
        font-size: 1.2em;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .coupon-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}