/*
Theme Name: upiedu
Theme URI: https://upiedu.com/
Author: UP Education Studio
Author URI: https://upiedu.com/
Description: 优培教育（上海优培企业管理咨询有限公司）中国企业官网主题，适用行业：企业培训与团建。采用「服务流程时间轴型 + 经典门户型」组合布局，内置首页 Banner 轮播、核心业务、企业优势数据、服务入口、案例客户墙、新闻动态、联系表单，并提供关于我们、联系我们、服务列表、服务详情、案例客户、新闻动态、FAQ、隐私政策、404 等页面模板；支持自定义 Logo、自定义菜单、自定义品牌色、TDK 三项 SEO 设置、面包屑导航、移动端汉堡菜单与页脚备案号信息。
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upiedu
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, education, blog
*/

/* ============================================================
   1. 设计令牌（品牌色 / 辅助色 / 中性色 / 字号 / 行高 / 圆角 / 阴影 / 留白）
   ============================================================ */
:root {
  --up-primary: #0e3a5c;
  --up-primary-dark: #08283f;
  --up-primary-soft: #eaf1f7;
  --up-accent: #e8863c;
  --up-accent-dark: #cf6f26;
  --up-teal: #2e9e8f;
  --up-ink: #17222b;
  --up-muted: #5a6b78;
  --up-faint: #8b9aa6;
  --up-bg: #ffffff;
  --up-soft: #f2f5f8;
  --up-line: #dde5eb;
  --up-line-soft: #edf1f5;
  --up-radius-sm: 4px;
  --up-radius: 10px;
  --up-radius-lg: 18px;
  --up-shadow-sm: 0 1px 2px rgba(16, 42, 66, 0.06), 0 4px 14px rgba(16, 42, 66, 0.05);
  --up-shadow: 0 8px 30px rgba(13, 42, 66, 0.1);
  --up-shadow-lg: 0 22px 60px rgba(9, 32, 52, 0.16);
  --up-space: 1rem;
  --up-section: clamp(3.5rem, 7vw, 6.5rem);
  --up-container: 1240px;
  --up-font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --up-font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --up-font-num: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --up-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   2. 基础重置与排版
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--up-font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--up-ink);
  background: var(--up-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }
figure { margin: 0; }
svg { display: block; }
a { color: var(--up-primary); text-decoration: none; transition: color 0.25s var(--up-ease); }
a:hover { color: var(--up-accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--up-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--up-font-sans);
  font-weight: 700;
  line-height: 1.3;
  color: var(--up-ink);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
blockquote {
  margin: 1.6em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--up-accent);
  background: var(--up-soft);
  border-radius: 0 var(--up-radius) var(--up-radius) 0;
  font-family: var(--up-font-serif);
  font-size: 1.05rem;
  color: var(--up-primary-dark);
}
blockquote p:last-child { margin: 0; }
hr { border: 0; border-top: 1px solid var(--up-line); margin: 2.4em 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; font-size: 0.95rem; }
th, td { padding: 0.7em 0.9em; border: 1px solid var(--up-line); text-align: left; }
th { background: var(--up-primary-soft); color: var(--up-primary-dark); font-weight: 700; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.9em; }
pre { background: var(--up-soft); padding: 1em; overflow: auto; border-radius: var(--up-radius-sm); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 999; padding: 0.7em 1.2em;
  background: var(--up-primary-dark); color: #fff;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================
   3. 栅格与容器
   ============================================================ */
.up-container {
  width: 100%;
  max-width: var(--up-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.up-grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.up-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.up-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.up-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.up-section { padding: var(--up-section) 0; position: relative; }
.up-section--soft { background: var(--up-soft); }
.up-section--ink { background: var(--up-primary-dark); color: #dce7f0; }
.up-section--ink h2, .up-section--ink h3 { color: #fff; }

.up-head { max-width: 760px; margin-bottom: clamp(1.8rem, 3.4vw, 3rem); }
.up-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.up-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--up-accent-dark);
  margin-bottom: 0.75rem;
}
.up-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--up-accent);
}
.up-head--center .up-eyebrow::after {
  content: ""; width: 26px; height: 2px; background: var(--up-accent);
}
.up-head p { color: var(--up-muted); margin-bottom: 0; }

/* ============================================================
   4. 按钮 / 卡片 / 标签
   ============================================================ */
.up-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem; font-weight: 700; font-family: inherit;
  line-height: 1.2; border-radius: var(--up-radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--up-ease), box-shadow 0.25s var(--up-ease),
    background-color 0.25s var(--up-ease), color 0.25s var(--up-ease), border-color 0.25s var(--up-ease);
}
.up-btn:hover { transform: translateY(-2px); }
.up-btn:active { transform: translateY(0); }
.up-btn--primary { background: var(--up-accent); color: #fff; box-shadow: 0 8px 22px rgba(232, 134, 60, 0.32); }
.up-btn--primary:hover { background: var(--up-accent-dark); color: #fff; box-shadow: 0 12px 28px rgba(207, 111, 38, 0.38); }
.up-btn--brand { background: var(--up-primary); color: #fff; }
.up-btn--brand:hover { background: var(--up-primary-dark); color: #fff; }
.up-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.up-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.up-btn--outline { background: transparent; color: var(--up-primary); border-color: var(--up-line); }
.up-btn--outline:hover { border-color: var(--up-primary); background: var(--up-primary-soft); color: var(--up-primary); }
.up-btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.up-btn--block { width: 100%; }

.up-card {
  position: relative;
  background: var(--up-bg);
  border: 1px solid var(--up-line-soft);
  border-radius: var(--up-radius);
  overflow: hidden;
  box-shadow: var(--up-shadow-sm);
  transition: transform 0.35s var(--up-ease), box-shadow 0.35s var(--up-ease), border-color 0.35s var(--up-ease);
}
.up-card:hover { transform: translateY(-6px); box-shadow: var(--up-shadow); border-color: rgba(232, 134, 60, 0.35); }

.up-tag {
  display: inline-block; padding: 0.22rem 0.7rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 100px; background: var(--up-primary-soft); color: var(--up-primary);
}
.up-tag--accent { background: rgba(232, 134, 60, 0.14); color: var(--up-accent-dark); }
.up-tag--line { background: transparent; border: 1px solid var(--up-line); color: var(--up-muted); }

.up-divider { height: 1px; background: var(--up-line); border: 0; margin: 0; }

/* ============================================================
   5. 顶部工具条
   ============================================================ */
.up-topbar {
  background: var(--up-primary-dark);
  color: #b9cbdb;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.up-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 42px; flex-wrap: wrap;
}
.up-topbar__left, .up-topbar__right { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.up-topbar a { color: #d5e2ec; }
.up-topbar a:hover { color: var(--up-accent); }
.up-topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.up-topbar__item svg { width: 14px; height: 14px; opacity: 0.8; }
.up-topbar__sep { width: 1px; height: 13px; background: rgba(255, 255, 255, 0.18); }
.up-topbar__lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 100px; overflow: hidden; }
.up-topbar__lang span, .up-topbar__lang a { padding: 0.1rem 0.6rem; font-size: 0.75rem; }
.up-topbar__lang .is-active { background: var(--up-accent); color: #fff; }

/* ============================================================
   6. 页头 / 主导航 / Logo / 搜索
   ============================================================ */
.up-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--up-line-soft);
  transition: box-shadow 0.3s var(--up-ease), padding 0.3s var(--up-ease);
}
.up-header.is-stuck { box-shadow: 0 6px 26px rgba(9, 32, 52, 0.1); }
.up-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 84px; transition: min-height 0.3s var(--up-ease);
}
.up-header.is-stuck .up-header__inner { min-height: 66px; }
.up-logo { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.up-logo img { max-height: 52px; width: auto; transition: max-height 0.3s var(--up-ease); }
.up-header.is-stuck .up-logo img { max-height: 42px; }
.up-logo__mark {
  width: 42px; height: 42px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--up-primary) 0%, var(--up-teal) 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--up-font-num); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(14, 58, 92, 0.28);
}
.up-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.up-logo__cn { font-family: var(--up-font-serif); font-weight: 900; font-size: 1.32rem; color: var(--up-primary-dark); letter-spacing: 0.06em; }
.up-logo__en { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--up-faint); }

.up-nav { display: flex; align-items: center; }
.up-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.up-nav li { position: relative; margin: 0; }
.up-nav > ul > li > a {
  display: block; padding: 0.65rem 0.95rem;
  font-size: 0.96rem; font-weight: 500; color: var(--up-ink);
  position: relative;
}
.up-nav > ul > li > a::after {
  content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.3rem;
  height: 2px; background: var(--up-accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--up-ease);
}
.up-nav > ul > li > a:hover::after,
.up-nav > ul > li.current-menu-item > a::after,
.up-nav > ul > li.current_page_item > a::after { transform: scaleX(1); }
.up-nav > ul > li.current-menu-item > a,
.up-nav > ul > li.current_page_item > a { color: var(--up-primary); font-weight: 700; }
.up-nav .menu-item-has-children > a { padding-right: 1.5rem; }
.up-nav .menu-item-has-children > a::before {
  content: ""; position: absolute; right: 0.7rem; top: 50%;
  width: 6px; height: 6px; border-right: 1.5px solid var(--up-faint); border-bottom: 1.5px solid var(--up-faint);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--up-ease);
}
.up-nav ul.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 216px;
  background: #fff; border: 1px solid var(--up-line-soft);
  border-radius: var(--up-radius); box-shadow: var(--up-shadow);
  padding: 0.5rem; flex-direction: column; align-items: stretch; gap: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s var(--up-ease), transform 0.25s var(--up-ease), visibility 0.25s;
  z-index: 5;
}
.up-nav li:hover > ul.sub-menu,
.up-nav li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.up-nav ul.sub-menu a {
  display: block; padding: 0.55rem 0.75rem; border-radius: var(--up-radius-sm);
  font-size: 0.9rem; color: var(--up-muted);
}
.up-nav ul.sub-menu a:hover { background: var(--up-primary-soft); color: var(--up-primary); }
.up-nav .menu-item-has-children:hover > a::before { transform: translateY(-30%) rotate(225deg); }

.up-header__tools { display: flex; align-items: center; gap: 0.6rem; }
.up-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--up-line); border-radius: 50%;
  background: #fff; color: var(--up-primary); cursor: pointer;
  transition: all 0.25s var(--up-ease);
}
.up-icon-btn:hover { background: var(--up-primary); border-color: var(--up-primary); color: #fff; }
.up-icon-btn svg { width: 17px; height: 17px; }
.up-search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--up-line);
  box-shadow: var(--up-shadow); padding: 1.4rem 0;
  display: none;
}
.up-search-panel.is-open { display: block; animation: upFadeDown 0.3s var(--up-ease); }
.up-search-panel form { display: flex; gap: 0.6rem; max-width: 720px; margin: 0 auto; }
.up-search-panel input[type="search"] {
  flex: 1; padding: 0.85rem 1rem; border: 1px solid var(--up-line);
  border-radius: var(--up-radius-sm); font-family: inherit; font-size: 1rem;
}
@keyframes upFadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 移动端汉堡菜单 */
.up-burger {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--up-line); border-radius: var(--up-radius-sm);
  background: #fff; cursor: pointer; padding: 0; position: relative;
}
.up-burger span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--up-primary-dark); border-radius: 2px;
  transition: transform 0.3s var(--up-ease), opacity 0.2s var(--up-ease), top 0.3s var(--up-ease);
}
.up-burger span:nth-child(1) { top: 15px; }
.up-burger span:nth-child(2) { top: 21px; }
.up-burger span:nth-child(3) { top: 27px; }
.up-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.up-burger.is-open span:nth-child(2) { opacity: 0; }
.up-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.up-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); z-index: 120;
  background: var(--up-primary-dark); color: #e6eef5;
  transform: translateX(100%); transition: transform 0.4s var(--up-ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.up-drawer.is-open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35); }
.up-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.up-drawer__close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.up-drawer nav { padding: 0.8rem 0; }
.up-drawer ul { list-style: none; margin: 0; padding: 0; }
.up-drawer li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.up-drawer a { display: block; padding: 0.9rem 1.3rem; color: #dce7f0; font-size: 1rem; }
.up-drawer a:hover, .up-drawer .current-menu-item > a { color: var(--up-accent); background: rgba(255, 255, 255, 0.04); }
.up-drawer ul.sub-menu { padding-left: 1rem; background: rgba(0, 0, 0, 0.16); }
.up-drawer ul.sub-menu a { font-size: 0.9rem; padding: 0.65rem 1rem; }
.up-drawer__foot { margin-top: auto; padding: 1.3rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }
.up-drawer__foot a { display: inline-flex; padding: 0; }
.up-drawer__phone {
  display: block; font-family: var(--up-font-num); font-size: 1.5rem;
  font-weight: 700; color: var(--up-accent); margin-bottom: 0.4rem;
}
.up-scrim {
  position: fixed; inset: 0; z-index: 110; background: rgba(6, 20, 32, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--up-ease), visibility 0.35s;
}
.up-scrim.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   7. Banner 主视觉轮播
   ============================================================ */
.up-hero { position: relative; background: var(--up-primary-dark); overflow: hidden; }
.up-hero__track { position: relative; }
.up-hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.9s var(--up-ease); pointer-events: none;
}
.up-hero__slide:first-child { position: relative; }
.up-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.up-hero__media { position: absolute; inset: 0; }
.up-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 7s linear;
}
.up-hero__slide.is-active .up-hero__media img { transform: scale(1); }
.up-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 26, 44, 0.92) 0%, rgba(8, 40, 63, 0.72) 45%, rgba(8, 40, 63, 0.25) 100%);
}
.up-hero__inner {
  position: relative; z-index: 2;
  min-height: clamp(440px, 62vh, 660px);
  display: flex; align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.up-hero__content { max-width: 640px; color: #fff; }
.up-hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 100px;
  background: rgba(232, 134, 60, 0.18); border: 1px solid rgba(232, 134, 60, 0.5);
  color: #ffc79a; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.up-hero__title {
  font-family: var(--up-font-serif); font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.22; color: #fff;
  margin-bottom: 1rem; letter-spacing: 0.02em;
}
.up-hero__title em { font-style: normal; color: var(--up-accent); }
.up-hero__desc { color: rgba(226, 236, 244, 0.86); font-size: 1.02rem; max-width: 34em; margin-bottom: 1.8rem; }
.up-hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.up-hero__meta { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); flex-wrap: wrap; }
.up-hero__meta div { border-left: 2px solid rgba(232, 134, 60, 0.7); padding-left: 0.8rem; }
.up-hero__meta strong {
  display: block; font-family: var(--up-font-num); font-size: 1.6rem;
  font-weight: 700; color: #fff; line-height: 1.1;
}
.up-hero__meta span { font-size: 0.8rem; color: rgba(214, 228, 238, 0.75); }

.up-hero__nav {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 1.6rem;
  display: flex; align-items: center; gap: 1rem;
}
.up-hero__dots { display: flex; gap: 0.5rem; }
.up-hero__dot {
  width: 34px; height: 4px; border-radius: 2px; border: 0; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, 0.3); transition: background 0.3s var(--up-ease);
}
.up-hero__dot.is-active { background: var(--up-accent); }
.up-hero__arrows { display: flex; gap: 0.5rem; margin-left: auto; }
.up-hero__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: all 0.25s var(--up-ease);
}
.up-hero__arrow:hover { background: var(--up-accent); border-color: var(--up-accent); }
.up-hero__arrow svg { width: 16px; height: 16px; }
.up-hero__progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--up-accent); width: 0; z-index: 5; }
.up-hero__progress.is-running { animation: upProgress 6.5s linear forwards; }
@keyframes upProgress { from { width: 0; } to { width: 100%; } }

/* ============================================================
   8. 面包屑
   ============================================================ */
.up-crumbs {
  font-size: 0.83rem; color: var(--up-faint);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
}
.up-crumbs a { color: var(--up-muted); }
.up-crumbs a:hover { color: var(--up-accent); }
.up-crumbs .sep { opacity: 0.5; }
.up-crumbs .current { color: var(--up-primary); font-weight: 500; }

.up-page-hero {
  position: relative; background: var(--up-primary-dark); color: #fff; overflow: hidden;
}
.up-page-hero__bg { position: absolute; inset: 0; }
.up-page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.up-page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8, 40, 63, 0.96), rgba(14, 58, 92, 0.72));
}
.up-page-hero__inner { position: relative; z-index: 2; padding: clamp(2.6rem, 6vw, 4.4rem) 0; }
.up-page-hero h1 { color: #fff; font-family: var(--up-font-serif); font-weight: 900; margin-bottom: 0.4rem; }
.up-page-hero__sub { color: rgba(219, 231, 240, 0.82); max-width: 46em; margin: 0 0 1.2rem; }
.up-page-hero .up-crumbs { color: rgba(255, 255, 255, 0.55); }
.up-page-hero .up-crumbs a { color: rgba(255, 255, 255, 0.78); }
.up-page-hero .up-crumbs a:hover { color: var(--up-accent); }
.up-page-hero .up-crumbs .current { color: var(--up-accent); }

/* ============================================================
   9. 首页模块
   ============================================================ */
.up-intro { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.up-intro__media { position: relative; }
.up-intro__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--up-radius-lg); box-shadow: var(--up-shadow); }
.up-intro__badge {
  position: absolute; left: -14px; bottom: 28px; background: #fff;
  border-radius: var(--up-radius); padding: 1rem 1.3rem; box-shadow: var(--up-shadow);
  display: flex; align-items: center; gap: 0.9rem; border-left: 4px solid var(--up-accent);
}
.up-intro__badge strong { font-family: var(--up-font-num); font-size: 1.9rem; color: var(--up-primary); line-height: 1; display: block; }
.up-intro__badge span { font-size: 0.82rem; color: var(--up-muted); }
.up-checks { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: 0.7rem; }
.up-checks li { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; color: var(--up-muted); }
.up-checks svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--up-teal); margin-top: 2px; }

.up-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.12); }
.up-stat { background: var(--up-primary-dark); padding: clamp(1.4rem, 3vw, 2.2rem) 1rem; text-align: center; }
.up-stat__num {
  font-family: var(--up-font-num); font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700; color: #fff; line-height: 1; display: block;
}
.up-stat__num sup { font-size: 0.5em; color: var(--up-accent); margin-left: 2px; }
.up-stat__label { display: block; margin-top: 0.6rem; font-size: 0.85rem; color: rgba(206, 220, 231, 0.78); }

.up-service-card { display: flex; flex-direction: column; height: 100%; }
.up-service-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--up-soft); }
.up-service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--up-ease), filter 0.5s var(--up-ease);
}
.up-service-card:hover .up-service-card__media img { transform: scale(1.07); }
.up-service-card__no {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  font-family: var(--up-font-num); font-size: 0.8rem; font-weight: 700;
  background: rgba(8, 40, 63, 0.82); color: #fff; padding: 0.2rem 0.6rem; border-radius: 100px;
}
.up-service-card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.up-service-card__body h3 { margin-bottom: 0.5rem; }
.up-service-card__body h3 a { color: var(--up-ink); }
.up-service-card__body h3 a:hover { color: var(--up-accent); }
.up-service-card__en { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--up-faint); margin-bottom: 0.6rem; }
.up-service-card__desc { font-size: 0.92rem; color: var(--up-muted); flex: 1; }
.up-service-card__points { list-style: none; padding: 0; margin: 0.9rem 0 1.1rem; display: grid; gap: 0.35rem; }
.up-service-card__points li { font-size: 0.84rem; color: var(--up-muted); margin: 0; display: flex; gap: 0.45rem; }
.up-service-card__points li::before { content: "·"; color: var(--up-accent); font-weight: 700; }
.up-link-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 700; color: var(--up-primary);
}
.up-link-more svg { width: 15px; height: 15px; transition: transform 0.3s var(--up-ease); }
.up-link-more:hover svg { transform: translateX(4px); }

.up-process { counter-reset: step; }
.up-process__list { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.up-process__list::before {
  content: ""; position: absolute; top: 27px; left: 4%; right: 4%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--up-line) 0 8px, transparent 8px 16px);
}
.up-step { position: relative; text-align: center; padding: 0 0.3rem; }
.up-step__dot {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--up-line);
  display: grid; place-items: center; position: relative; z-index: 2;
  font-family: var(--up-font-num); font-weight: 700; color: var(--up-primary);
  transition: all 0.35s var(--up-ease);
}
.up-step:hover .up-step__dot {
  background: var(--up-accent); border-color: var(--up-accent); color: #fff;
  transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 26px rgba(232, 134, 60, 0.35);
}
.up-step h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.up-step p { font-size: 0.86rem; color: var(--up-muted); margin: 0; }

.up-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.75rem); }
.up-case { position: relative; border-radius: var(--up-radius); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; }
.up-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--up-ease); }
.up-case::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 26, 44, 0.94) 0%, rgba(6, 26, 44, 0.45) 45%, rgba(6, 26, 44, 0.05) 100%);
  transition: opacity 0.4s var(--up-ease);
}
.up-case:hover img { transform: scale(1.08); }
.up-case__body { position: relative; z-index: 2; padding: 1.4rem; width: 100%; }
.up-case__body h3 { color: #fff; font-size: 1.08rem; margin-bottom: 0.35rem; }
.up-case__industry { font-size: 0.76rem; letter-spacing: 0.1em; color: var(--up-accent); font-weight: 700; }
.up-case__result {
  font-size: 0.86rem; color: rgba(230, 239, 246, 0.85); margin: 0.5rem 0 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s var(--up-ease), opacity 0.35s var(--up-ease), margin 0.35s var(--up-ease);
}
.up-case:hover .up-case__result { max-height: 80px; opacity: 1; }

.up-clients { background: #fff; border-top: 1px solid var(--up-line-soft); border-bottom: 1px solid var(--up-line-soft); overflow: hidden; padding: 1.6rem 0; }
.up-marquee { display: flex; gap: 1rem; width: max-content; animation: upMarquee 38s linear infinite; }
.up-marquee:hover { animation-play-state: paused; }
.up-marquee__item {
  display: grid; place-items: center; min-width: 190px; height: 66px; padding: 0 1.4rem;
  border: 1px solid var(--up-line); border-radius: var(--up-radius-sm);
  font-family: var(--up-font-serif); font-weight: 700; font-size: 1rem; color: var(--up-muted);
  background: #fff; letter-spacing: 0.06em;
  transition: all 0.3s var(--up-ease);
}
.up-marquee__item:hover { color: var(--up-primary); border-color: var(--up-primary); transform: translateY(-3px); box-shadow: var(--up-shadow-sm); }
@keyframes upMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.up-teacher { display: grid; grid-template-columns: 190px 1fr; gap: 1.3rem; align-items: center; padding: 1.2rem; }
.up-teacher__media { border-radius: var(--up-radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--up-soft); }
.up-teacher__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--up-ease); }
.up-teacher:hover .up-teacher__media img { transform: scale(1.06); }
.up-teacher h3 { margin-bottom: 0.2rem; }
.up-teacher__role { font-size: 0.86rem; color: var(--up-muted); margin-bottom: 0.6rem; }
.up-teacher__exp { font-size: 0.78rem; color: var(--up-faint); margin-bottom: 0.7rem; }
.up-teacher__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.up-news-card { display: flex; flex-direction: column; height: 100%; }
.up-news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--up-soft); }
.up-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--up-ease); }
.up-news-card:hover .up-news-card__media img { transform: scale(1.07); }
.up-news-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.up-news-card__meta { display: flex; align-items: center; gap: 0.7rem; font-size: 0.78rem; color: var(--up-faint); margin-bottom: 0.6rem; }
.up-news-card__meta .cat { color: var(--up-accent-dark); font-weight: 700; }
.up-news-card h3 { font-size: 1.04rem; line-height: 1.5; }
.up-news-card h3 a { color: var(--up-ink); }
.up-news-card h3 a:hover { color: var(--up-accent); }
.up-news-card p { font-size: 0.9rem; color: var(--up-muted); margin: 0; }

.up-news-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.up-news-line {
  display: flex; gap: 1rem; align-items: baseline; padding: 1rem 0;
  border-bottom: 1px dashed var(--up-line); transition: padding-left 0.3s var(--up-ease);
}
.up-news-line:hover { padding-left: 0.5rem; }
.up-news-line time {
  font-family: var(--up-font-num); font-size: 0.82rem; color: var(--up-faint); flex: 0 0 auto;
  border-right: 1px solid var(--up-line); padding-right: 1rem;
}
.up-news-line a { color: var(--up-ink); font-size: 0.95rem; }
.up-news-line a:hover { color: var(--up-accent); }

/* 联系模块 */
.up-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.up-contact__panel {
  background: #fff; border: 1px solid var(--up-line-soft); border-radius: var(--up-radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--up-shadow-sm);
}
.up-form { display: grid; gap: 1rem; }
.up-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.up-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--up-ink); margin-bottom: 0.4rem; }
.up-field label .req { color: var(--up-accent-dark); margin-left: 2px; }
.up-field input, .up-field select, .up-field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font-family: inherit; font-size: 0.95rem;
  color: var(--up-ink); background: #fff; border: 1px solid var(--up-line);
  border-radius: var(--up-radius-sm); transition: border-color 0.25s var(--up-ease), box-shadow 0.25s var(--up-ease);
}
.up-field input:focus, .up-field select:focus, .up-field textarea:focus {
  border-color: var(--up-primary); box-shadow: 0 0 0 3px rgba(14, 58, 92, 0.12); outline: none;
}
.up-field textarea { min-height: 116px; resize: vertical; }
.up-field .up-note { font-size: 0.76rem; color: var(--up-faint); margin-top: 0.3rem; }
.up-hp { position: absolute !important; left: -9999px !important; }
.up-form-msg { padding: 0.8rem 1rem; border-radius: var(--up-radius-sm); font-size: 0.9rem; }
.up-form-msg--ok { background: rgba(46, 158, 143, 0.12); color: #1c6e63; border: 1px solid rgba(46, 158, 143, 0.3); }
.up-form-msg--err { background: rgba(207, 74, 60, 0.1); color: #a83f31; border: 1px solid rgba(207, 74, 60, 0.28); }

.up-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.up-info-list li { display: flex; gap: 0.9rem; margin: 0; align-items: flex-start; }
.up-info-list__ico {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: var(--up-radius-sm);
  background: var(--up-primary-soft); color: var(--up-primary); display: grid; place-items: center;
}
.up-info-list__ico svg { width: 19px; height: 19px; }
.up-info-list strong { display: block; font-size: 0.82rem; color: var(--up-faint); font-weight: 500; margin-bottom: 0.15rem; }
.up-info-list span, .up-info-list a { font-size: 1rem; color: var(--up-ink); font-weight: 500; }
.up-info-list a:hover { color: var(--up-accent); }
.up-map {
  margin-top: 1.4rem; border-radius: var(--up-radius); overflow: hidden;
  border: 1px solid var(--up-line); aspect-ratio: 16 / 9; background: var(--up-soft);
}
.up-map img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   10. 内容页 / 文章 / 列表 / FAQ / 表格
   ============================================================ */
.up-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; }
.up-layout--full { grid-template-columns: minmax(0, 1fr); }
.up-entry { padding: clamp(1.6rem, 3vw, 2.6rem) 0; }
.up-entry__header { margin-bottom: 1.4rem; }
.up-entry__meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--up-faint); margin-bottom: 0.7rem; }
.up-entry__meta a { color: var(--up-muted); }
.up-entry__thumb { border-radius: var(--up-radius); overflow: hidden; margin-bottom: 1.6rem; }
.up-entry__thumb img { width: 100%; display: block; }
.up-entry__content { font-size: 1rem; color: #2b3945; }
.up-entry__content > * + * { margin-top: 1.1em; }
.up-entry__content img { border-radius: var(--up-radius-sm); }
.up-entry__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.6rem; }

.up-post-list { display: grid; gap: 1.2rem; }
.up-post-item { display: grid; grid-template-columns: 240px 1fr; gap: 1.3rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--up-line-soft); }
.up-post-item__thumb { aspect-ratio: 3 / 2; border-radius: var(--up-radius); overflow: hidden; background: var(--up-soft); }
.up-post-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--up-ease); }
.up-post-item:hover .up-post-item__thumb img { transform: scale(1.06); }
.up-post-item h2, .up-post-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.up-post-item p { font-size: 0.9rem; color: var(--up-muted); margin: 0 0 0.6rem; }

.up-pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.up-pagination .page-numbers {
  min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 0.7rem;
  border: 1px solid var(--up-line); border-radius: var(--up-radius-sm); font-size: 0.9rem; color: var(--up-muted);
  transition: all 0.25s var(--up-ease);
}
.up-pagination .page-numbers:hover { border-color: var(--up-primary); color: var(--up-primary); }
.up-pagination .page-numbers.current { background: var(--up-primary); border-color: var(--up-primary); color: #fff; font-weight: 700; }

.up-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.up-filter {
  padding: 0.5rem 1.1rem; border-radius: 100px; border: 1px solid var(--up-line);
  background: #fff; color: var(--up-muted); font-size: 0.88rem; font-family: inherit; cursor: pointer;
  transition: all 0.25s var(--up-ease);
}
.up-filter:hover { border-color: var(--up-primary); color: var(--up-primary); }
.up-filter.is-active { background: var(--up-primary); border-color: var(--up-primary); color: #fff; font-weight: 700; }

.up-faq { display: grid; gap: 0.8rem; }
.up-faq__item { border: 1px solid var(--up-line-soft); border-radius: var(--up-radius); background: #fff; overflow: hidden; transition: box-shadow 0.3s var(--up-ease), border-color 0.3s var(--up-ease); }
.up-faq__item.is-open { border-color: rgba(232, 134, 60, 0.4); box-shadow: var(--up-shadow-sm); }
.up-faq__q {
  width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
  padding: 1.1rem 1.3rem; background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--up-ink);
}
.up-faq__no { font-family: var(--up-font-num); font-size: 0.85rem; color: var(--up-accent); flex: 0 0 auto; }
.up-faq__icon { margin-left: auto; width: 22px; height: 22px; flex: 0 0 auto; position: relative; }
.up-faq__icon::before, .up-faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--up-primary);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--up-ease);
}
.up-faq__icon::before { width: 12px; height: 2px; }
.up-faq__icon::after { width: 2px; height: 12px; }
.up-faq__item.is-open .up-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.up-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--up-ease); }
.up-faq__a > div { padding: 0 1.3rem 1.2rem 3.1rem; color: var(--up-muted); font-size: 0.95rem; }

.up-aside { position: sticky; top: 110px; display: grid; gap: 1.3rem; }
.up-widget { background: #fff; border: 1px solid var(--up-line-soft); border-radius: var(--up-radius); padding: 1.3rem; box-shadow: var(--up-shadow-sm); }
.up-widget h2, .up-widget h3 {
  font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--up-primary-soft); position: relative;
}
.up-widget h2::after, .up-widget h3::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 34px; height: 2px; background: var(--up-accent);
}
.up-widget ul { list-style: none; margin: 0; padding: 0; }
.up-widget li { margin: 0; border-bottom: 1px dashed var(--up-line-soft); }
.up-widget li:last-child { border-bottom: 0; }
.up-widget li a { display: block; padding: 0.55rem 0; font-size: 0.92rem; color: var(--up-muted); }
.up-widget li a:hover { color: var(--up-accent); padding-left: 4px; }
.up-widget--cta { background: var(--up-primary); color: #fff; border-color: var(--up-primary); }
.up-widget--cta h3 { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.up-widget--cta h3::after { background: var(--up-accent); }
.up-widget--cta p { color: rgba(226, 236, 244, 0.85); font-size: 0.9rem; }
.up-widget--cta .up-phone { font-family: var(--up-font-num); font-size: 1.6rem; font-weight: 700; color: #fff; display: block; margin-bottom: 0.9rem; }
.up-rank { counter-reset: rank; }
.up-rank li { display: flex; gap: 0.7rem; align-items: baseline; }
.up-rank li::before {
  counter-increment: rank; content: counter(rank);
  font-family: var(--up-font-num); font-weight: 700; font-size: 0.8rem;
  width: 20px; height: 20px; border-radius: 4px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--up-soft); color: var(--up-muted);
}
.up-rank li:nth-child(-n + 3)::before { background: var(--up-accent); color: #fff; }
.up-rank li a { padding: 0.5rem 0; }

.up-timeline { position: relative; padding-left: 2rem; }
.up-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--up-line); }
.up-timeline__item { position: relative; padding-bottom: 1.8rem; }
.up-timeline__item::before {
  content: ""; position: absolute; left: -2rem; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--up-primary);
  transform: translateX(0);
}
.up-timeline__item:hover::before { border-color: var(--up-accent); }
.up-timeline__year { font-family: var(--up-font-num); font-weight: 700; color: var(--up-accent); font-size: 1.1rem; }
.up-timeline__item h3 { font-size: 1.02rem; margin: 0.2rem 0 0.3rem; }
.up-timeline__item p { font-size: 0.9rem; color: var(--up-muted); margin: 0; }

.up-honor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.up-honor__item {
  border: 1px solid var(--up-line); border-radius: var(--up-radius); padding: 1.4rem 1rem;
  text-align: center; background: linear-gradient(180deg, #fff, var(--up-soft));
  transition: transform 0.3s var(--up-ease), box-shadow 0.3s var(--up-ease);
}
.up-honor__item:hover { transform: translateY(-4px); box-shadow: var(--up-shadow-sm); }
.up-honor__item svg { width: 30px; height: 30px; margin: 0 auto 0.7rem; color: var(--up-accent); }
.up-honor__item strong { display: block; font-size: 0.95rem; margin-bottom: 0.3rem; }
.up-honor__item span { font-size: 0.8rem; color: var(--up-faint); }

.up-spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--up-line); border-radius: var(--up-radius); overflow: hidden; }
.up-spec div { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--up-line-soft); font-size: 0.92rem; }
.up-spec div:nth-child(odd) { border-right: 1px solid var(--up-line-soft); }
.up-spec dt, .up-spec .k { color: var(--up-faint); margin-right: 0.5rem; }
.up-price-note { background: rgba(232, 134, 60, 0.08); border-left: 3px solid var(--up-accent); padding: 1rem 1.2rem; border-radius: 0 var(--up-radius-sm) var(--up-radius-sm) 0; font-size: 0.92rem; color: var(--up-muted); }

/* 404 */
.up-404 { text-align: center; padding: clamp(3rem, 9vw, 7rem) 0; }
.up-404__code {
  font-family: var(--up-font-num); font-size: clamp(5rem, 18vw, 11rem); font-weight: 700;
  line-height: 0.9; color: var(--up-primary-soft); letter-spacing: -0.04em;
}
.up-404__code span { color: var(--up-accent); }

/* ============================================================
   11. 页脚
   ============================================================ */
.up-footer { background: #0a2233; color: #a8bccd; font-size: 0.9rem; }
.up-footer a { color: #c9d8e4; }
.up-footer a:hover { color: var(--up-accent); }
.up-footer__main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(1.5rem, 3vw, 2.6rem); padding: clamp(2.6rem, 5vw, 4rem) 0; }
.up-footer__brand .up-logo__cn { color: #fff; }
.up-footer__brand .up-logo__en { color: rgba(255, 255, 255, 0.45); }
.up-footer__about { margin: 1.1rem 0 1.3rem; line-height: 1.85; color: #93a9bb; }
.up-footer__social { display: flex; gap: 0.5rem; }
.up-footer__social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16); color: #c9d8e4;
  transition: all 0.25s var(--up-ease);
}
.up-footer__social a:hover { background: var(--up-accent); border-color: var(--up-accent); color: #fff; }
.up-footer__social svg { width: 16px; height: 16px; }
.up-footer h2, .up-footer h3, .up-footer .up-footer__title {
  color: #fff; font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: 0.7rem;
}
.up-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--up-accent); }
.up-footer ul { list-style: none; margin: 0; padding: 0; }
.up-footer li { margin: 0 0 0.55rem; }
.up-footer li a { display: inline-flex; align-items: center; gap: 0.4rem; color: #93a9bb; }
.up-footer li a::before { content: ""; width: 0; height: 1px; background: var(--up-accent); transition: width 0.3s var(--up-ease); }
.up-footer li a:hover { color: #fff; }
.up-footer li a:hover::before { width: 12px; }
.up-footer__contact li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.85rem; color: #93a9bb; }
.up-footer__contact li::before { content: none; }
.up-footer__contact svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 4px; color: var(--up-accent); }
.up-footer__contact strong { color: #fff; font-weight: 500; }
.up-footer__qr { display: flex; gap: 0.8rem; margin-top: 1rem; }
.up-footer__qr div { text-align: center; font-size: 0.76rem; color: #7e94a7; }
.up-footer__qr span {
  display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 0.4rem;
  background: #fff; border-radius: var(--up-radius-sm); color: var(--up-primary); font-size: 0.7rem;
}
.up-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 1.15rem 0;
  font-size: 0.8rem; color: #7e94a7;
}
.up-footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.up-footer__links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.up-footer__links a { color: #8fa5b8; }
.up-footer__beian a { color: #8fa5b8; }

/* 回到顶部 & 悬浮联系 */
.up-totop {
  position: fixed; right: 20px; bottom: 24px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--up-primary); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--up-shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all 0.35s var(--up-ease);
}
.up-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.up-totop:hover { background: var(--up-accent); }
.up-totop svg { width: 18px; height: 18px; }
.up-float {
  position: fixed; right: 20px; bottom: 84px; z-index: 80;
  display: grid; gap: 0.5rem;
}
.up-float a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--up-primary); border: 1px solid var(--up-line);
  box-shadow: var(--up-shadow-sm); transition: all 0.3s var(--up-ease); position: relative;
}
.up-float a:hover { background: var(--up-accent); color: #fff; border-color: var(--up-accent); }
.up-float svg { width: 19px; height: 19px; }
.up-float a::after {
  content: attr(data-tip); position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  background: var(--up-primary-dark); color: #fff; font-size: 0.75rem; padding: 0.3rem 0.6rem;
  border-radius: var(--up-radius-sm); white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--up-ease);
}
.up-float a:hover::after { opacity: 1; }

/* ============================================================
   12. 加载动画 / 滚动揭示
   ============================================================ */
.up-preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--up-primary-dark);
  display: grid; place-items: center; transition: opacity 0.5s var(--up-ease), visibility 0.5s;
  /* 三重兜底之二：若所有脚本都失效，4.2 秒后由纯 CSS 强制隐藏遮罩 */
  animation: upPreloaderFail 0.45s 4.2s forwards;
  pointer-events: none;
}
.up-preloader.is-done { opacity: 0; visibility: hidden; }
.no-js .up-preloader { display: none; }
@keyframes upPreloaderFail { to { opacity: 0; visibility: hidden; } }
.up-preloader__box { text-align: center; color: #fff; }
.up-preloader__bar { width: 160px; height: 3px; background: rgba(255, 255, 255, 0.18); border-radius: 2px; overflow: hidden; margin: 1rem auto 0; }
.up-preloader__bar i { display: block; height: 100%; width: 40%; background: var(--up-accent); animation: upSlide 1.1s var(--up-ease) infinite; }
@keyframes upSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(360%); } }

.up-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--up-ease), transform 0.7s var(--up-ease); }
.up-reveal.is-in { opacity: 1; transform: none; }
.up-reveal[data-delay="1"] { transition-delay: 0.1s; }
.up-reveal[data-delay="2"] { transition-delay: 0.2s; }
.up-reveal[data-delay="3"] { transition-delay: 0.3s; }
.up-reveal[data-delay="4"] { transition-delay: 0.4s; }
.up-reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   13. 评论
   ============================================================ */
.up-comments { margin-top: 2.6rem; border-top: 1px solid var(--up-line-soft); padding-top: 2rem; }
.up-comments .comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.up-comments .comment { padding: 1.2rem 0; border-bottom: 1px dashed var(--up-line); }
.up-comments .comment-body { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; }
.up-comments .avatar { border-radius: 50%; }
.up-comments .comment-meta { font-size: 0.8rem; color: var(--up-faint); margin-bottom: 0.4rem; }
.up-comments .children { list-style: none; margin: 0.8rem 0 0; padding-left: 1.6rem; border-left: 2px solid var(--up-line-soft); }
.comment-respond { background: var(--up-soft); padding: 1.4rem; border-radius: var(--up-radius); }
.comment-form { display: grid; gap: 0.9rem; }
.comment-form-comment, .comment-form-author, .comment-form-email, .comment-form-url { grid-column: 1 / -1; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--up-line); border-radius: var(--up-radius-sm);
  font-family: inherit; font-size: 0.95rem; background: #fff;
}

/* ============================================================
   14. 响应式（移动端适配样式）
   ============================================================ */
@media (max-width: 1100px) {
  .up-stats { grid-template-columns: repeat(3, 1fr); }
  .up-process__list { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .up-process__list::before { display: none; }
  .up-honor { grid-template-columns: repeat(2, 1fr); }
  .up-footer__main { grid-template-columns: 1fr 1fr; }
  .up-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-layout { grid-template-columns: minmax(0, 1fr); }
  .up-aside { position: static; grid-template-columns: repeat(2, 1fr); display: grid; }
}

@media (max-width: 960px) {
  .up-nav, .up-header__tools .up-btn { display: none; }
  .up-burger { display: block; }
  .up-intro, .up-contact { grid-template-columns: 1fr; }
  .up-cases { grid-template-columns: repeat(2, 1fr); }
  .up-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-topbar__right .up-topbar__hide { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 15px; line-height: 1.8; }
  .up-topbar { font-size: 0.76rem; }
  .up-topbar__inner { justify-content: center; min-height: 38px; }
  .up-grid-2, .up-grid-3, .up-grid-4, .up-cases, .up-news-row, .up-form__row, .up-spec, .up-honor, .up-aside { grid-template-columns: 1fr; }
  .up-stats { grid-template-columns: repeat(2, 1fr); }
  .up-process__list { grid-template-columns: 1fr 1fr; }
  .up-post-item { grid-template-columns: 1fr; }
  .up-post-item__thumb { aspect-ratio: 16 / 9; }
  .up-teacher { grid-template-columns: 1fr; }
  .up-teacher__media { max-width: 200px; }
  .up-footer__main { grid-template-columns: 1fr; }
  .up-footer__bar-inner { flex-direction: column; text-align: center; }
  .up-hero__meta { gap: 1rem; }
  .up-hero__meta strong { font-size: 1.3rem; }
  .up-float { bottom: 76px; }
  .up-intro__badge { left: 0; right: 0; bottom: -18px; }
  .up-faq__a > div { padding-left: 1.3rem; }
}

/* ============================================================
   15. 补充：搜索表单 / 图标旋转 / 分栏响应式 / 小工具标题
   ============================================================ */
.up-rot-180 { transform: rotate(180deg); }
.up-search-form { display: flex; gap: 0.6rem; align-items: center; }
.up-search-form__input {
  flex: 1; padding: 0.8rem 1rem; border: 1px solid var(--up-line);
  border-radius: var(--up-radius-sm); font-family: inherit; font-size: 0.95rem; color: var(--up-ink); background: #fff;
}
.up-search-form__input:focus { border-color: var(--up-primary); outline: none; box-shadow: 0 0 0 3px rgba(14, 58, 92, 0.12); }
.up-entry__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.up-entry__meta svg { width: 14px; height: 14px; color: var(--up-faint); }
.up-logo__img-el { max-height: 52px; width: auto; }
.up-widget__title {
  font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--up-primary-soft); position: relative;
}
.up-widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 34px; height: 2px; background: var(--up-accent); }
.up-post-item__body h2 a, .up-post-item__body h3 a { color: var(--up-ink); }
.up-post-item__body h2 a:hover, .up-post-item__body h3 a:hover { color: var(--up-accent); }
.up-entry__tags a {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 100px;
  background: var(--up-soft); color: var(--up-muted); font-size: 0.78rem;
}
.up-entry__tags a:hover { background: var(--up-primary-soft); color: var(--up-primary); }
.up-post-nav a { color: var(--up-muted); font-size: 0.9rem; }
.up-post-nav a:hover { color: var(--up-accent); }
.widget { margin-bottom: 1.3rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }

@media (max-width: 1100px) {
  .up-news-split, .up-faq-split { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .up-search-form { flex-direction: column; align-items: stretch; }
  .up-search-form .up-btn { width: 100%; }
  .up-hero__arrow { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .up-reveal { opacity: 1; transform: none; }
}
