/* sscreputation.com — 整站模板 */
:root {
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --text: #1c1917;
  --text-secondary: #57534e;
  --brand: #c2410c;
  --brand-hover: #9a3412;
  --brand-muted: rgba(194, 65, 12, 0.12);
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --soft: #fff7ed;
  --notice-bg: linear-gradient(135deg, #fff7ed 0%, #fffbeb 55%, #ffffff 100%);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow: 0 4px 6px -1px rgba(28, 25, 23, 0.07), 0 10px 24px -4px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 12px 40px -8px rgba(28, 25, 23, 0.12);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1120px;
  --prose-max: 65ch;
  --header-h: 72px;
  --focus-ring: 0 0 0 3px rgba(194, 65, 12, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 237, 213, 0.5), transparent);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* 跳过导航 — 无障碍 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-lg);
}

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-radius: var(--radius-sm);
}
.brand:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand-text strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-text span {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.35;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover {
  background: var(--soft);
  border-color: var(--brand-muted);
}
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
  transition: transform 0.2s;
}

.site-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-nav a:hover {
  color: var(--brand-hover);
  background: var(--brand-muted);
}

.site-nav a.active {
  color: var(--brand-hover);
  background: var(--soft);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.15);
}

.site-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Hero */
.hero {
  padding: clamp(32px, 5vw, 56px) 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--soft);
  color: var(--brand-hover);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(194, 65, 12, 0.12);
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}

.hero p,
.page-hero > .container > p,
.page-hero p.intro {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(165deg, var(--brand) 0%, #ea580c 100%);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(194, 65, 12, 0.32);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--brand-hover);
}

.btn-secondary:hover {
  background: var(--soft);
  border-color: rgba(194, 65, 12, 0.25);
  color: var(--brand-hover);
}

/* 卡片基类 */
.hero-card,
.card,
.stat,
.notice,
.list-card,
.article-card,
.info-box,
.table-wrap,
.contact-card,
.footer-card,
.feature-post {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.hero-card:hover {
  box-shadow: var(--shadow-lg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card .caption {
  padding: 14px 18px 18px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fafaf9 0%, #fff 100%);
}

.section {
  padding: clamp(22px, 4vw, 36px) 0;
}

.section + .section {
  border-top: 1px solid transparent;
}

.latest-news.section {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 247, 237, 0.35) 40%, transparent 100%);
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.feature-post {
  padding: clamp(20px, 3vw, 28px);
  background: var(--notice-bg);
  border-color: rgba(194, 65, 12, 0.12);
}

.feature-post h3 {
  margin: 12px 0 12px;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  font-weight: 700;
}

.feature-post h3 a {
  color: var(--text);
  transition: color 0.2s;
}

.feature-post h3 a:hover {
  color: var(--brand);
}

.feature-post p {
  margin: 0;
  color: var(--text-secondary);
}

.latest-side {
  display: grid;
  gap: 16px;
}

.latest-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.latest-actions {
  margin-top: 20px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 56ch;
}

.link-more {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
}

.link-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-more:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.article-card,
.list-card,
.contact-card,
.info-box {
  padding: 22px;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.card:hover,
.article-card:hover {
  border-color: rgba(194, 65, 12, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card h3,
.article-card h3,
.list-card h3,
.contact-card h3,
.info-box h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
}

.card h3 a,
.article-card h3 a {
  color: var(--text);
}
.card h3 a:hover,
.article-card h3 a:hover {
  color: var(--brand);
}

.card p,
.article-card p,
.list-card p,
.contact-card p,
.info-box p,
.table-wrap p,
.notice p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.icon-badge {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--brand-hover);
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  border: 1px solid rgba(194, 65, 12, 0.1);
}

.stat {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
}

.stat strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.notice {
  padding: 20px 22px;
  display: grid;
  gap: 10px;
  background: var(--notice-bg);
  border-color: rgba(194, 65, 12, 0.15);
}

.notice strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-hover);
}

.list-card ul,
.article-list,
.simple-list,
.footer-links,
.breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list li,
.simple-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.article-list li:last-child,
.simple-list li:last-child {
  border-bottom: 0;
}

.article-list a {
  color: var(--text);
  font-weight: 500;
}
.article-list a:hover {
  color: var(--brand);
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-top: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tags span {
  padding: 6px 12px;
  background: var(--soft);
  color: var(--brand-hover);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(194, 65, 12, 0.08);
}

.page-hero {
  padding: clamp(28px, 4vw, 44px) 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.4) 0%, transparent 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

/* 模板中的「/」分隔 li */
.breadcrumb li:nth-child(even):not(:first-child) {
  color: var(--line-strong);
  font-weight: 300;
  user-select: none;
  padding: 0 2px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: clamp(18px, 3vw, 28px);
  padding-bottom: clamp(28px, 5vw, 48px);
}

.article-body,
.sidebar {
  min-width: 0;
}

.prose {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}

/* 段落保持舒适行宽；表格等块级元素占满栏宽 */
.prose > p,
.prose > ul,
.prose > ol {
  max-width: var(--prose-max);
}

.prose h2,
.prose h3 {
  max-width: var(--prose-max);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 1.75em;
  margin-bottom: 0.65em;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  font-size: 1.0625rem;
  font-weight: 700;
}

.prose p {
  margin: 1em 0;
  color: var(--text-secondary);
}

.prose a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--brand-hover);
}

.prose ul {
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.prose li {
  margin: 0.5em 0;
}

.prose li::marker {
  color: var(--brand);
}

.table-wrap {
  padding: 4px 4px 12px;
  overflow-x: auto;
  border-radius: var(--radius);
  margin: 1.25em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--brand-hover);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0.02em;
  background: #fafaf9;
}

tbody tr:hover td {
  background: rgba(255, 247, 237, 0.35);
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 1px solid rgba(194, 65, 12, 0.15);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-hover);
  font-size: 0.9375rem;
}

.contact-card a {
  color: var(--brand);
  font-weight: 600;
  word-break: break-all;
}

.site-footer {
  margin-top: clamp(32px, 6vw, 56px);
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: #f5f5f4;
  background-image: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: clamp(20px, 3vw, 32px);
}

.footer-card {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.footer-card h3 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.footer-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 40ch;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
  padding: 4px 0;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* 移动端 */
@media (max-width: 900px) {
  .hero-grid,
  .content-grid,
  .footer-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .latest-layout,
  .latest-bottom {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 20px;
    right: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .site-nav a {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .header-wrap {
    position: relative;
  }

  .brand-text span {
    max-width: 200px;
  }

  .page-hero {
    margin-bottom: 0;
  }
}

/* 跳过导航后主区域焦点提示 */
#main:focus {
  outline: none;
}
#main:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.45);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .prose,
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
