/* ============================================
   微助工具箱 - 全局样式
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: #eef2ff;
    --secondary: #ec4899;
    --accent: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --gray-lightest: #f1f5f9;
    --white: #ffffff;
    --body-bg: #f8fafc;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.06);
    --card-shadow-lg: 0 25px 50px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--body-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.nav-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--dark-3);
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-links .btn-nav {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
    transition: var(--transition);
}

.nav-links .btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--dark);
    padding: 8px;
}

/* ============================================
   Hero 区域
   ============================================ */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8faff 0%, var(--body-bg) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.hero-badge i {
    font-size: 1rem;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: white;
    color: var(--dark);
    border: 2px solid var(--gray-lighter);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

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

.hero-stat .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    display: block;
    line-height: 1.2;
}

.hero-stat .label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 4px;
}

/* ============================================
   特性/数字区域
   ============================================ */
.features-strip {
    padding: 40px 0;
    background: white;
    border-top: 1px solid var(--gray-lightest);
    border-bottom: 1px solid var(--gray-lightest);
}

.features-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.feature-mini .fm-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-mini .fm-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.feature-mini .fm-text span {
    font-size: 0.825rem;
    color: var(--gray);
}

/* ============================================
   工具卡片区域
   ============================================ */
.section {
    padding: 100px 0;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
}

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

.tool-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: transparent;
}

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

.tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.tool-badges {
    display: flex;
    gap: 6px;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-hot {
    background: linear-gradient(135deg, #fee2e2, #fecdd3);
    color: #e11d48;
}

.badge-new {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.tool-card .subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.tool-card .desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tool-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tool-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-lightest);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--dark-3);
    font-weight: 500;
}

.tool-features li i {
    color: var(--accent);
    font-size: 0.85rem;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    transition: var(--transition);
}

.btn-tool:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tool-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--gray-light);
}

/* ============================================
   CTA区域
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: white;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    padding: 48px 0 32px;
    background: white;
    border-top: 1px solid var(--gray-lightest);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-lightest);
    font-size: 0.825rem;
    color: var(--gray-light);
}

/* ============================================
   加载动画
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.75rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .features-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar .container { height: 64px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-stats { gap: 32px; }
    .hero-stat .num { font-size: 1.5rem; }

    .features-strip .container { grid-template-columns: 1fr 1fr; gap: 16px; }

    .section { padding: 60px 0; }
    .section-title { font-size: 1.75rem; }

    .tool-card { padding: 24px; }

    .cta-content h2 { font-size: 1.75rem; }

    .footer-content { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
    .features-strip .container { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
}

/* ============================================
   工具提示 & 通知
   ============================================ */
.toast-container {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: var(--card-shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
    border-left: 4px solid var(--primary);
}

.toast.show { transform: translateX(0); }
.toast.toast-success { border-left-color: var(--accent); }
.toast.toast-error { border-left-color: var(--danger); }

/* ============================================
   数字滚动动画
   ============================================ */
.counter { display: inline-block; }

/* ============================================
   移动端导航菜单
   ============================================ */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-nav.active { display: block; }

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-3);
    border-bottom: 1px solid var(--gray-lightest);
}

.mobile-nav a:last-child { border-bottom: none; }

/* ============================================
   骨架屏 Loading
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-lightest) 25%, #e2e8f0 50%, var(--gray-lightest) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
