/* ========================================
   写作指南页面样式
   特点：高性能、高视觉体验、黄色主题
   ======================================== */

/* ========================================
   收益卡片样式（写作指南特有）
   ======================================== */
.income-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.income-card {
    position: relative;
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(245, 127, 23, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    transform: translateZ(0);
    animation: fadeInScale 0.6s ease-out backwards;
}

.income-card:nth-child(1) { animation-delay: 0.1s; }
.income-card:nth-child(2) { animation-delay: 0.2s; }
.income-card:nth-child(3) { animation-delay: 0.3s; }

.income-card.featured {
    border: 3px solid #F57F17;
}

.income-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 15px 50px rgba(245, 127, 23, 0.2);
}

.income-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #F57F17, #FDD835);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 6px 20px rgba(245, 127, 23, 0.3);
}

.income-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.income-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #F57F17;
    margin: 20px 0;
}

.income-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.income-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.income-details li {
    padding: 10px 0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.income-details li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========================================
   平台扶持样式（写作指南特有）
   ======================================== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.support-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(245, 127, 23, 0.08);
    transition: all 0.3s ease;
    transform: translateZ(0);
    animation: fadeInUp 0.6s ease-out backwards;
}

.support-card:nth-child(1) { animation-delay: 0.1s; }
.support-card:nth-child(2) { animation-delay: 0.15s; }
.support-card:nth-child(3) { animation-delay: 0.2s; }
.support-card:nth-child(4) { animation-delay: 0.25s; }

.support-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 12px 40px rgba(245, 127, 23, 0.15);
}

.support-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FFF8E1, #FFE082);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #F57F17;
}

.support-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.support-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

/* ========================================
   成功案例样式（写作指南特有）
   ======================================== */
.stories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.story-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(245, 127, 23, 0.08);
    transition: all 0.3s ease;
    transform: translateZ(0);
    animation: fadeInScale 0.6s ease-out backwards;
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }

.story-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 12px 40px rgba(245, 127, 23, 0.15);
}

.story-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F57F17, #FDD835);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.story-content {
    flex: 1;
}

.story-author {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.story-genre {
    font-size: 0.9rem;
    color: #F57F17;
    margin-bottom: 15px;
}

.story-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}

.story-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.story-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #999;
}

.story-stats span i {
    color: #F57F17;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .income-cards,
    .support-grid,
    .stories-container {
        grid-template-columns: 1fr;
    }
    
    .story-card {
        flex-direction: column;
        text-align: center;
    }
    
    .story-avatar {
        margin: 0 auto;
    }
    
    .story-stats {
        justify-content: center;
    }
}

/* 性能优化：启用GPU加速 */
.guide-main * {
    will-change: auto;
    contain: layout style paint;
}

/* 主容器 */
.guide-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 50%, #ffffff 100%);
}

/* ========================================
   Hero Section - 顶部英雄区
   ======================================== */
.guide-hero {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #F57F17 0%, #FBC02D 50%, #FDD835 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    transform: translateZ(0); /* GPU加速 */
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title i {
    font-size: 3rem;
    margin-right: 15px;
    animation: bookFloat 3s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Section通用样式
   ======================================== */
.guide-section {
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-section.alt-bg {
    background: rgba(255, 248, 225, 0.5);
    backdrop-filter: blur(10px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F57F17;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    font-size: 2.2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* ========================================
   快速开始 - Steps
   ======================================== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.step-card {
    position: relative;
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(245, 127, 23, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    transform: translateZ(0); /* GPU加速 */
    animation: fadeInScale 0.6s ease-out backwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.step-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 15px 50px rgba(245, 127, 23, 0.2);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F57F17, #FBC02D);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 127, 23, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #F57F17;
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.step-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   平台特色 - Features
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(245, 127, 23, 0.08);
    transition: all 0.3s ease;
    transform: translateZ(0); /* GPU加速 */
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

.feature-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 12px 40px rgba(245, 127, 23, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #F57F17, #FDD835);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.feature-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

/* ========================================
   阅读技巧 - Tips
   ======================================== */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tip-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid #F57F17;
    box-shadow: 0 6px 25px rgba(245, 127, 23, 0.08);
    transition: all 0.3s ease;
    transform: translateZ(0); /* GPU加速 */
    animation: slideInLeft 0.6s ease-out backwards;
}

.tip-card:nth-child(1) { animation-delay: 0.1s; }
.tip-card:nth-child(2) { animation-delay: 0.2s; }
.tip-card:nth-child(3) { animation-delay: 0.3s; }
.tip-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tip-card:hover {
    transform: translateX(5px) translateZ(0);
    box-shadow: 0 8px 30px rgba(245, 127, 23, 0.15);
}

.tip-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFF8E1, #FFE082);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #F57F17;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.tip-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ========================================
   会员特权 - VIP
   ======================================== */
.vip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.vip-card {
    position: relative;
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    transform: translateZ(0); /* GPU加速 */
    animation: fadeInScale 0.6s ease-out backwards;
}

.vip-card:nth-child(1) { animation-delay: 0.1s; }
.vip-card:nth-child(2) { animation-delay: 0.2s; }

.vip-card.featured {
    border: 3px solid #F57F17;
    transform: scale(1.05) translateZ(0);
}

.vip-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 15px 50px rgba(245, 127, 23, 0.2);
}

.vip-card.featured:hover {
    transform: scale(1.08) translateY(-10px) translateZ(0);
}

.vip-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #F57F17, #FBC02D);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
}

.vip-badge.premium {
    background: linear-gradient(135deg, #F57F17, #E65100);
}

.popular-tag {
    position: absolute;
    top: -15px;
    right: 30px;
    background: #E65100;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(230, 85, 0, 0.4);
}

.vip-price {
    margin: 30px 0;
    font-weight: 700;
}

.price-currency {
    font-size: 1.5rem;
    color: #F57F17;
}

.price-amount {
    font-size: 3rem;
    color: #F57F17;
}

.price-unit {
    font-size: 1.2rem;
    color: #999;
}

.vip-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.vip-benefits li {
    padding: 12px 0;
    color: #555;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-benefits li i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.vip-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #F57F17, #FBC02D);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 127, 23, 0.3);
}

.vip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 127, 23, 0.4);
}

/* ========================================
   常见问题 - FAQ
   ======================================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(245, 127, 23, 0.08);
    animation: fadeInUp 0.5s ease-out backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }

.faq-question {
    padding: 25px 30px;
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #FFE082, #FFD54F);
}

.faq-question i {
    color: #F57F17;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 25px 30px;
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* ========================================
   CTA区域
   ======================================== */
.guide-cta {
    background: linear-gradient(135deg, #F57F17 0%, #E65100 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guide-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateZ(0); /* GPU加速 */
}

.cta-btn.primary {
    background: white;
    color: #F57F17;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) translateZ(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .guide-section {
        padding: 30px 15px;
    }
    
    .steps-container,
    .features-grid,
    .tips-container,
    .vip-cards {
        grid-template-columns: 1fr;
    }
    
    .vip-card.featured {
        transform: scale(1) translateZ(0);
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 性能优化：减少重绘 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

