/* 九游会官网 - 全站样式表 */

:root {
  --navy: #0c1a30;
  --navy-deep: #070f1e;
  --tech-blue: #2f6fed;
  --guofeng-green: #1c8a72;
  --violet: #6a4bc9;
  --sport-orange: #ef7a2e;
  --warm-white: #f6f7fb;
  --silver: #ccd2e0;
  --text-main: #1a2035;
  --text-sub: #565f78;
  --border-soft: #e2e5f0;
  --card-bg: #ffffff;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 3px 16px rgba(12, 26, 48, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", "Segoe UI", Arial, sans-serif;
  background: var(--warm-white);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tech-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 22px; }
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand img { width: 38px; height: 38px; }
.brand .brand-sub { font-size: 12px; font-weight: 400; color: var(--silver); display: block; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: #e8ecf9; padding: 10px 13px; border-radius: 6px; font-size: 14.5px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.14); color: #fff; text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  font-size: 20px; border-radius: 6px; padding: 4px 10px; cursor: pointer;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { max-width: var(--max-width); margin: 14px auto 0; padding: 0 20px; font-size: 13px; color: var(--text-sub); }
.breadcrumb a { color: var(--tech-blue); }
.breadcrumb span { margin: 0 6px; color: #9aa1b8; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, var(--navy) 0%, #16305f 55%, var(--violet) 140%); color: #fff; padding: 48px 0 42px; }
.hero-inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero-text { flex: 1 1 440px; min-width: 280px; }
.hero-image { flex: 1 1 420px; min-width: 280px; }
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  color: var(--silver); font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.hero h1 { font-size: 30px; line-height: 1.4; margin: 0 0 16px; color: #fff; }
.hero p { color: #dce2f7; font-size: 15.5px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--sport-orange); color: #fff; }
.btn-primary:hover { background: #cc6620; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-secondary { background: var(--tech-blue); color: #fff; }
.btn-secondary:hover { background: #1e56c4; text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 42px 0; }
section.tight { padding: 26px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 24px; margin: 0 0 8px; color: var(--navy); }
.section-head p { color: var(--text-sub); margin: 0; max-width: 780px; }
h1, h2, h3, h4 { font-family: inherit; color: var(--navy); }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
.bg-alt { background: #eef1f6; }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card .tag {
  display: inline-block; font-size: 12px; color: var(--tech-blue); background: #e8effe;
  padding: 2px 10px; border-radius: 12px; margin-bottom: 10px; width: fit-content;
}
.news-card .tag.violet { color: var(--violet); background: #efeafd; }
.news-card .tag.green { color: var(--guofeng-green); background: #e2f6f1; }
.news-card h3 { margin: 6px 0 8px; font-size: 17px; }
.news-card h3 a { color: var(--navy); }
.news-card p { color: var(--text-sub); font-size: 14px; margin: 0 0 10px; flex: 1; }
.news-card .meta { font-size: 12px; color: #8b93a8; display: flex; justify-content: space-between; }

.status-pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 10px; border: 1px solid; }
.status-done { color: var(--guofeng-green); border-color: var(--guofeng-green); background: #e6f7f2; }
.status-live { color: var(--sport-orange); border-color: var(--sport-orange); background: #fdf0e3; }
.status-preview { color: var(--tech-blue); border-color: var(--tech-blue); background: #e8effe; }

/* ---------- Article ---------- */
.article { background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 28px; scroll-margin-top: 90px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.article-meta span { background: #eef1f6; padding: 3px 10px; border-radius: 12px; }
.article h3 { font-size: 20px; margin: 0 0 10px; color: var(--navy); }
.article .summary { font-size: 14.5px; color: var(--text-sub); background: #f5f6fb; border-left: 3px solid var(--tech-blue); padding: 10px 14px; margin-bottom: 16px; }
.article figure { margin: 18px 0; }
.article figcaption { font-size: 13px; color: #798199; margin-top: 8px; line-height: 1.6; }
.article .body p { margin: 0 0 14px; }
.article .disclosure { font-size: 12.5px; color: #8b93a8; border-top: 1px dashed var(--border-soft); padding-top: 12px; margin-top: 16px; }
.article .article-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn { background: #fff; border: 1px solid var(--border-soft); padding: 7px 16px; border-radius: 18px; font-size: 14px; cursor: pointer; color: var(--text-sub); }
.filter-btn.active { background: var(--tech-blue); color: #fff; border-color: var(--tech-blue); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
th, td { border: 1px solid var(--border-soft); padding: 10px 12px; font-size: 14px; text-align: left; }
th { background: var(--navy); color: #fff; }
tr:nth-child(even) td { background: #f8f9fc; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 20px 0; padding-left: 26px; border-left: 2px solid var(--border-soft); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--tech-blue); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--tech-blue);
}
.timeline-item .date { font-size: 13px; color: var(--sport-orange); font-weight: 600; }
.timeline-item h4 { margin: 4px 0 6px; font-size: 16px; }
.timeline-item p { margin: 0; color: var(--text-sub); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border-soft); border-radius: 8px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: #fff; border: none; padding: 14px 18px; font-size: 15px;
  font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--tech-blue); }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 18px; font-size: 14.5px; color: var(--text-sub); }
.faq-item.open .faq-a { max-height: 400px; padding: 0 18px 16px; }

/* ---------- Board ---------- */
.board-note { font-size: 13px; color: #8b93a8; background: #f5f6fb; border: 1px dashed var(--border-soft); padding: 10px 14px; border-radius: 8px; margin-top: 10px; }
.board-toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 12px; }

/* ---------- Form demo ---------- */
.login-demo { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; max-width: 420px; }
.login-demo label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.login-demo input { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 6px; background: #f8f9fc; color: var(--text-main); font-size: 14px; }
.login-demo button { width: 100%; }

/* ---------- Info box ---------- */
.info-box { border: 1px solid var(--border-soft); background: #fbeee4; border-left: 4px solid var(--sport-orange); padding: 14px 18px; border-radius: 6px; font-size: 14px; color: var(--text-sub); margin: 16px 0; }
.info-box.blue { border-left-color: var(--tech-blue); background: #eaf0fd; }
.info-box.green { border-left-color: var(--guofeng-green); background: #e6f7f2; }
.info-box.violet { border-left-color: var(--violet); background: #f0ebfc; }

.company-table th { background: #eef1f6; color: var(--navy); width: 160px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b6bcd6; padding: 40px 0 20px; margin-top: 40px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-col a { color: #b6bcd6; display: block; margin-bottom: 8px; }
.footer-col p { margin: 0 0 8px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 16px; text-align: center; font-size: 12.5px; color: #767ea0; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--tech-blue); color: #fff; border: none; font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); display: none; z-index: 90;
}
#back-to-top.show { display: block; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 13px; color: var(--text-sub); }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; background: #eef1f6; color: var(--text-sub); padding: 3px 10px; border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; padding: 10px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .hero h1 { font-size: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .article { padding: 20px; }
  .footer-inner { gap: 24px; }
}
