/* 首页样式 - 响应式设计 */

/* ===== 顶部促销通知条 ===== */
.top-promo-bar {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.top-promo-bar .promo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.top-promo-bar .promo-text i {
    font-size: 16px;
    animation: flicker 1.5s ease-in-out infinite;
}

.top-promo-bar .promo-text strong {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.top-promo-bar .promo-cta {
    background: #fff;
    color: #ff6b35;
    padding: 6px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-promo-bar .promo-cta:hover {
    background: #ffd700;
    color: #ff6b35;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 闪光动画 */
@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 火焰图标闪烁动画 */
@keyframes flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ===== 英雄区 ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #2d3a4b 0%, #1e9fff 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 促销横幅 */
.promo-banner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px 24px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #fff;
    animation: pulseGlow 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.promo-banner i {
    color: #ffd700;
    font-size: 18px;
    animation: bounce 1s ease-in-out infinite;
}

.promo-banner strong {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 脉冲发光动画 */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.3);
    }
}

/* 礼物图标跳动动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1e9fff;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    color: #1e9fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #fff;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== 通用区域样式 ===== */
.features-section,
.workflow-section,
.advantages-section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 48px;
}

/* ===== 功能展示区 ===== */
.features-section {
    background: #f8f9fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e9fff, #009688);
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e9fff, #009688);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 28px;
}

.skill-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.skill-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.skill-step {
    font-size: 12px;
    color: #1e9fff;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.skill-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    text-align: left;
}

.skill-features li {
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-features li i {
    color: #009688;
    font-size: 12px;
}

/* ===== 使用流程区 ===== */
.workflow-section {
    background: #fff;
}

.workflow-steps {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e9fff, #009688);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

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

.workflow-arrow {
    color: #1e9fff;
    font-size: 24px;
    flex-shrink: 0;
}

/* ===== 功能优势区 ===== */
.advantages-section {
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.advantage-item {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e9fff, #009688);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 28px;
}

.advantage-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.advantage-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.advantage-features li {
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advantage-features li i {
    color: #009688;
    font-size: 12px;
}

/* ===== 页脚 ===== */
.main-footer {
    background: #2d3a4b;
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #1e9fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #999;
}

/* ===== 响应式设计 ===== */

/* 平板设备 (768px 以下) */
@media (max-width: 768px) {
    .top-promo-bar {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .top-promo-bar .promo-text {
        gap: 6px;
    }
    
    .top-promo-bar .promo-cta {
        padding: 5px 14px;
        font-size: 12px;
    }
    
    .promo-banner {
        font-size: 13px;
        padding: 8px 18px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .promo-banner i {
        font-size: 15px;
    }
    
    .hero-section {
        padding: 60px 20px;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .features-section,
    .workflow-section,
    .advantages-section {
        padding: 60px 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-steps {
        flex-direction: column;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* 手机设备 (480px 以下) */
@media (max-width: 480px) {
    .top-promo-bar {
        font-size: 11px;
        padding: 8px 0;
    }
    
    .top-promo-bar .promo-text {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-promo-bar .promo-cta {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .promo-banner {
        font-size: 12px;
        padding: 8px 16px;
        gap: 6px;
        border-radius: 30px;
    }
    
    .promo-banner i {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 40px 16px;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .skill-card {
        padding: 24px 16px;
    }
    
    .skill-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .skill-title {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 桌面设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏幕优化 */
@media (min-width: 1025px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card,
.workflow-step,
.advantage-item {
    animation: fadeInUp 0.6s ease;
}

/* 延迟动画（可选，为不同卡片添加延迟） */
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== 打印样式 ===== */
@media print {
    .hero-section {
        background: #2d3a4b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .skill-card,
    .workflow-step,
    .advantage-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
