/* ==========================================================================
   银发智链 · 样式表
   设计令牌与原站保持一致：深海军蓝 + 哑光金，衬线标题，克制的留白
   ========================================================================== */

:root {
  /* 品牌色 */
  --navy: #051C2C;
  --navy-light: #0A2540;
  --blue: #1B4F8B;
  --accent: #C89B3C;
  --accent-dark: #A88230;
  --accent-fg: #051C2C;

  /* 中性色 */
  --gray-900: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #d0d0d0;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --footer-bg: #03121c;
  --danger: #cf222e;

  /* 字体 */
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', SimSun, ui-serif,
    Georgia, 'Times New Roman', serif;

  /* 尺寸 */
  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-sm: 0 2px 12px rgba(5, 28, 44, .04);
  --shadow-md: 0 6px 24px rgba(5, 28, 44, .08);
  --header-h: 64px;
}

/* ---------- 基础 ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, figure {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.site-main {
  padding-top: var(--header-h);
}

.icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.serif {
  font-family: var(--font-serif);
}

/* ---------- 布局容器 ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 48px; }
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-top { margin-top: 40px; }

.grid-2,
.grid-3,
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2,
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, opacity .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-accent:hover { background: var(--accent-dark); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  font-weight: 500;
}

.btn-outline-light:hover { border-color: rgba(255, 255, 255, .6); }

.btn-outline {
  border-color: var(--gray-300);
  color: var(--navy);
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .8);
  font-weight: 400;
  padding: 8px 16px;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  border-radius: 3px;
  font-weight: 600;
}

.btn-block { width: 100%; }

.btn[disabled] { opacity: .6; cursor: not-allowed; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: opacity .18s ease;
}

.link-more:hover { opacity: .8; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  transition: color .18s ease;
}

.nav-link:hover { color: #fff; }

.nav-link.is-active { color: #fff; }

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.nav-mobile {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.nav-mobile[hidden] { display: none; }

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 24px;
}

.nav-mobile-link {
  padding: 13px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.nav-mobile-link.is-active { color: #fff; }

.nav-mobile .btn { margin-top: 20px; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 96px 0 72px;
}

.hero-inner { position: relative; }

.hero-glow {
  position: absolute;
  top: -128px;
  right: -128px;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  opacity: .22;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

.hero-title {
  max-width: 820px;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: .01em;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero { padding: 152px 0 104px; }
  .hero-lead { font-size: 17px; }
}

/* ---------- 统计数字 ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stat-grid-hero {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.stat-grid-section {
  margin-top: 48px;
  gap: 32px;
}

.stat-bordered {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.stat-value-accent {
  font-size: 30px;
  color: var(--accent);
}

.stat-label-light { color: rgba(255, 255, 255, .7); }

@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-grid-hero { gap: 40px; }
  .stat-grid-section { gap: 40px; }
  .stat-value { font-size: 30px; }
  .stat-label { font-size: 14px; }
  .stat-value-accent { font-size: 36px; }
}

@media (min-width: 1024px) {
  .stat-grid-hero .stat-value { font-size: 36px; }
}

/* ---------- 区块与标题 ---------- */

.section { padding: 64px 0; }

.section-muted { background: var(--gray-100); }

.section-navy {
  background: var(--navy);
  color: #fff;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow-accent { color: var(--accent); }

.section-title {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  text-wrap: balance;
}

.section-title-light { color: #fff; }

.section-title-tight { margin-bottom: 32px; }

.lead {
  max-width: 600px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-700);
}

.lead-light { color: rgba(255, 255, 255, .7); }

.body-text {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .section-title { font-size: 36px; }
}

/* ---------- 卡片 ---------- */

.pos-card {
  padding: 28px;
  background: var(--gray-50);
  border-left: 3px solid var(--navy);
}

.svc-card {
  padding: 32px;
  background: #fff;
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.svc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5, 28, 44, .08);
}

.svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: rgba(5, 28, 44, .06);
  color: var(--navy);
}

.card-title {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.card-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-700);
}

/* ---------- 资讯卡片 ---------- */

.news-grid {
  gap: 28px;
  margin-top: 40px;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.news-card:hover {
  border-color: #b9b9b9;
  box-shadow: var(--shadow-md);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(27, 79, 139, .08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.tag-soft {
  background: var(--gray-100);
  color: var(--gray-700);
  margin-bottom: 0;
  font-weight: 500;
}

.news-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}

.news-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-700);
}

.news-card-meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  color: var(--gray-500);
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

/* ---------- 产业伙伴 ---------- */

.ecosystem {
  margin-top: 40px;
  gap: 16px;
}

.ecosystem-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
}

.ecosystem-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- CTA ---------- */

.cta-band {
  padding: 72px 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  text-wrap: balance;
}

.cta-text {
  max-width: 480px;
  margin: 16px auto 32px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .7);
}

@media (min-width: 768px) {
  .cta-band { padding: 96px 0; }
  .cta-title { font-size: 30px; }
}

/* ---------- 内页头 ---------- */

.page-hero {
  padding: 112px 0 56px;
  background: var(--navy);
  color: #fff;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.page-sub {
  max-width: 576px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .7);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

.breadcrumb a { transition: color .18s ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-current { color: #fff; }

@media (min-width: 768px) {
  .page-hero { padding: 152px 0 72px; }
  .page-title { font-size: 48px; }
}

/* ---------- 关于 ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.about-stat-list {
  display: grid;
  gap: 16px;
}

.about-stat {
  padding: 28px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
}

.about-stat-value {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

.about-stat-label {
  font-size: 14px;
  color: var(--gray-700);
}

.info-card {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.info-label {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--gray-500);
}

.info-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy);
}

.office-photo {
  overflow: hidden;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
}

.office-photo img {
  width: 100%;
  height: 256px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 56px;
  }
}

/* ---------- 联系 ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-heading {
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.contact-list {
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(5, 28, 44, .06);
  color: var(--navy);
}

.contact-label {
  font-size: 14px;
  color: var(--gray-500);
}

.contact-value {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray-900);
}

.notice-box {
  margin-top: 40px;
  padding: 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.notice-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.notice-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-700);
}

.form-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.form-sub {
  margin: 8px 0 24px;
  font-size: 14px;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }
  .contact-heading { font-size: 30px; }
}

/* ---------- 表单 ---------- */

.field { margin-bottom: 20px; }

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

.req { color: var(--accent); }

.input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-900);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  transition: border-color .18s ease, box-shadow .18s ease;
  appearance: none;
}

select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-500) 50%),
    linear-gradient(135deg, var(--gray-500) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.input::placeholder { color: var(--gray-500); }

.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 139, .08);
}

.input.has-error { border-color: var(--danger); }

.textarea {
  resize: vertical;
  min-height: 112px;
}

.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}

.form-error-summary {
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid #ffccc7;
  border-radius: var(--radius-sm);
  background: #fff2f0;
  color: var(--danger);
  font-size: 13px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 资讯详情 ---------- */

.article-hero {
  padding: 104px 0 48px;
  background: var(--navy);
  color: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  transition: color .18s ease;
}

.back-link:hover { color: #fff; }

.article-title {
  max-width: 800px;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.article-meta {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article-summary {
  margin-bottom: 32px;
  padding: 20px;
  border-left: 3px solid var(--accent);
  background: var(--gray-50);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--navy);
}

.article-body p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 2;
  color: var(--gray-700);
  text-align: justify;
}

.article-source {
  margin-top: 32px;
  font-size: 13px;
  color: var(--gray-500);
  word-break: break-all;
}

.article-source a { color: var(--blue); }

.article-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-300);
}

@media (min-width: 768px) {
  .article-title { font-size: 36px; }
}

/* ---------- 分页 ---------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-700);
  font-size: 14px;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.page-btn.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.page-btn.is-current:hover { color: #fff; }

.page-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--gray-500);
}

.page-btn-wide {
  gap: 4px;
  height: 32px;
  font-size: 12px;
}

/* ---------- 空状态 ---------- */

.empty {
  padding: 48px 0;
  text-align: center;
  font-size: 15px;
  color: var(--gray-500);
}

/* ---------- 404 ---------- */

.error-page {
  padding: 140px 0 120px;
  text-align: center;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.error-title {
  margin: 12px 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.error-text {
  font-size: 15px;
  color: var(--gray-500);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #fff;
}

.footer-inner { padding-top: 56px; padding-bottom: 56px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .6);
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
}

.footer-links {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  transition: color .18s ease;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-copy {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .35);
}

.footer-copy a { color: inherit; transition: color .18s ease; }
.footer-copy a:hover { color: rgba(255, 255, 255, .6); }

@media (min-width: 768px) {
  .footer-inner { padding-top: 72px; padding-bottom: 72px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 浮层提示 ---------- */

.flash-stack {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 48px));
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  line-height: 1.6;
  animation: flash-in .22s ease;
}

.flash-success { border-left-color: #16a34a; }
.flash-error { border-left-color: var(--danger); }
.flash-warning { border-left-color: #d97706; }
.flash-info { border-left-color: var(--blue); }

.flash-text { flex: 1; color: var(--gray-900); }

.flash-close {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   后台
   ========================================================================== */

.page-admin {
  background: var(--gray-100);
}

.admin-shell { min-height: 100vh; }

/* 侧边栏 */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 256px;
  height: 100vh;
  background: var(--navy);
  color: #fff;
  transform: translateX(-100%);
  transition: transform .24s ease;
}

.admin-sidebar.is-open { transform: translateX(0); }

.sidebar-brand {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon.accent { color: var(--accent); }

.sidebar-brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.sidebar-brand-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  transition: background-color .18s ease, color .18s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.sidebar-link.is-active {
  background: rgba(200, 155, 60, .16);
  color: var(--accent);
}

.sidebar-count {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  font-style: normal;
}

.sidebar-link.is-active .sidebar-count { background: rgba(200, 155, 60, .22); }

.sidebar-link-sub {
  padding-left: 32px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, .55);
}

.sidebar-foot {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-user {
  margin-bottom: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.sidebar-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  transition: color .18s ease;
}

.sidebar-home:hover { color: #fff; }

/* 移动端顶栏 */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: var(--navy);
  color: #fff;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.admin-topbar-toggle {
  padding: 4px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, .5);
}

.admin-backdrop[hidden] { display: none; }

/* 主区域 */
.admin-main {
  padding: 20px 16px 56px;
}

@media (min-width: 768px) {
  .admin-sidebar { transform: translateX(0); }
  .admin-topbar { display: none; }
  .admin-backdrop { display: none !important; }
  .admin-main {
    margin-left: 256px;
    padding: 32px 32px 64px;
  }
}

.admin-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.admin-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--gray-500);
}

.admin-head .btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
  .admin-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.inline-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid #f0dcae;
  border-radius: var(--radius-sm);
  background: #fffaf0;
  color: #7a5b12;
  font-size: 13px;
  line-height: 1.7;
}

.inline-tip .icon { margin-top: 3px; }

/* 选项卡 */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-300);
}

.tab {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color .18s ease;
}

.tab:hover { color: var(--gray-900); }

.tab.is-active { color: var(--navy); }

.tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.tab-count {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 11px;
  font-style: normal;
}

.tab.is-active .tab-count {
  background: rgba(200, 155, 60, .16);
  color: #8a6a20;
}

/* 表格 */
.table-wrap {
  display: none;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .table-wrap { display: block; }
}

.data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 11px 12px;
  background: var(--gray-50);
  color: var(--gray-500);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 12px;
  border-top: 1px solid var(--gray-300);
  vertical-align: middle;
  white-space: nowrap;
}

.data-table tbody tr:hover { background: var(--gray-50); }

.th-actions { text-align: right; }

.cell-title { max-width: 240px; }

.title-clamp {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--gray-900);
}

.muted { color: var(--gray-700); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-published {
  background: #dcfce7;
  color: #15803d;
}

.badge-draft {
  background: #e5e7eb;
  color: #4b5563;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  white-space: nowrap;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .18s ease, color .18s ease;
}

.act-publish { color: #16a34a; }
.act-publish:hover { color: #15803d; }
.act-unpublish { color: var(--blue); }
.act-unpublish:hover { color: var(--navy); }
.act-delete { color: var(--danger); }
.act-delete:hover { opacity: .75; }

/* 移动端卡片 */
.admin-cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .admin-cards { display: none; }
}

.admin-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gray-900);
}

.admin-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-500);
}

.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-300);
}

/* 分页与页脚 */
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
}

.admin-pager-btns { display: flex; gap: 8px; }

.admin-empty {
  padding: 48px 24px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}

.admin-empty-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-500);
  opacity: .85;
}

.admin-foot {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
}

.admin-foot a {
  color: var(--gray-500);
  transition: color .18s ease;
}

.admin-foot a:hover { color: var(--gray-900); }

/* 留言 */
.message-list {
  display: grid;
  gap: 12px;
}

.message-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.message-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.message-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.message-company {
  margin-left: 8px;
  font-size: 13px;
  color: var(--gray-500);
}

.message-time {
  font-size: 12px;
  color: var(--gray-500);
}

.message-phone {
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-700);
}

.message-phone a { color: var(--blue); }

.message-body {
  margin-top: 10px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-700);
}

.message-card form { margin-top: 12px; }

/* 登录页 */
.page-login { background: var(--gray-100); }

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 448px;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(5, 28, 44, .07);
}

.login-head { text-align: center; }

.login-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}

.login-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
}

.login-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray-500);
}

.login-error {
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid #ffccc7;
  border-radius: var(--radius-sm);
  background: #fff2f0;
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}

.login-form { margin-top: 24px; }

.login-form .field { margin-bottom: 20px; }

.login-form .btn { padding: 12px; }

.login-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
}

.login-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  transition: color .18s ease;
}

.login-foot a:hover { color: var(--gray-900); }

/* ---------- 无障碍与动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
