/* ============================================================
   AERASTRAT · 管理后台 设计系统
   ============================================================ */
:root {
  --bg-0: #060913;
  --bg-1: #0a0f22;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-1: #f2f5ff;
  --text-2: #aab3d0;
  --text-3: #6d7694;
  /* 参考自建 CMS：紫 × 青 双色体系 */
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #a78bfa;
  --accent-grad: linear-gradient(115deg, #7c5cff, #22d3ee);
  --success: #3ddc97;
  --warning: #ffc95c;
  --danger: #ff6b81;
  --sidebar-w: 248px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--text-1); background: var(--bg-0); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(124, 92, 255, 0.3); }
.page-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(900px 600px at 90% -10%, rgba(124, 92, 255, 0.14), transparent 60%), radial-gradient(700px 500px at 0% 110%, rgba(124, 92, 255, 0.08), transparent 55%), linear-gradient(180deg, var(--bg-1), var(--bg-0)); }

/* Layout */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: rgba(6, 9, 19, 0.9); border-right: 1px solid var(--border); backdrop-filter: blur(14px); display: flex; flex-direction: column; z-index: 50; transition: transform 0.3s var(--ease); }
.sidebar-head { display: flex; align-items: center; gap: 0.65rem; padding: 1.25rem 1.35rem; border-bottom: 1px solid var(--border); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-grad); color: #05060f; font-weight: 800; }
.sidebar-head .b-name { font-weight: 700; letter-spacing: -0.01em; }
.sidebar-head .b-sub { font-size: 11px; color: var(--text-3); }
.side-nav { flex: 1; padding: 0.9rem 0.75rem; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.68rem 0.85rem; border-radius: 11px; color: var(--text-2); font-weight: 500; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover { background: var(--surface); color: var(--text-1); }
.nav-item.active { background: linear-gradient(120deg, rgba(124, 92, 255, 0.14), rgba(124, 92, 255, 0.12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.2); }
.nav-item .badge { margin-left: auto; font-size: 11px; background: var(--accent-grad); color: #05060f; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.nav-group-title { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; padding: 0.9rem 0.85rem 0.4rem; font-weight: 600; font-family: var(--mono); }
.sidebar-foot { padding: 1rem; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.65rem; border-radius: 11px; }
.user-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #7c5cff, #22d3ee); color: #fff; font-weight: 700; }
.user-chip .u-name { font-weight: 600; font-size: 13px; }
.user-chip .u-role { font-size: 11px; color: var(--text-3); }
.user-chip .logout { margin-left: auto; color: var(--text-3); }
.user-chip .logout:hover { color: var(--danger); }

/* Main */
.main { flex: 1; margin-left: var(--sidebar-w); padding: 1.4rem 1.9rem 2.5rem; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.topbar .menu-btn { display: none; }
.search { flex: 1; min-width: 0; max-width: 420px; display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 0.5rem 0.8rem; }
.search svg { width: 16px; height: 16px; color: var(--text-3); }
.search input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); }
.search input::placeholder { color: var(--text-3); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text-2); position: relative; }
.icon-btn:hover { color: var(--text-1); border-color: var(--border-strong); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2); }
.icon-btn svg { width: 18px; height: 18px; }

.page-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { color: var(--text-3); font-size: 13px; margin-top: 3px; font-family: var(--mono); letter-spacing: 0.04em; }

/* Cards */
.card { background: linear-gradient(180deg, var(--surface-strong), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.3rem; min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.3rem; }
.metric-card { position: relative; overflow: hidden; }
.metric-card .m-label { color: var(--text-3); font-size: 12px; }
.metric-card .m-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.metric-card .m-delta { font-size: 12px; margin-top: 4px; display: inline-flex; align-items: center; gap: 3px; }
.metric-card .m-delta.up { color: var(--success); }
.metric-card .m-delta.down { color: var(--danger); }
.metric-card::after { content: ""; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.14), transparent 70%); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; margin-bottom: 1.3rem; }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.card-title .link { color: var(--accent); font-size: 12px; font-weight: 500; }

/* Chart (CSS bars) */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; }
.chart .bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, 0.4)); opacity: 0.9; position: relative; transition: opacity 0.2s; min-height: 6px; }
.chart .bar:hover { opacity: 1; }
.chart .bar::after { content: attr(data-v); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-3); opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.chart .bar:hover::after { opacity: 1; }
.chart-x { display: flex; gap: 8px; margin-top: 8px; }
.chart-x span { flex: 1; text-align: center; font-size: 11px; color: var(--text-3); }

/* Table */
.table-wrap { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 0.72rem 0.8rem; border-bottom: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--surface); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.green { color: var(--success); background: rgba(61, 220, 151, 0.12); }
.status.blue { color: var(--accent); background: rgba(124, 92, 255, 0.12); }
.status.violet { color: #c5b1ff; background: rgba(157, 123, 255, 0.14); }
.status.gray { color: var(--text-3); background: rgba(255, 255, 255, 0.06); }
.status.amber { color: var(--warning); background: rgba(255, 201, 92, 0.12); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 10px; font-weight: 600; font-size: 13px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent-grad); color: #05060f; box-shadow: 0 6px 18px rgba(124, 92, 255, 0.22); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.btn-ghost:hover { color: var(--text-1); border-color: var(--border-strong); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 12px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; }
.tab { padding: 0.6rem 0.95rem; color: var(--text-3); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Filter bar */
.filter-bar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.7rem; color: var(--text-2); font-size: 13px; outline: none; }
.filter-bar select:focus, .filter-bar input:focus { border-color: rgba(124, 92, 255, 0.4); }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; }
.login-card { width: min(400px, 92vw); background: linear-gradient(180deg, var(--surface-strong), var(--surface)); border: 1px solid var(--border-strong); border-radius: 22px; padding: 2.2rem 2rem; backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.login-card .brand-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.6rem; }
.login-card h1 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.login-card .l-sub { color: var(--text-3); font-size: 13px; margin-bottom: 1.6rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field .input-wrap { display: flex; align-items: center; gap: 0.5rem; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 11px; padding: 0.6rem 0.8rem; }
.field .input-wrap:focus-within { border-color: rgba(124, 92, 255, 0.45); }
.field .input-wrap svg { width: 16px; height: 16px; color: var(--text-3); }
.field input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); }
.field input::placeholder { color: var(--text-3); }
.login-btn { width: 100%; justify-content: center; padding: 0.72rem; margin-top: 0.6rem; font-size: 14px; }
.login-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 1.4rem; }
.login-foot a { color: var(--accent); }
.login-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; pointer-events: none; }
.login-orb.a { width: 420px; height: 420px; top: -80px; right: -60px; background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 70%); }
.login-orb.b { width: 360px; height: 360px; bottom: -60px; left: -40px; background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%); }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 200; background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: 12px; padding: 0.8rem 1.1rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 0.6rem; transform: translateY(16px); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease); font-size: 13px; }
.toast.show { transform: none; opacity: 1; }
.toast svg { width: 17px; height: 17px; color: var(--success); }

/* Responsive */
@media (max-width: 1024px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 0 0 80px rgba(0, 0, 0, 0.6); }
  .main { margin-left: 0; padding: 1rem 1.1rem 2rem; }
  .topbar .menu-btn { display: grid; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .search { max-width: none; }
}

/* ============ CMS: 网站结构 & 图片管理 ============ */
/* Structure layout */
.cms-layout { display: grid; grid-template-columns: 292px 1fr; gap: 1rem; align-items: start; }
.panel { background: linear-gradient(180deg, var(--surface-strong), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; min-width: 0; }
.panel-title { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.8rem; font-family: var(--mono); }
.page-tree { display: flex; flex-direction: column; gap: 3px; }
.pt-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; border-radius: 11px; color: var(--text-2); font-weight: 500; cursor: pointer; transition: background 0.18s, color 0.18s; border: 1px solid transparent; }
.pt-item:hover { background: var(--surface); color: var(--text-1); }
.pt-item.active { background: linear-gradient(120deg, rgba(124, 92, 255, 0.13), rgba(124, 92, 255, 0.11)); color: #fff; border-color: rgba(124, 92, 255, 0.22); }
.pt-item svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }
.pt-item .pt-count { margin-left: auto; font-size: 11px; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; }
.pt-meta { font-size: 12px; color: var(--text-3); margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border); line-height: 1.6; }

/* Section rows */
.section-list { display: flex; flex-direction: column; gap: 0.6rem; }
.section-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.85rem; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); transition: border-color 0.18s, background 0.18s; }
.section-row:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.section-row.off { opacity: 0.55; }
.section-row.dragging { opacity: 0.4; border-style: dashed; }
.drag { cursor: grab; color: var(--text-3); display: grid; place-items: center; width: 22px; height: 30px; }
.drag svg { width: 15px; height: 15px; }
.sec-order { font-size: 12px; font-weight: 700; color: var(--text-3); width: 22px; text-align: center; flex: none; }
.sec-main { flex: 1; min-width: 0; }
.sec-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.sec-title .sec-name { min-width: 0; }
.sec-title .sec-type { flex: none; }
.sec-type { font-size: 11px; color: var(--text-3); background: var(--surface-strong); border: 1px solid var(--border); padding: 1px 7px; border-radius: 999px; }
.sec-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; align-items: center; gap: 0.2rem; }
.mini-btn { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); transition: background 0.15s, color 0.15s; }
.mini-btn:hover { background: var(--surface-strong); color: var(--text-1); }
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn.danger:hover { color: var(--danger); }

/* Switch */
.switch { position: relative; width: 36px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border); cursor: pointer; transition: background 0.2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-3); transition: transform 0.2s var(--ease), background 0.2s; }
.switch.on { background: linear-gradient(120deg, rgba(124, 92, 255, 0.5), rgba(124, 92, 255, 0.5)); }
.switch.on::after { transform: translateX(16px); background: #fff; }

/* Image grid */
.img-toolbar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.img-toolbar .search-box { flex: 1; min-width: 180px; max-width: 320px; display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.75rem; }
.img-toolbar .search-box svg { width: 15px; height: 15px; color: var(--text-3); }
.img-toolbar .search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); }
.img-toolbar select { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.7rem; color: var(--text-2); outline: none; }
.img-count { margin-left: auto; font-size: 12px; color: var(--text-3); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.9rem; }
.img-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); cursor: pointer; transition: border-color 0.18s, transform 0.18s; }
.img-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.img-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25); }
.img-thumb { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; }
.img-thumb svg { width: 40%; height: 40%; opacity: 0.85; }
.img-thumb .use-badge { position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: #fff; backdrop-filter: blur(4px); }
.img-card .img-body { padding: 0.65rem 0.75rem; }
.img-card .img-name { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-card .img-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.img-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1rem; align-items: start; }
.img-detail { background: linear-gradient(180deg, var(--surface-strong), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; position: sticky; top: 1rem; min-width: 0; }
.input-sm { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.7rem; color: var(--text-2); font-size: 13px; outline: none; }
.input-sm:focus { border-color: rgba(124, 92, 255, 0.4); }

/* Image detail */
.img-detail-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; align-items: start; }
.img-preview { aspect-ratio: 16/10; border-radius: 16px; border: 1px solid var(--border); display: grid; place-items: center; background: var(--surface); }
.img-preview svg { width: 30%; height: 30%; opacity: 0.8; }
.detail-row { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.detail-row .k { color: var(--text-3); }
.detail-row .v { color: var(--text-1); text-align: right; }
.where-used { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.where-used .wu { display: flex; align-items: center; gap: 0.5rem; font-size: 12px; color: var(--text-2); padding: 0.45rem 0.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.where-used .wu svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.detail-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

/* Upload zone */
.upload-zone { border: 1.5px dashed var(--border-strong); border-radius: 14px; padding: 1.6rem; text-align: center; color: var(--text-3); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.upload-zone:hover { border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.04); }
.upload-zone svg { width: 26px; height: 26px; margin: 0 auto 0.5rem; color: var(--text-2); }
.upload-zone strong { color: var(--text-1); }

/* Drawer (edit section) */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 94vw); background: var(--bg-1); border-left: 1px solid var(--border-strong); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5); z-index: 120; transform: translateX(100%); transition: transform 0.3s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.3rem; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 0.6rem; padding: 1rem 1.3rem; border-top: 1px solid var(--border); }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 110; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.cms-field { margin-bottom: 1rem; }
.cms-field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.cms-field input, .cms-field textarea, .cms-field select { width: 100%; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.75rem; color: var(--text-1); outline: none; font-size: 13px; }
.cms-field input:focus, .cms-field textarea:focus, .cms-field select:focus { border-color: rgba(124, 92, 255, 0.45); }
.cms-field textarea { resize: vertical; min-height: 80px; }

@media (max-width: 1024px) { .cms-layout { grid-template-columns: 1fr; } .img-detail-wrap { grid-template-columns: 1fr; } .img-layout { grid-template-columns: 1fr; } .img-detail { position: static; } }
@media (max-width: 768px) { .img-grid { grid-template-columns: repeat(2, 1fr); } }
