/* 鹤山太平洋官网 · 原创样式（参照母公司版式骨架，素材与文案全部原创） */
:root {
  --blue-deep: #0a3d91;
  --blue-main: #1057b3;
  --blue-light: #eaf2fc;
  --accent: #f5b800;
  --text-main: #222b38;
  --text-sub: #6b7686;
  --line: #e3e8ef;
  --footer-bg: #0c2a55;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #0c2a55 0%, #0d3a78 60%, #1057b3 100%);
  box-shadow: 0 2px 10px rgba(4, 20, 48, .35);
}
.site-header .container { width: 100%; max-width: none; padding: 0 26px; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-img { height: 52px; width: auto; display: block; }
.brand-mark {
  font-size: 26px; font-weight: 800; letter-spacing: 4px; color: var(--blue-deep);
}
.brand-sub { font-size: 10px; letter-spacing: 3.4px; color: var(--text-sub); }
.main-nav { display: flex; gap: 8px; }
.main-nav a {
  padding: 8px 18px; font-size: 16px; color: #fff;
  border-bottom: 3px solid transparent; transition: color .2s;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: #fff; }

/* ===== 首屏轮播 ===== */
.hero { position: relative; height: 480px; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(5, 24, 56, .38); z-index: 1; }
.hero--video .hero-slide::before { display: none; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.hero-slide.active { opacity: 1; }
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide h1 { font-size: 46px; letter-spacing: 8px; font-weight: 800; text-shadow: 0 2px 14px rgba(4, 24, 60, .45); }
.hero-slide p { margin-top: 18px; font-size: 15px; letter-spacing: 5px; opacity: .85; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: var(--slide-bg, linear-gradient(120deg, #062a63 0%, #0a3d91 45%, #1057b3 100%));
  z-index: 1;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 90px; z-index: 3; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots button {
  width: 34px; height: 4px; border: none; border-radius: 2px;
  background: rgba(255, 255, 255, .4); cursor: pointer;
}
.hero-dots button.active { background: var(--accent); }

/* ===== 通用板块标题 ===== */
.section { padding: 64px 0 72px; }
.section.alt { background: #f7f9fc; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px; }
.section-head .bar { width: 14px; height: 30px; background: var(--accent); }
.section-head h2 { font-size: 30px; color: var(--text-main); letter-spacing: 2px; }
.section-head .en { font-size: 14px; color: #b9c2cf; letter-spacing: 2px; text-transform: uppercase; }
.section-head .more { margin-left: auto; font-size: 14px; color: var(--text-sub); }
.section-head .more:hover { color: var(--blue-main); }

/* ===== 要闻 ===== */
.news-layout { display: grid; grid-template-columns: 5fr 6fr; gap: 36px; }
.news-featured img { width: 100%; height: 300px; object-fit: cover; border-radius: 6px; }
.news-featured h3 { margin-top: 16px; font-size: 20px; }
.news-featured:hover h3 { color: var(--blue-main); }
.news-featured .date, .news-row .date { color: var(--text-sub); font-size: 14px; margin-right: 12px; white-space: nowrap; }
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: flex; align-items: center; padding: 15px 4px;
  border-bottom: 1px dashed var(--line); font-size: 16px;
}
.news-row:hover { color: var(--blue-main); }
.news-row .title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-tip { color: var(--text-sub); padding: 24px 0; font-size: 15px; }

/* ===== 项目风采卡片 ===== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(16, 40, 80, .08); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(16, 40, 80, .14); }
.project-card .cover { position: relative; height: 200px; background: var(--blue-light); }
.project-card .cover img, .project-card .cover video { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 2px 12px; border-radius: 12px; font-size: 12px; color: #fff;
  background: rgba(10, 61, 145, .85);
}
.tag.video { background: rgba(198, 40, 40, .85); }
.project-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project-card h3 { font-size: 17px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .meta { margin-top: auto; font-size: 13px; color: var(--text-sub); }

/* ===== 关于条 ===== */
.about-strip { display: grid; grid-template-columns: 7fr 4fr; gap: 40px; align-items: center; }
.about-strip h2 { font-size: 26px; margin-bottom: 16px; color: var(--blue-deep); }
.about-strip p { color: var(--text-sub); margin-bottom: 10px; }
.btn {
  display: inline-block; margin-top: 14px; padding: 10px 30px;
  background: var(--blue-main); color: #fff; border-radius: 4px; font-size: 15px;
}
.btn:hover { background: var(--blue-deep); }
.about-figure { border-radius: 8px; overflow: hidden; box-shadow: 0 8px 22px rgba(10, 61, 145, .18); }

/* ===== 内页头图 ===== */
.page-hero { background: linear-gradient(120deg, #062a63, #0a3d91 55%, #1057b3); color: #fff; padding: 56px 0; }
.page-hero h1 { font-size: 32px; letter-spacing: 4px; }
.page-hero p { margin-top: 8px; font-size: 13px; letter-spacing: 3px; opacity: .75; text-transform: uppercase; }

/* ===== 列表 / 详情 ===== */
.filter-tabs { display: flex; gap: 12px; margin-bottom: 28px; }
.filter-tabs button {
  padding: 7px 22px; border: 1px solid var(--line); background: #fff;
  border-radius: 20px; font-size: 14px; cursor: pointer; color: var(--text-sub);
}
.filter-tabs button.active { background: var(--blue-main); border-color: var(--blue-main); color: #fff; }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail { max-width: 860px; }
.detail h1 { font-size: 28px; margin-bottom: 10px; line-height: 1.5; }
.detail .meta { color: var(--text-sub); font-size: 14px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail .content p { margin: 14px 0; font-size: 16px; }
.detail .content img { margin: 18px 0; border-radius: 6px; }
.detail .content video { margin: 18px 0; border-radius: 6px; background: #000; }
.detail .video-embed { position: relative; padding-top: 56.25%; margin: 18px 0; }
.detail .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.back-link { display: inline-block; margin-top: 34px; color: var(--blue-main); font-size: 15px; }

/* ===== 联系页 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fff; border-radius: 8px; padding: 30px 26px; box-shadow: 0 2px 10px rgba(16, 40, 80, .08); }
.contact-card h3 { font-size: 17px; color: var(--blue-deep); margin-bottom: 12px; }
.contact-card p { color: var(--text-sub); font-size: 15px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--footer-bg); color: #9fb0cc; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding: 52px 0 40px; }
.footer-inner h4 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.footer-inner a { display: block; padding: 4px 0; font-size: 14px; }
.footer-inner a:hover { color: #fff; }
.footer-inner p { font-size: 14px; padding: 4px 0; }
.footer-brand .brand-mark { color: #fff; font-size: 22px; }
.footer-brand .brand-sub { color: #7288ab; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0;
  font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center;
}
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom img { height: 16px; width: auto; display: inline-block; }
.footer-bottom a:hover { color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #0c2a55; flex-direction: column; padding: 10px 0 16px;
    box-shadow: 0 12px 20px rgba(10, 30, 60, .12);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .brand-img { height: 36px; max-width: calc(100vw - 120px); object-fit: contain; }
  .site-header .container { padding: 0 16px; }
  .hero { height: 360px; }
  .hero-slide h1 { font-size: 30px; letter-spacing: 4px; }
  .news-layout, .about-strip { grid-template-columns: 1fr; }
  .project-grid, .list-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 44px 0 52px; }
}
