/* ============================================================
   中浚工程 · 品牌设计系统
   主色：品牌蓝（取自logo）  强调：品牌绿（取自logo）
   ============================================================ */
:root {
  --primary: #5a6ae4;
  --primary-2: #6e7cec;
  --primary-3: #93a0f2;
  --primary-dark: #4553cf;
  --primary-darker: #3640a8;
  --accent: #57a03a;
  --accent-dark: #488a30;
  --green: #9fe755;
  --green-light: #c9f09a;
  --ink: #1f2937;
  --ink-2: #374151;
  --muted: #6b7280;
  --muted-2: #9aa3af;
  --line: #e4e8f2;
  --line-2: #eef1fb;
  --bg: #f5f6fc;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 2px 10px rgba(55, 64, 168, 0.08);
  --shadow-hover: 0 10px 28px rgba(55, 64, 168, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.35; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

/* 布局容器 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }

/* 兼容旧 Tailwind 类名 */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

/* ============ 顶部信息条 ============ */
.topbar {
  background: var(--primary-dark);
  color: #cdd9ea;
  font-size: 13px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.topbar a:hover { color: #fff; }
.topbar .tb-left span, .topbar .tb-right span { margin-right: 22px; }
.topbar i { margin-right: 6px; color: var(--green); }

/* ============ 导航 ============ */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 6px rgba(55, 64, 168, 0.10);
  position: sticky; top: 0; z-index: 100;
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between; height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .brand-logo {
  height: 54px; width: auto; flex: none; object-fit: contain;
}
.brand .brand-name { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.brand .brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 15.5px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap;
  border-radius: 6px;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 3px; background: var(--accent);
  transform: translateX(-50%); transition: width .22s; border-radius: 2px;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 22px; }
.nav-item { position: relative; }
.submenu {
  position: absolute; left: 0; top: calc(100% + 6px);
  background: #fff; min-width: 190px;
  border-radius: 8px; box-shadow: var(--shadow-hover);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s; z-index: 50;
}
.nav-item:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: 9px 14px; font-size: 14px;
  color: var(--ink-2); border-radius: 6px;
}
.submenu a:hover { background: var(--line-2); color: var(--primary); }

.header-search { display: flex; align-items: center; margin-left: 10px; }
.search-input {
  height: 40px; width: 168px;
  border: 1px solid var(--line); border-right: none;
  border-radius: 6px 0 0 6px; padding: 0 12px; font-size: 14px;
  background: var(--line-2);
}
.search-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 26px; color: var(--primary); cursor: pointer;
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px 0; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 22px; font-size: 15px; }
.mobile-menu a.sub { padding-left: 40px; font-size: 14px; color: var(--muted); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 22px; height: 42px; border-radius: 6px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.btn-light { background: var(--line-2); color: var(--ink-2); }
.btn-light:hover { background: var(--line); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }

/* ============ 卡片 ============ */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line-2);
}
.card-pad { padding: 26px; }

/* ============ 板块标题 ============ */
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 {
  position: relative; display: inline-block;
  font-size: 28px; color: var(--primary); padding-bottom: 14px;
}
.section-head h2::before {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 54px; height: 4px; background: var(--accent);
  transform: translateX(-50%); border-radius: 2px;
}
.section-head p { color: var(--muted); margin-top: 12px; font-size: 14.5px; letter-spacing: 1px; }
.section-head.left { text-align: left; }
.section-head.left h2 { padding-left: 16px; }
.section-head.left h2::before { left: 0; transform: none; width: 5px; height: 24px; top: 4px; }

/* ============ 首屏轮播 ============ */
.hero { position: relative; overflow: hidden; background: var(--primary-dark); }
.hero-track { display: flex; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.hero-slide {
  position: relative; flex: 0 0 100%; min-width: 100%;
  height: 520px;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(38,45,120,.86) 0%, rgba(54,64,168,.55) 45%, rgba(54,64,168,.25) 100%);
}
.hero-inner { position: relative; color: #fff; max-width: 660px; }
.hero-inner .hero-tag {
  display: inline-block; padding: 5px 14px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px; font-size: 13px; letter-spacing: 2px; margin-bottom: 20px;
}
.hero-inner h1 { color: #fff; font-size: 44px; line-height: 1.28; margin-bottom: 18px; }
.hero-inner p { font-size: 17px; color: #d8e2f0; margin-bottom: 30px; line-height: 1.8; }
.hero-actions .btn { margin-right: 14px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 20px; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.45); padding: 0; transition: all .2s;
}
.hero-dots button.active { background: var(--accent); width: 28px; border-radius: 6px; }

/* ============ 服务板块 ============ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 34px 24px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line-2);
  position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(90,106,228,.12), rgba(110,124,236,.18));
  color: var(--primary); font-size: 30px;
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ============ 公司简介 ============ */
.about-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-photo img { width: 100%; height: 420px; object-fit: cover; }
.about-photo::after {
  content: ""; position: absolute; right: -18px; bottom: -18px;
  width: 120px; height: 120px;
  border-right: 6px solid var(--green); border-bottom: 6px solid var(--green);
  border-radius: 0 0 var(--radius-lg) 0;
}
.about-text h2 { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.about-text .lead { color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.about-text p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.9; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 26px 0; }
.about-stats .stat { text-align: center; background: var(--line-2); border-radius: 8px; padding: 18px 8px; }
.about-stats .stat b { display: block; font-size: 26px; color: var(--primary); font-weight: 800; }
.about-stats .stat span { font-size: 13px; color: var(--muted); }

/* ============ 新闻中心 ============ */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.news-col h3 {
  font-size: 19px; color: var(--primary); margin-bottom: 18px;
  padding-left: 14px; border-left: 4px solid var(--accent);
}
.news-item {
  display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.news-item:last-child { border-bottom: none; }
.date-badge {
  flex: none; width: 58px; height: 58px; border-radius: 8px;
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  color: #fff; text-align: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.date-badge .d { font-size: 21px; font-weight: 800; line-height: 1; }
.date-badge .m { font-size: 12px; opacity: .85; margin-top: 3px; }
.news-body { min-width: 0; flex: 1; }
.news-body a.title {
  display: block; font-size: 15.5px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-body a.title:hover { color: var(--primary); }
.news-body .meta { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  font-size: 12px; background: rgba(87,160,58,.12); color: var(--accent); margin-right: 8px;
}
.tag.blue { background: rgba(90,106,228,.12); color: var(--primary); }
.more-link { display: inline-block; margin-top: 16px; color: var(--primary); font-size: 14px; font-weight: 500; }
.more-link:hover { color: var(--accent); }

/* 首页最新公告（卡片列表） */
.announce-list li { border-bottom: 1px solid var(--line-2); }
.announce-list li:last-child { border-bottom: none; }
.announce-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; font-size: 15px;
}
.announce-list a .t {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2);
}
.announce-list a .t::before { content: "\f0a3"; font-family: FontAwesome; color: var(--accent); margin-right: 9px; font-size: 13px; }
.announce-list a:hover .t { color: var(--primary); }
.announce-list .date { font-size: 13px; color: var(--muted-2); flex: none; }

/* ============ 内页 banner ============ */
.page-hero {
  background: linear-gradient(rgba(38,45,120,.82), rgba(54,64,168,.82)),
    var(--primary-dark);
  background-size: cover; background-position: center;
  color: #fff; padding: 56px 0;
}
.page-hero h1 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.crumb { font-size: 14px; color: #cdd9ea; }
.crumb a:hover { color: #fff; }
.crumb .sep { margin: 0 9px; color: var(--green); }

/* ============ 内页布局（侧栏+正文） ============ */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 48px 0; }
.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.side-box .side-title {
  background: var(--primary); color: #fff; padding: 15px 20px; font-size: 16px;
}
.side-box .side-title i { margin-right: 8px; }
.side-cat a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--line-2); font-size: 14.5px;
}
.side-cat a:last-child { border-bottom: none; }
.side-cat a i { color: var(--muted-2); transition: transform .2s; }
.side-cat a:hover, .side-cat a.active { color: var(--primary); background: var(--line-2); }
.side-cat a:hover i, .side-cat a.active i { color: var(--accent); transform: translateX(3px); }
.side-cat a .count { font-size: 12px; color: var(--muted-2); }
.side-contact { padding: 18px 20px; font-size: 13.5px; line-height: 2; color: var(--ink-2); }
.side-contact i { color: var(--primary); width: 18px; }

.content-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; min-width: 0; }
.content-box .box-head { border-bottom: 2px solid var(--line-2); padding-bottom: 16px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; }
.content-box .box-head h2 { font-size: 21px; color: var(--primary); }
.content-box .box-head .total { font-size: 13.5px; color: var(--muted); }

/* 列表条目（内页） */
.article-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--line-2);
}
.article-row:last-child { border-bottom: none; }
.article-row a.art-title {
  font-size: 15.5px; color: var(--ink-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;
}
.article-row a.art-title::before { content: "\f105"; font-family: FontAwesome; color: var(--primary-3); margin-right: 9px; }
.article-row a.art-title:hover { color: var(--primary); }
.article-row .art-date { font-size: 13.5px; color: var(--muted-2); flex: none; }

/* ============ 文章详情 ============ */
.detail-head { text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.detail-head h1 { font-size: 27px; line-height: 1.5; margin-bottom: 18px; }
.detail-meta { font-size: 13.5px; color: var(--muted); display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; }
.detail-meta i { color: var(--primary-3); margin-right: 5px; }
.article-content { font-size: 16px; line-height: 2; color: var(--ink-2); }
.article-content p { margin: 14px 0; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 18px auto; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content table { max-width: 100%; border-collapse: collapse; }
.article-content h1, .article-content h2, .article-content h3 { font-weight: 700; margin: 24px 0 12px; color: var(--ink); }
.article-content ul.disc { list-style: disc; padding-left: 26px; }
.article-content ol.dec { list-style: decimal; padding-left: 26px; }

.attach-box {
  background: var(--line-2); border-radius: 8px; padding: 18px 22px; margin: 28px 0;
  border-left: 4px solid var(--primary);
}
.attach-box .att-title { font-weight: 600; margin-bottom: 10px; color: var(--primary); }
.attach-box a { display: inline-flex; align-items: center; gap: 8px; margin: 6px 16px 6px 0; color: var(--ink-2); font-size: 14.5px; }
.attach-box a i { color: var(--accent); }
.attach-box a:hover { color: var(--primary); }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.prev-next .pn { color: var(--muted); min-width: 0; }
.prev-next .pn.next { text-align: right; }
.prev-next a { display: block; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.prev-next a:hover { color: var(--primary); }

/* ============ 分页 ============ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; font-size: 14px; padding: 0 10px;
  color: var(--ink-2); background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ 文件徽标 ============ */
.file-badge {
  display: inline-block; padding: 2px 9px; border-radius: 4px;
  font-size: 12px; color: #fff; background: var(--primary-2); text-transform: uppercase;
}
.download-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
}
.download-row:last-child { border-bottom: none; }
.download-row .dl-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.download-row .dl-info { font-size: 13px; color: var(--muted); flex: none; }

/* ============ 友情链接 ============ */
.friend-links { display: flex; flex-wrap: wrap; gap: 12px; }
.friend-links a {
  padding: 9px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; font-size: 14px; color: var(--ink-2);
}
.friend-links a:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

/* ============ 空状态 ============ */
.empty { text-align: center; color: var(--muted-2); padding: 60px 0; }
.empty i { font-size: 44px; color: var(--line); display: block; margin-bottom: 14px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--primary-dark); color: #b9c8dc; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--accent); border-radius: 2px; }
.site-footer p, .site-footer li { font-size: 14px; line-height: 2.1; }
.site-footer a:hover { color: #fff; }
.site-footer .f-contact li i { width: 20px; color: var(--green); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .footer-logo { height: 50px; width: auto; object-fit: contain; flex: none; }
.footer-brand b { color: #fff; font-size: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  text-align: center; font-size: 13px; color: #8fa3bd;
}
.footer-bottom a { color: #b9c8dc; margin-left: 8px; }
.footer-bottom a:hover { color: #fff; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .main-nav, .header-search { display: none; }
  .nav-toggle { display: block; }
  .hero-inner h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-slide { height: 440px; }
  .hero-inner h1 { font-size: 27px; }
  .hero-arrow { display: none; }
  .content-box { padding: 22px 18px; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .pn.next { text-align: left; }
  .topbar .tb-right { display: none; }
}
