/* ============ 基础 ============ */
:root {
  --ink: #1c2128;
  --ink-2: #3a4351;
  --muted: #6b7686;
  --line: #e5e8ee;
  --bg: #f6f7f9;
  --card: #ffffff;
  --primary: #1f3a5f;      /* 深钢蓝 */
  --primary-dark: #16283f;
  --accent: #e8590c;       /* 炉火橙 */
  --accent-dark: #c74a08;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(28, 33, 40, .08);
  --shadow-lg: 0 14px 40px rgba(28, 33, 40, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .en {
  display: block; font-size: 12px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.section-head h2 { font-size: 30px; color: var(--primary); margin-top: 4px; }
.section-head .bar { width: 44px; height: 3px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }
.section-head p.desc { color: var(--muted); margin-top: 12px; }

/* ============ 顶部 ============ */
.topbar { background: var(--primary-dark); color: #cfd8e3; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; padding: 6px 0; }
.topbar a:hover { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary) 0%, #35577f 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; letter-spacing: 1px;
}
.logo-text .cn { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: .5px; white-space: nowrap; }
.logo-text .en { font-size: 10px; color: var(--muted); letter-spacing: .2px; white-space: nowrap; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--ink-2);
  transition: all .2s;
}
.nav a:hover { color: var(--accent); background: #fff4ec; }
.nav a.active { color: var(--accent); font-weight: 700; background: #fff4ec; }
.nav .nav-cta {
  background: var(--accent); color: #fff; font-weight: 600;
}
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* ============ Banner ============ */
.banner { position: relative; height: 520px; overflow: hidden; background: var(--primary-dark); }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  display: flex; align-items: center;
}
.slide.on { opacity: 1; }
.slide .bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(232, 89, 12, .35), transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 85%, rgba(53, 87, 127, .6), transparent 60%),
    linear-gradient(120deg, #10192a 0%, #1f3a5f 55%, #2a4a72 100%);
}
.slide .grid-lines {
  position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 72px 72px;
}
.slide .container { position: relative; color: #fff; }
.slide .tag {
  display: inline-block; padding: 4px 14px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; font-size: 13px; letter-spacing: 3px; margin-bottom: 18px;
}
.slide h1 { font-size: 44px; line-height: 1.3; letter-spacing: 2px; max-width: 720px; }
.slide p.sub { margin-top: 16px; font-size: 17px; color: #c9d4e2; max-width: 640px; }
.slide .btn-row { margin-top: 32px; display: flex; gap: 14px; }
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 8px; font-size: 15px;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-accent { background: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.banner-dots { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; z-index: 5; }
.banner-dots span {
  display: inline-block; width: 32px; height: 4px; margin: 0 5px; border-radius: 2px;
  background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s;
}
.banner-dots span.on { background: var(--accent); }

/* ============ 数据条 ============ */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; gap: 20px; padding: 36px 0; }
.stat { text-align: center; }
.stat .num { font-size: 38px; font-weight: 800; color: var(--primary); }
.stat .num b { color: var(--accent); }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ============ 关于 ============ */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.about-visual {
  border-radius: var(--radius); min-height: 340px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(232,89,12,.4), transparent 55%),
    linear-gradient(150deg, #22344c, #10192a);
  box-shadow: var(--shadow-lg);
}
.about-visual .hex {
  position: absolute; color: rgba(255,255,255,.14); font-weight: 800;
}
.about-text h3 { font-size: 24px; color: var(--primary); margin-bottom: 16px; }
.about-text p { color: var(--ink-2); margin-bottom: 14px; text-align: justify; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 18px; }
.about-points span { color: var(--ink-2); font-size: 14px; }
.about-points span::before { content: "✔"; color: var(--accent); margin-right: 8px; font-weight: 700; }

/* ============ 优势卡片 ============ */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); transition: all .25s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.adv-card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin-bottom: 16px;
  background: linear-gradient(135deg, #fff0e6, #ffe0cc);
}
.adv-card h4 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.adv-card p { color: var(--muted); font-size: 14px; }

/* ============ 产品 ============ */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: all .25s; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-thumb {
  height: 170px; position: relative; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 44px; font-weight: 800; letter-spacing: 2px;
}
.prod-thumb small { position: absolute; bottom: 10px; right: 14px; font-size: 11px; opacity: .55; letter-spacing: 2px; }
.prod-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.prod-body h4 { font-size: 18px; color: var(--primary); }
.prod-body p { color: var(--muted); font-size: 14px; margin-top: 8px; flex: 1; }
.prod-body .more { margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 600; }
.prod-body .more:hover { text-decoration: underline; }

/* ============ 招标公示（首页预览 & 列表页通用） ============ */
.tender-list { display: flex; flex-direction: column; gap: 14px; }
.tender-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 22px;
  transition: all .2s; cursor: pointer;
}
.tender-item:hover { box-shadow: var(--shadow); border-color: #f3c4a8; transform: translateX(4px); }
.tender-date {
  flex: none; width: 74px; text-align: center; background: #f4f6fa;
  border-radius: 8px; padding: 10px 4px;
}
.tender-date .d { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.tender-date .ym { font-size: 12px; color: var(--muted); }
.tender-info { flex: 1; min-width: 0; }
.tender-info h4 { font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tender-info h4:hover { color: var(--accent); }
.tender-meta { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.badge-cat { background: #eef3f9; color: var(--primary); }
.badge-open { background: #e7f6ec; color: #1e7e3e; }
.badge-closed { background: #f0f1f3; color: #8a93a0; }
.badge-accent { background: #fff0e6; color: var(--accent); }
.tender-go { flex: none; color: var(--muted); font-size: 20px; }

/* 筛选栏 */
.filter-bar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-bar select, .filter-bar input[type="text"] {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
  color: var(--ink); background: #fff; outline: none; min-width: 130px;
}
.filter-bar input[type="text"] { flex: 1; min-width: 200px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent); }
.filter-tabs { display: flex; gap: 6px; }
.filter-tabs button {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer;
}
.filter-tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ 新闻 ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; cursor: pointer;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { height: 150px; position: relative; display: flex; align-items: center; justify-content: center; }
.news-thumb .ico { font-size: 44px; }
.news-body { padding: 20px 22px 24px; }
.news-body .date { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.news-body h4 { font-size: 16.5px; color: var(--primary); margin: 8px 0; line-height: 1.5; }
.news-body p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 页脚 ============ */
.footer { background: var(--primary-dark); color: #aab7c6; margin-top: 40px; }
.footer .main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding: 52px 0 40px; }
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer p, .footer a { font-size: 13.5px; line-height: 2; }
.footer a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 12.5px; }

/* ============ 内页 banner ============ */
.page-banner {
  background:
    radial-gradient(ellipse 55% 90% at 85% 10%, rgba(232,89,12,.3), transparent 60%),
    linear-gradient(115deg, #10192a, #1f3a5f 70%);
  color: #fff; padding: 56px 0 44px;
}
.page-banner .crumb { font-size: 13px; color: #9fb0c4; margin-bottom: 10px; }
.page-banner h1 { font-size: 32px; letter-spacing: 2px; }

/* ============ 招标详情 ============ */
.detail-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.detail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.detail-card h1 { font-size: 26px; color: var(--primary); line-height: 1.5; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 16px 0; margin: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.detail-meta b { color: var(--ink-2); font-weight: 600; }
.detail-content { white-space: pre-wrap; color: var(--ink-2); font-size: 15px; }
.detail-content h4 { color: var(--primary); margin: 10px 0 4px; }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-box .hd {
  background: linear-gradient(135deg, var(--primary), #35577f); color: #fff;
  padding: 16px 22px; font-weight: 700; font-size: 16px;
}
.contact-box .bd { padding: 20px 22px; }
.contact-row { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.contact-row:last-child { border-bottom: none; }
.contact-row .k { color: var(--muted); display: block; font-size: 12.5px; }
.contact-row .v { color: var(--ink); font-weight: 600; }
.notice-tip { margin-top: 16px; background: #fff8f3; border: 1px solid #f6d8c2; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #8a5a30; }

/* ============ 表单 ============ */
.form-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.form-item label .req { color: var(--accent); margin-left: 2px; }
.form-item input, .form-item select, .form-item textarea {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
  font-family: inherit; color: var(--ink); outline: none; background: #fff;
}
.form-item textarea { resize: vertical; min-height: 180px; line-height: 1.7; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--accent); }
.form-actions { margin-top: 22px; display: flex; gap: 12px; }

/* ============ 管理后台 ============ */
.admin-bg { min-height: 100vh; background: linear-gradient(135deg, #10192a, #1f3a5f); display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.login-card { background: #fff; border-radius: 14px; padding: 44px 40px; width: 420px; max-width: 100%; box-shadow: var(--shadow-lg); }
.login-card .logo-mark { margin: 0 auto 18px; width: 56px; height: 56px; font-size: 24px; }
.login-card h1 { text-align: center; font-size: 22px; color: var(--primary); margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.login-card input { width: 100%; margin-bottom: 16px; }
.error-msg { background: #fdeceb; color: #b3261e; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; display: none; }
.ok-msg { background: #e7f6ec; color: #1e7e3e; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; display: none; }

.admin-shell { min-height: 100vh; background: var(--bg); }
.admin-top { background: var(--primary-dark); color: #fff; }
.admin-top .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.admin-top .who { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #c3cedd; }
.admin-body { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0 48px; }
.admin-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; height: fit-content; }
.admin-side button {
  display: block; width: 100%; text-align: left; padding: 11px 16px; border: none; background: none;
  border-radius: 8px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; margin-bottom: 4px;
}
.admin-side button.on { background: #fff0e6; color: var(--accent); font-weight: 700; }
.admin-main { min-width: 0; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; }
.admin-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fafbfc; }
.td-title { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink); }
.td-actions { white-space: nowrap; }
.td-actions button {
  padding: 5px 12px; margin-right: 6px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; color: var(--ink-2);
}
.td-actions button:hover { border-color: var(--accent); color: var(--accent); }
.td-actions button.del:hover { border-color: #d33; color: #d33; }

.empty-tip { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* ============ 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.contact-card .ico {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #35577f); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.contact-card h4 { color: var(--primary); font-size: 16px; margin-bottom: 6px; }
.contact-card p { color: var(--ink-2); font-size: 14px; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .slide h1 { font-size: 32px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .adv-grid, .prod-grid, .news-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .detail-wrap { grid-template-columns: 1fr; }
  .footer .main { grid-template-columns: 1fr 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .header .container { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
  .nav { flex-wrap: wrap; }
  .banner { height: 420px; }
}
@media (max-width: 620px) {
  .adv-grid, .prod-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .tender-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .detail-card { padding: 24px 20px; }
  .footer .main { grid-template-columns: 1fr; }
}
