/* ============================================================
   云帆CMS v2 前端模板样式 — 「声谷」主题
   版权所有 (c) 2026 风霜 · 云帆CMS
   ============================================================ */
:root {
    --yf-primary: #0e5a8a;
    --yf-primary-deep: #0a4166;
    --yf-primary-2: #0891b2;
    --yf-accent: #f59e0b;
    --yf-accent-deep: #d97706;
    --yf-dark: #0b1b2b;
    --yf-dark-2: #12263c;
    --yf-bg: #f5f8fb;
    --yf-card: #ffffff;
    --yf-text: #1a2733;
    --yf-text-2: #56677a;
    --yf-text-3: #8a9aab;
    --yf-line: #e3eaf2;
    --yf-grad: linear-gradient(135deg, #0e5a8a 0%, #0891b2 100%);
    --yf-grad-dark: linear-gradient(160deg, #0b1b2b 0%, #0e5a8a 100%);
    --yf-radius: 14px;
    --yf-radius-lg: 20px;
    --yf-radius-pill: 999px;
    --yf-shadow: 0 2px 10px rgba(11, 27, 43, 0.06);
    --yf-shadow-md: 0 8px 28px rgba(11, 27, 43, 0.1);
    --yf-shadow-lg: 0 18px 48px rgba(11, 27, 43, 0.14);
    --yf-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --yf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--yf-font);
    color: var(--yf-text);
    background: var(--yf-bg);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yf-primary-2); text-decoration: none; transition: color var(--yf-transition); }
a:hover { color: var(--yf-primary); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.yf-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.yf-skip {
    position: absolute; left: -9999px; top: 0; z-index: 9999;
    background: var(--yf-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.yf-skip:focus { left: 0; }

/* ---------- 按钮 ---------- */
.yf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: var(--yf-radius-pill);
    font-size: 15px; font-weight: 600; line-height: 1.4;
    border: 1px solid transparent; transition: all var(--yf-transition); white-space: nowrap;
}
.yf-btn-primary { background: var(--yf-grad); color: #fff; box-shadow: 0 6px 18px rgba(14, 90, 138, 0.28); }
.yf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14, 90, 138, 0.36); color: #fff; }
.yf-btn-accent { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3); }
.yf-btn-accent:hover { transform: translateY(-2px); color: #fff; }
.yf-btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.45); backdrop-filter: blur(4px); }
.yf-btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.yf-btn-outline { background: #fff; color: var(--yf-primary); border-color: var(--yf-primary); }
.yf-btn-outline:hover { background: var(--yf-primary); color: #fff; }

/* ---------- 顶部信息条 ---------- */
.yf-topbar {
    background: var(--yf-dark); color: #b7c7d6; font-size: 13px;
    padding: 7px 0; line-height: 1.5;
}
.yf-topbar .yf-container { display: flex; align-items: center; gap: 12px; }
.yf-topbar-tel { color: var(--yf-accent); font-weight: 700; margin-left: auto; }
.yf-topbar-tel:hover { color: #fbbf24; }
.yf-topbar-spacer { flex: 1; }

/* ---------- Header ---------- */
.yf-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--yf-line);
    transition: box-shadow var(--yf-transition);
}
.yf-header.is-scrolled { box-shadow: var(--yf-shadow-md); }
.yf-header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.yf-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.yf-logo-mark { display: flex; }
.yf-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.yf-logo-name { font-size: 20px; font-weight: 800; color: var(--yf-dark); letter-spacing: 0.5px; }
.yf-logo-sub { font-size: 11px; color: var(--yf-text-3); letter-spacing: 1px; }
.yf-nav { margin-left: auto; }
.yf-nav ul { display: flex; gap: 4px; }
.yf-nav a {
    display: block; padding: 10px 16px; border-radius: var(--yf-radius-pill);
    color: var(--yf-text); font-size: 15px; font-weight: 500;
}
.yf-nav a:hover { color: var(--yf-primary); background: #eef6fb; }
.yf-nav a.is-active { color: #fff; background: var(--yf-grad); font-weight: 600; }
.yf-header-tel {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--yf-primary); font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.yf-header-tel:hover { color: var(--yf-accent-deep); }
.yf-menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: none; border-radius: 10px;
}
.yf-menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--yf-dark); transition: all 0.25s ease; }
.yf-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.yf-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.yf-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.yf-hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--yf-grad-dark);
}
.yf-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(640px 300px at 85% -10%, rgba(8, 145, 178, 0.55), transparent 65%),
        radial-gradient(520px 260px at -5% 110%, rgba(245, 158, 11, 0.18), transparent 60%);
}
.yf-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 56px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C240 60 480 0 720 30C960 60 1200 0 1440 30V60H0V30Z' fill='%23f5f8fb'/%3E%3C/svg%3E") no-repeat center / cover;
}
.yf-hero-inner { position: relative; z-index: 1; padding: 64px 0 88px; max-width: 820px; }
.yf-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: var(--yf-radius-pill);
    background: rgba(125, 211, 252, 0.16); border: 1px solid rgba(125, 211, 252, 0.35);
    color: #7dd3fc; font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 18px;
}
.yf-hero h1 {
    font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; line-height: 1.22; letter-spacing: 0.5px;
    margin-bottom: 16px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.yf-hero .yf-hero-desc { font-size: clamp(15px, 1.8vw, 17px); line-height: 1.8; color: #c9d8e6; margin-bottom: 28px; }
.yf-hero .yf-hero-desc strong { color: #fbbf24; }
.yf-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section 通用 ---------- */
.yf-section { padding: 64px 0; }
.yf-section-alt { background: var(--yf-card); border-top: 1px solid var(--yf-line); border-bottom: 1px solid var(--yf-line); }
.yf-sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.yf-sec-tag {
    display: inline-block; padding: 4px 14px; border-radius: var(--yf-radius-pill);
    background: #e5f3fb; color: var(--yf-primary); font-size: 12px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px;
}
.yf-sec-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--yf-dark); line-height: 1.3; margin-bottom: 10px; }
.yf-sec-sub { color: var(--yf-text-2); font-size: 15px; }

/* ---------- 卡片与网格 ---------- */
.yf-grid { display: grid; gap: 20px; }
.yf-grid-4 { grid-template-columns: repeat(4, 1fr); }
.yf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.yf-grid-2 { grid-template-columns: repeat(2, 1fr); }
.yf-card {
    background: var(--yf-card); border: 1px solid var(--yf-line); border-radius: var(--yf-radius);
    padding: 26px 22px; transition: all var(--yf-transition);
}
.yf-card:hover { transform: translateY(-4px); box-shadow: var(--yf-shadow-md); border-color: #c8dce8; }
.yf-card-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e5f3fb, #d4ecf7); color: var(--yf-primary); margin-bottom: 16px; font-size: 26px;
}
.yf-card h3 { font-size: 17px; font-weight: 700; color: var(--yf-dark); margin-bottom: 8px; }
.yf-card p { font-size: 14px; color: var(--yf-text-2); line-height: 1.7; }

/* 数字看板 */
.yf-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    background: var(--yf-card); border: 1px solid var(--yf-line); border-radius: var(--yf-radius-lg);
    padding: 30px 20px; margin-top: -40px; position: relative; z-index: 2; box-shadow: var(--yf-shadow-md);
}
.yf-stat { text-align: center; padding: 6px 10px; }
.yf-stat-num {
    font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--yf-primary); line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.yf-stat-num small { font-size: 0.55em; color: var(--yf-accent-deep); font-weight: 700; }
.yf-stat-label { font-size: 13px; color: var(--yf-text-2); margin-top: 4px; }

/* ---------- 面包屑 ---------- */
.yf-breadcrumb {
    padding: 14px 0; font-size: 13px; color: var(--yf-text-3);
}
.yf-breadcrumb a { color: var(--yf-text-2); }
.yf-breadcrumb a:hover { color: var(--yf-primary); }
.yf-breadcrumb .sep { margin: 0 8px; color: #c3cdd8; }
.yf-breadcrumb .is-current { color: var(--yf-text); font-weight: 600; }

/* ---------- 文章页 ---------- */
.yf-article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.yf-article-main {
    background: var(--yf-card); border: 1px solid var(--yf-line); border-radius: var(--yf-radius-lg);
    padding: 36px 40px; min-width: 0;
}
.yf-article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--yf-text-3); margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px dashed var(--yf-line); }
.yf-excerpt-card {
    background: linear-gradient(135deg, #eef6fb, #f8fbff); border-left: 4px solid var(--yf-primary-2);
    border-radius: 0 12px 12px 0; padding: 16px 20px; margin-bottom: 28px; font-size: 14px; color: var(--yf-text-2);
}
.yf-excerpt-card .yf-excerpt-label { font-weight: 700; color: var(--yf-primary); margin-bottom: 6px; }
.yf-excerpt-card ul { padding-left: 2px; }
.yf-excerpt-card li { padding: 3px 0; }
.yf-excerpt-card a { font-weight: 700; }

/* 文章正文排版 */
.yf-article { font-size: 16px; line-height: 1.95; color: var(--yf-text); word-break: break-word; }
.yf-article h2 {
    font-size: 24px; font-weight: 800; color: var(--yf-dark); margin: 36px 0 14px; line-height: 1.4;
    padding-left: 14px; border-left: 4px solid var(--yf-primary-2);
}
.yf-article h3 { font-size: 19px; font-weight: 700; color: var(--yf-dark); margin: 28px 0 12px; }
.yf-article h4 { font-size: 16px; font-weight: 700; color: var(--yf-dark); margin: 20px 0 8px; }
.yf-article p { margin-bottom: 16px; }
.yf-article ul, .yf-article ol { margin: 0 0 16px; padding-left: 24px; }
.yf-article ul { list-style: disc; }
.yf-article ol { list-style: decimal; }
.yf-article li { margin-bottom: 6px; }
.yf-article a { color: var(--yf-primary-2); text-decoration: underline; text-underline-offset: 3px; }
.yf-article strong { color: var(--yf-dark); }
.yf-article img { border-radius: 12px; margin: 18px auto; }
.yf-article blockquote {
    border-left: 4px solid var(--yf-accent); background: #fdf6e7; padding: 14px 18px;
    border-radius: 0 10px 10px 0; margin: 18px 0; color: var(--yf-text-2);
}
.yf-article table { width: 100%; border-collapse: collapse; margin: 18px 0; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yf-article th, .yf-article td { border: 1px solid var(--yf-line); padding: 10px 14px; font-size: 14px; text-align: left; white-space: nowrap; }
.yf-article th { background: #eef6fb; font-weight: 700; color: var(--yf-dark); }
.yf-article code { background: #eef2f6; border-radius: 6px; padding: 2px 6px; font-size: 0.9em; }
.yf-article pre { background: var(--yf-dark); color: #dbe7f1; border-radius: 12px; padding: 18px; overflow-x: auto; margin: 18px 0; }
.yf-article pre code { background: none; color: inherit; padding: 0; }

/* 侧栏 */
.yf-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.yf-side-card { background: var(--yf-card); border: 1px solid var(--yf-line); border-radius: var(--yf-radius); padding: 22px; }
.yf-side-card h3 { font-size: 16px; font-weight: 700; color: var(--yf-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--yf-line); position: relative; }
.yf-side-card h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--yf-accent); }
.yf-side-list li { margin-bottom: 4px; }
.yf-side-list a {
    display: block; padding: 9px 12px; border-radius: 8px; color: var(--yf-text-2); font-size: 14px; line-height: 1.5;
    transition: all var(--yf-transition);
}
.yf-side-list a:hover { background: #eef6fb; color: var(--yf-primary); }
.yf-side-tel {
    display: block; text-align: center; padding: 14px; border-radius: 10px;
    background: var(--yf-grad); color: #fff; font-size: 19px; font-weight: 800; letter-spacing: 1px;
}
.yf-side-tel:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--yf-shadow-md); }
.yf-side-tel small { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; letter-spacing: 2px; }

/* 上下篇 */
.yf-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.yf-pn {
    display: block; background: var(--yf-card); border: 1px solid var(--yf-line); border-radius: var(--yf-radius);
    padding: 16px 20px; transition: all var(--yf-transition);
}
.yf-pn:hover { border-color: var(--yf-primary-2); box-shadow: var(--yf-shadow-md); transform: translateY(-2px); }
.yf-pn-label { font-size: 12px; color: var(--yf-text-3); margin-bottom: 4px; }
.yf-pn-title { font-size: 15px; font-weight: 600; color: var(--yf-text); line-height: 1.5; }
.yf-pn--next { text-align: right; }

/* ---------- 分类页 / 列表 ---------- */
.yf-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.yf-post-card {
    display: flex; flex-direction: column; background: var(--yf-card); border: 1px solid var(--yf-line);
    border-radius: var(--yf-radius); overflow: hidden; transition: all var(--yf-transition);
}
.yf-post-card:hover { transform: translateY(-4px); box-shadow: var(--yf-shadow-md); }
/* 分类页：编号式卡片网格 */
.yf-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.yf-cat-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--yf-card); border: 1px solid var(--yf-line);
    border-radius: var(--yf-radius); padding: 24px; overflow: hidden;
    transition: var(--yf-transition);
}
.yf-cat-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--yf-primary), #7db8dd);
    opacity: 0; transition: var(--yf-transition);
}
.yf-cat-card:hover { transform: translateY(-4px); box-shadow: var(--yf-shadow-md); border-color: rgba(14, 90, 138, 0.25); }
.yf-cat-card:hover::before { opacity: 1; }
.yf-cat-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.yf-cat-num {
    font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -1px;
    color: transparent;
    background: linear-gradient(135deg, #a8cce8, #e3f0fa);
    -webkit-background-clip: text; background-clip: text;
    transition: var(--yf-transition);
}
.yf-cat-card:hover .yf-cat-num { background: linear-gradient(135deg, var(--yf-primary), #2b7cb8); -webkit-background-clip: text; background-clip: text; }
.yf-cat-card-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.yf-cat-card-tags .yf-post-cat { margin-bottom: 0; }
.yf-cat-card-title { font-size: 17px; font-weight: 700; color: var(--yf-dark); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yf-cat-card-title a { color: inherit; transition: color var(--yf-transition); }
.yf-cat-card-title a:hover { color: var(--yf-primary); }
.yf-cat-card-excerpt { font-size: 14px; color: var(--yf-text-2); line-height: 1.7; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yf-cat-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--yf-line); font-size: 13px; color: var(--yf-text-3); }
.yf-cat-card-more { font-weight: 600; color: var(--yf-primary-2); transition: color var(--yf-transition); }
.yf-cat-card-more:hover { color: var(--yf-primary); }
.yf-post-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dcebf5, #eef6fb); display: flex; align-items: center; justify-content: center; color: #9db8cc; overflow: hidden; }
.yf-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yf-post-thumb-ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e6eff7, #f2f7fb);
    color: #9dbed4;
    transition: var(--yf-transition);
}
.yf-post-thumb:hover .yf-post-thumb-ph { color: var(--yf-primary-2); }
.yf-post-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.yf-post-cat { align-self: flex-start; font-size: 12px; color: var(--yf-primary); background: #e5f3fb; border-radius: var(--yf-radius-pill); padding: 3px 12px; margin-bottom: 10px; font-weight: 600; }
.yf-post-title { font-size: 17px; font-weight: 700; color: var(--yf-dark); line-height: 1.45; margin-bottom: 8px; }
.yf-post-card:hover .yf-post-title { color: var(--yf-primary); }
.yf-post-excerpt { font-size: 14px; color: var(--yf-text-2); line-height: 1.7; flex: 1; }
.yf-post-meta { display: flex; gap: 12px; font-size: 12px; color: var(--yf-text-3); margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--yf-line); }

/* 分页 */
.yf-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.yf-pagination a, .yf-pagination span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
    border-radius: 10px; background: var(--yf-card); border: 1px solid var(--yf-line); color: var(--yf-text); font-size: 14px;
    transition: all var(--yf-transition);
}
.yf-pagination a:hover { border-color: var(--yf-primary-2); color: var(--yf-primary); }
.yf-pagination .is-current { background: var(--yf-grad); color: #fff; border-color: transparent; font-weight: 700; }
.yf-pagination .is-disabled { opacity: 0.45; pointer-events: none; }

/* ---------- FAQ ---------- */
.yf-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.yf-faq-item { background: var(--yf-card); border: 1px solid var(--yf-line); border-radius: var(--yf-radius); overflow: hidden; transition: box-shadow var(--yf-transition); }
.yf-faq-item.is-open { box-shadow: var(--yf-shadow-md); }
.yf-faq-q {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 22px;
    background: none; border: none; text-align: left; font-size: 16px; font-weight: 600; color: var(--yf-dark);
}
.yf-faq-q-mark {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    background: var(--yf-grad); color: #fff; font-size: 14px; font-weight: 800;
}
.yf-faq-q-text { flex: 1; line-height: 1.5; }
.yf-faq-arrow { display: flex; color: var(--yf-text-3); transition: transform 0.25s ease; }
.yf-faq-item.is-open .yf-faq-arrow { transform: rotate(180deg); color: var(--yf-primary); }
.yf-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.yf-faq-item.is-open .yf-faq-a { max-height: 800px; }
.yf-faq-a-inner { padding: 0 22px 20px 66px; font-size: 14.5px; color: var(--yf-text-2); line-height: 1.8; }

/* ---------- 表单 ---------- */
.yf-form { display: grid; gap: 16px; }
.yf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yf-field label { display: block; font-size: 14px; font-weight: 600; color: var(--yf-dark); margin-bottom: 6px; }
.yf-field input, .yf-field textarea, .yf-field select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--yf-line); border-radius: 10px;
    background: #fafcfe; color: var(--yf-text); outline: none; transition: border-color var(--yf-transition), box-shadow var(--yf-transition);
}
.yf-field input:focus, .yf-field textarea:focus, .yf-field select:focus {
    border-color: var(--yf-primary-2); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12); background: #fff;
}
.yf-field textarea { min-height: 130px; resize: vertical; }

/* ---------- 联系卡片 ---------- */
.yf-contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.yf-contact-card { text-align: center; padding: 26px 18px; }
.yf-contact-card .yf-card-icon { margin: 0 auto 14px; }
.yf-contact-card h3 { font-size: 15px; margin-bottom: 6px; }
.yf-contact-card .yf-contact-value { font-size: 16px; font-weight: 700; color: var(--yf-primary); word-break: break-all; }

/* ---------- 页脚 ---------- */
.yf-footer { background: var(--yf-dark); color: #9fb2c3; padding: 56px 0 0; font-size: 14px; }
.yf-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.yf-footer-brand h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.yf-footer-brand p { line-height: 1.8; margin-bottom: 4px; }
.yf-footer-contact a { color: var(--yf-accent); font-weight: 700; }
.yf-footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; position: relative; padding-bottom: 8px; }
.yf-footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--yf-accent); }
.yf-footer-col ul li { margin-bottom: 8px; }
.yf-footer-col a { color: #9fb2c3; }
.yf-footer-col a:hover { color: #fff; }
.yf-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; text-align: center; font-size: 13px; color: #6d8296; }

/* ---------- 移动端底部转化栏 ---------- */
.yf-bottom-bar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--yf-line); box-shadow: 0 -4px 20px rgba(11, 27, 43, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
}
.yf-bottom-bar-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 9px 0 8px; color: var(--yf-text-2); font-size: 12px;
}
.yf-bottom-bar-item--primary { background: var(--yf-grad); color: #fff; }
.yf-bottom-bar-item--primary:hover { color: #fff; }
.yf-bottom-bar-icon { display: flex; }

/* ---------- 404 ---------- */
.yf-404 { text-align: center; padding: 100px 20px 120px; }
.yf-404-code { font-size: clamp(80px, 14vw, 140px); font-weight: 900; background: var(--yf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.yf-404 p { color: var(--yf-text-2); margin: 12px 0 28px; }

/* ---------- 城市入口 ---------- */
.yf-city-list { display: flex; flex-wrap: wrap; gap: 10px; }
.yf-city-list a {
    display: inline-flex; padding: 8px 16px; border-radius: var(--yf-radius-pill);
    background: var(--yf-card); border: 1px solid var(--yf-line); color: var(--yf-text-2); font-size: 14px;
    transition: all var(--yf-transition);
}
.yf-city-list a:hover { border-color: var(--yf-primary-2); color: var(--yf-primary); transform: translateY(-2px); }
.yf-filter-btn {
    display: inline-flex; padding: 8px 16px; border-radius: var(--yf-radius-pill);
    background: var(--yf-card); border: 1px solid var(--yf-line); color: var(--yf-text-2); font-size: 14px;
    cursor: pointer; text-decoration: none; transition: all var(--yf-transition);
}
.yf-filter-btn:hover { border-color: var(--yf-primary-2); color: var(--yf-primary); transform: translateY(-2px); }
.yf-ic { font-style: normal; margin-right: 6px; }

/* ---------- 关于页 ---------- */
.yf-about-intro { max-width: 880px; margin: 0 auto; }
.yf-about-intro p { font-size: 16px; line-height: 2; color: var(--yf-text-2); margin-bottom: 18px; }
.yf-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.yf-tags span { padding: 6px 16px; background: #e5f3fb; color: var(--yf-primary); border-radius: var(--yf-radius-pill); font-size: 13px; font-weight: 500; }
.yf-timeline { max-width: 700px; margin: 0 auto; position: relative; padding-left: 34px; }
.yf-timeline::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--yf-primary-2), var(--yf-accent)); }
.yf-timeline-item { position: relative; margin-bottom: 26px; }
.yf-timeline-item::before {
    content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--yf-primary-2); border: 3px solid var(--yf-card); box-shadow: 0 0 0 2px var(--yf-primary-2);
}
.yf-timeline-year { font-size: 15px; font-weight: 800; color: var(--yf-primary); }
.yf-timeline-title { font-weight: 700; color: var(--yf-dark); margin: 2px 0; }
.yf-timeline-desc { font-size: 14px; color: var(--yf-text-2); }

/* ---------- 流程步骤 ---------- */
.yf-steps { display: flex; flex-wrap: wrap; gap: 20px; }
.yf-step {
    flex: 1 1 170px; text-align: center; position: relative;
    padding: 26px 14px 22px; background: var(--yf-card);
    border: 1px solid var(--yf-line); border-radius: var(--yf-radius);
    transition: var(--yf-transition);
}
.yf-step:hover { transform: translateY(-4px); box-shadow: var(--yf-shadow-md); border-color: rgba(14, 90, 138, 0.28); }
.yf-step-num {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--yf-grad); color: #fff; font-size: 20px; font-weight: 800;
    box-shadow: 0 6px 16px rgba(14, 90, 138, 0.3), 0 0 0 6px rgba(14, 90, 138, 0.08);
    transition: var(--yf-transition);
}
.yf-step:hover .yf-step-num { transform: scale(1.08); box-shadow: 0 8px 20px rgba(14, 90, 138, 0.38), 0 0 0 8px rgba(14, 90, 138, 0.1); }
.yf-step h3 { font-size: 16px; font-weight: 700; color: var(--yf-dark); margin-bottom: 6px; }
.yf-step p { font-size: 13px; color: var(--yf-text-2); line-height: 1.6; }
.yf-step + .yf-step::before {
    content: ""; position: absolute; top: 50px; left: calc(12px - 50%); right: calc(50% + 32px); height: 3px;
    background: linear-gradient(90deg, var(--yf-primary), var(--yf-primary-2));
    border-radius: 2px;
    z-index: 0;
}
.yf-step + .yf-step::after {
    content: ""; position: absolute; top: 45px; left: calc(50% - 45px);
    border-left: 13px solid var(--yf-primary-2);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    z-index: 0;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
    .yf-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .yf-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .yf-list-grid { grid-template-columns: repeat(2, 1fr); }
    .yf-contact-grid { grid-template-columns: repeat(2, 1fr); }
    .yf-steps { gap: 20px 16px; }
    .yf-step { flex: 1 1 calc(50% - 16px); }
    .yf-step + .yf-step::before,
    .yf-step + .yf-step::after { display: none; }
    .yf-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .yf-cat-card { padding: 20px; }
    .yf-footer-grid { grid-template-columns: 1fr 1fr; }
    .yf-article-layout { grid-template-columns: 1fr; }
    .yf-sidebar { position: static; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .yf-topbar .yf-topbar-item { display: none; }
    .yf-topbar { text-align: center; }
    .yf-topbar .yf-topbar-tel { margin: 0 auto; }
    .yf-header-tel { display: none; }
    .yf-menu-toggle { display: flex; }
    .yf-header-inner { min-height: 60px; gap: 12px; }
    .yf-logo-name { font-size: 17px; }
    .yf-logo-mark svg { width: 34px; height: 34px; }
    .yf-nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 950;
        width: min(78vw, 320px); margin: 0;
        background: #fff; box-shadow: -12px 0 40px rgba(11, 27, 43, 0.16);
        transform: translateX(105%); transition: transform 0.3s ease;
        padding: 88px 20px 40px; overflow-y: auto;
    }
    .yf-nav.is-open { transform: translateX(0); }
    .yf-nav ul { flex-direction: column; gap: 6px; }
    .yf-nav a { padding: 14px 18px; font-size: 16px; }
    .yf-nav a.is-active { background: #eef6fb; color: var(--yf-primary); }
    body.yf-nav-open::after {
        content: ""; position: fixed; inset: 0; background: rgba(11, 27, 43, 0.4); z-index: 940;
    }
    .yf-hero-inner { padding: 44px 0 76px; }
    .yf-section { padding: 48px 0; }
    .yf-sec-head { margin-bottom: 32px; }
    .yf-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; padding: 24px 12px; margin-top: -28px; }
    .yf-article-main { padding: 24px 18px; border-radius: 14px; }
    .yf-article { font-size: 15.5px; }
    .yf-article h2 { font-size: 20px; }
    .yf-article h3 { font-size: 17px; }
    .yf-article p { line-height: 1.9; }
    .yf-prevnext { grid-template-columns: 1fr; }
    .yf-pn--next { text-align: left; }
    .yf-bottom-bar { display: flex; }
    body { padding-bottom: 56px; }
    .yf-form-grid { grid-template-columns: 1fr; }
    .yf-faq-a-inner { padding-left: 22px; }
}

@media (max-width: 560px) {
    .yf-grid-4, .yf-grid-3, .yf-grid-2 { grid-template-columns: 1fr; }
    .yf-list-grid { grid-template-columns: 1fr; }
    .yf-contact-grid { grid-template-columns: 1fr; }
    .yf-steps { flex-direction: column; }
    .yf-step { flex: 1 1 auto; }
    .yf-cat-grid { grid-template-columns: 1fr; }
    .yf-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .yf-container { padding: 0 16px; }
}
