/* ============================================================
   清禾科技 · 企业展示站样式表
   现代简约风格：蓝白配色 + 卡片 + 留白
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --primary:      #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --accent:       #0ea5e9;
    --text:         #1e293b;
    --text-soft:    #64748b;
    --text-light:   #94a3b8;
    --bg:           #ffffff;
    --bg-soft:      #f8fafc;
    --bg-dark:      #0f172a;
    --border:       #e2e8f0;
    --radius:       14px;
    --radius-sm:    8px;
    --shadow-sm:    0 1px 3px rgba(15, 23, 42, .06);
    --shadow:       0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg:    0 20px 45px rgba(15, 23, 42, .12);
    --container:    1160px;
    --header-h:     68px;
    --transition:   .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo-mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-radius: 9px; font-size: 14px; letter-spacing: .5px;
}
.logo-text { color: var(--text); }
.logo-light .logo-text { color: #fff; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
    position: relative;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-soft);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a.active::after {
    content: "";
    position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; background: var(--primary); border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ---------- 路由视图容器 ---------- */
.app-view { min-height: calc(100vh - var(--header-h) - 220px); }
.loading { padding: 100px 0; text-align: center; color: var(--text-light); }

/* 进入动画 */
.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 700; letter-spacing: 2px;
    color: var(--primary); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--text-soft); font-size: 16px; margin: 0; }

/* ---------- Hero 首屏 ---------- */
.hero {
    position: relative;
    padding: 110px 0 120px;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(14,165,233,.16), transparent 60%),
        radial-gradient(800px 500px at 0% 100%, rgba(37,99,235,.12), transparent 55%),
        var(--bg);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 4.8vw, 56px); letter-spacing: -.5px; }
.hero h1 .grad {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { font-size: 18px; color: var(--text-soft); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 52px; }
.hero-stats .stat b { display: block; font-size: 30px; color: var(--text); }
.hero-stats .stat span { font-size: 14px; color: var(--text-light); }

/* Hero 右侧视觉卡片 */
.hero-visual { position: relative; }
.hero-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 20px; box-shadow: var(--shadow-lg);
    padding: 26px; 
}
.hero-card .hc-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.hero-card .hc-row:last-child { border-bottom: none; }
.hc-icon {
    width: 44px; height: 44px; flex: none; border-radius: 12px;
    display: grid; place-items: center; font-size: 20px;
    background: var(--primary-soft);
}
.hc-row h5 { margin: 0 0 2px; font-size: 15px; }
.hc-row p { margin: 0; font-size: 13px; color: var(--text-light); }
.hc-bar { height: 8px; border-radius: 8px; background: var(--primary-soft); overflow: hidden; margin-top: 6px; }
.hc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 8px; }

.float-badge {
    position: absolute; background: #fff; border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px;
    font-size: 13px; font-weight: 600;
}
.float-badge.one { top: -18px; right: -14px; }
.float-badge.two { bottom: -18px; left: -18px; }
.float-badge b { color: var(--primary); }

/* ---------- 卡片栅格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px;
    transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .c-icon {
    width: 52px; height: 52px; border-radius: 13px;
    display: grid; place-items: center; font-size: 24px;
    background: var(--primary-soft); margin-bottom: 18px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--text-soft); font-size: 15px; margin: 0; }
.card .c-tag {
    display: inline-block; margin-top: 16px; font-size: 13px;
    color: var(--primary); font-weight: 600;
}

/* ---------- 特色列表（关于页） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-text .eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
    color: var(--primary); text-transform: uppercase; margin-bottom: 12px;
}
.split-text h2 { font-size: clamp(26px, 3.2vw, 36px); }
.split-text p { color: var(--text-soft); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list .tick {
    width: 22px; height: 22px; flex: none; border-radius: 50%;
    background: var(--primary); color: #fff; display: grid; place-items: center;
    font-size: 12px; margin-top: 3px;
}
.split-media .media-box {
    background: linear-gradient(135deg, var(--primary-soft), #fff);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 40px; text-align: center; box-shadow: var(--shadow-sm);
}
.split-media .media-box .big { font-size: 64px; }

/* 数值条 */
.metric-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metric-bar b { display: block; font-size: 34px; color: var(--primary); }
.metric-bar span { font-size: 14px; color: var(--text-soft); }

/* ---------- 服务页 ---------- */
.service-card .price { font-size: 26px; font-weight: 800; color: var(--text); }
.service-card .price small { font-size: 14px; color: var(--text-light); font-weight: 500; }
.service-card ul { margin: 18px 0 24px; }
.service-card ul li { padding: 7px 0 7px 26px; position: relative; font-size: 14.5px; color: var(--text-soft); }
.service-card ul li::before {
    content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}
.service-card.featured {
    background: linear-gradient(160deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; box-shadow: var(--shadow-lg);
}
.service-card.featured p,
.service-card.featured ul li { color: rgba(255,255,255,.9); }
.service-card.featured .c-icon { background: rgba(255,255,255,.18); }
.service-card.featured ul li::before { color: #fff; }
.service-card.featured .price small { color: rgba(255,255,255,.7); }

/* 流程步骤 */
.steps { counter-reset: step; }
.step-item { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; }
.step-num {
    width: 46px; height: 46px; flex: none; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary);
    display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.step-item h4 { margin: 4px 0 6px; }
.step-item p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ---------- 新闻页 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb {
    height: 168px; display: grid; place-items: center; font-size: 46px;
    background: linear-gradient(135deg, var(--primary-soft), #e0f2fe);
}
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.news-meta .cat { color: var(--primary); font-weight: 600; }
.news-body h3 { font-size: 17px; margin-bottom: 8px; }
.news-body p { color: var(--text-soft); font-size: 14.5px; margin: 0 0 14px; flex: 1; }
.news-body .more { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info .info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .info-ic {
    width: 46px; height: 46px; flex: none; border-radius: 12px;
    background: var(--primary-soft); display: grid; place-items: center; font-size: 20px;
}
.contact-info h5 { margin: 0 0 3px; font-size: 15px; }
.contact-info p { margin: 0; color: var(--text-soft); font-size: 15px; }

.form-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; color: var(--text);
    transition: var(--transition); background: var(--bg-soft);
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-tip { font-size: 13px; color: var(--text-light); margin-top: 12px; }
.form-success {
    display: none; margin-top: 18px; padding: 14px 16px;
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
    border-radius: var(--radius-sm); font-size: 14.5px;
}

/* ---------- CTA 区块 ---------- */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border-radius: 24px; padding: 56px 48px; text-align: center;
    position: relative; overflow: hidden;
}
.cta::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.18), transparent 60%);
}
.cta h2 { font-size: clamp(24px, 3vw, 34px); position: relative; }
.cta p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta .btn { position: relative; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: #cbd5e1; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding: 60px 24px 46px; }
.footer-desc { font-size: 14.5px; color: #94a3b8; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: #94a3b8; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: #64748b; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .split.reverse .split-media { order: 0; }
    .grid-3, .grid-4, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-bar { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .hero { padding: 70px 0 80px; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; gap: 4px;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: 16px 24px 22px; box-shadow: var(--shadow);
        transform: translateY(-140%); transition: transform .3s ease;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 12px 14px; }
}

@media (max-width: 560px) {
    .grid-3, .grid-4, .news-grid, .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 26px; }
    .hero-stats .stat b { font-size: 24px; }
    .cta { padding: 40px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .float-badge { display: none; }
}
