/* =============================================
   七甲八宝饭官网 · 共享样式（权威区 + 动态区通用）
   URL: qjbbf.com
   Last-Updated: 2026-05-07
   ============================================= */

:root {
  --red:    #8B1A1A;
  --red2:   #C0392B;
  --gold:   #C9A227;
  --gold2:  #F0D060;
  --cream:  #FDF8F0;
  --dark:   #1a0800;
  --serif:  'Noto Serif SC', 'STSong', 'SimSun', serif;
  --sans:   'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: #2c1a0e;
  line-height: 1.75;
}

/* ── 全局导航 ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(139,26,26,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

.nav-logo-text { color: #fff; font-family: var(--serif); font-size: 1rem; line-height: 1.2; }
.nav-logo-sub  { color: rgba(255,255,255,0.6); font-size: 0.7rem; display: block; }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0 0.9rem;
  height: 60px;
  display: flex;
  align-items: center;
  transition: color .2s, background .2s;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold2);
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  border-radius: 20px;
  padding: 0 1.2rem !important;
  font-weight: 700;
  border-bottom: none !important;
}

.nav-cta:hover { background: var(--gold2) !important; }

/* ── 面包屑 ── */
.breadcrumb {
  background: rgba(139,26,26,0.06);
  padding: 10px 0;
  font-size: 0.8rem;
  color: rgba(44,26,14,0.5);
  border-bottom: 1px solid rgba(139,26,26,0.08);
}

.breadcrumb .container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(44,26,14,0.35); }

/* ── 容器 ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── 页面标题区 ── */
.page-hero {
  background: linear-gradient(135deg, var(--red) 0%, #6b1111 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold2);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── 章节 ── */
.section { padding: 4rem 0; }
.section-alt { background: rgba(139,26,26,0.04); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--red);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: rgba(44,26,14,0.55);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.8rem auto 2.5rem;
}

/* ── 卡片 ── */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(139,26,26,0.08);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(139,26,26,0.14);
}

/* ── 标签徽章 ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-red   { background: rgba(139,26,26,0.1); color: var(--red); }
.badge-gold  { background: rgba(201,162,39,0.15); color: #8a6d00; }
.badge-green { background: rgba(39,139,26,0.1); color: #1a6b11; }

/* ── 新闻/动态列表 ── */
.post-list { display: flex; flex-direction: column; gap: 1.2rem; }

.post-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 12px rgba(139,26,26,0.07);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
  border-left: 3px solid transparent;
}

.post-item:hover {
  box-shadow: 0 4px 24px rgba(139,26,26,0.14);
  transform: translateX(3px);
  border-left-color: var(--gold);
}

.post-date {
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.post-date strong { display: block; font-size: 1.3rem; line-height: 1; }

.post-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.post-title { font-weight: 600; color: #2c1a0e; font-size: 1rem; margin-bottom: 4px; }
.post-excerpt { color: rgba(44,26,14,0.6); font-size: 0.85rem; line-height: 1.6; }

/* ── 荣誉时间线 ── */
.honor-timeline { position: relative; padding-left: 2rem; }
.honor-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,162,39,0.1));
}

.honor-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.honor-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--cream);
}

.honor-year {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.honor-title-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 4px;
}

.honor-desc { color: rgba(44,26,14,0.65); font-size: 0.88rem; }

/* ── 表格 ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(139,26,26,0.08);
}

.data-table tr:nth-child(even) td { background: rgba(139,26,26,0.03); }

/* ── 页脚 ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr)) minmax(128px, 0.75fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-order {
  align-self: start;
  justify-self: end;
}

.footer-order a {
  display: block;
  width: 128px;
  max-width: 100%;
}

.footer-order img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-brand-sub { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-bottom: 12px; }
.footer-brand-desc { color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: var(--serif);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold2); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-left { color: rgba(255,255,255,0.35); font-size: 0.78rem; }
.footer-bottom-right {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-bottom-right a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom-right a:hover { color: var(--gold2); }
.footer-record-separator { color: rgba(255,255,255,0.18); }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-order { justify-self: start; }
  .page-hero { padding: 2.5rem 0 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; }
}
