:root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --accent: #f59e0b;
    --hero-from: #0f172a;
    --hero-mid: #134e4a;
    --hero-to: #0d9488;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.12);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    margin: 0;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(145deg, var(--hero-from) 0%, var(--hero-mid) 55%, var(--hero-to) 100%);
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero .text-center {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    margin: 0;
}

/* ── Main layout ── */
.main-wrap {
    max-width: 1140px;
    margin: -28px auto 0;
    padding: 0 15px 40px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .fa {
    color: var(--primary);
    font-size: 15px;
}

/* ── Tools grid ── */
.tools-section {
    margin-bottom: 20px;
}

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

.tool-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}

.tool-card-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.tool-card-icon.orange {
    background: #fef3c7;
    color: #d97706;
}

.tool-card-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.tool-card-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.tool-card-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.tool-card-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.tool-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.tool-card-body {
    padding: 14px 18px 18px;
}

.tool-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── SEO ── */
.seo-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    line-height: 1.85;
    box-shadow: var(--shadow);
}

.seo-block h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 18px 0 8px;
}

.seo-block p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.seo-block strong {
    color: var(--text);
    font-weight: 600;
}

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 24px 20px 32px;
    color: var(--text-muted);
    font-size: 13px;
}

.site-footer a {
    color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .hero {
        padding: 36px 0 48px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .seo-block {
        padding: 18px 16px;
    }

    .seo-block h2 {
        font-size: 16px;
    }
}
