/* ================= 迈得峰智能科技 官网样式 =================
   设计基调：简约大气 / 深空蓝 + 云白 / 大留白 / 细腻动效 */
:root {
  --navy: #0a1f3c;
  --navy-2: #10294d;
  --blue: #1f5eff;
  --blue-light: #4d84ff;
  --gold: #d9a441;
  --text: #23324a;
  --text-light: #6b7a93;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --line: #e4eaf3;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(16, 41, 77, .08);
  --shadow-hover: 0 18px 50px rgba(16, 41, 77, .14);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10, 31, 60, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, #1f5eff, #0a1f3c); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; font-family: Georgia, serif; box-shadow: 0 6px 16px rgba(31, 94, 255, .35); overflow: hidden; flex: 0 0 auto; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo.has-img { background: #fff; border: 1px solid var(--line); box-shadow: none; padding: 3px; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: .5px; line-height: 1.3; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: var(--text-light); letter-spacing: 1.5px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--text); transition: all .25s; position: relative; }
.nav a:hover { color: var(--blue); background: rgba(31, 94, 255, .06); }
.nav a.active { color: var(--blue); font-weight: 600; }
.nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: 10px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all .25s; font-family: inherit; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, #2f6bff, #1f4fd8); color: #fff; box-shadow: 0 8px 22px rgba(31, 94, 255, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 94, 255, .4); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: rgba(31, 94, 255, .06); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-danger { background: #feecec; color: #d64541; }
.btn-danger:hover { background: #fddcdc; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--img-hero, url(/img/hero-bg.png)) center/cover no-repeat; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(6, 20, 43, .93) 20%, rgba(8, 26, 54, .72) 55%, rgba(10, 31, 60, .38)); }
.hero-content { position: relative; z-index: 2; padding: 140px 0 100px; max-width: 780px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); font-size: 13px; letter-spacing: 2px; margin-bottom: 26px; }
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.22; font-weight: 800; letter-spacing: 1px; margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7db2ff, #d9e7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 640px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0 70px; max-width: 900px; }
.hero-stat { padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.hero-stat b { display: block; font-size: 34px; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-stat b i { font-style: normal; font-size: 17px; color: var(--gold); margin-left: 3px; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .72); letter-spacing: 1px; }

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.section-head .kicker { display: inline-block; font-size: 13px; letter-spacing: 4px; color: var(--blue); font-weight: 700; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); font-weight: 800; letter-spacing: 1px; line-height: 1.3; }
.section-head .sub { margin-top: 16px; color: var(--text-light); font-size: 16px; }
.head-line { width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--gold)); margin: 20px auto 0; }

/* ---------- 六大业务卡片 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 32px; transition: all .3s; overflow: hidden; }
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon { width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(31, 94, 255, .12), rgba(31, 94, 255, .04)); }
.svc-icon svg { width: 30px; height: 30px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 20px; color: var(--navy); font-weight: 700; margin-bottom: 12px; }
.svc-card p { font-size: 14.5px; color: var(--text-light); min-height: 66px; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--blue); }
.svc-more:hover { gap: 10px; }

/* ---------- 关于速览 ---------- */
.about-brief { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-brief .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.about-brief .pic::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid rgba(31, 94, 255, .25); border-radius: var(--radius); z-index: -1; }
.about-brief p { color: var(--text-light); font-size: 15.5px; margin-bottom: 14px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.about-point { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--navy); font-weight: 600; }
.about-point::before { content: "✦"; color: var(--gold); margin-top: 2px; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-cover { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #142c52, #0a1f3c); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--text-light); margin-bottom: 12px; }
.news-cat { padding: 2px 10px; border-radius: 999px; background: rgba(31, 94, 255, .08); color: var(--blue); font-weight: 600; }
.news-body h3 { font-size: 17.5px; color: var(--navy); font-weight: 700; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-body p { font-size: 14px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-empty { text-align: center; color: var(--text-light); padding: 60px 0; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, #0a1f3c, #123263 60%, #1f4fd8); border-radius: 20px; color: #fff; padding: 64px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 164, 65, .35), transparent 65%); }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .78); font-size: 15.5px; }

/* ---------- 页面 Banner（内页） ---------- */
.page-banner { position: relative; padding: 150px 0 70px; color: #fff; background: linear-gradient(120deg, #081a34, #0f2a52 55%, #17418b); overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: 6%; bottom: -60%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 94, 255, .28), transparent 65%); }
.page-banner .crumb { font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: 2px; margin-bottom: 14px; }
.page-banner h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: 2px; }
.page-banner p { margin-top: 14px; color: rgba(255, 255, 255, .72); max-width: 720px; }

/* ---------- 关于我们 ---------- */
.rich-text p { margin-bottom: 16px; font-size: 15.5px; color: var(--text); }
.timeline { position: relative; margin-top: 20px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue), var(--line)); }
.timeline-item { position: relative; padding: 0 0 30px 12px; }
.timeline-item::before { content: ""; position: absolute; left: -30px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 0 4px rgba(31, 94, 255, .12); }
.timeline-item h4 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.timeline-item p { color: var(--text-light); font-size: 14.5px; }
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.culture-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; text-align: center; transition: all .3s; }
.culture-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.culture-card .num { font-size: 44px; font-weight: 800; color: rgba(31, 94, 255, .12); line-height: 1; }
.culture-card h3 { font-size: 19px; color: var(--navy); margin: 10px 0 12px; }
.culture-card p { font-size: 14.5px; color: var(--text-light); }
.partner-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.partner-tag { padding: 10px 22px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; color: var(--navy); font-weight: 600; transition: all .25s; }
.partner-tag:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow); }

/* ---------- 产品服务页 ---------- */
.svc-block { display: grid; grid-template-columns: 90px 1fr; gap: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 42px; margin-bottom: 28px; transition: box-shadow .3s; }
.svc-block:hover { box-shadow: var(--shadow); }
.svc-block .svc-icon { width: 72px; height: 72px; margin: 0; }
.svc-block .svc-icon svg { width: 36px; height: 36px; }
.svc-block h3 { font-size: 23px; color: var(--navy); font-weight: 800; margin-bottom: 10px; }
.svc-block .summary { color: var(--blue); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.svc-block .detail { color: var(--text-light); font-size: 15px; margin-bottom: 18px; }
.svc-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; }
.svc-feats li { list-style: none; font-size: 14px; color: var(--navy); display: flex; gap: 8px; align-items: flex-start; }
.svc-feats li::before { content: "◈"; color: var(--gold); }

/* ---------- 新闻列表/详情 ---------- */
.news-detail-wrap { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 60px; box-shadow: var(--shadow); }
.news-detail-wrap h1 { font-size: 30px; color: var(--navy); line-height: 1.4; margin: 14px 0 8px; }
.news-detail-wrap .content { margin-top: 28px; }
.news-detail-wrap .content p { margin-bottom: 18px; font-size: 16px; color: var(--text); }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.pager button { padding: 8px 18px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; font-size: 14px; color: var(--text); }
.pager button.cur { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; display: flex; gap: 18px; align-items: flex-start; }
.contact-card .ico { width: 50px; height: 50px; flex: none; border-radius: 12px; background: linear-gradient(135deg, rgba(31, 94, 255, .12), rgba(31, 94, 255, .04)); display: flex; align-items: center; justify-content: center; }
.contact-card .ico svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.contact-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.contact-card p { color: var(--text-light); font-size: 14.5px; word-break: break-all; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow); }
.form-card h3 { color: var(--navy); font-size: 21px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--navy); font-weight: 600; }
.field label i { color: #d64541; font-style: normal; margin-left: 3px; }
.field input, .field textarea, .field select { font-family: inherit; font-size: 14.5px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--text); outline: none; transition: border .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 94, 255, .1); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-tip { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-tip.ok { color: #1d9a5b; }
.form-tip.err { color: #d64541; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: linear-gradient(120deg, #081a34, #0f2a52 55%, #17418b); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 46px 44px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-card h1 { font-size: 24px; color: var(--navy); text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 30px; }
.auth-tabs { display: flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-light); cursor: pointer; transition: all .2s; }
.auth-tabs button.on { background: #fff; color: var(--blue); box-shadow: 0 2px 10px rgba(16, 41, 77, .1); }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-light); }
.auth-foot a { color: var(--blue); }

/* ---------- 客服悬浮入口 ---------- */
.cs-fab { position: fixed; right: 26px; bottom: 30px; z-index: 200; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cs-btn { width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, #2f6bff, #17418b); color: #fff; box-shadow: 0 10px 30px rgba(31, 94, 255, .45); display: flex; align-items: center; justify-content: center; position: relative; }
.cs-btn svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; }
.cs-btn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(47, 107, 255, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.cs-panel { position: absolute; bottom: 74px; right: 0; width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(10, 31, 60, .22); overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(12px); transition: all .3s; }
.cs-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cs-head { background: linear-gradient(120deg, #0a1f3c, #1f4fd8); color: #fff; padding: 20px 22px; }
.cs-head b { font-size: 16px; }
.cs-head p { font-size: 12.5px; color: rgba(255, 255, 255, .75); margin-top: 4px; }
.cs-body { padding: 18px 22px 22px; display: grid; gap: 14px; }
.cs-item { display: flex; gap: 12px; align-items: center; }
.cs-item .tag { flex: none; font-size: 12px; font-weight: 700; color: var(--blue); background: rgba(31, 94, 255, .08); border-radius: 6px; padding: 4px 8px; }
.cs-item span { font-size: 14px; color: var(--text); word-break: break-all; }
.cs-actions { display: grid; gap: 8px; margin-top: 4px; }
.cs-actions a { text-align: center; font-size: 14px; font-weight: 600; padding: 9px; border-radius: 8px; background: var(--bg-soft); color: var(--navy); }
.cs-actions a:hover { background: rgba(31, 94, 255, .08); color: var(--blue); }

/* ---------- 页脚 ---------- */
.site-footer { background: #081a34; color: rgba(255, 255, 255, .68); margin-top: 96px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 46px; }
.footer-top h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-top ul { list-style: none; display: grid; gap: 10px; }
.footer-top a { font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-top a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 13.5px; margin-top: 16px; max-width: 300px; color: rgba(255, 255, 255, .55); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- 后台管理 ---------- */
.admin-body { display: flex; min-height: 100vh; background: var(--bg-soft); }
.admin-side { width: 236px; flex: none; background: #081a34; color: #fff; padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 0 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 16px; }
.admin-side .brand-name { color: #fff; font-size: 15px; }
.admin-nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 14px; border: none; border-radius: 9px; background: transparent; color: rgba(255, 255, 255, .72); font-size: 14.5px; font-family: inherit; cursor: pointer; transition: all .2s; }
.admin-nav-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav-btn.on { background: linear-gradient(120deg, #1f5eff, #17418b); color: #fff; font-weight: 600; }
.admin-side .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
.admin-main { flex: 1; padding: 30px 34px 60px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 12px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 22px; color: var(--navy); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stat-card b { display: block; font-size: 30px; color: var(--navy); font-weight: 800; }
.stat-card span { font-size: 13px; color: var(--text-light); }
.stat-card.warn b { color: #d64541; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 24px; }
.panel h3 { font-size: 17px; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel h3 small { font-weight: 400; color: var(--text-light); font-size: 12.5px; margin-left: 10px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--text-light); font-weight: 600; font-size: 13px; background: var(--bg-soft); }
.admin-table td { color: var(--text); }
.badge { display: inline-block; padding: 3px 10px; font-size: 12px; border-radius: 999px; font-weight: 600; }
.badge.ok { background: #e6f7ef; color: #1d9a5b; }
.badge.pending { background: #fff6e6; color: #c07f00; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions button { border: none; font-family: inherit; font-size: 13px; cursor: pointer; padding: 6px 12px; border-radius: 7px; background: var(--bg-soft); color: var(--navy); }
.row-actions button:hover { background: rgba(31, 94, 255, .1); color: var(--blue); }
.row-actions button.del { color: #d64541; }
.row-actions button.del:hover { background: #feecec; }
.hint { font-size: 12.5px; color: var(--text-light); margin-top: 8px; line-height: 1.7; }
.tag-inputs { display: flex; flex-direction: column; gap: 8px; }
.tag-inputs input { flex: 1; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { font-family: inherit; font-size: 14px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; outline: none; background: var(--bg-soft); }
.inline-form input:focus, .inline-form select:focus { border-color: var(--blue); background: #fff; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { display: none; }
.switch em { position: absolute; inset: 0; border-radius: 999px; background: #cfd8e6; cursor: pointer; transition: background .2s; }
.switch em::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.switch input:checked + em { background: var(--blue); }
.switch input:checked + em::after { transform: translateX(20px); }
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--navy); color: #fff; padding: 12px 26px; border-radius: 10px; font-size: 14.5px; z-index: 999; opacity: 0; pointer-events: none; transition: all .3s; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-mask { position: fixed; inset: 0; background: rgba(8, 20, 40, .55); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.open { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto; padding: 34px 38px; }
.modal h3 { font-size: 19px; color: var(--navy); margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* 多语言下导航与品牌名不换行（窄屏除外） */
@media (min-width: 761px) {
  .site-header .brand { flex: none; }
  .site-header .brand-name { white-space: nowrap; }
  .nav { flex: none; }
  .nav a { white-space: nowrap; }
}

/* ---------- 语言切换（前台） ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.lang-switch button { border: none; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-light); padding: 5px 11px; border-radius: 999px; cursor: pointer; transition: all .2s; white-space: nowrap; line-height: 1.5; }
.lang-switch button:hover { color: var(--blue); }
.lang-switch button.on { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(16, 41, 77, .12); }

/* ---------- 多语言标签页（后台） ---------- */
.lang-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 18px; flex-wrap: wrap; }
.lang-tabs button { border: none; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-light); padding: 7px 18px; border-radius: 7px; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.lang-tabs button:hover { color: var(--blue); }
.lang-tabs button.on { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(16, 41, 77, .1); }
.lang-tabs .dot { width: 6px; height: 6px; border-radius: 50%; background: #c9d4e4; flex: none; }
.lang-tabs button.has-val .dot { background: #1d9a5b; }
.lang-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 5px; padding: 1px 7px; margin-left: 7px; vertical-align: middle; letter-spacing: .5px; }
.lang-hint { font-size: 12.5px; color: var(--text-light); margin: -6px 0 18px; line-height: 1.7; }
.lang-field-label { display: flex; align-items: center; gap: 2px; }

/* ---------- 图片管理（后台） ---------- */
.img-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.img-slot { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.img-slot > .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.img-slot > .head b { font-size: 14.5px; color: var(--navy); }
.img-slot .state { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; font-weight: 600; background: var(--bg-soft); color: var(--text-light); white-space: nowrap; }
.img-slot .state.custom { background: #e6f7ef; color: #1d9a5b; }
.img-thumb { position: relative; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#f0f3f8 0% 25%, #fff 0% 50%) 50% / 18px 18px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.img-thumb img { width: 100%; height: 100%; object-fit: contain; }
.img-thumb .empty { font-size: 12.5px; color: var(--text-light); padding: 22px 10px; text-align: center; }
.img-slot .url { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--text-light); word-break: break-all; background: var(--bg-soft); border-radius: 7px; padding: 7px 10px; }
.img-slot .ops { display: flex; gap: 8px; flex-wrap: wrap; }
.img-slot .ops button { border: none; font-family: inherit; font-size: 13px; cursor: pointer; padding: 7px 13px; border-radius: 8px; background: var(--bg-soft); color: var(--navy); }
.img-slot .ops button:hover { background: rgba(31, 94, 255, .1); color: var(--blue); }
.img-slot .ops button.primary { background: linear-gradient(135deg, #2f6bff, #1f4fd8); color: #fff; }
.img-slot .ops button.ghost { color: var(--text-light); }
.img-slot .hint { margin: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.media-item .thumb { aspect-ratio: 4 / 3; background: repeating-conic-gradient(#f0f3f8 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.media-item .info { padding: 8px 10px; font-size: 11.5px; color: var(--text-light); }
.media-item .info .nm { display: block; color: var(--navy); font-weight: 600; font-size: 12px; word-break: break-all; }
.media-item .acts { display: flex; gap: 6px; padding: 0 10px 10px; flex-wrap: wrap; }
.media-item .acts button { border: none; font-family: inherit; font-size: 11.5px; cursor: pointer; padding: 5px 9px; border-radius: 6px; background: var(--bg-soft); color: var(--navy); }
.media-item .acts button:hover { background: rgba(31, 94, 255, .1); color: var(--blue); }
.media-item .acts button.del { color: #d64541; }
.media-empty { text-align: center; color: var(--text-light); font-size: 14px; padding: 36px 0; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.picker-item { border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; transition: all .2s; }
.picker-item:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(31, 94, 255, .18); }
.picker-item .pt { aspect-ratio: 4 / 3; background: repeating-conic-gradient(#f0f3f8 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: flex; align-items: center; justify-content: center; }
.picker-item .pt img { width: 100%; height: 100%; object-fit: cover; }
.picker-item .pn { font-size: 11px; color: var(--text-light); padding: 6px 8px; word-break: break-all; }
.cover-picker { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cover-preview { width: 168px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: repeating-conic-gradient(#f0f3f8 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cover-preset { width: 62px; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--bg-soft); }
.cover-preset.on { border-color: var(--blue); }
.cover-preset img { width: 100%; height: 100%; object-fit: cover; }
.drop-zone { border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; font-size: 13px; color: var(--text-light); cursor: pointer; transition: all .2s; }
.drop-zone:hover, .drop-zone.over { border-color: var(--blue); background: rgba(31, 94, 255, .05); color: var(--blue); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .svc-grid, .news-grid, .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .about-brief, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 18px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(10, 31, 60, .12); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .svc-grid, .news-grid, .culture-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 130px 0 40px; }
  .section { padding: 66px 0; }
  .svc-block { grid-template-columns: 1fr; padding: 30px 24px; }
  .news-detail-wrap { padding: 30px 22px; }
  .form-card, .auth-card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-side { width: 64px; padding: 20px 8px; }
  .admin-side .brand-name, .admin-nav-btn span, .admin-side .foot { display: none; }
  .admin-nav-btn { justify-content: center; }
  .admin-main { padding: 20px 14px 60px; }
  .lang-switch button { padding: 4px 9px; font-size: 11.5px; }
  .lang-tabs button { padding: 6px 12px; font-size: 12.5px; }
}
