:root {
  --primary: #ff5e3a;
  --primary-dark: #e64a26;
  --text: #222;
  --text-muted: #666;
  --border: #e5e7eb;
  --bg: #f7f8fa;
  --bg-light: #f7f8fa;
  --bg-lighter: #f3f4f6;
  --border-light: #e5e7eb;
  --border-lighter: #f1f5f9;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --transition: .15s ease;
  --transition-slow: .25s ease;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-mark { font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.primary-nav { display: flex; gap: 22px; font-size: 15px; flex-shrink: 0; white-space: nowrap; }
.primary-nav a { color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav a:hover { color: var(--primary); border-color: var(--primary); }
.search-form { display: none; }
.hero-search-full { flex: none; max-width: 640px; width: 90%; min-width: 0; display: flex; align-items: stretch; border: 2px solid var(--primary); border-radius: 6px; overflow: visible; background:#fff; position:relative; margin: 28px auto 0; box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.hero-search-full input[type="text"] { flex: 1; padding: 14px 18px; border: 0; outline: none; font-size: 16px; min-width: 0; background: transparent; }
.hero-search-full button[type="submit"] { background: var(--primary); color: #fff; border: 0; padding: 0 32px; font-size: 16px; cursor: pointer; border-radius: 0 4px 4px 0; white-space: nowrap; flex-shrink: 0; }
.hero-search-full button[type="submit"]:hover { background: var(--primary-dark, #e04e2e); }
.user-area { display: flex; gap: 14px; align-items: center; flex-shrink: 0; white-space: nowrap; margin-left: auto; }
.search-type-wrap { position:relative; }
.search-type-trigger {
  display:flex; align-items:center; gap:6px;
  height:100%; padding:0 12px;
  background:#fafafa; border-right:1px solid var(--border);
  font-size:13px; color:var(--text); cursor:pointer;
  user-select:none; white-space:nowrap; min-width:96px;
  transition:background .15s;
  border-radius: 4px 0 0 4px;
}
.search-type-trigger:hover { background:#f3f4f6; }
.search-type-trigger .st-icon { font-size:15px; }
.search-type-trigger .st-caret { margin-left:auto; font-size:10px; color:var(--text-muted); transition:transform .2s; }
.search-type-wrap.open .search-type-trigger .st-caret { transform:rotate(180deg); }
.search-type-menu {
  display:none;
  position:absolute; top:calc(100% + 4px); left:0;
  min-width:180px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  padding:6px;
  z-index:200;
}
.search-type-wrap.open .search-type-menu { display:block; }
.search-type-menu .st-item {
  display:flex; align-items:center; gap:10px;
  padding:8px 12px;
  font-size:13px; color:var(--text);
  border-radius:6px; cursor:pointer;
  transition:background .12s;
}
.search-type-menu .st-item:hover { background:#f3f4f6; }
.search-type-menu .st-item.active { background:#fff7f3; color:var(--primary); font-weight:600; }
.search-type-menu .st-item .st-icon { font-size:16px; width:18px; text-align:center; }
.search-type-menu .st-divider { height:1px; background:var(--border); margin:4px 0; }
.search-form input { flex: 1; border: 0; padding: 8px 14px; outline: none; font-size: 14px; min-width:0; }
.search-camera { display:inline-flex; align-items:center; justify-content:center; width:36px; border-left:1px solid var(--border); color:var(--text-muted); font-size:16px; }
.search-camera:hover { color:var(--primary); background:#fff7f3; }
.search-btn { border: 0; background: var(--primary); color: #fff; padding: 0 18px; cursor: pointer; font-size:14px; }

/* LANG SWITCHER */
.lang-menu { position: relative; padding: 24px 0; cursor: pointer; }
.lang-trigger { font-size: 13px; color: var(--text-muted); padding: 4px 8px; border:1px solid var(--border); border-radius:4px; }
.lang-trigger:hover { color: var(--primary); border-color: var(--primary); }
.lang-dropdown { display:none; position:absolute; right:0; top:100%; background:#fff; border:1px solid var(--border); border-radius:6px; min-width:120px; box-shadow:0 8px 24px rgba(0,0,0,.12); z-index:200; padding:6px 0; }
.lang-menu:hover .lang-dropdown, .lang-dropdown:hover { display:block; }
.lang-dropdown a { display:block; padding:8px 16px; font-size:13px; color:var(--text); }
.lang-dropdown a:hover { background:var(--bg); color:var(--primary); }
.lang-dropdown a.active { color:var(--primary); font-weight:600; }

/* BANNER CAROUSEL */
.banner-carousel { position: relative; height: 460px; overflow: hidden; background: #1a1a1a; }
.banner-slides { display: flex; height: 100%; transition: transform .6s ease; }
.banner-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%); display: flex; align-items: center; }
.banner-text { color:#fff; max-width: 1280px; margin: 0 auto; padding: 0 60px; width:100%; }
.banner-text h2 { font-size: 44px; margin: 0 0 12px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.banner-text p { font-size: 18px; opacity: .92; max-width: 540px; }
.banner-text .btn { margin-top: 18px; }
.banner-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.banner-dots span { width: 28px; height: 4px; background: rgba(255,255,255,.4); border-radius: 2px; cursor: pointer; transition: background .2s; }
.banner-dots span.active { background: #fff; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; font-size: 22px; z-index: 5; user-select: none; }
.banner-arrow:hover { background: rgba(0,0,0,.55); }
.banner-arrow.prev { left: 24px; }
.banner-arrow.next { right: 24px; }
.banner-search { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); max-width: 660px; width: 90%; display: flex; background: #fff; border-radius: 6px; overflow: visible; box-shadow: 0 12px 32px rgba(0,0,0,0.3); z-index: 4; }
.banner-search input[type="text"] { flex:1; padding:14px 18px; border:0; outline:none; font-size:16px; min-width:0; background:transparent; }
.banner-search button { background: var(--primary); color:#fff; border:0; padding:0 28px; font-size:16px; cursor:pointer; border-radius:0 6px 6px 0; flex-shrink:0; white-space:nowrap; }
.banner-search button:hover { background: var(--primary-dark, #e04e2e); }

/* 素材类型下拉 */
.bs-type-wrap { position:relative; flex-shrink:0; }
.bs-type-trigger {
  display:flex; align-items:center; gap:6px;
  padding:0 14px; height:100%; min-width:90px;
  cursor:pointer; border-right:1px solid #e5e7eb;
  font-size:14px; font-weight:500; color:#374151;
  white-space:nowrap; user-select:none;
}
.bs-type-trigger:hover { background:#f9fafb; }
.bs-icon { font-size:15px; }
.bs-caret { font-size:9px; color:#9ca3af; transition:transform .18s; margin-left:2px; }
.bs-type-wrap.open .bs-caret { transform:rotate(180deg); }
.bs-type-menu {
  display:none; position:fixed;
  background:#fff; border:1px solid #e5e7eb; border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.12); min-width:120px;
  padding:4px 0; z-index:9999;
}
.bs-type-wrap.open .bs-type-menu { display:block; }
.bs-menu-item {
  display:flex; align-items:center; gap:8px;
  padding:8px 14px; font-size:13px; cursor:pointer;
  color:#374151; transition:background .12s;
}
.bs-menu-item:hover { background:#f3f4f6; }
.bs-menu-item.active { background:#fff7f3; color:var(--primary); font-weight:600; }
.user-area { display: flex; gap: 14px; align-items: center; flex-shrink: 0; white-space: nowrap; }
.user-area a { font-size: 14px; white-space: nowrap; }
.user-area > * { flex-shrink: 0; }
.btn { display: inline-block; padding: 7px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary) !important; }
.btn-outline:hover { box-shadow: var(--shadow-xs); }
.icon-link { color: var(--text-muted); }
.user-menu { position: relative; cursor: pointer; padding: 24px 0; }
.user-name { font-weight: 600; }
.user-name::after { content: " ▾"; font-size: 11px; color: var(--text-muted); }
.user-dropdown { display: none; position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--border); border-radius: 6px; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 200; padding: 6px 0; }
.user-menu:hover .user-dropdown,
.user-dropdown:hover { display: block; }
.user-dropdown a { display: block; padding: 9px 16px; border-bottom: 1px solid #f5f5f5; font-size: 13px; color: var(--text); }
.user-dropdown a:last-child { border-bottom: 0; }
.user-dropdown a:hover { background: var(--bg); color: var(--primary); }

/* 上传下拉同步加桥接 */
.upload-menu { padding: 18px 0; }

/* HERO */
.hero { position: relative; height: 460px; background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-size: 44px; margin: 0 0 16px; }
.hero p { font-size: 18px; opacity: 0.92; }
.hero-search { margin-top: 28px; max-width: 640px; width: 90%; display: flex; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.hero-search input { flex: 1; padding: 14px 18px; border: 0; outline: none; font-size: 16px; }
.hero-search button { background: var(--primary); color: #fff; border: 0; padding: 0 32px; font-size: 16px; cursor: pointer; }

/* SECTION */
.section { padding: 48px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title h2 { font-size: 22px; margin: 0; }
.section-title a { color: var(--text-muted); font-size: 13px; }

/* GRID */
.grid { display: grid; gap: 12px; }
.grid-images { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-videos { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); cursor: pointer; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-image { position: relative; width: 100%; aspect-ratio: 4/3; background: #f0f0f0 center/cover no-repeat; display: block; }
.card-body { padding: 10px 12px; }
.card-title { font-size: 13px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; gap: 8px; }

/* CATEGORIES STRIP */
.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 32px; }
.cat-card { padding: 22px 16px; background: var(--bg); border-radius: var(--radius-md); text-align: center; transition: background var(--transition), box-shadow var(--transition); }
.cat-card:hover { background: var(--primary); color: #fff !important; box-shadow: var(--shadow-sm); }
.cat-card .name { font-weight: 600; }
.cat-card .desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cat-card:hover .desc { color: rgba(255,255,255,.85); }

/* NOTIFY BELL */
.notify-bell { position: relative; padding: 18px 0; }
.notify-bell .icon-link { color: var(--text-muted); }
.notify-bell .icon-link:hover { color: var(--primary); }
.notify-badge { position:absolute; top:-6px; right:-8px; min-width:16px; height:16px; padding:0 4px; background:#ef4444; color:#fff; font-size:10px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-weight:600; }
.notify-dropdown { display:none; position:absolute; right:0; top:100%; width:320px; background:#fff; border:1px solid var(--border); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12); z-index:200; overflow:hidden; }
.notify-bell:hover .notify-dropdown, .notify-dropdown:hover { display:block; }
.notify-header { padding:12px 16px; font-weight:600; border-bottom:1px solid var(--border); font-size:13px; }
.notify-list { max-height:320px; overflow-y:auto; }
.notify-list a { display:block; padding:10px 16px; border-bottom:1px solid #f5f5f5; color:var(--text); font-size:13px; }
.notify-list a:hover { background:var(--bg); }
.notify-list a .nt { font-weight:600; }
.notify-list a .nb { color:var(--text-muted); font-size:12px; margin-top:2px; }
.notify-footer { display:block; padding:10px 16px; background:var(--bg); color:var(--primary); font-size:12px; text-align:center; }

/* UPLOAD DROPDOWN */
.upload-menu { position: relative; }
.upload-menu .btn { cursor: pointer; }
.upload-dropdown { display: none; position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--border); border-radius: 6px; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 200; padding: 6px 0; }
.upload-menu:hover .upload-dropdown,
.upload-dropdown:hover { display: block; }
.upload-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text); font-size: 14px; }
.upload-dropdown a:hover { background: var(--bg); color: var(--primary); }
.upload-dropdown .ud-ico { width: 22px; text-align: center; font-size: 16px; }

/* UPLOAD CENTER */
.upload-center { padding: 36px 0; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.upload-card { padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 8px; text-align: center; transition: all .2s; }
.upload-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(255,94,58,.12); transform: translateY(-2px); }
.upload-card .ico { font-size: 36px; margin-bottom: 10px; }
.upload-card .name { font-size: 16px; font-weight: 600; }
.upload-card .desc { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; min-height: 36px; }

/* UPLOAD FORM */
.upload-form { max-width: 760px; margin: 0 auto; background: #fff; padding: 36px 40px; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.upload-form h2 { margin: 0 0 8px; font-size: 22px; }
.upload-form .hint { color: var(--text-muted); margin-bottom: 28px; font-size: 13px; }
.upload-form .form-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.upload-form .form-actions .btn { width: auto; min-width: 180px; padding: 12px 36px; font-size: 15px; }

/* 主拖拽区 */
.upload-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #d1d5db; border-radius: 10px; padding: 56px 24px; text-align: center; background: #fafbfc; cursor: pointer; transition: all .2s; }
.upload-drop:hover, .upload-drop.is-drag { border-color: var(--primary); background: #fff7f3; }
.upload-drop .ico { font-size: 48px; color: var(--primary); line-height: 1; margin-bottom: 14px; }
.upload-drop .main-tip { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.upload-drop .sub-tip { font-size: 12px; color: var(--text-muted); }
.upload-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-drop .file-name { margin-top: 14px; padding: 6px 14px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 12px; color: var(--text); display: none; }
.upload-drop.has-file .file-name { display: inline-block; }
.upload-drop.has-file .ico { color: #2d7a2d; }

/* 封面图小型上传区 */
.upload-cover { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 100px; border: 2px dashed #d1d5db; border-radius: 8px; background: #fafbfc; cursor: pointer; overflow: hidden; transition: border-color .2s; }
.upload-cover:hover { border-color: var(--primary); }
.upload-cover input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-cover .plus { font-size: 32px; color: #c0c4cc; line-height: 1; }
.upload-cover .cover-tip { position: absolute; bottom: 6px; font-size: 11px; color: var(--text-muted); }
.upload-cover img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 多文件 gallery 网格 */
.gallery-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gallery-list .item { width: 80px; height: 80px; border-radius: 6px; overflow: hidden; background: #f0f0f0; }
.gallery-list .item img { width: 100%; height: 100%; object-fit: cover; }

.upload-form textarea.body-area { min-height: 240px; font-family: inherit; }
.form-page { max-width: 420px; margin: 60px auto; padding: 36px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.04); }
.form-page h2 { margin: 0 0 24px; text-align: center; font-size: 22px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-muted); }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; outline: none; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); }
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; padding: 11px; font-size: 15px; }
.form-tip { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* TOAST */
#toast-container {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  min-width: 200px;
  max-width: 320px;
  background: rgba(30,30,30,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  color: #fff;
  pointer-events: all;
  position: relative;
  overflow: hidden;
  animation: toast-in .24s cubic-bezier(.34,1.4,.64,1);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.toast.toast-out {
  animation: toast-out .18s ease forwards;
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-6px) scale(.96); }
}
.toast-icon-wrap {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.toast-success .toast-icon-wrap { background: #22c55e; }
.toast-error   .toast-icon-wrap { background: #ef4444; }
.toast-info    .toast-icon-wrap,
.toast-message .toast-icon-wrap { background: #3b82f6; }
.toast-body { flex: 1; line-height: 1.35; }
.toast-title { color: rgba(255,255,255,.95); font-size: 12.5px; }
.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  animation: toast-progress 3s linear forwards;
}
.toast-success .toast-progress { background: #22c55e; }
.toast-error   .toast-progress { background: #ef4444; }
.toast-info    .toast-progress,
.toast-message .toast-progress { background: #60a5fa; }
@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}
.toast-close {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: rgba(255,255,255,.4);
  padding: 8px 6px; line-height: 1; flex-shrink: 0;
  min-width: 32px; min-height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s;
}
.toast-close:hover { color: rgba(255,255,255,.9); }

/* EMPTY STATE */
.empty-state { text-align:center; padding:60px 20px; color:var(--text-muted); }
.empty-state-icon { font-size:48px; margin-bottom:16px; display:block; }
.empty-state-title { font-size:15px; font-weight:500; color:var(--text); margin-bottom:8px; }
.empty-state-sub { font-size:13px; color:var(--text-muted); margin-bottom:20px; }

/* BADGE */
.badge { display:inline-block; padding:3px 10px; border-radius:var(--radius-full); font-size:12px; font-weight:600; white-space:nowrap; }
.badge-primary { background:rgba(255,94,58,.1);  color:var(--primary); }
.badge-success  { background:rgba(22,163,74,.1);  color:#16a34a; }
.badge-warning  { background:rgba(217,119,6,.1);  color:#d97706; }
.badge-danger   { background:rgba(220,38,38,.1);  color:#dc2626; }
.badge-gray     { background:var(--bg-lighter);   color:var(--text-muted); }

/* TAG (clickable) */
.tag { display:inline-block; padding:4px 12px; border-radius:var(--radius-full); font-size:12px; background:var(--bg-lighter); color:var(--text-muted); border:1px solid var(--border); transition:var(--transition); text-decoration:none; }
.tag:hover { border-color:var(--primary); color:var(--primary); background:rgba(255,94,58,.05); }

/* BREADCRUMB */
.breadcrumb { font-size:12px; color:var(--text-muted); margin-bottom:20px; display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.breadcrumb a { color:var(--text-muted); transition:color var(--transition); }
.breadcrumb a:hover { color:var(--primary); }
.breadcrumb-sep { opacity:.5; margin:0 2px; }

/* TABLE */
.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.tbl th { background: var(--bg); font-weight: 600; color: var(--text-muted); }
.tbl tbody tr { transition: background var(--transition); }
.tbl tbody tr:hover { background: var(--bg-lighter); }
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* DETAIL */
.detail-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 32px 0; }
.detail-cover { background: #f0f0f0; border-radius: 8px; overflow: hidden; }
.detail-cover img { width: 100%; display: block; }
.detail-info h1 { font-size: 22px; margin: 0 0 16px; }
.detail-info .meta { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.detail-actions { display: flex; gap: 10px; margin-bottom: 24px; }
.detail-related h3 { font-size: 16px; margin: 32px 0 16px; }

/* PAGE HERO — 四大列表页统一 hero 区 */
.page-hero {
  padding: 52px 0 36px;
  color: #fff;
  text-align: center;
}
.page-hero h1 { margin: 0 0 8px; font-size: 30px; font-weight: 700; }
.page-hero p  { margin: 0 0 24px; font-size: 14px; color: rgba(255,255,255,.65); }
.page-hero-search {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
}
.page-hero-search input {
  flex: 1; border: none; outline: none;
  padding: 11px 18px; font-size: 14px; color: #111; background: transparent;
}
.page-hero-search button {
  border: none; background: var(--primary); color: #fff;
  padding: 11px 22px; font-size: 14px; cursor: pointer;
  transition: background var(--transition);
}
.page-hero-search button:hover { background: var(--primary-dark); }
.page-hero-actions { margin-top: 20px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* FILTER BAR — 统一筛选 chip 栏 */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 20px;
}
.filter-bar-sep { width: 1px; height: 18px; background: var(--border); margin: 0 2px; }
.filter-chip {
  padding: 5px 14px; border-radius: var(--radius-full); font-size: 13px;
  cursor: pointer; color: var(--text-muted);
  background: #fff; border: 1px solid var(--border);
  transition: var(--transition); user-select: none; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,94,58,.04); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-xs); }

/* PAGE META — 结果数提示行 */
.page-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; min-height: 20px; }
.page-meta a { color: var(--primary); margin-left: 8px; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 40px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 6px 13px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--text);
  transition: var(--transition); text-decoration: none;
}
.pagination a:hover { background: var(--bg-lighter); border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--text-muted); pointer-events: none; opacity: .5; }

/* USER LAYOUT */
.user-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 32px 0; }
.user-side { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 16px; height: fit-content; }
.user-side a { display: block; padding: 8px 12px; border-radius: 4px; color: var(--text-muted); }
.user-side a.active, .user-side a:hover { background: var(--bg); color: var(--primary); }
.user-main { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 24px; }

/* FOOTER */
.site-footer { background: #1f2937; color: #cbd5e1; padding: 48px 0 0; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; gap: 16px; justify-content: center; padding: 24px 0; margin-top: 32px; border-top: 1px solid #374151; font-size: 12px; color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .user-layout { grid-template-columns: 1fr; }
  .detail-wrap { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .grid-images { grid-template-columns: repeat(2, 1fr); }
  .grid-videos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .banner-carousel { height: 320px; }
  .banner-text h2 { font-size: 28px; }
  .banner-text p { font-size: 14px; }
  .banner-search { bottom: 32px; }
  .header-inner { gap: 12px; }
  /* 防止 iOS Safari 聚焦 input 时自动放大页面（font-size < 16px 会触发缩放） */
  input, textarea, select { font-size: max(16px, 1em) !important; }
}

@media (max-width: 640px) {
  .grid-images { grid-template-columns: repeat(2, 1fr); }
  .grid-videos { grid-template-columns: repeat(1, 1fr); }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .banner-carousel { height: 260px; }
  .banner-text h2 { font-size: 22px; }
  .banner-search { display: none; }
  .user-area .btn { padding: 5px 10px; font-size: 12px; }
}

/* ── 竞赛卡片 ── */
.contest-card-body { padding: 14px 16px; }
.contest-card-title { font-weight: 600; font-size: 15px; }
.contest-card-meta { display: flex; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   移动端 H5 全局适配
   所有规则置于此处，不影响 PC 端任何样式
   ══════════════════════════════════════════════════ */

/* ── 汉堡菜单按钮（默认隐藏，移动端显示） ── */
.hamburger-btn {
  display: none;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger-btn:hover { background: var(--bg-lighter); }
/* 三条横线图标 */
.hamburger-icon { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.hamburger-icon span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
/* 打开状态：变成 X */
.drawer-open .hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.drawer-open .hamburger-icon span:nth-child(2) { opacity: 0; }
.drawer-open .hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 移动端 header 右侧操作区（默认隐藏） ── */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
/* 移动端搜索图标按钮 */
.mobile-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--text); border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-search-btn:hover { background: var(--bg-lighter); color: var(--primary); }
/* 移动端通知图标 */
.mobile-notify-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-size: 18px; color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-notify-btn:hover { background: var(--bg-lighter); color: var(--primary); }

/* ── 背景遮罩 ── */
.drawer-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 1100;
  opacity: 0;
  transition: opacity .25s ease;
}
.drawer-mask.show {
  display: block;
  opacity: 1;
}

/* ── 抽屉导航主体 ── */
.drawer-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(280px, 82vw);
  background: #fff;
  z-index: 1200;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer-nav.open { transform: translateX(0); }

/* 抽屉头部 */
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-logo { display: flex; align-items: center; text-decoration: none; }
.drawer-logo-mark { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.drawer-close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.drawer-close:hover { background: var(--bg-lighter); color: var(--text); }

/* 抽屉用户信息区 */
.drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--bg-lighter);
  flex-shrink: 0;
}
.drawer-user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.drawer-user-name { font-size: 15px; font-weight: 600; color: var(--text); }
.drawer-user-points { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* 抽屉主导航链接 */
.drawer-links {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}
.drawer-link {
  display: flex; align-items: center;
  padding: 0 20px;
  height: 52px;
  font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--border-lighter);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  /* 确保触摸目标 ≥44px */
  min-height: 44px;
}
.drawer-link:hover,
.drawer-link:active { background: var(--bg-lighter); color: var(--primary); }
.drawer-link-sm {
  height: 44px; font-size: 13px;
  color: var(--text-muted);
}

/* 抽屉底部辅助区 */
.drawer-footer-links { padding: 4px 0 env(safe-area-inset-bottom, 0); flex-shrink: 0; }
.drawer-footer-divider { height: 6px; background: var(--bg-lighter); }
/* 语言切换 */
.drawer-lang {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 16px;
  font-size: 13px; color: var(--text-muted);
}
.drawer-lang a { color: var(--text-muted); padding: 6px 8px; min-height: 36px; display: inline-flex; align-items: center; }
.drawer-lang a.active { color: var(--primary); font-weight: 600; }

/* ── 全屏搜索覆盖层 ── */
.mobile-search-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1300;
  align-items: flex-start;
  opacity: 0;
  transition: opacity .2s ease;
}
.mobile-search-overlay.open {
  display: flex;
  opacity: 1;
}
.mobile-search-bar {
  width: 100%;
  background: #fff;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0));
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.mobile-search-form {
  display: flex; align-items: center; gap: 8px;
}
/* 返回按钮 */
.mso-back {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); border-radius: var(--radius-sm);
}
.mso-back:hover { color: var(--primary); }
/* 搜索输入框 */
.mso-input {
  flex: 1; height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-size: 15px; outline: none;
  background: var(--bg-lighter);
  transition: border-color .15s;
}
.mso-input:focus { border-color: var(--primary); background: #fff; }
/* 搜索提交按钮 */
.mso-submit {
  height: 44px; padding: 0 18px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-full);
  font-size: 14px; cursor: pointer;
  transition: background var(--transition);
}
.mso-submit:hover { background: var(--primary-dark); }

/* ── 移动端底部固定导航栏 ── */
.mobile-bottom-nav {
  display: none; /* 默认隐藏，移动端媒体查询中显示 */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 1000;
  /* 适配 iPhone X 等设备底部安全区域 */
  padding-bottom: env(safe-area-inset-bottom, 0);
  height: calc(56px + env(safe-area-inset-bottom, 0));
}
.mbn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1;
  gap: 3px;
  font-size: 11px; color: var(--text-muted);
  text-decoration: none;
  height: 56px;
  /* 触摸目标 ≥44px */
  min-width: 44px;
  transition: color var(--transition);
}
/* 内部用 flex 布局来排列图标 + 文字 */
.mobile-bottom-nav {
  display: none;
  align-items: stretch;
}
.mbn-item svg { flex-shrink: 0; }
.mbn-item:hover,
.mbn-item.active { color: var(--primary); }
.mbn-item.active svg { stroke: var(--primary); }

/* ── Footer 移动端隐藏 PC 内容 ── */
/* footer-pc 类在移动端隐藏，通用底部栏保留 */

/* ══════════════════════════════════════════════════
   移动端媒体查询 ≤ 768px
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Body 底部留出导航栏空间 ── */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
  /* 打开抽屉/搜索时禁止 body 滚动 */
  body.drawer-open,
  body.search-overlay-open { overflow: hidden; }

  /* ── Header：高度缩减到 56px ── */
  .header-inner {
    height: 56px;
    gap: 8px;
    padding: 0 12px;
  }
  /* 容器在移动端取消左右 padding，由 header-inner 自己控制 */
  .site-header .container { padding: 0; }

  /* 显示汉堡按钮 */
  .hamburger-btn { display: flex; }

  /* PC 端导航和用户区在移动端隐藏 */
  .primary-nav { display: none; }
  .search-form { display: none; }
  .user-area { display: none; }

  /* Logo 缩小 */
  .logo-mark { font-size: 18px; }
  .logo-sub { display: none; }
  .logo img { height: 26px !important; }

  /* 显示移动端右侧操作区 */
  .mobile-header-actions { display: flex; }

  /* ── 显示移动端底部导航栏 ── */
  .mobile-bottom-nav { display: flex; }

  /* ── Toast 在移动端改为顶部居中 ── */
  #toast-container {
    top: 64px;
    right: unset;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    width: calc(100vw - 32px);
    max-width: 360px;
  }
  .toast {
    width: 100%;
    max-width: 100%;
  }

  /* ── Footer 移动端折叠：隐藏详细内容 ── */
  .footer-pc { display: none !important; }
  .site-footer {
    margin-top: 32px;
    padding: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    margin-top: 0;
    border-top: none;
    /* 底部导航栏已占位，无需额外 padding-bottom */
  }

  /* ── 卡片网格适配 ── */
  .grid-images { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .grid-videos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* 卡片 body 内边距缩小 */
  .card-body { padding: 8px 8px 10px; }
  .card-title { font-size: 12px; line-height: 1.4; -webkit-line-clamp: 1; }

  /* 视频卡片图片比例改为 16/9，避免占高太多 */
  .grid-videos .card-image { aspect-ratio: 16/9; }

  /* ── 页面内容区距顶部 header 56px ── */
  .site-main { padding-top: 0; }

  /* ── 分页在移动端简化 ── */
  .pagination { gap: 4px; }
  .pagination a, .pagination span { padding: 5px 10px; font-size: 12px; min-height: unset; }

  /* ── 详情页双栏改单栏 ── */
  .detail-wrap { grid-template-columns: 1fr; gap: 20px; }

  /* ── 用户中心布局：侧边导航在上、内容在下 ── */
  .user-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 24px;
  }
  /* 侧边导航在移动端 sticky 吸顶（header 56px 高） */
  .user-side {
    position: sticky;
    top: 56px;
    z-index: 100;
  }
  .user-main {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 16px;
    overflow-x: hidden;
  }

  /* ── 聊天机器人悬浮按钮移动端隐藏，改由抽屉侧边栏入口打开 ── */
  #chat-toggle { display: none !important; }
  #chat-panel {
    bottom: calc(56px + env(safe-area-inset-bottom, 0));
    right: 0; left: 0;
    width: 100%;
    max-width: 100%;
    height: 70vh;
    max-height: 520px;
    border-radius: 16px 16px 0 0;
  }

  /* ── Banner 移动端 ── */
  .banner-carousel { height: 220px; }
  .banner-text h2 { font-size: 20px; }
  .banner-text p { font-size: 13px; }
  .banner-text { padding: 0 20px; }
  .banner-search { display: none; }
  .banner-arrow { width: 40px; height: 40px; font-size: 16px; }
  .banner-arrow.prev { left: 10px; }
  .banner-arrow.next { right: 10px; }

  /* ── 全局最小触摸目标 44px（仅导航/操作按钮，不影响内联链接） ── */
  .btn,
  .mobile-bottom-nav .mbn-item,
  .drawer-link,
  .hamburger-btn,
  .mobile-search-btn,
  .mobile-notify-btn,
  .mbn-item,
  input[type="submit"], input[type="button"], input[type="reset"] {
    min-height: 44px;
  }
  /* 行内/装饰性元素不强制高度 */
  .tag, .filter-chip,
  .breadcrumb a, .footer-bottom a, .site-footer a,
  .notify-list a, .pagination a, .pagination span { min-height: unset; }
  /* 分类 tab / 过滤筛选条保持合理触摸高度 */
  .pf-tab { min-height: 36px; }
  .filter-chip { min-height: 36px; padding: 6px 14px; }

  /* ── 输入框/表单在移动端更舒适 ── */
  .form-row input, .form-row textarea, .form-row select {
    font-size: 16px; /* 防止 iOS Safari 自动放大 */
  }
  .mso-input { font-size: 16px; }

  /* ── 表格横向滚动 ── */
  .table-wrap { border-radius: var(--radius-md); }

  /* ── Section 内边距缩小 ── */
  .section { padding: 28px 0; }
  .section-title h2 { font-size: 18px; }
  /* section 右侧"更多/全部"链接增大触摸区域 */
  .section-title a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 4px; }

  /* ── 页面英雄区缩小 ── */
  .page-hero { padding: 32px 0 24px; }
  .page-hero h1 { font-size: 22px; }

  /* ── 搜索类型下拉面板在移动端铺满屏幕宽 ── */
  .search-type-menu { min-width: 160px; }

  /* ── 按钮移动端：保持 44px 最小触摸目标，字号适当缩小 ── */
  .btn { padding: 0 14px; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-primary { padding: 0 16px; }
  .form-actions .btn { padding: 0 16px; font-size: 14px; }
  .upload-form .form-actions .btn { padding: 0 24px; font-size: 14px; }

  /* ── 抽屉侧边栏字体缩小（宽度改由全局 min(280px,82vw) 控制） ── */
  .drawer-logo-mark { font-size: 17px; }
  .drawer-user { padding: 12px 16px; gap: 10px; }
  .drawer-user-avatar { width: 38px; height: 38px; font-size: 15px; }
  .drawer-user-name { font-size: 13px; }
  .drawer-user-points { font-size: 11px; }
  .drawer-link { height: 46px; font-size: 13px; padding: 0 16px; min-height: 44px; }
  .drawer-link-sm { height: 40px; font-size: 12px; }
  .drawer-lang { font-size: 12px; padding: 10px 16px 14px; gap: 8px; }
  .drawer-section-label { font-size: 11px; padding: 8px 16px 4px; }

  /* ── 水平滚动区域：右侧渐变提示用户可滑动 ── */
  .search-types,
  #ct-filters.filter-bar,
  .up-filter-tabs {
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  /* ── 标题字体移动端缩小 ── */
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .detail-info h1 { font-size: 18px; }
  .upload-form h2 { font-size: 18px; }
  .form-page h2 { font-size: 18px; }
}

/* ══════════════════════════════════════════════════
   超小屏 ≤ 480px 微调
   ══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-images { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .banner-carousel { height: 180px; }
  .banner-text h2 { font-size: 17px; }
  .header-inner { padding: 0 8px; }

  /* 标题进一步缩小 */
  .hero h1 { font-size: 22px; }
  .section-title h2 { font-size: 15px; }
  .detail-info h1 { font-size: 16px; }
  .page-hero h1 { font-size: 18px; }

  /* 超小屏水平滚动取消渐变遮罩（宽度太小了） */
  .search-types,
  #ct-filters.filter-bar,
  .up-filter-tabs {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* 聊天面板占满宽度 */
  #chat-panel {
    right: 0; left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
}

/* ── H5 visual polish: keep mobile controls readable and touch-safe ── */
@media (max-width: 768px) {
  .site-header {
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  }

  .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hamburger-btn,
  .mobile-search-btn,
  .mobile-notify-btn {
    border-radius: 8px;
  }

  .logo {
    min-width: 0;
  }

  .logo-mark {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
  }

  .banner-carousel {
    height: 240px;
  }

  .banner-overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.36) 52%, rgba(0,0,0,.18) 100%),
      linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.34) 100%);
  }

  .banner-text {
    padding: 0 20px;
  }

  .banner-text h2 {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    max-width: 72%;
  }

  .banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    max-width: 76%;
  }

  .banner-text .btn {
    margin-top: 14px;
    min-width: 112px;
    min-height: 44px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(255,94,58,.22);
  }

  .banner-arrow {
    display: none;
  }

  .banner-dots {
    bottom: 14px;
    gap: 6px;
  }

  .banner-dots span {
    width: 22px;
    height: 3px;
    border-radius: 999px;
  }

  .section-title {
    align-items: center;
    margin-bottom: 14px;
  }

  .section-title h2 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
  }

  .section-title a {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
  }

  .card {
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(15,23,42,.04);
  }

  .card-body {
    padding: 9px 10px 11px;
  }

  .card-title {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
  }

  .card-meta {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
    gap: 7px;
  }

  .drawer-link-sm {
    height: 44px;
    min-height: 44px;
  }

  .mobile-bottom-nav {
    height: calc(58px + env(safe-area-inset-bottom, 0));
  }

  .mbn-item {
    height: 58px;
    gap: 2px;
    font-size: 11.5px;
  }

  .mbn-item svg {
    width: 23px;
    height: 23px;
  }

  .mbn-item.active {
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .banner-carousel {
    height: 212px;
  }

  .banner-text h2 {
    font-size: 20px;
    max-width: 78%;
  }

  .banner-text p {
    font-size: 13.5px;
    max-width: 78%;
  }

  .section-title h2,
  .page-hero h1 {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 24px;
  }
}
