/*
Theme Name: 粤港澳图象图形会议
Theme URI: https://conf.gdsig.cn/
Author: GHMIG
Description: 第十五届粤港澳图象图形学术会议。内容从原站点迁移，不包含原站程序。
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: gdsig
*/

:root {
  --navy: #0c2340;
  --blue: #155a9c;
  --blue-d: #0c3f73;
  --gold: #b7893a;
  --ink: #1b2836;
  --muted: #5d6b7a;
  --line: #e4ebf2;
  --bg: #f5f7fa;
  --card: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 84px;
}
.brand { display: flex; flex-direction: column; gap: 2px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-kicker { font-size: 12px; letter-spacing: .16em; color: var(--gold); font-weight: 700; }
.brand-title { font-size: 22px; font-weight: 750; letter-spacing: .04em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta {
  background: var(--navy); color: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: 14px; font-weight: 700;
}
.header-cta:hover { background: var(--blue); color: #fff; text-decoration: none; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 12px; }

.nav-bar { background: var(--navy); }
.menu {
  display: flex; flex-wrap: wrap; gap: 2px; list-style: none;
  margin: 0; padding: 0;
}
.menu > li { position: relative; }
.menu > li > a {
  display: block; color: #e8eef5; font-size: 14px;
  padding: 12px 14px;
}
.menu > li > a:hover,
.menu > .current-menu-item > a,
.menu > .current-menu-ancestor > a { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.menu .sub-menu {
  display: none; position: absolute; z-index: 30; min-width: 168px;
  background: #fff; border-radius: 10px; list-style: none;
  padding: 8px 0; margin: 0;
  box-shadow: 0 12px 32px rgba(12, 35, 64, .16);
}
.menu > li:hover > .sub-menu,
.menu > li:focus-within > .sub-menu { display: block; }
.sub-menu a { display: block; padding: 8px 16px; color: var(--ink); font-size: 14px; }
.sub-menu a:hover { background: #f3f7fb; text-decoration: none; }

.hero { background: var(--navy); }
.hero img { display: block; width: 100%; }

.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-grid div { padding: 18px 8px; text-align: center; }
.facts-grid div + div { box-shadow: inset 1px 0 0 var(--line); }
.facts-grid span { display: block; color: var(--gold); font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.facts-grid strong { display: block; margin-top: 4px; color: var(--navy); font-size: 16px; }

.section { padding: 42px 0; }
.section-tight { padding-top: 8px; }
.section h2, .page-title {
  margin: 0 0 18px; color: var(--navy); font-size: 28px; letter-spacing: .06em; text-align: center;
}
.section h2::after, .page-title::after {
  content: ""; display: block; width: 42px; height: 3px; margin: 10px auto 0;
  background: var(--gold); border-radius: 2px;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head h2 { text-align: left; }
.section-head h2::after { margin-left: 0; }
.section-lead { text-align: center; color: var(--muted); margin: -8px 0 18px; }
.text-link { color: var(--blue); font-weight: 700; }

.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.action-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 18px; color: var(--ink);
  box-shadow: 0 8px 24px rgba(12, 35, 64, .04);
}
.action-card:hover { border-color: #c5d7ea; text-decoration: none; transform: translateY(-2px); }
.action-card span { color: var(--gold); font-weight: 750; letter-spacing: .08em; }
.action-card strong { display: block; margin: 8px 0 4px; font-size: 20px; color: var(--navy); }
.action-card em { font-style: normal; color: var(--muted); font-size: 14px; }

.intro { padding: 26px 28px; }
.intro p { margin: 0 0 14px; font-size: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.news-list { display: grid; gap: 10px; }
.news-item {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; color: var(--ink);
}
.news-item:hover { border-color: #b9cfe4; text-decoration: none; }
.news-item time { text-align: center; color: var(--blue-d); }
.news-item time b { display: block; font-size: 22px; line-height: 1; }
.news-item time span { font-size: 12px; color: var(--muted); }
.news-item strong { font-size: 16px; font-weight: 650; }

.speakers-section { background: #fff; border-top: 1px solid var(--line); }
.speaker-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.speaker-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; color: var(--navy);
}
.speaker-card:hover { text-decoration: none; box-shadow: 0 10px 24px rgba(12, 35, 64, .08); }
.speaker-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; display: block; background: #e8eef4; }
.speaker-card span { display: block; padding: 10px 12px 14px; text-align: center; font-weight: 700; }

.page { padding: 36px 0 56px; }
.entry {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 36px 40px;
}
.entry-content { font-size: 16px; }
.entry-content p, .entry-content li, .entry-content span { font-family: inherit !important; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.entry-content td, .entry-content th { border: 1px solid #d5e0ea; padding: 8px 10px; vertical-align: top; }
.entry-content img { display: block; margin: 12px auto; }
.child-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.child-links a { display: block; background: #f7fafc; border-radius: 10px; padding: 12px 14px; }

.site-footer { background: var(--navy); color: #d5e2ee; padding: 36px 0 18px; }
.footer-kicker { margin: 0; color: var(--gold); letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.footer-name { margin: 6px 0 18px; font-size: 20px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 140px; gap: 28px; align-items: start; }
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.org-card { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px; }
.org-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.org-card .entry-content { font-size: 13px; color: var(--muted); }
.org-card img { max-height: 88px; width: auto; margin: 6px 0; }
.qr { text-align: center; }
.qr img { width: 120px; background: #fff; padding: 6px; border-radius: 8px; }
.qr p { margin: 8px 0 0; font-size: 13px; }
.copy { text-align: center; color: #8ea4b8; font-size: 13px; margin: 22px 0 0; }
.site-footer a { color: var(--blue-d); }

@media (max-width: 980px) {
  .speaker-grid { grid-template-columns: repeat(3, 1fr); }
  .action-grid, .facts-grid, .org-grid { grid-template-columns: 1fr; }
  .facts-grid div + div { box-shadow: none; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .brand-title { font-size: 18px; }
  .nav-toggle { display: inline-block; }
  .nav-bar { position: relative; }
  .menu { display: none; flex-direction: column; background: var(--navy); padding-bottom: 8px; }
  .menu.is-open { display: flex; }
  .menu .sub-menu { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 6px 12px; }
  .sub-menu a { color: #d5e2ee; }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .entry { padding: 20px 16px 28px; }
  .header-cta { display: none; }
}
