/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #334155;
  line-height: 1.6;
  font-size: 1rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #f59e0b;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1e293b;
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin-bottom: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1e293b;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav .nav-list a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-list a:hover,
.site-nav .nav-list a:focus-visible {
  background-color: #f1f5f9;
  color: #1e293b;
}

.site-nav .nav-list a.is-current {
  color: #f59e0b;
  font-weight: 600;
}

.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: #64748b;
}

.breadcrumb a:hover {
  color: #f59e0b;
}

.breadcrumb-sep {
  color: #94a3b8;
}

.breadcrumb-current {
  color: #1e293b;
  font-weight: 500;
}

.page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.25rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 0.9375rem;
  color: #64748b;
  max-width: 720px;
}

.site-footer {
  background-color: #1e293b;
  color: #cbd5e1;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.875rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: #f59e0b;
}

.footer-feedback {
  margin-top: 0.75rem;
}

.footer-feedback a {
  color: #f59e0b;
  font-size: 0.875rem;
}

.footer-copy {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 按钮 */
.btn-primary {
  display: inline-block;
  background-color: #f59e0b;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #d97706;
  color: #ffffff;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.btn-back,
.btn-guide {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-back {
  background-color: #f59e0b;
  color: #1e293b;
}

.btn-back:hover {
  background-color: #d97706;
  color: #ffffff;
}

.btn-guide {
  background-color: #1e293b;
  color: #ffffff;
}

.btn-guide:hover {
  background-color: #334155;
  color: #ffffff;
}

/* 标签 */
.tag {
  display: inline-block;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.375rem;
  white-space: nowrap;
}

/* 区块标题 */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-link {
  font-size: 0.875rem;
  color: #f59e0b;
  font-weight: 500;
}

.section-link:hover {
  color: #d97706;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* 卡片 */
.featured-card,
.work-card,
.category-work {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.featured-card:hover,
.work-card:hover,
.category-work:hover {
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.08);
  transform: translateY(-2px);
}

/* 列表 */
.update-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  border-bottom: 1px solid #f1f5f9;
}

.update-item:last-child {
  border-bottom: 0;
}

/* 排行榜 */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

/* ==========================================================================
   index 页
   ========================================================================== */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin: 1.5rem 0 2rem;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  background-color: #fef3c7;
  color: #b45309;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.875rem;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.hero-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-figure {
  flex: 0 0 280px;
  border-radius: 8px;
  overflow: hidden;
}

.hero-figure img {
  width: 280px;
  height: 360px;
  object-fit: cover;
}

.home-columns {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.updates-preview {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.updates-preview .update-item {
  padding: 0.75rem 0;
}

.item-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.item-thumb {
  flex: 0 0 56px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.item-thumb img {
  width: 56px;
  height: 72px;
  object-fit: cover;
}

.item-info {
  flex: 1;
}

.item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.item-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.ranking-preview {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.ranking-preview .rank-item {
  padding: 0.5rem 0;
}

.rank-num {
  flex: 0 0 28px;
  font-family: "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #f59e0b;
  text-align: center;
}

.rank-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}

.rank-thumb {
  flex: 0 0 40px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.rank-thumb img {
  width: 40px;
  height: 52px;
  object-fit: cover;
}

.rank-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.tag-cloud-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.tag-cloud-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.section-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.tag-item {
  display: inline-block;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.875rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag-item:hover {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.featured-section {
  margin-bottom: 2.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.featured-card {
  padding: 0;
}

.card-link {
  display: block;
  padding: 0;
}

.card-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 0.875rem 0.25rem;
}

.card-comment {
  font-size: 0.8125rem;
  color: #64748b;
  padding: 0 0.875rem 0.875rem;
  line-height: 1.5;
}

.guide-cta {
  background-color: #1e293b;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.guide-cta-content h2 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.guide-cta-content p {
  color: #cbd5e1;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.guide-cta-content p a {
  color: #f59e0b;
}

.guide-cta-content .btn-primary {
  background-color: #f59e0b;
  color: #1e293b;
}

.guide-cta-content .btn-primary:hover {
  background-color: #d97706;
  color: #ffffff;
}

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.related-links-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-right: 0.5rem;
}

.related-links-item {
  font-size: 0.875rem;
  color: #f59e0b;
}

.related-links-item:hover {
  color: #d97706;
}

/* ==========================================================================
   works 页
   ========================================================================== */

.filter-tags {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tags-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-right: 0.375rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  display: inline-block;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8125rem;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tag-list a:hover {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.works-grid-section {
  margin-bottom: 2rem;
}

.works-grid-section > h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.work-card {
  display: flex;
  flex-direction: column;
}

.work-cover {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.work-cover img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.work-info {
  padding: 1rem 1.125rem 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.work-tags {
  margin-bottom: 0.5rem;
}

.work-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}

.work-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-family: "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

.field-note {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.field-note h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.field-note-content {
  font-size: 0.875rem;
  color: #475569;
}

.field-list {
  margin: 1rem 0;
}

.field-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.field-item:last-child {
  border-bottom: 0;
}

.field-item dt {
  flex: 0 0 120px;
  font-weight: 600;
  color: #1e293b;
}

.field-item dd {
  flex: 1;
  color: #475569;
}

.field-note-tip {
  font-size: 0.875rem;
  color: #64748b;
}

.field-note-tip a {
  color: #f59e0b;
}

.sort-note {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.sort-note h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.25rem;
}

.sort-note p {
  font-size: 0.875rem;
  color: #92400e;
}

/* ==========================================================================
   categories 页
   ========================================================================== */

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.anchor-nav a {
  display: inline-block;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.875rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.anchor-nav a:hover {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.category-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.category-block {
  scroll-margin-top: 80px;
}

.category-heading {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.category-heading h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.category-heading h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: #f59e0b;
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: -2px;
}

.category-desc {
  font-size: 0.875rem;
  color: #64748b;
}

.category-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.category-work {
  display: flex;
  flex-direction: column;
}

.category-work > a {
  display: block;
}

.work-figure {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.work-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-work h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1rem 0.25rem;
}

.work-brief {
  font-size: 0.8125rem;
  color: #64748b;
  padding: 0 1rem 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   ranking 页
   ========================================================================== */

.ranking-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-note {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.ranking-section .rank-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.ranking-section .rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  flex: 0 0 32px;
  font-family: "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f59e0b;
  text-align: center;
}

.rank-cover {
  flex: 0 0 48px;
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.rank-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.rank-week {
  font-size: 0.8125rem;
  color: #64748b;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ranking-note {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.ranking-note h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.ranking-note p {
  font-size: 0.875rem;
  color: #92400e;
  margin-bottom: 0.375rem;
}

.ranking-note p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   updates 页
   ========================================================================== */

.timeline-section {
  margin-bottom: 2rem;
}

.timeline-group {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 80px;
}

.timeline-date {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #fef3c7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-date::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #f59e0b;
  border-radius: 50%;
}

.timeline-section .update-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.timeline-section .update-item:last-child {
  border-bottom: 0;
}

.update-thumb {
  flex: 0 0 64px;
  height: 84px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.update-thumb img {
  width: 64px;
  height: 84px;
  object-fit: cover;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.375rem;
}

.update-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.update-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 500;
}

.status-note-section {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.status-note-section .section-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.status-note-section p {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.375rem;
}

.status-note-section p:last-child {
  margin-bottom: 0;
}

.updates-page .related-links {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.related-links p {
  font-size: 0.875rem;
  color: #475569;
}

.related-links a {
  color: #f59e0b;
}

/* ==========================================================================
   guide 页
   ========================================================================== */

.layout-guide {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 80px;
}

.quick-nav {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.quick-nav-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #fef3c7;
}

.quick-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.quick-nav-list a {
  display: block;
  font-size: 0.875rem;
  color: #475569;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.quick-nav-list a:hover {
  background-color: #f8fafc;
  color: #f59e0b;
}

.guide-image {
  border-radius: 8px;
  overflow: hidden;
}

.guide-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.guide-content {
  min-width: 0;
}

.faq-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.faq-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  scroll-margin-top: 80px;
}

.faq-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #fef3c7;
}

.faq-card h2::before {
  content: "Q";
  display: inline-block;
  background-color: #fef3c7;
  color: #b45309;
  font-size: 0.8125rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
  margin-right: 0.5rem;
  vertical-align: 2px;
}

.faq-card p {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.faq-card p:last-child {
  margin-bottom: 0;
}

.faq-card a {
  color: #f59e0b;
}

.copyright-note {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.copyright-note p {
  font-size: 0.8125rem;
  color: #64748b;
}

/* ==========================================================================
   about 页
   ========================================================================== */

.layout-shell {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: center;
}

.intro-copy h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.intro-copy p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.intro-media {
  border-radius: 8px;
  overflow: hidden;
}

.intro-media img {
  width: 300px;
  height: 200px;
  object-fit: cover;
}

.intro-media figcaption {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  padding: 0.375rem;
  background-color: #f8fafc;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-details h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #fef3c7;
}

.method-list,
.standards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.method-list li,
.standards-list li {
  padding: 1rem;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
}

.method-list h3,
.standards-list h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.method-list p,
.standards-list p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

.feedback-note {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.feedback-note h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.feedback-note p {
  font-size: 0.875rem;
  color: #92400e;
  margin-bottom: 0.375rem;
}

.feedback-note a {
  color: #b45309;
  font-weight: 500;
}

/* ==========================================================================
   404 页
   ========================================================================== */

.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-panel {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.error-code {
  font-family: "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 4rem;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-panel h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.error-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-figure {
    flex-basis: 220px;
  }

  .hero-figure img {
    width: 220px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0.125rem;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
  }

  .home-main,
  .inner-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-figure {
    flex-basis: auto;
    width: 100%;
    max-width: 280px;
  }

  .hero-figure img {
    width: 100%;
    height: 320px;
  }

  .home-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .card-link img {
    height: 180px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .work-cover,
  .work-cover img {
    height: 200px;
  }

  .category-works {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .work-figure,
  .work-figure img {
    height: 160px;
  }

  .layout-guide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guide-sidebar {
    position: static;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .intro-media img {
    width: 100%;
    height: 220px;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ranking-section {
    padding: 1.25rem;
  }

  .section-head {
    flex-direction: column;
    gap: 0.25rem;
  }

  .rank-cover {
    flex-basis: 40px;
    width: 40px;
    height: 54px;
  }

  .rank-week {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-slogan {
    display: none;
  }

  .hero-content h1 {
    font-size: 1.375rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }

  .featured-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .category-works {
    grid-template-columns: 1fr;
  }

  .card-link img {
    height: 220px;
  }

  .work-cover,
  .work-cover img {
    height: 240px;
  }

  .work-figure,
  .work-figure img {
    height: 200px;
  }

  .timeline-section .update-item {
    gap: 0.75rem;
  }

  .update-thumb {
    flex-basis: 52px;
    height: 68px;
  }

  .update-thumb img {
    width: 52px;
    height: 68px;
  }

  .field-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .field-item dt {
    flex-basis: auto;
  }

  .error-panel {
    padding: 2rem 1.25rem;
  }

  .error-code {
    font-size: 3rem;
  }
}
