/**
 * 首页样式 - index.php
 * 包含 Hero、核心优势、功能特点、解决方案、价格方案、数据统计、CTA 区域的样式
 */

/* ==================== Hero区域 ==================== */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #6a11cb20, #2575fc20);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 100px;
    display: inline-block;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 8px;
    text-align: center;
}

/* ==================== 聊天演示 ==================== */
.chat-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

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

.chat-header {
    background: var(--gradient);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.bot-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-name {
    font-weight: 600;
    font-size: 18px;
}

.chat-status {
    font-size: 14px;
    opacity: 0.9;
}

.chat-messages {
    padding: 20px;
    background: var(--bg-light);
    min-height: 300px;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.user-message .message-content {
    background: var(--gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-input {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gradient);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 核心优势 ==================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-description {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.advantage-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== 功能特点 ==================== */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== 解决方案 ==================== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.solution-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.solution-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.solution-card p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.solution-features {
    margin-top: 15px;
}

.solution-features li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ==================== 价格方案 ==================== */
.pricing {
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.price-currency {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.price-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
}

.price-period {
    font-size: 16px;
    color: var(--text-gray);
}

.pricing-desc {
    color: var(--text-gray);
    font-size: 14px;
}

.pricing-features {
    margin: 30px 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.feature-included svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.pricing-card button {
    width: 100%;
}

/* ==================== 数据统计 ==================== */
.stats {
    background: var(--gradient);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stats .stat-box .stat-number {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    letter-spacing: -1px;
}

.stat-box .stat-label {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

/* ==================== CTA ==================== */
.cta {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cta-content p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 响应式 ==================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .pricing-popular {
        transform: none;
    }

    .pricing-popular:hover {
        transform: translateY(-5px);
    }
}