/* ============================================================
   Ceping Marketing Center — Base
   魔力指数 (molizhishu.com) 仿站 · 亮色 · 深青色主色
   ============================================================ */

:root {
    /* ===== Primary 深青色阶 ===== */
    --primary-50:  #F0FDFA;
    --primary-100: #CCFBF1;
    --primary-200: #99F6E4;
    --primary-300: #5EEAD4;
    --primary-400: #2DD4BF;
    --primary-500: #14B8A6;
    --primary-600: #0D9488;   /* 主强调 (#0D9488) */
    --primary-700: #0F766E;   /* 品牌原色 (#0F766E) */
    --primary-800: #115E59;
    --primary-900: #134E4A;
    --primary-950: #042F2E;

    /* ===== 浅青灰背景 ===== */
    --bg-light:    #F8FAFB;   /* 浅青灰底色 */
    --bg-light-2:  #F1F5F9;   /* 更浅 */
    --bg-soft:     #FAFAFA;   /* 软灰底 */

    /* ===== 中性色 ===== */
    --white:   #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black:   #000000;

    /* ===== 语义色 ===== */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger:  #EF4444;
    --danger-light: #FEE2E2;

    /* ===== 阴影 (品牌色淡彩) ===== */
    --shadow-sm:  0 1px 2px 0 rgba(13, 148, 136, 0.05);
    --shadow:     0 4px 6px -1px rgba(13, 148, 136, 0.08), 0 2px 4px -1px rgba(13, 148, 136, 0.04);
    --shadow-md:  0 10px 15px -3px rgba(13, 148, 136, 0.10), 0 4px 6px -2px rgba(13, 148, 136, 0.05);
    --shadow-lg:  0 20px 25px -5px rgba(13, 148, 136, 0.12), 0 10px 10px -5px rgba(13, 148, 136, 0.04);
    --shadow-xl:  0 25px 50px -12px rgba(13, 148, 136, 0.25);
    --shadow-primary: 0 0 0 0 rgba(13, 148, 136, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.3);

    /* ===== 字体 ===== */
    --font-sans:    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: var(--font-sans);
    --font-mono:    "JetBrains Mono", "SF Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;

    /* ===== 圆角 ===== */
    --radius-sm:   6px;
    --radius:      10px;   /* rounded-xl default */
    --radius-lg:   14px;   /* 2xl */
    --radius-xl:   20px;   /* 用于 hero 搜索框 rounded-2xl */
    --radius-full: 9999px;

    /* ===== 间距 ===== */
    --gutter:    24px;
    --gutter-sm: 16px;
    --container-max: 1200px;
    --container-narrow: 880px;

    /* ===== 过渡 ===== */
    --t-fast: 150ms ease;
    --t-base: 300ms ease;
    --t-slow: 500ms ease;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--white);
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    font-weight: 400;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
}

/* Force-hide WP admin toolbar on the front-end */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

a {
    color: var(--primary-700);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--primary-800); }

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

::selection {
    background: var(--primary-700);
    color: var(--white);
}

/* ===== Typography Scale (clamp 流体) ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-800);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 0.75em;
    color: var(--gray-600);
}

/* ===== Utility ===== */
.mono { font-family: var(--font-mono); }
.sans { font-family: var(--font-sans); }
.muted { color: var(--gray-500); }
.text-primary { color: var(--primary-700); }
.danger { color: var(--danger); }
.text-white { color: var(--white); }

/* gradient-text 渐变文字（魔力指数特色） */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 隐藏滚动条但保持滚动能力 (用于 marquee) */
.scrollbar-hidden::-webkit-scrollbar { display: none; }
.scrollbar-hidden { scrollbar-width: none; }

/* ===== Animations ===== */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.animate-fade-in-left { animation: fadeInLeft 0.6s ease-out both; }

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.animate-fade-in-right { animation: fadeInRight 0.6s ease-out both; }

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.animate-scale-in { animation: scaleIn 0.5s ease-out both; }

/* Stagger delays */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }
.animate-stagger-6 { animation-delay: 0.6s; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
