/* ==========================================================================
   老妪密语 / Site Kit
   目录：变量与重置 → 基础排版 → 焦点与动效 → 头部 → 页脚
   → 布局组件 → 内容组件 → 图片框 → 响应式
   ========================================================================== */

/* ---------- 变量与重置 ---------- */
:root {
  --bg-warm: #E8E0D5;
  --bg-dark: #3E2B1F;
  --bg-card: #F5F0E6;
  --accent-rust: #C05640;
  --accent-lime: #B8D94A;
  --accent-orange: #F2A93B;
  --status-blue: #4A90D9;
  --status-purple: #8E7CC3;
  --status-green: #5DD39E;
  --status-pink: #E65C81;
  --text-main: #2D1F14;
  --text-sub: #6B5B4B;
  --border: #B8A890;
  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-warm);
  background-image: radial-gradient(rgba(62, 43, 31, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text-main);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
}

body::before {
  top: 18%;
  left: -4%;
  width: 180px;
  height: 140px;
  background: rgba(242, 169, 59, 0.08);
  transform: rotate(-12deg);
}

body::after {
  bottom: 22%;
  right: -5%;
  width: 160px;
  height: 120px;
  background: rgba(192, 86, 64, 0.07);
  transform: rotate(9deg);
  border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
}

main {
  display: block;
  width: 100%;
  flex: 1 0 auto;
}

#main-content {
  min-height: 58vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.3;
  font-weight: 800;
}

a {
  color: var(--accent-rust);
  text-decoration: none;
}

a:hover {
  color: var(--text-main);
}

ul,
ol {
  list-style-position: inside;
}

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

input,
button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent-lime);
  color: var(--text-main);
}

[hidden] {
  display: none !important;
}

/* ---------- 焦点与动效 ---------- */
:focus-visible {
  outline: 3px solid var(--accent-lime);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--bg-dark);
  box-shadow: 0 4px 18px rgba(62, 43, 31, 0.22);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent-lime);
  z-index: 300;
  pointer-events: none;
  transition: width 0.08s linear;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 210;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: var(--bg-card);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent-lime);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-lime);
  color: var(--text-main);
  font-size: 0.92rem;
  border-radius: 8px 8px 8px 0;
  transform: rotate(-3deg);
  box-shadow: inset 0 -2px 0 rgba(62, 43, 31, 0.18);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(245, 240, 230, 0.86);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(184, 217, 74, 0.24);
  color: var(--accent-lime);
}

.nav-link[aria-current="page"] {
  background: var(--accent-lime);
  color: var(--text-main);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 2px 6px 2px 12px;
  transition: border-color 0.18s ease;
}

.search-box:focus-within {
  border-color: var(--accent-lime);
}

.search-icon {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1;
}

.search-input {
  width: 112px;
  border: none;
  background: transparent;
  padding: 6px 6px 6px 2px;
  font-size: 0.82rem;
  color: var(--text-main);
}

.search-input::placeholder {
  color: var(--text-sub);
  opacity: 0.75;
}

.search-input:focus {
  outline: none;
  width: 168px;
}

.search-input::-webkit-search-cancel-button {
  opacity: 0.45;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: var(--accent-rust);
  border-radius: 12px 12px 12px 0;
  transition: background 0.18s ease;
}

.nav-toggle:hover {
  background: var(--status-pink);
}

.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bg-card);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--bg-dark);
  color: var(--bg-card);
  border-top: 4px solid var(--accent-rust);
  margin-top: auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--accent-orange) 0 14px, transparent 14px 28px);
  pointer-events: none;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 52px 24px 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 36px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: var(--bg-card);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--accent-lime);
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent-lime);
  color: var(--text-main);
  font-size: 0.86rem;
  border-radius: 7px 7px 7px 0;
  transform: rotate(-3deg);
  box-shadow: inset 0 -2px 0 rgba(62, 43, 31, 0.18);
}

.footer-desc {
  color: rgba(245, 240, 230, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: rgba(245, 240, 230, 0.8);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(242, 169, 59, 0.5);
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.14);
}

.footer-contact p {
  margin: 8px 0;
  color: rgba(245, 240, 230, 0.74);
  font-size: 0.84rem;
  line-height: 1.6;
  word-break: break-all;
}

.footer-contact a {
  color: rgba(245, 240, 230, 0.8);
  text-decoration: none;
  border-bottom: 1px dotted rgba(245, 240, 230, 0.3);
}

.footer-contact a:hover {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.contact-label {
  color: var(--accent-orange);
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(245, 240, 230, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(245, 240, 230, 0.5);
}

.footer-icp {
  color: rgba(245, 240, 230, 0.48);
}

/* ---------- 布局组件 ---------- */
.page-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.section-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px 20px 20px 4px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(62, 43, 31, 0.05);
}

.section-panel--dark {
  background: var(--bg-dark);
  color: var(--bg-card);
  border-color: var(--bg-dark);
}

.section-panel--rust {
  background: var(--accent-rust);
  color: var(--bg-card);
  border-color: var(--accent-rust);
}

.section-panel--tint {
  background: rgba(184, 217, 74, 0.08);
  border-color: rgba(184, 217, 74, 0.4);
}

.section-panel--flat {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.24rem;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-rust);
}

.heading-index {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--accent-lime);
  color: var(--text-main);
  padding: 2px 10px;
  border-radius: 4px 4px 4px 0;
}

.section-panel--dark .section-heading {
  border-bottom-color: var(--accent-orange);
  color: var(--bg-card);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 22px;
  font-size: 0.84rem;
}

.breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-rust);
  text-decoration: underline;
}

.breadcrumb .current {
  color: var(--text-main);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 2px solid var(--text-main);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  background: var(--text-main);
  color: var(--bg-card);
  border-color: var(--text-main);
}

.btn--accent {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: var(--text-main);
}

.btn--accent:hover {
  background: var(--text-main);
  border-color: var(--text-main);
  color: var(--accent-lime);
}

.btn--rust {
  background: var(--accent-rust);
  border-color: var(--accent-rust);
  color: var(--bg-card);
}

.btn--rust:hover {
  background: var(--text-main);
  border-color: var(--text-main);
  color: var(--bg-card);
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 2px;
  padding: 18px;
  text-decoration: none;
  color: var(--text-main);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a.card:hover {
  border-color: var(--accent-rust);
  box-shadow: 0 6px 16px rgba(62, 43, 31, 0.08);
  transform: translateY(-3px);
}

.card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
  font-size: 0.8rem;
  margin-top: auto;
}

/* ---------- 磁贴矩阵 ---------- */
.tile-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 0;
  padding: 16px 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

a.tile:hover {
  transform: rotate(0.6deg) scale(1.02);
  border-color: var(--accent-orange);
  box-shadow: 0 4px 12px rgba(62, 43, 31, 0.08);
}

.tile-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.3;
}

.tile-count {
  color: var(--text-sub);
  font-size: 0.78rem;
}

.tile--lime {
  background: rgba(184, 217, 74, 0.2);
  border-color: rgba(184, 217, 74, 0.6);
}

.tile--orange {
  background: rgba(242, 169, 59, 0.2);
  border-color: rgba(242, 169, 59, 0.6);
}

.tile--rust {
  background: rgba(192, 86, 64, 0.1);
  border-color: rgba(192, 86, 64, 0.45);
}

.tile--blue {
  background: rgba(74, 144, 217, 0.12);
  border-color: rgba(74, 144, 217, 0.4);
}

.tile--purple {
  background: rgba(142, 124, 195, 0.15);
  border-color: rgba(142, 124, 195, 0.45);
}

/* ---------- 条目列表 ---------- */
.entry-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 0;
  overflow: hidden;
}

.entry-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.14s ease, padding-left 0.14s ease;
}

.entry-item:last-child {
  border-bottom: none;
}

a.entry-item:hover {
  background: rgba(184, 217, 74, 0.15);
  padding-left: 20px;
}

.entry-title {
  font-weight: 600;
  font-size: 0.92rem;
  flex: 1;
  min-width: 0;
}

.entry-meta {
  color: var(--text-sub);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ---------- 标签块组 ---------- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-orange);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.tag:hover {
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.tag--rust {
  background: var(--accent-rust);
  color: var(--bg-card);
}

.tag--lime {
  background: var(--accent-lime);
}

.tag--blue {
  background: var(--status-blue);
  color: var(--bg-card);
}

.tag--purple {
  background: var(--status-purple);
  color: var(--bg-card);
}

.tag--green {
  background: var(--status-green);
  color: var(--text-main);
}

.tag--pink {
  background: var(--status-pink);
  color: var(--bg-card);
}

/* ---------- 状态徽标 ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px 4px 4px 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.4;
  white-space: nowrap;
}

.status-badge--new {
  background: var(--status-blue);
  color: #FFFFFF;
}

.status-badge--archived {
  background: var(--status-purple);
  color: #FFFFFF;
}

.status-badge--serial {
  background: var(--status-green);
  color: var(--text-main);
}

.status-badge--complete {
  background: var(--status-pink);
  color: #FFFFFF;
}

/* ---------- 序号标记 ---------- */
.seq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  background: rgba(192, 86, 64, 0.1);
  color: var(--accent-rust);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.92rem;
  border-radius: 4px 4px 4px 0;
  line-height: 1;
}

/* ---------- 指标条 ---------- */
.metric {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.metric-bar {
  flex: 1;
  height: 6px;
  background: rgba(62, 43, 31, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.metric-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent-lime);
  min-width: 2px;
  transition: width 0.3s ease;
}

.metric-fill--rust {
  background: var(--accent-rust);
}

.metric-fill--orange {
  background: var(--accent-orange);
}

.metric-fill--blue {
  background: var(--status-blue);
}

.metric-fill--purple {
  background: var(--status-purple);
}

.metric-fill--pink {
  background: var(--status-pink);
}

.metric-value {
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 索引条 ---------- */
.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  background: rgba(62, 43, 31, 0.05);
  border-radius: 14px 14px 14px 0;
}

.index-link {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px 8px 8px 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.index-link:hover {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: var(--text-main);
}

.index-link[aria-current="true"] {
  background: var(--accent-rust);
  border-color: var(--accent-rust);
  color: var(--bg-card);
}

/* ---------- 横向滑轨 ---------- */
.scroll-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
}

.scroll-rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ---------- 对照表格 ---------- */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.86rem;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--bg-dark);
  color: var(--bg-card);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background 0.14s ease;
}

.data-table tbody tr:hover {
  background: rgba(184, 217, 74, 0.12);
}

/* ---------- 图片框 ---------- */
.img-frame {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 12px 12px 12px 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  position: relative;
}

.img-frame--wide {
  aspect-ratio: 16 / 9;
}

.img-frame--square {
  aspect-ratio: 1 / 1;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.img-frame:hover img {
  transform: scale(1.03);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    font-size: 1.16rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav {
    flex: 0 0 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(245, 240, 230, 0.16);
    position: static;
    order: 6;
  }

  .site-nav[data-open="true"] {
    display: flex;
    animation: navDrop 0.16s ease-out;
  }

  @keyframes navDrop {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.94rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 20px 28px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 8px 10px;
  }

  .search-input {
    width: 80px;
  }

  .search-input:focus {
    width: 110px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .section-panel {
    padding: 20px 16px;
    border-radius: 16px 16px 16px 4px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tile-matrix {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .brand-text {
    font-size: 1.02rem;
  }

  .search-box {
    padding-left: 8px;
  }

  .search-input {
    width: 64px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}
