/* ============================================================
   SLM像素工坊 · 全局设计系统 v2
   绿色史莱姆像素风 · 精致版
   ============================================================ */

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-deep: #15803d;
    --primary-light: #86efac;
    --primary-soft: #dcfce7;
    --slime: #4ade80;
    --accent: #fbbf24;
    --gradient: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    --gradient-soft: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --bg: #f6fdf8;
    --card-bg: #ffffff;
    --border: #e2f5e9;
    --shadow-sm: 0 2px 10px rgba(22, 163, 74, 0.06);
    --shadow-md: 0 10px 30px rgba(22, 163, 74, 0.10);
    --shadow-lg: 0 24px 60px rgba(22, 163, 74, 0.16);
    --radius: 20px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(74, 222, 128, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(74, 222, 128, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 顶部导航 ========== */
.top-area {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 8px 30px rgba(22, 163, 74, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 245, 233, 0.8);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.logo-text {
    font-size: 25px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: 0.5px;
}

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

.nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--text);
    font-size: 15.5px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: 12px;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-list a:hover {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.07);
}

.nav-list a.active {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.10);
    font-weight: 600;
}

/* ========== Hero 通用 ========== */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf3 100%);
    padding: 90px 44px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 64px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.16) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.10) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.10);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 30px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero-section h1 {
    font-size: 50px;
    color: var(--dark);
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.25;
}

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

.hero-section p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 820px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

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

/* ========== 按钮 ========== */
.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 15px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(34, 197, 94, 0.42);
}

.cta-button-ghost {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.cta-button-ghost:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.32);
}

/* ========== 通用区块 ========== */
.section {
    max-width: 1120px;
    margin: 0 auto 72px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 800;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 44px;
}

/* ========== 卡片网格 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 34px 30px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

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

.card-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.32);
}

.card h3 {
    font-size: 21px;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.75;
}

.card .card-btn {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 12px 26px;
    border-radius: 26px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 5px 16px rgba(34, 197, 94, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card .card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.4);
}

.card .card-btn.ghost {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.card .card-btn.ghost:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== 页脚 ========== */
footer {
    background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
    color: #cbd5e1;
    text-align: center;
    padding: 48px 20px;
    margin-top: 72px;
    border-top: 4px solid var(--primary);
}

footer p {
    font-size: 14px;
    line-height: 1.9;
}

footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-light);
}

footer img {
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ========== 移动端导航 ========== */
.mobile-menu-btn {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--dark);
    cursor: pointer;
    padding: 4px 8px;
}

.mobile-nav-dropdown {
    display: none;
    width: 100%;
    background: #ffffff;
    position: absolute;
    top: 76px;
    left: 0;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border);
}

.mobile-nav-dropdown.show {
    display: block;
}

.mobile-nav-dropdown ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-dropdown a {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
}

.mobile-nav-dropdown a:hover {
    color: var(--primary);
}

.mobile-nav-dropdown a.active {
    color: var(--primary);
    font-weight: 600;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .navigator {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-section {
        padding: 56px 22px;
    }
    .hero-section h1 {
        font-size: 32px;
    }
    .hero-section p {
        font-size: 16px;
    }
    .section-title {
        font-size: 25px;
    }
}
