/* ============================================
   首页样式 - Index Page Styles
   ============================================ */

/* 容器布局 */
.container {
    max-width: 100%;
    padding: 40px 20px;
}

/* Hero 区域 */
header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #1e293b, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 工具网格 */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* SaaS 风格卡片 */
.tool-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}

.tool-card:hover .icon-wrapper {
    background: var(--primary-color);
}

.icon-wrapper i {
    font-size: 24px;
    color: var(--primary-color);
    transition: 0.3s;
}

.tool-card:hover .icon-wrapper i {
    color: white;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    align-self: flex-start;
}

/* 页脚 */
footer {
    margin-top: 80px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

/* 工具介绍板块 */
.promo-section {
    background: #121C17;
    margin: 80px -20px 0;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: calc(100% + 40px);
}

.promo-content {
    flex: 1;
    color: #ffffff;
}

.promo-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
}

.promo-content .description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.promo-features {
    list-style: none;
    margin-bottom: 40px;
}

.promo-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #ffffff;
}

.promo-features li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.promo-cta {
    display: inline-block;
    background: #007B5C;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.promo-cta:hover {
    background: #005a44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 92, 0.4);
}

.promo-cta i {
    margin-left: 8px;
}

.promo-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.promo-visual-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 60px;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.promo-visual-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.promo-visual-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: transform 0.3s;
}

.promo-visual-item:nth-child(2n) {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.promo-visual-item:hover {
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 968px) {
    .promo-section {
        flex-direction: column;
        padding: 60px 20px;
        margin: 60px 0 0;
    }

    .promo-content h2 {
        font-size: 2rem;
    }

    .promo-visual {
        min-height: 300px;
    }

    .promo-visual-wrapper {
        padding: 40px;
    }
}

@media (max-width: 640px) {
    header h1 {
        font-size: 2rem;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-content h2 {
        font-size: 1.75rem;
    }

    .promo-content .description {
        font-size: 1rem;
    }
}
