/* ============ 灵工云 · 京东红主题 ============ */
:root {
  --red: #E1251B;
  --red-dark: #c81623;
  --red-light: #fff1f0;
  --text: #1f2329;
  --text-2: #5c6470;
  --text-3: #9198a3;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #ececec;
  --shadow: 0 2px 12px rgba(31, 35, 41, .08);
  --shadow-lg: 0 8px 28px rgba(31, 35, 41, .12);
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: #fff; font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部通栏 ---------- */
.topbar { background: var(--red); color: #fff; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar a { color: rgba(255,255,255,.92); }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- 头部导航 ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand .brand-name { font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.brand .brand-name b { color: var(--red); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 8px 18px; border-radius: 6px; font-size: 15.5px; color: var(--text); transition: .2s; }
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); font-weight: 600; background: var(--red-light); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn svg { width: 26px; height: 26px; stroke: var(--text); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 26px; border-radius: 8px; border: 1px solid transparent;
  background: var(--red); color: #fff; font-size: 15px; cursor: pointer;
  transition: .2s; white-space: nowrap;
}
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: #fff; color: var(--red); border-color: var(--red); }
.btn.ghost:hover { background: var(--red-light); }
.btn.white { background: #fff; color: var(--red); }
.btn.white:hover { background: #ffe9e7; }
.btn.sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(115deg, #d61a10 0%, var(--red) 45%, #f0554c 100%); color: #fff; overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px; padding: 64px 0; }
.hero h1 { font-size: 40px; line-height: 1.3; font-weight: 700; letter-spacing: 1px; }
.hero p { margin-top: 18px; font-size: 16.5px; color: rgba(255,255,255,.92); max-width: 560px; }
.hero .hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hero-img { border-radius: 14px; box-shadow: var(--shadow-lg); }
.hero-tag { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); padding: 4px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 18px; }

/* ---------- 数据条 ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 0; gap: 10px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 32px; color: var(--red); font-weight: 700; }
.stat b sup { font-size: 15px; }
.stat span { color: var(--text-2); font-size: 13.5px; }

/* ---------- 区块 ---------- */
.section { padding: 66px 0; }
.section.alt { background: var(--bg); }
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-head h2 { font-size: 28px; font-weight: 700; }
.sec-head h2 i { font-style: normal; color: var(--red); }
.sec-head .sub { color: var(--text-2); margin-top: 10px; font-size: 15px; }
.sec-head .bar { width: 42px; height: 4px; background: var(--red); border-radius: 2px; margin: 14px auto 0; }

/* 服务卡片 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-card { background: var(--card); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); transition: .25s; border: 1px solid transparent; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #ffd9d6; }
.svc-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--red-light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc-icon svg { width: 28px; height: 28px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 18px; margin-bottom: 10px; }
.svc-card p { color: var(--text-2); font-size: 14px; }
.svc-card ul { margin-top: 12px; list-style: none; }
.svc-card ul li { font-size: 13.5px; color: var(--text-2); padding: 3px 0 3px 18px; position: relative; }
.svc-card ul li::before { content: ""; position: left; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); opacity: .75; }

/* 行业墙 */
.ind-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; }
.ind-item { background: #fff; border-radius: var(--radius); padding: 22px 8px; text-align: center; box-shadow: var(--shadow); transition: .25s; }
.ind-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ind-item .ico { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: var(--red-light); display: flex; align-items: center; justify-content: center; }
.ind-item .ico svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ind-item span { font-size: 14px; font-weight: 600; }

/* 案例卡片 */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: .25s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card .cover { height: 210px; overflow: hidden; background: var(--red-light); }
.case-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.case-card:hover .cover img { transform: scale(1.04); }
.case-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.tag { display: inline-block; background: var(--red-light); color: var(--red); font-size: 12px; padding: 2px 10px; border-radius: 4px; align-self: flex-start; }
.case-card h3 { font-size: 17px; margin: 10px 0 8px; }
.case-card p { color: var(--text-2); font-size: 13.5px; flex: 1; }
.case-card .more { color: var(--red); font-size: 13.5px; margin-top: 12px; font-weight: 600; }
.case-empty { text-align: center; color: var(--text-3); padding: 60px 0; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); position: relative; }
.step b { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; text-align: center; line-height: 40px; font-size: 18px; margin-bottom: 14px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-2); }

/* CTA */
.cta { background: linear-gradient(115deg, var(--red-dark), var(--red)); color: #fff; text-align: center; padding: 56px 0; }
.cta h2 { font-size: 26px; }
.cta p { margin: 12px 0 26px; color: rgba(255,255,255,.9); }

/* 关于页 */
.about-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.about-text p { margin-bottom: 16px; color: var(--text-2); text-align: justify; }
.about-text p:first-child { color: var(--text); font-weight: 600; }
.about-img { border-radius: 14px; box-shadow: var(--shadow-lg); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.value-card { background: #fff; padding: 26px 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.value-card h3 { font-size: 16px; color: var(--red); margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--text-2); }

/* 联系/留言 */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.field label em { color: var(--red); font-style: normal; margin-left: 2px; }
.field input, .field textarea, .field select {
  border: 1px solid #dcdfe4; border-radius: 8px; padding: 11px 14px; font-size: 14.5px;
  font-family: inherit; transition: .2s; outline: none; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,37,27,.1); }
.field textarea { min-height: 130px; resize: vertical; }
.form-foot { margin-top: 24px; text-align: center; }
.form-tip { color: var(--text-3); font-size: 12.5px; margin-top: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(20,22,26,.55); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: min(680px, 100%); max-height: 88vh; overflow: auto; position: relative; animation: pop .25s ease; }
.modal.narrow { width: min(460px, 100%); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 26px; color: var(--text-3); cursor: pointer; line-height: 1; }
.modal .modal-close:hover { color: var(--red); }
.modal .modal-head { padding: 22px 28px 0; }
.modal .modal-head h3 { font-size: 19px; }
.modal .modal-body { padding: 18px 28px 30px; }
.msg-form { display: grid; gap: 16px; }

/* 详情弹窗 */
.detail-cover { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.detail-meta { display: flex; gap: 10px; margin: 4px 0 12px; }
.detail-content p { color: var(--text-2); margin-bottom: 12px; text-align: justify; }

/* 一键留言浮窗 */
.float-msg { position: fixed; right: 22px; bottom: 96px; z-index: 150; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.float-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(145deg, var(--red), var(--red-dark)); color: #fff;
  box-shadow: 0 6px 20px rgba(225,37,27,.45); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; font-size: 12px; font-weight: 600;
  animation: breathe 2.6s ease-in-out infinite;
}
.float-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes breathe { 0%,100% { box-shadow: 0 6px 20px rgba(225,37,27,.45); } 50% { box-shadow: 0 6px 30px rgba(225,37,27,.75); } }
.go-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text-2); cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.go-top.show { display: flex; }

/* Toast */
.toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%) translateY(-16px); background: rgba(28,30,34,.92); color: #fff; padding: 12px 26px; border-radius: 8px; font-size: 14.5px; z-index: 300; opacity: 0; pointer-events: none; transition: .3s; max-width: 80vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok::before { content: "✓ "; color: #6ce26c; }
.toast.err::before { content: "✕ "; color: #ff8f87; }

/* 页脚 */
.footer { background: #23262b; color: #b7bcc4; margin-top: 0; }
.footer .main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 52px 0 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer .fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer .fbrand img { width: 34px; height: 34px; border-radius: 8px; }
.footer .fbrand b { color: #fff; font-size: 19px; }
.footer p, .footer a { font-size: 13.5px; line-height: 2; color: #b7bcc4; }
.footer a { display: block; }
.footer a:hover { color: #fff; }
.footer .copy { border-top: 1px solid #363a41; padding: 18px 0; text-align: center; font-size: 12.5px; color: #7d838c; }

/* ---------- 后台 ---------- */
.admin-page { background: var(--bg); min-height: 100vh; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #c81623, var(--red) 55%, #f0554c); }
.login-card { background: #fff; border-radius: 14px; padding: 44px 40px; width: min(400px, 92vw); box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 26px; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 210px; background: #23262b; color: #cfd3d9; padding: 22px 0; flex-shrink: 0; }
.admin-side .logo { display: flex; align-items: center; gap: 9px; padding: 0 20px 20px; color: #fff; font-weight: 700; font-size: 17px; border-bottom: 1px solid #363a41; margin-bottom: 12px; }
.admin-side .logo img { width: 30px; height: 30px; border-radius: 7px; }
.admin-side button.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; color: #cfd3d9; padding: 13px 22px; font-size: 14.5px; cursor: pointer; border-left: 3px solid transparent; }
.admin-side button.menu-item:hover { color: #fff; background: #2c3037; }
.admin-side button.menu-item.active { color: #fff; background: var(--red); border-left-color: #fff; }
.admin-main { flex: 1; padding: 26px 30px; overflow: auto; }
.admin-main h2 { font-size: 20px; margin-bottom: 20px; }
.panel { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 26px; margin-bottom: 22px; }
.panel h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-grid .full { grid-column: 1 / -1; }
.admin-actions { margin-top: 18px; display: flex; gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--text-2); background: #fafafa; font-weight: 600; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.badge.new { background: var(--red-light); color: var(--red); }
.badge.done { background: #e8f7ec; color: #1a9c4b; }
.case-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.case-row .t { font-weight: 600; }
.case-row .muted { color: var(--text-3); font-size: 12.5px; }
.logo-preview { width: 84px; height: 84px; border-radius: 12px; border: 1px dashed #dcdfe4; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fafafa; }
.logo-preview img { max-width: 100%; max-height: 100%; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .topbar .hide-m { display: none; }
  .menu-btn { display: block; }
  .nav { position: fixed; top: 100px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 4px; box-shadow: var(--shadow-lg); display: none; z-index: 99; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .hero .container { grid-template-columns: 1fr; padding: 44px 0; }
  .hero h1 { font-size: 28px; }
  .hero .hero-img { order: -1; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: repeat(4, 1fr); }
  .case-grid, .grid-2, .about-wrap { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer .main { grid-template-columns: 1fr; gap: 26px; }
  .form-grid, .admin-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .section { padding: 46px 0; }
  .float-msg { right: 14px; bottom: 80px; }
}
@media (max-width: 520px) {
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 24px; }
  .sec-head h2 { font-size: 22px; }
  .stat b { font-size: 26px; }
}

/* ---------- 公司动态 ---------- */
.news-card { background: #fff; border-radius: var(--radius); padding: 22px 24px 20px; box-shadow: var(--shadow); cursor: pointer; transition: .25s; display: flex; flex-direction: column; border-top: 3px solid transparent; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--red); }
.news-card .date { color: var(--text-3); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.news-card .date::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.news-card h3 { font-size: 16.5px; margin: 10px 0 8px; line-height: 1.5; }
.news-card p { color: var(--text-2); font-size: 13.5px; flex: 1; line-height: 1.7; }
.news-card .more { color: var(--red); font-size: 13px; margin-top: 12px; font-weight: 600; }
.news-empty { text-align: center; color: var(--text-3); padding: 60px 0; grid-column: 1 / -1; }

.news-detail-wrap { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 42px 46px; }
.news-detail-wrap h1 { font-size: 26px; line-height: 1.5; }
.news-meta { color: var(--text-3); font-size: 13px; margin: 14px 0 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line, #eee); }
.news-content { margin-top: 22px; }
.news-content p { color: var(--text-2); line-height: 1.95; margin-bottom: 14px; text-align: justify; font-size: 15px; }
.news-back { text-align: center; margin-top: 34px; }

@media (max-width: 900px) {
  .news-detail-wrap { padding: 28px 20px; }
  .news-detail-wrap h1 { font-size: 21px; }
}

/* ---------- 页脚版权备案 ---------- */
.copy #fbeian { color: inherit; margin-left: 12px; text-decoration: none; }
.copy #fbeian:hover { color: #fff; text-decoration: underline; }
