/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --main: #0f3460;
  --navy: #0a2540;
  --light: #1a508b;
  --accent: #ef8a24;
  --gray: #f3f5f8;
  --line: #e3e8ef;
  --text: #2b3440;
  --muted: #6b7684;
}
html { scroll-behavior: smooth; }
body {
  color: var(--text);
  line-height: 1.7;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 通用按钮 ========== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s ease; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--main); color: #fff; }
.btn-primary:hover { background: var(--light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #dd7d18; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ========== 顶部导航 ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 37, 64, .55);
  backdrop-filter: blur(6px);
  transition: background .25s ease;
}
.site-header.scrolled { background: rgba(10, 37, 64, .96); box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-logo {
  height: 42px; width: auto; display: block;
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255,255,255,.88); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-login {
  background: var(--accent); color: #fff !important; padding: 8px 18px; border-radius: 6px; font-weight: 600;
}
.nav-login:hover { background: #dd7d18; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }

/* ========== 首屏 ========== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  transform: scale(1.02);
}
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,48,.55) 0%, rgba(8,26,48,.35) 45%, rgba(8,26,48,.75) 100%);
}
.hero-content { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 20px; width: 100%; }
.hero-eyebrow { font-size: 16px; letter-spacing: 6px; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.hero-title { font-size: 52px; line-height: 1.25; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-sub { font-size: 19px; color: rgba(255,255,255,.92); margin-bottom: 36px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--accent); }
.hero .btn-primary:hover { background: #dd7d18; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
}
.hero-scroll::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px;
  background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ========== 数据统计 ========== */
.stats { background: var(--navy); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stat-item strong { display: block; font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-item .unit { font-size: 20px; font-weight: 700; }
.stat-item span:last-child { font-size: 14px; color: rgba(255,255,255,.75); }

/* ========== 区块通用 ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-en { font-size: 13px; letter-spacing: 4px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.section-title { font-size: 32px; color: var(--main); font-weight: 800; position: relative; display: inline-block; }
.section-title::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -12px;
  width: 46px; height: 3px; background: var(--accent); border-radius: 2px;
}

/* ========== 公司简介 ========== */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.about-text p { margin-bottom: 18px; color: #3c4654; font-size: 15.5px; }
.about-qual { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.about-qual li {
  background: #eef3fa; color: var(--main); border: 1px solid #d6e2f1;
  padding: 7px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
}
.about-figure { cursor: pointer; }
.about-figure img { border-radius: 10px; box-shadow: 0 12px 34px rgba(15,52,96,.18); transition: transform .3s ease; }
.about-figure:hover img { transform: translateY(-3px); }

/* ========== 业务范围 ========== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border-radius: 10px; padding: 38px 28px; text-align: center;
  border: 1px solid var(--line); transition: all .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15,52,96,.14); border-color: #cfdcec; }
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 14px;
  background: rgba(239,138,36,.12); display: grid; place-items: center;
}
.service-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 19px; color: var(--main); margin-bottom: 12px; }
.service-card p { font-size: 14.5px; color: var(--muted); }

/* ========== 业绩展示 ========== */
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.project-card {
  position: relative; border-radius: 10px; overflow: hidden; background: var(--navy);
  box-shadow: 0 6px 20px rgba(15,52,96,.12); cursor: pointer;
}
.project-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.project-card:hover img { transform: scale(1.07); }
.project-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  color: #fff; font-size: 14.5px; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(8,26,48,.92));
}
.milestone { margin-top: 56px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px 38px; }
.milestone-title { color: var(--main); font-size: 20px; margin-bottom: 20px; }
.milestone-list li {
  display: flex; gap: 18px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: #3c4654;
}
.milestone-list li:last-child { border-bottom: none; }
.milestone-list span {
  flex: 0 0 56px; color: var(--accent); font-weight: 700;
}

/* ========== 合作单位 ========== */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 20px; text-align: center; font-size: 16px; font-weight: 600; color: var(--main);
  transition: all .2s;
}
.partner-grid li:hover { border-color: var(--accent); color: var(--accent); }

/* ========== 联系我们 ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-box {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px;
}
.contact-box h3 { color: var(--main); font-size: 19px; margin-bottom: 16px; }
.contact-box p { color: #3c4654; margin-bottom: 10px; font-size: 15px; }
.contact-people { list-style: none; margin-top: 14px; }
.contact-people li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px;
}
.contact-people li:last-child { border-bottom: none; }
.cp-role { color: #3c4654; }
.cp-tel { color: var(--main); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cp-tel:hover { color: var(--accent); }

/* ========== 图片放大灯箱 ========== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 48px;
  background: rgba(6,20,38,.9);
}
.lightbox.show { display: flex; }
.lightbox-inner { max-width: 1100px; width: 100%; text-align: center; }
.lightbox-inner img {
  max-width: 100%; max-height: 82vh; border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.lightbox-inner figcaption { color: #fff; margin-top: 16px; font-size: 16px; font-weight: 600; }
.lightbox-close {
  position: absolute; top: 22px; right: 30px; width: 46px; height: 46px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.14);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: var(--accent); }

/* ========== 页脚 ========== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 14px; flex-wrap: wrap; gap: 10px; }
.site-footer a { color: var(--accent); font-weight: 600; }

/* ========== 登录页 ========== */
.login-wrap { min-height: 100vh; background: var(--gray); display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 420px; background: #fff; padding: 36px 32px; border-radius: 12px; box-shadow: 0 8px 30px rgba(15,52,96,.12); }
.login-card h2 { text-align: center; color: var(--main); margin-bottom: 26px; font-size: 24px; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14.5px; }
.form-item input, .form-item select {
  width: 100%; padding: 12px 14px; border: 1px solid #d3dae3; border-radius: 7px; font-size: 15px; outline: none; transition: border .2s;
}
.form-item input:focus, .form-item select:focus { border-color: var(--light); }
.submit-btn {
  width: 100%; padding: 13px; background: var(--main); color: #fff; border: none; border-radius: 7px;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.submit-btn:hover { background: var(--light); }
.back-home { display: block; text-align: center; margin-top: 18px; color: var(--light); font-size: 14px; }
.remember-row { display: flex; align-items: center; margin: -4px 0 16px; }
.remember-label { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #44505f; cursor: pointer; user-select: none; }
.remember-label input { width: 16px; height: 16px; accent-color: var(--main); cursor: pointer; margin: 0; }

/* ========== 管理员后台 ========== */
.admin-wrap { padding: 28px 24px; max-width: 1150px; margin: 0 auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.admin-top h2 { color: var(--main); }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(15,52,96,.08); }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; }
th { background: var(--main); color: #fff; font-weight: 600; }
.btn-sm { padding: 7px 12px; border: none; border-radius: 5px; color: #fff; cursor: pointer; margin: 0 3px; font-size: 13px; }
.btn-add { background: #208b57; }
.btn-reset { background: #d48806; }
.btn-off { background: #c53030; }
.btn-plain { background: #5b6673; }
.btn-work { background: var(--main); }
.btn-work:hover { background: var(--light); }
.modal { display: none; position: fixed; inset: 0; background: rgba(10,25,40,.5); align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal.active { display: flex; }
.modal-content { background: #fff; padding: 28px; border-radius: 12px; width: 100%; max-width: 420px; }
.modal-content h3 { color: var(--main); margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .submit-btn { margin: 0; }
.table-scroll { overflow-x: auto; border-radius: 10px; }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10,37,64,.98); padding: 10px 24px 20px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-login { margin: 14px 0 4px; text-align: center; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .service-grid { grid-template-columns: 1fr; gap: 18px; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .milestone { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card img { height: 210px; }
  .partner-grid { grid-template-columns: 1fr; }
  .admin-wrap { padding: 16px 12px; }
  th, td { padding: 10px 8px; font-size: 13px; }
}
