﻿@font-face {
  font-family: "ProjectFont";
  src: url("./font.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #1f2b8d;
  --primary-600: #1a2491;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-family: ProjectFont, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 仅头部容器加宽到 1600（桌面更宽，移动端不受影响） */
.site-header .container { max-width: 1600px; }

/* 头部 */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand-name { font-weight: 900; color: #111827; font-size: 16px; letter-spacing: 0.4px; }
.brand-logo { height: 42px; width: 42px; object-fit: contain; display: block; }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); }
.site-nav ul { list-style: none; padding: 8px 16px 16px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.site-nav a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.site-nav a:hover { color: var(--primary); background: #f1f3ff; }
.site-nav a.active { color: #fff; background: var(--primary); }

/* 移动端：将票务预约和语言切换放入菜单，隐藏头部按钮 */
.mobile-actions { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.header-right .btn.primary { display: none; }
.header-right .lang-switch { display: none; }

.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: #fff; color: var(--primary); cursor: pointer; transition: all .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(31, 43, 141, .16); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; font-size: 16px; letter-spacing: 2px; font-family: ProjectFont, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; }
.btn.primary:hover { background: var(--primary-600); }

.lang-switch { display: inline-flex; gap: 6px; background: #f3f4f6; padding: 3px; border-radius: 999px; }
.lang-switch button { height: 32px; padding: 0 10px; border: 0; background: transparent; border-radius: 999px; color: #374151; cursor: pointer; }
.lang-switch button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

.hamburger { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.hamburger span { width: 18px; height: 2px; background: #111827; position: relative; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #111827; transform-origin: center; }
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.site-header.open .site-nav { display: block; }

/* 大屏导航布局 */
@media (min-width: 992px) {
  .site-nav { display: block; position: static; border: 0; background: transparent; }
  .site-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; grid-template-columns: none; }
  .site-nav a { padding: 8px 12px; font-size: 14px; }
  .hamburger { display: none; }
  /* 桌面端：隐藏移动菜单按钮，显示头部按钮 */
  .mobile-actions { display: none; }
  .header-right .btn.primary { display: inline-flex !important; }
  .header-right .lang-switch { display: inline-flex !important; }
}

/* 主体 */
.hero { padding: 54px 0 40px; text-align: center; }
.hero h1 { margin: 10px 0 24px; font-size: 38px; color: var(--primary); letter-spacing: 1px; }
@media (min-width: 768px) { .hero h1 { font-size: 44px; } }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-wrap { max-width: 960px; margin: 0 auto; padding: 50px 16px; }
@media (min-width: 768px) { .form-wrap { padding: 60px; } }

.query-form { max-width: 720px; margin: 0 auto; display: grid; gap: 26px; }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; font-family: inherit; font-size: 16px; color: #111827; letter-spacing: 0.2px; caret-color: var(--primary); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; margin-bottom:30px; }
.input::placeholder { color: #9ca3af; font-style: italic; }
.input::selection { background: rgba(31, 43, 141, .16); color: #111827; }
.input:focus { border-color: #9aa7ff; background: #fff; box-shadow: 0 0 0 4px rgba(69, 91, 255, .12); }
.btn-block { width: 100%; }

/* 新闻列表卡片（结果页） */
.news-list { max-width: 960px; margin: 0 auto; display: grid; gap: 20px; }
.news-item { padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; column-gap: 18px; row-gap: 8px; align-items: start; transition: transform .2s ease, box-shadow .2s ease; }
.news-item:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10); }
.news-title { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 900; color: var(--primary); text-align: left; }
.news-date { color: var(--muted); font-size: 14px; }
.news-desc { grid-column: 1 / -1; margin: 0; color: #4b5563; text-align: left; }

/* 文章详情（展示页） */
.back-link { display: flex; width: 100%; align-items: center; gap: 6px; color: #374151; font-size: 18px; margin-bottom: 16px; }
.back-link:hover { color: var(--primary); }
.article-wrap { max-width: 960px; margin: 0 auto; }
.article { padding: 24px; overflow: hidden; }
.article-title { margin: 0 0 8px; font-size: 28px; color: var(--primary); text-align: left; letter-spacing: 0.5px; }
@media (min-width: 768px) { .article-title { font-size: 34px; } }
.article-date { display: block; color: var(--muted); font-size: 14px; margin-bottom: 16px; text-align: left; }
.article-cover { margin: 16px 0 0; }
.article-cover img { width: 100%; display: block; border-radius: 8px; }
.action-card { padding: 24px; margin-top: 16px; }
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.action-buttons .btn { min-width: 120px; }

/* 底部 */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 64px; }
.footer-top { padding: 48px 0; }
@media (max-width: 767px) { .footer-top { padding: 48px 24px; } .footer-bottom .container { padding: 0 24px; }
    .brand-name {
        font-size: 16px;
    }}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .brand-name {
        font-size: 16px;
    }}
.footer-title { font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 6px 10px; font-size: 14px; }
.footer-links a { color: #374151; }
.footer-links a:hover { color: var(--primary); }

/* 底部简介段落：更小字号与适中宽度，并统一去除内联样式 */
.site-footer .about-desc { margin: 0; color: #4b5563; font-size: 14px; line-height: 1.9; max-width: 210px; }
@media (max-width: 767px) { .site-footer .about-desc { max-width: 720px; } .brand-name { font-size: 16px; } }

.footer-bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 28px 0; text-align: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }


