/* ============================================================
   山东隆欣建安工程有限公司 · 官网样式
   配色：深蓝（专业/工程）+ 金色（品质/荣誉）
   ============================================================ */

:root {
  --navy: #0d2b45;
  --navy-2: #143a5b;
  --navy-3: #0a2238;
  --gold: #c8a35a;
  --gold-2: #b08d45;
  --ink: #1b2733;
  --muted: #5b6b7b;
  --bg: #f6f8fb;
  --line: #e3e8ef;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 43, 69, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.unit { font-size: 0.6em; font-weight: 500; margin-left: 2px; }

/* ---------------- 头部 ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(13, 43, 69, 0.08);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark { height: 40px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-text strong {
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.brand-text small {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  position: relative;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active { color: var(--navy); }

.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.phone:hover { border-color: var(--gold); background: #fffdf8; }

.phone svg { width: 16px; height: 16px; fill: var(--gold-2); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy-3);
  padding: 140px 0 90px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  opacity: 0.55;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 34, 56, 0.97) 0%, rgba(10, 34, 56, 0.9) 42%, rgba(10, 34, 56, 0.55) 70%, rgba(10, 34, 56, 0.35) 100%),
    radial-gradient(60% 60% at 80% 20%, rgba(200, 163, 90, 0.16), transparent 70%);
}

.hero-inner { position: relative; z-index: 2; }

.hero-copy { max-width: 640px; color: #fff; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-desc {
  margin: 0 0 30px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: #1c1608; }
.btn-gold:hover { background: #d4b26d; }

.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy { background: var(--navy); color: #fff; margin-top: 10px; }
.btn-navy:hover { background: var(--navy-2); }

.hero-facts {
  display: flex;
  gap: 44px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-facts li { display: flex; flex-direction: column; }

.hero-facts strong {
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
  font-weight: 700;
}

.hero-facts span { font-size: 13px; color: rgba(255, 255, 255, 0.65); margin-top: 8px; }

/* ---------------- 数据条 ---------------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
}

.stat { text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }

.stat strong { display: block; font-size: 30px; color: var(--navy); line-height: 1.1; }

.stat span { font-size: 13px; color: var(--muted); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 88px 0; }

.section-alt { background: var(--bg); }

.section-head { max-width: 720px; margin-bottom: 46px; }

.section-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold-2);
  font-weight: 600;
}

.section h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 34px); color: var(--navy); letter-spacing: 0.02em; }

.section-desc { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------------- 业务卡片 ---------------- */
.cards { display: grid; gap: 22px; }

.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(200, 163, 90, 0.5);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fbf7ee;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; fill: var(--gold-2); }

.card h3 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }

.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; }

/* ---------------- 资质 ---------------- */
.qual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.qual-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.qual-block h3 { margin: 0 0 16px; font-size: 17px; color: var(--navy); }

.check-list { list-style: none; margin: 0; padding: 0; }

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.check-list b { color: var(--ink); }

.qual-meta { margin: 14px 0 0; font-size: 12px; color: #93a1b0; }

.qual-block.highlight { background: var(--navy); border-color: var(--navy); }
.qual-block.highlight h3 { color: #fff; }
.qual-block.highlight p { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 14px; }

/* ---------------- 业绩 ---------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.project-media { aspect-ratio: 16 / 9; overflow: hidden; background: #e9eef4; }

.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }

.project:hover .project-media img { transform: scale(1.04); }

.project-body { padding: 20px 22px 24px; }

.project-year { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em; color: var(--gold-2); font-weight: 600; }

.project h3 { margin: 0; font-size: 16px; line-height: 1.6; color: var(--navy); font-weight: 600; }

.table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.table-head h3 { margin: 0; font-size: 17px; color: var(--navy); }

.table-filter { display: flex; align-items: center; gap: 10px; }

.filter-label { font-size: 13px; color: var(--muted); }

.year-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6b7b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 8px 34px 8px 12px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.year-select:focus { outline: none; border-color: var(--gold); }

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover { border-color: var(--gold); color: var(--navy); }

.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.table-wrap { overflow-x: auto; }

.projects-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }

.projects-table th,
.projects-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }

.projects-table th { font-size: 12px; letter-spacing: 0.08em; color: #8b98a6; font-weight: 600; background: #fafbfd; }

.projects-table td { color: var(--ink); }

.projects-table tbody tr:hover { background: #fbfcfe; }

.projects-table .num,
.projects-table .date { white-space: nowrap; text-align: right; color: var(--muted); }

.projects-table td:nth-child(1) { color: #a6b1bd; width: 44px; }

.table-note { margin: 0; font-size: 12px; color: #93a1b0; }

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--navy); }

.page-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.page-btn:disabled { color: #c3ccd6; cursor: not-allowed; background: #fafbfd; }

.page-ellipsis { color: #a6b1bd; font-size: 13px; padding: 0 4px; }

/* ---------------- 关于 ---------------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: start; }

.about-copy p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }

.about-copy h2 { margin-bottom: 18px; }

.about-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.about-panel h3 { margin: 0 0 18px; font-size: 17px; color: var(--navy); }

.info-list { margin: 0; }

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.info-list div:last-child { border-bottom: 0; }

.info-list dt { color: var(--muted); margin: 0; }

.info-list dd { margin: 0; color: var(--navy); font-weight: 600; }

/* ---------------- 联系 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-card h3 { margin: 0 0 16px; font-size: 17px; color: var(--navy); }

.contact-phone { margin: 0 0 18px; font-size: 30px; font-weight: 700; letter-spacing: 0.02em; }

.contact-phone a { color: var(--navy); }
.contact-phone a:hover { color: var(--gold-2); }

.contact-list { list-style: none; margin: 0; padding: 0; }

.contact-list li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }

.contact-list .label { flex: 0 0 120px; color: #93a1b0; }

.contact-cta { background: var(--navy); border-color: var(--navy); }
.contact-cta h3 { color: #fff; }
.contact-cta p { color: rgba(255, 255, 255, 0.78); font-size: 14px; margin: 0 0 20px; }
.contact-cta .contact-note { margin: 16px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, 0.72); padding: 44px 0 30px; }

.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

.footer-brand { display: flex; gap: 14px; align-items: center; }

.footer-mark { height: 44px; width: auto; filter: brightness(0) invert(1) opacity(0.85); }

.footer-brand strong { color: #fff; font-size: 16px; letter-spacing: 0.04em; }

.footer-brand p { margin: 4px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.footer-meta { text-align: right; font-size: 13px; }

.footer-meta p { margin: 0 0 6px; }

.copyright { margin-top: 14px !important; font-size: 12px; color: rgba(255, 255, 255, 0.4); }

/* ---------------- 返回顶部 ---------------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 40;
}

.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); background: var(--navy-2); }

/* ---------------- 入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .project, .back-top { transition: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .header-inner { height: 66px; }
  .nav { gap: 20px; }
  .phone { display: none; }
  .hero { padding: 120px 0 70px; min-height: auto; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(13, 43, 69, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid #f1f4f8; }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .hero { padding: 104px 0 56px; }
  .hero-media { width: 100%; opacity: 0.3; }
  .hero-desc { font-size: 15px; }
  .hero-facts { gap: 26px; padding-top: 20px; }
  .hero-facts strong { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 24px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .cards-3, .qual-grid, .project-grid, .contact-grid { grid-template-columns: 1fr; }
  .table-card { padding: 18px; }
  .contact-phone { font-size: 26px; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
