/* ============================================
   桃園市政府教育局 學校午餐輔導團
   現代科技感設計版本
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

:root {
  --primary:       #00875a;
  --primary-dark:  #005c3d;
  --primary-deep:  #003d29;
  --primary-light: #00b377;
  --accent:        #00e5a0;
  --accent-warm:   #f0c040;
  --text-dark:     #0d1117;
  --text-mid:      #3d4a52;
  --text-light:    #7a8a94;
  --text-muted:    #b0bec5;
  --border:        #e0e8e4;
  --border-light:  #f0f5f2;
  --white:         #ffffff;
  --bg:            #f6f9f7;
  --bg-card:       #ffffff;
  --surface:       #f0f6f3;
  --green-pale:    #e8f5ef;
  --shadow-sm:     0 1px 4px rgba(0,135,90,0.06), 0 2px 12px rgba(0,0,0,0.04);
  --shadow:        0 4px 20px rgba(0,135,90,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:     0 12px 40px rgba(0,135,90,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --font-sans:     'Noto Sans TC', sans-serif;
  --font-serif:    'Noto Sans TC', sans-serif;
  --transition:    all 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── 頂部欄 ── */
.top-bar {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
  padding: 7px 0;
  letter-spacing: 0.3px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.55); margin-left: 20px; transition: var(--transition); }
.top-bar a:hover { color: var(--accent); }
.top-links { display: flex; align-items: center; }

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(0,229,160,0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(0,135,90,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,160,0.4), transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; padding: 22px 0;
}
.site-logo { display: flex; align-items: center; gap: 20px; }
.header-logo {
  height: 100px; width: auto;
  background: rgba(255,255,255,0.97);
  padding: 8px 16px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.site-logo-divider {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
}
.site-title {
  font-family: var(--font-sans);
  font-size: 22px; color: #fff;
  font-weight: 700; line-height: 1.3;
  letter-spacing: 1px;
}
.site-subtitle {
  font-size: 12px; color: rgba(255,255,255,0.55);
  margin-top: 4px; letter-spacing: 2px;
  font-weight: 300; text-transform: uppercase;
}
.header-seal .seal-circle {
  width: 68px; height: 68px;
  border: 1px solid rgba(0,229,160,0.3);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  background: rgba(0,229,160,0.05);
}
.seal-circle span { font-size: 20px; font-weight: 700; line-height: 1; }
.seal-small { font-size: 9px; letter-spacing: 1px; }

/* ── 主導覽 ── */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner { display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; flex: 1; }

.nav-link {
  display: block; padding: 17px 20px;
  font-size: 14px; font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative; letter-spacing: 0.3px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 20px; right: 20px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px 2px 0 0;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); min-width: 190px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  list-style: none; z-index: 200;
  overflow: hidden;
}
.dropdown li a {
  display: block; padding: 11px 20px;
  font-size: 13.5px; color: var(--text-mid);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--surface); color: var(--primary); padding-left: 24px; }
.has-dropdown:hover .dropdown { display: block; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 12px; }

/* ── 主內容 ── */
.main-content { padding: 32px 0 60px; min-height: 60vh; }

/* ── 麵包屑 ── */
.breadcrumb {
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ── 頁面標題 ── */
.page-title-bar {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.page-title-bar h2 {
  font-size: 22px; color: var(--text-dark);
  font-weight: 700; letter-spacing: 0.5px;
}
.page-title-bar::before {
  content: '';
  display: block; width: 4px; height: 24px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px; flex-shrink: 0;
}

/* ── 首頁佈局 ── */
.home-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }

/* ── 輪播橫幅 ── */
.banner-slider {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  aspect-ratio: 16/5;
  margin-bottom: 28px;
  position: relative;
}
.banner-slide {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: white; position: relative;
}
.banner-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,229,160,0.15), transparent 60%);
}

/* ── Section Card ── */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.section-card:hover { box-shadow: var(--shadow); }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
}
.section-head h3 {
  font-size: 15px; color: var(--text-dark);
  font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.section-head .more-link {
  font-size: 12.5px; color: var(--text-light);
  display: flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: var(--transition);
}
.section-head .more-link:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--green-pale);
}

/* ── 公告列表 ── */
.news-list { list-style: none; }
.news-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--surface); }
.news-date {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; font-weight: 500;
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.5px;
}
.news-tag-top {
  background: linear-gradient(135deg, #ff4d4d, #ff7070);
  color: white; font-size: 10px; padding: 2px 8px;
  border-radius: 20px; white-space: nowrap; font-weight: 600;
  letter-spacing: 0.5px;
}
.news-title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-title a { color: var(--text-dark); font-weight: 400; }
.news-title a:hover { color: var(--primary); }

/* ── 公告詳情 ── */
.news-detail { max-width: 860px; }
.news-detail-title { font-size: 26px; color: var(--text-dark); margin-bottom: 12px; font-weight: 700; line-height: 1.4; }
.news-meta {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.news-meta::before { content: '📅'; font-size: 14px; }
.news-body { line-height: 2; color: var(--text-mid); margin-bottom: 28px; }
.news-body img { max-width: 100%; border-radius: var(--radius-lg); margin: 16px 0; }
.attachments {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 24px; border-radius: var(--radius-lg);
}
.attachments h4 { font-size: 14px; margin-bottom: 12px; color: var(--text-dark); font-weight: 600; }
.attach-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.attach-item:last-child { border-bottom: none; }
.attach-item a { color: var(--primary); font-weight: 500; }
.attach-item a:hover { color: var(--primary-light); }

/* ── 相簿 ── */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.album-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--bg-card);
  display: block;
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.album-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.album-card:hover .album-cover img { transform: scale(1.06); }
.album-info { padding: 14px 16px; }
.album-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text-dark); }
.album-info p { font-size: 12px; color: var(--text-muted); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-item {
  aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer; background: var(--surface);
  position: relative;
}
.photo-item::after {
  content: '🔍';
  position: absolute; inset: 0;
  background: rgba(0,61,41,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  opacity: 0; transition: var(--transition);
}
.photo-item:hover::after { opacity: 1; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-item:hover img { transform: scale(1.08); }

/* ── 下載清單 ── */
.download-table { width: 100%; border-collapse: collapse; }
.download-table th {
  background: var(--surface);
  padding: 12px 16px; font-size: 13px;
  text-align: left; border-bottom: 2px solid var(--border);
  color: var(--text-mid); font-weight: 600; letter-spacing: 0.3px;
}
.download-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light); color: var(--text-mid); }
.download-table tr:hover td { background: var(--surface); }
.dl-btn {
  background: var(--primary); color: white;
  padding: 5px 16px; border-radius: 20px; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: var(--transition); font-weight: 500;
}
.dl-btn:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,135,90,0.25); }

/* ── 相關連結 ── */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: var(--transition);
}
.link-card:hover {
  border-color: var(--primary);
  background: var(--green-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.link-card .link-icon {
  font-size: 26px; width: 44px; height: 44px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.link-card:hover .link-icon { background: white; }
.link-card .link-text { font-size: 13.5px; color: var(--text-dark); font-weight: 500; line-height: 1.4; }

/* ── 側欄 ── */
.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-head {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; font-size: 14px; font-weight: 600;
  letter-spacing: 0.5px;
}
.sidebar-list { list-style: none; }
.sidebar-list li a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 20px; font-size: 13.5px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-mid); transition: var(--transition);
}
.sidebar-list li a::before {
  content: '›'; color: var(--primary); font-size: 16px; font-weight: 700;
}
.sidebar-list li:last-child a { border-bottom: none; }
.sidebar-list li a:hover { background: var(--surface); color: var(--primary); padding-left: 26px; }

/* ── 分頁 ── */
.pagination { display: flex; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; color: var(--text-mid);
  transition: var(--transition); font-weight: 500;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,135,90,0.25);
}

/* ── 燈箱 ── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-lg); }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  color: white; font-size: 32px; cursor: pointer;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ── 頁尾 ── */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.55);
  padding: 48px 0 0;
  margin-top: 40px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-col h3 { font-size: 15px; color: white; margin-bottom: 12px; font-weight: 700; letter-spacing: 0.5px; }
.footer-col h4 { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.footer-col p { font-size: 13px; margin-bottom: 8px; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 2.2; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a::before { content: '›'; color: var(--accent); opacity: 0.6; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.3px;
}

/* ── 表單元素 ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text-mid); letter-spacing: 0.2px; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-sans);
  transition: var(--transition);
  background: var(--white); color: var(--text-dark);
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,135,90,0.12);
}
textarea.form-control { min-height: 130px; resize: vertical; }

/* ── 按鈕 ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; border-radius: var(--radius);
  font-size: 14px; cursor: pointer; border: none;
  transition: var(--transition); font-family: var(--font-sans);
  font-weight: 500; letter-spacing: 0.2px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,135,90,0.25); }
.btn-danger { background: #e53e3e; color: white; }
.btn-danger:hover { background: #c53030; color: white; }
.btn-secondary { background: var(--surface); color: var(--text-mid); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text-dark); }
.btn-sm { padding: 5px 14px; font-size: 12.5px; }

/* ── 提示訊息 ── */
.alert { padding: 13px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; border-left: 4px solid; }
.alert-success { background: #f0fff8; border-color: var(--primary); color: var(--primary-dark); }
.alert-danger { background: #fff5f5; border-color: #e53e3e; color: #c53030; }

/* ── 後台樣式 ── */
.admin-body { background: #f4f6f8; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 248px; flex-shrink: 0;
  background: var(--primary-deep);
  position: fixed; height: 100vh; overflow-y: auto;
}
.admin-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-logo h2 { font-size: 13.5px; color: white; font-weight: 700; line-height: 1.6; letter-spacing: 0.3px; }
.admin-nav { list-style: none; padding: 8px 0; }
.admin-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: 13.5px; color: rgba(255,255,255,0.55);
  transition: var(--transition); border-left: 3px solid transparent;
}
.admin-nav li a:hover, .admin-nav li a.active {
  background: rgba(255,255,255,0.07);
  color: white; border-left-color: var(--accent);
}
.admin-nav .nav-section {
  padding: 14px 20px 4px; font-size: 10.5px;
  color: rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 1.5px;
}
.admin-main { margin-left: 248px; flex: 1; }
.admin-topbar {
  background: white; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 17px; color: var(--text-dark); font-weight: 700; }
.admin-content { padding: 28px; }

.admin-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden;
}
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--border-light);
}
.admin-card-head h3 { font-size: 15px; color: var(--text-dark); font-weight: 600; }
.admin-card-body { padding: 22px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--surface); padding: 11px 16px;
  font-size: 12.5px; text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-light); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.data-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light); color: var(--text-mid); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }
.data-table .actions { display: flex; gap: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: white; border-radius: var(--radius-lg);
  padding: 22px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-card .stat-num { font-size: 32px; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.stat-card .stat-label { font-size: 13px; color: var(--text-light); margin-top: 8px; font-weight: 500; }

/* ── RWD ── */
@media (max-width: 960px) {
  .home-layout { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-title { font-size: 16px; }
  .header-logo { height: 40px; padding: 6px 10px; }
  .site-logo-divider { height: 34px; }
  .nav-list { display: none; flex-direction: column; width: 100%; background: white; }
  .nav-list.open { display: flex; }
  .nav-toggle { display: block; }
  .album-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
