/* 凌工智能官网 — 简约大气风格 */
:root {
  --primary: #0f2b52;
  --primary-dark: #0a1f3d;
  --accent: #1f6feb;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(15, 43, 82, 0.08);
}
* { 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: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; color: var(--primary); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px;
}
.logo small { display: block; font-size: 11px; color: var(--text-light); font-weight: 400; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--text); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-auth { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 6px;
  font-size: 14px; cursor: pointer; border: 1px solid transparent;
  transition: all 0.2s ease; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { color: var(--text-light); }
.btn-ghost:hover { color: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 31, 61, 0.92) 20%, rgba(10, 31, 61, 0.55) 60%, rgba(10, 31, 61, 0.25) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-tag { font-size: 14px; letter-spacing: 4px; color: #9cc2ff; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.3; font-weight: 700; max-width: 640px; }
.hero p { margin: 22px 0 34px; font-size: 17px; color: #d7e3f5; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; }
.hero .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--primary); }

/* ===== 通用区块 ===== */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .en { font-size: 13px; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; }
.section-head h2 { font-size: 34px; color: var(--primary); margin: 10px 0 14px; font-weight: 700; }
.section-head p { color: var(--text-light); max-width: 640px; margin: 0 auto; }
.divider { width: 48px; height: 3px; background: var(--accent); margin: 18px auto 0; border-radius: 2px; }

/* ===== 数据带 ===== */
.stats-band { background: var(--primary); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 40px; font-weight: 800; color: #7db3ff; }
.stat-label { font-size: 14px; color: #c3d5ef; margin-top: 6px; }

/* ===== 卡片 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; }
.card-cat { font-size: 12px; color: var(--accent); letter-spacing: 1px; }
.card-title { font-size: 17px; font-weight: 600; color: var(--primary); margin: 6px 0 8px; }
.card-desc { font-size: 14px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 服务卡片 */
.svc-card { padding: 34px 28px; text-align: left; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(31,111,235,0.12), rgba(15,43,82,0.12));
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.svc-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--text-light); }

/* ===== 关于页 ===== */
.about-lead { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-lead img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-lead h2 { font-size: 30px; color: var(--primary); margin-bottom: 20px; }
.about-lead p { color: var(--text-light); margin-bottom: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  text-align: center; padding: 40px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
}
.value-card .vc-char {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.value-card h3 { color: var(--primary); font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-light); }

/* 发展历程时间线 */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: #d6e2f5; }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(31,111,235,0.15);
}
.tl-item h3 { color: var(--primary); font-size: 17px; margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--text-light); }

/* 资质荣誉 */
.honor-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.honor-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 16px; text-align: center; font-size: 15px; color: var(--primary); font-weight: 600;
}
.honor-item span { display: block; font-size: 30px; margin-bottom: 10px; }

/* ===== 产品页筛选 ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-size: 14px; color: var(--text-light); cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-tip { text-align: center; color: var(--text-light); padding: 60px 0; grid-column: 1 / -1; }

/* ===== 联系页 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item .ci-icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: rgba(31,111,235,0.1); display: flex; align-items: center; justify-content: center;
}
.contact-info-item .ci-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.contact-info-item h3 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--text-light); }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: inherit; transition: border 0.2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,111,235,0.12); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-msg { font-size: 14px; margin-top: 6px; }
.form-msg.ok { color: #059669; }
.form-msg.err { color: #dc2626; }

/* ===== 登录页 ===== */
.auth-wrap { max-width: 440px; margin: 70px auto 90px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 38px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 28px; background: var(--bg-soft); padding: 5px; border-radius: 8px; }
.auth-tab {
  flex: 1; text-align: center; padding: 9px 0; font-size: 14px; border-radius: 6px;
  cursor: pointer; color: var(--text-light); border: none; background: none;
}
.auth-tab.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 2px 8px rgba(15,43,82,0.08); }
.auth-title { font-size: 22px; color: var(--primary); text-align: center; margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--text-light); text-align: center; margin-bottom: 26px; }
.code-row { display: flex; gap: 10px; }
.code-row .form-control { flex: 1; }
.code-row .btn { flex: none; white-space: nowrap; }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 16px; }
.auth-links a { color: var(--accent); cursor: pointer; }
.hidden { display: none !important; }

/* ===== 管理后台 ===== */
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-head h1 { font-size: 24px; color: var(--primary); }
.admin-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 30px; }
.admin-section h2 { font-size: 18px; color: var(--primary); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--text-light); font-weight: 500; font-size: 13px; }
.table img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.table .ops button { margin-right: 8px; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-danger { color: #dc2626; border-color: #fecaca; background: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: rgba(31,111,235,0.1); color: var(--accent); }

/* ===== 页脚 ===== */
.site-footer { background: var(--primary-dark); color: #aebdd6; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid p, .footer-grid li { font-size: 14px; margin-bottom: 10px; list-style: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 13px; text-align: center; color: #7f93b3; }

/* ===== 新闻 ===== */
.news-card { display: flex; flex-direction: column; }
.news-cover { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-cover img { transform: scale(1.05); }
.news-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-light); }
.news-meta .badge { background: rgba(31,111,235,0.1); color: var(--accent); }
.news-title { font-size: 17px; font-weight: 600; color: var(--primary); margin: 10px 0 8px; line-height: 1.5; }
.news-summary { font-size: 14px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.news-more { font-size: 13px; color: var(--accent); margin-top: 14px; display: inline-block; }

/* 新闻列表行 */
.news-row {
  display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.news-row:hover { background: rgba(31,111,235,0.03); }
.news-row .nr-cover { flex: none; width: 240px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.news-row .nr-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-row .nr-body { flex: 1; display: flex; flex-direction: column; }
.news-row .news-title { margin: 8px 0 10px; }
.news-row .news-summary { -webkit-line-clamp: 2; }

/* 新闻详情文章 */
.article { max-width: 820px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 40px; }
.article-head h1 { font-size: 28px; color: var(--primary); line-height: 1.5; margin: 14px 0 12px; }
.article-head .news-meta { justify-content: center; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow); }
.article-content p { font-size: 15.5px; color: #374151; margin-bottom: 18px; line-height: 1.9; }
.article-back { text-align: center; margin-top: 48px; }

/* ===== 产品详情 ===== */
.pd-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.pd-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); }
.pd-img img { width: 100%; object-fit: cover; }
.pd-cat { font-size: 13px; color: var(--accent); letter-spacing: 2px; }
.pd-title { font-size: 30px; color: var(--primary); margin: 10px 0 18px; font-weight: 700; }
.pd-desc { font-size: 15.5px; color: var(--text-light); margin-bottom: 26px; }
.pd-actions { display: flex; gap: 14px; margin-top: 8px; }
.pd-features { list-style: none; }
.pd-features li {
  position: relative; padding: 8px 0 8px 30px; font-size: 15px; color: #374151;
  border-bottom: 1px dashed var(--border);
}
.pd-features li:last-child { border-bottom: none; }
.pd-features li::before {
  content: "✓"; position: absolute; left: 4px; top: 8px;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(31,111,235,0.12);
  color: var(--accent); font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.params-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.params-table th, .params-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.params-table th { width: 200px; color: var(--text-light); font-weight: 500; background: var(--bg-soft); }
.pd-section-title { font-size: 22px; color: var(--primary); margin: 0 0 24px; padding-left: 14px; border-left: 4px solid var(--accent); }
.pd-block { margin-top: 64px; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 28px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }

/* ===== 响应式（补充） ===== */
@media (max-width: 960px) {
  .pd-top { grid-template-columns: 1fr; }
  .news-row { flex-direction: column; }
  .news-row .nr-cover { width: 100%; }
}
@media (max-width: 640px) {
  .params-table th { width: 110px; }
}
@media (max-width: 960px) {
  .grid-4, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-lead, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .honor-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-auth { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border); align-items: flex-start;
  }
  .site-header.open .nav-auth { display: flex; position: absolute; top: 100%; left: 24px; margin-top: 190px; }
  .hero h1 { font-size: 30px; }
  .grid-3, .grid-4, .values-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .honor-list { grid-template-columns: repeat(2, 1fr); }
}
