/* ==========================================================
   海南省土地学会 网站样式表
   配色：海洋蓝（主）+ 土地金（辅）+ 生态绿（点缀）
   ========================================================== */
:root {
  --blue: #0b5c8f;
  --blue-dark: #073d61;
  --blue-light: #1a7fbe;
  --gold: #c19a4b;
  --green: #1e8a5a;
  --red: #b8352c;
  --ink: #1f2933;
  --ink-2: #4a5560;
  --ink-3: #7b8794;
  --line: #e3e8ee;
  --bg: #f5f7fa;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(11, 92, 143, .08);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-light); }
ul, ol { list-style: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }
input, button, select, textarea { font-family: inherit; font-size: 14px; outline: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ============ 顶部工具条 ============ */
.topbar {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  height: 34px;
  line-height: 34px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar a { margin-left: 14px; color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar .left span { margin-right: 14px; }

/* ============ 页头：Logo + 搜索 ============ */
.header {
  height: 132px;
  background:
    linear-gradient(100deg, #fff 0%, #fff 46%, rgba(255,255,255,.94) 62%, rgba(255,255,255,.72) 100%),
    url("../img/header-bg.svg") right center / cover no-repeat;
  border-bottom: 3px solid var(--blue);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 129px; }

.brand { display: flex; align-items: center; gap: 16px; }
.brand .logo { width: 66px; height: 66px; flex: none; }
.brand .txt h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--blue);
  line-height: 1.2;
}
.brand .txt .en {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}
.brand .txt .sub {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-top: 3px;
}

.search { display: flex; align-items: center; }
.search form { display: flex; border: 1px solid var(--blue); border-radius: 2px; overflow: hidden; }
.search input {
  width: 210px; height: 36px; border: 0; padding: 0 12px; color: var(--ink);
}
.search button {
  width: 62px; height: 36px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; letter-spacing: 2px;
}
.search button:hover { background: var(--blue-light); }

/* ============ 导航 ============ */
.nav { background: var(--blue); position: relative; z-index: 60; }
.nav .wrap { display: flex; }
.nav > .wrap > ul { display: flex; }
.nav > .wrap > ul > li { position: relative; }
.nav > .wrap > ul > li > a {
  display: block; padding: 0 26px; height: 48px; line-height: 48px;
  color: #fff; font-size: 15px; letter-spacing: 1px; white-space: nowrap;
}
.nav > .wrap > ul > li > a::after {
  content: ""; display: block; height: 2px; width: 0; margin: -6px auto 0;
  background: var(--gold); transition: width .25s;
}
.nav > .wrap > ul > li:hover > a,
.nav > .wrap > ul > li.active > a { background: var(--blue-dark); }
.nav > .wrap > ul > li:hover > a::after,
.nav > .wrap > ul > li.active > a::after { width: 26px; }

.subnav {
  display: none; position: absolute; top: 48px; left: 0; min-width: 148px;
  background: rgba(7, 61, 97, .97); box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  padding: 6px 0;
}
.nav li:hover .subnav { display: block; }
.subnav a {
  display: block; padding: 8px 20px; color: #e6eef5; font-size: 13.5px; white-space: nowrap;
}
.subnav a:hover { background: var(--blue-light); color: #fff; }

/* 移动端菜单按钮 */
.nav-toggle { display: none; }

/* ============ 轮播 ============ */
.banner { position: relative; height: 420px; overflow: hidden; background: var(--blue-dark); }
.banner .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.banner .slide.active { opacity: 1; }
.banner .slide .inner { max-width: 820px; padding: 0 20px; color: #fff; }
.banner .slide h2 {
  font-size: 38px; font-weight: 700; letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35); margin-bottom: 14px;
}
.banner .slide p {
  font-size: 15px; letter-spacing: 1px; color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.banner .dots { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; }
.banner .dots i {
  display: inline-block; width: 10px; height: 10px; margin: 0 5px; cursor: pointer;
  border-radius: 50%; background: rgba(255, 255, 255, .45); transition: all .25s;
}
.banner .dots i.on { background: var(--gold); width: 26px; border-radius: 5px; }

/* ============ 快捷入口 ============ */
.quick { background: #fff; padding: 26px 0 10px; margin-bottom: 22px; }
.quick ul { display: flex; flex-wrap: wrap; }
.quick li { width: 16.66%; text-align: center; padding: 10px 6px 20px; }
.quick li a { display: block; }
.quick .ico {
  width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eaf3fa, #d3e6f5);
  transition: transform .25s, background .25s;
}
.quick .ico svg { width: 30px; height: 30px; }
.quick li a:hover .ico { transform: translateY(-4px); background: linear-gradient(135deg, var(--blue-light), var(--blue)); }
.quick li a:hover .ico svg { fill: #fff; }
.quick h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.quick li a:hover h3 { color: var(--blue); }

/* ============ 通用板块标题 ============ */
.sec { margin-bottom: 26px; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 2px solid var(--blue); padding-bottom: 8px; margin-bottom: 18px;
}
.sec-head h2 {
  font-size: 21px; font-weight: 700; color: var(--blue); letter-spacing: 2px;
  display: flex; align-items: center; gap: 10px;
}
.sec-head h2::before {
  content: ""; width: 5px; height: 20px; background: var(--gold); display: inline-block;
}
.sec-head .en { font-size: 11px; color: var(--ink-3); letter-spacing: 1.5px; text-transform: uppercase; }
.sec-head .more { font-size: 13px; color: var(--ink-3); }
.sec-head .more:hover { color: var(--blue); }

/* ============ 首页三栏新闻 ============ */
.news-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-box { background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--blue); }
.news-box .hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px dashed var(--line);
}
.news-box .hd h3 { font-size: 16px; font-weight: 700; color: var(--blue); letter-spacing: 1px; }
.news-box .hd a { font-size: 12px; color: var(--ink-3); }
.news-box .bd { padding: 8px 18px 16px; min-height: 322px; }
.news-box li { border-bottom: 1px dotted var(--line); padding: 10px 0; }
.news-box li:last-child { border-bottom: 0; }
.news-box li a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.news-box li .t {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink);
}
.news-box li .d { font-size: 12px; color: var(--ink-3); flex: none; }
.news-box li:hover .t { color: var(--blue); }
.news-box .first { padding: 12px 0 14px; border-bottom: 1px dotted var(--line); }
.news-box .first .tt {
  font-size: 15px; font-weight: 600; color: var(--blue-dark); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.news-box .first .sm { font-size: 12.5px; color: var(--ink-3); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 头条区（首页） ============ */
.focus { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-bottom: 24px; }
.focus-main { background: #fff; box-shadow: var(--shadow); padding: 16px 20px 18px; }
.focus-main .tag {
  display: inline-block; background: var(--red); color: #fff; font-size: 12px;
  padding: 1px 8px; border-radius: 2px; margin-bottom: 8px;
}
.focus-main h3 { font-size: 19px; color: var(--blue-dark); line-height: 1.6; margin-bottom: 10px; }
.focus-main .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.focus-main p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; text-indent: 2em; }
.focus-side { background: #fff; box-shadow: var(--shadow); }
.focus-side .hd {
  padding: 12px 18px; border-bottom: 1px dashed var(--line);
  font-size: 16px; font-weight: 700; color: var(--blue);
}
.focus-side .bd { padding: 6px 18px 14px; }
.focus-side li { padding: 9px 0; border-bottom: 1px dotted var(--line); }
.focus-side li:last-child { border-bottom: 0; }
.focus-side li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-side li .d { float: right; font-size: 12px; color: var(--ink-3); }

/* ============ 专题/图片栏 ============ */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic {
  position: relative; height: 148px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; padding: 16px; color: #fff;
}
.topic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55));
}
.topic .z { position: relative; z-index: 2; }
.topic h4 { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.topic p { font-size: 12px; opacity: .85; }
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.topic { transition: transform .25s, box-shadow .25s; }

/* ============ 友情链接 ============ */
.links { background: #fff; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 26px; }
.links .hd { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.links ul { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.links li a { color: var(--ink-2); font-size: 13px; }
.links li a:hover { color: var(--blue); text-decoration: underline; }

/* ============ 面包屑 ============ */
.crumb { background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.crumb .wrap { height: 44px; display: flex; align-items: center; font-size: 13px; color: var(--ink-3); }
.crumb a { color: var(--ink-2); }
.crumb span { margin: 0 8px; color: var(--ink-3); }
.crumb b { color: var(--blue); font-weight: 600; }

/* ============ 内页布局 ============ */
.main-grid { display: grid; grid-template-columns: 250px 1fr; gap: 22px; margin-bottom: 30px; }
.side { align-self: start; }
.side-box { background: #fff; box-shadow: var(--shadow); margin-bottom: 18px; }
.side-box .hd {
  background: var(--blue); color: #fff; padding: 11px 16px;
  font-size: 15.5px; font-weight: 700; letter-spacing: 2px;
}
.side-box .hd.en { font-size: 11px; letter-spacing: 1.5px; opacity: .8; background: var(--blue-dark); }
.side-box ul { padding: 6px 0; }
.side-box li a {
  display: block; padding: 10px 18px; font-size: 14px; color: var(--ink-2);
  border-left: 3px solid transparent;
}
.side-box li a:hover { background: #f2f7fb; color: var(--blue); border-left-color: var(--gold); }
.side-box li.on a { background: #f2f7fb; color: var(--blue); border-left-color: var(--blue); font-weight: 600; }

.content { background: #fff; box-shadow: var(--shadow); padding: 28px 34px 40px; min-height: 460px; }
.content h2.title {
  font-size: 22px; color: var(--blue-dark); text-align: center; font-weight: 700;
  padding-bottom: 14px; margin-bottom: 6px;
}
.content .subinfo {
  text-align: center; font-size: 12.5px; color: var(--ink-3);
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.content p { font-size: 14.5px; line-height: 2; color: var(--ink); margin-bottom: 14px; text-indent: 2em; }
.content h3 {
  font-size: 16.5px; color: var(--blue); margin: 24px 0 12px; font-weight: 700;
  padding-left: 10px; border-left: 4px solid var(--gold);
}
.content h4 { font-size: 15px; color: var(--ink); margin: 18px 0 8px; }
.content ul.dot { margin: 0 0 16px 2px; }
.content ul.dot li {
  position: relative; padding-left: 16px; margin-bottom: 8px;
  font-size: 14.5px; line-height: 1.9; color: var(--ink-2);
}
.content ul.dot li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue-light);
}
.content .lead {
  background: #f2f7fb; border-left: 4px solid var(--blue); padding: 14px 18px;
  margin-bottom: 20px; font-size: 14px; color: var(--ink-2); text-indent: 2em;
}

/* 列表页 */
.list { padding: 6px 0; }
.list li {
  display: flex; gap: 18px; padding: 16px 4px; border-bottom: 1px dashed var(--line); align-items: flex-start;
}
.list li:hover { background: #fafcfe; }
.list .date {
  flex: none; width: 66px; text-align: center; background: #f2f7fb; padding: 6px 0;
  border-top: 2px solid var(--blue);
}
.list .date b { display: block; font-size: 20px; color: var(--blue); line-height: 1.2; }
.list .date i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.list .info { flex: 1; }
.list .info h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0 0 6px; border: 0; padding: 0; }
.list li:hover .info h3 { color: var(--blue); }
.list .info p {
  font-size: 13px; color: var(--ink-3); line-height: 1.7; margin: 0; text-indent: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list .info .meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.list .info .meta span { margin-right: 14px; }
.list .thumb { flex: none; width: 116px; height: 78px; overflow: hidden; background: #f2f7fb; }
.list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-img { text-align: center; text-indent: 0; }
.art-img img { max-width: 100%; height: auto; border: 1px solid var(--line); padding: 3px; background: #fff; }
.tag-cat {
  display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 2px;
  background: #e8f1f8; color: var(--blue); margin-right: 8px; vertical-align: 2px;
}
.tag-cat.gg { background: #fdefe6; color: #b96a1f; }
.tag-cat.dj { background: #fdeaea; color: var(--red); }
.tag-cat.kp { background: #e8f5ee; color: var(--green); }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin: 30px 0 6px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; line-height: 32px; text-align: center; padding: 0 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px;
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 表格 */
table.tb { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14px; }
table.tb th, table.tb td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; line-height: 1.7; }
table.tb th { background: #eef4f9; color: var(--blue-dark); font-weight: 600; text-align: center; }
table.tb td.c { text-align: center; }
table.tb tr:hover td { background: #fafcfe; }

/* 组织架构卡片 */
.org-card {
  border: 1px solid var(--line); border-top: 3px solid var(--blue);
  padding: 18px 20px; margin-bottom: 18px; background: #fcfdfe;
}
.org-card h3 { margin-top: 0; }
.org-card .row { margin-bottom: 10px; font-size: 14.5px; line-height: 1.9; }
.org-card .row b { color: var(--blue-dark); margin-right: 8px; }
.org-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.org-item { border: 1px dashed var(--line); padding: 12px 16px; background: #fff; }
.org-item h4 { margin: 0 0 6px; color: var(--blue); font-size: 14.5px; }
.org-item p { margin: 0; font-size: 13.5px; color: var(--ink-2); text-indent: 0; }

/* 联系信息 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.contact-list li b { display: inline-block; width: 78px; color: var(--blue-dark); }
.map-box {
  height: 300px; background: #eef4f9 url("../img/map-placeholder.svg") center / cover no-repeat;
  border: 1px solid var(--line);
}

/* 证书查询 */
.cert-form { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 22px; }
.cert-form input {
  height: 40px; border: 1px solid var(--line); padding: 0 12px; min-width: 240px; flex: 1;
}
.cert-form input:focus { border-color: var(--blue); }
.cert-form button {
  height: 40px; padding: 0 26px; border: 0; background: var(--blue); color: #fff; cursor: pointer;
}
.cert-form button:hover { background: var(--blue-light); }
.cert-result { border: 1px solid var(--line); padding: 16px 20px; background: #fcfdfe; }

/* ============ 页脚 ============ */
.footer { background: #123; color: rgba(255, 255, 255, .7); margin-top: 10px; }
.footer .ftop { padding: 30px 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer .fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.footer h4 {
  color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; letter-spacing: 1px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.footer li { font-size: 13px; line-height: 2.1; }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer .about .brand-f { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .about .brand-f .logo { width: 52px; height: 52px; }
.footer .about .brand-f h1 { font-size: 20px; color: #fff; letter-spacing: 2px; }
.footer .about p { font-size: 13px; line-height: 1.9; margin-bottom: 4px; }
.footer .wx { display: flex; gap: 16px; margin-top: 14px; }
.footer .wx .qr {
  width: 92px; height: 92px; background: #fff; border-radius: 3px; padding: 6px; text-align: center;
}
.footer .wx .qr img { width: 100%; }
.footer .wx .qr span { display: block; font-size: 11px; color: var(--ink-2); margin-top: 3px; }
.fbottom { text-align: center; padding: 16px 0; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.fbottom a { color: rgba(255, 255, 255, .55); }

/* 回到顶部 */
.totop {
  position: fixed; right: 22px; bottom: 60px; width: 42px; height: 42px; display: none;
  background: var(--blue); color: #fff; text-align: center; line-height: 42px;
  cursor: pointer; z-index: 90; font-size: 18px; box-shadow: var(--shadow);
}
.totop:hover { background: var(--blue-light); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .nav > .wrap > ul > li > a { padding: 0 16px; font-size: 14px; }
  .main-grid { grid-template-columns: 1fr; }
  .focus { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .header { height: auto; }
  .header .wrap { flex-direction: column; justify-content: center; gap: 12px; height: auto; padding: 14px 0; }
  .nav > .wrap { overflow-x: auto; }
  .nav > .wrap > ul > li > a { padding: 0 12px; font-size: 13.5px; }
  .subnav { position: static; display: none; }
  .news-cols { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .quick li { width: 33.33%; }
  .footer .fcols { grid-template-columns: 1fr 1fr; }
  .banner { height: 280px; }
  .banner .slide h2 { font-size: 24px; }
  .content { padding: 20px 18px 30px; }
  .org-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .quick li { width: 50%; }
  .footer .fcols { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .search input { width: 130px; }
}
