/* ============================================================
   AMP Cabinetry — 全站样式（还原自原 Astra + Elementor 设计）
   设计变量：--accent #fbd84b  --dark #26222f  --gray #8b8698
   ============================================================ */
:root {
  --accent: #fbd84b;
  --accent-2: #ffe682;
  --dark: #26222f;
  --dark-2: #332e3e;
  --gray: #8b8698;
  --bg: #f8f8f8;
  --bg-2: #f3f5f6;
  --line: #e6edf5;
  --white: #fff;
  --radius: 6px;
  --font-head: 'Lexend', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 6px 24px rgba(38, 34, 47, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--dark);
  font-size: 16px; line-height: 1.7; background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--dark); text-decoration: none; }
a:hover { color: #000; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .6em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: .2s;
}
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-2); color: var(--dark); }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn-ghost { background: transparent; border-color: var(--dark); }
.btn-ghost:hover { background: var(--dark); color: #fff; }
.btn-danger { background: #fff0f0; color: #c0392b; border-color: #f1c4c0; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-block { width: 100%; }

/* ---------- 顶部联系条（原站 above header） ---------- */
.topbar { background: var(--dark); color: #fff; font-size: 12.5px; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; min-height: 34px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--accent); }
.topbar img { display: block; flex: none; }

/* ---------- 页头 ---------- */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px rgba(38,34,47,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.site-logo img { display: block; height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-menu a {
  font-family: var(--font-head); font-size: 15px; font-weight: 500;
  padding: 8px 0; border-bottom: 2px solid transparent; display: block;
}
.main-menu .current-menu-item a, .main-menu a:hover { border-bottom-color: var(--accent); }
.header-search { display: flex; align-items: center; gap: 4px; }
.header-search input[type="search"] {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px;
  font-size: 14px; width: 150px; font-family: var(--font-body);
}
.header-search button { background: none; border: 0; font-size: 16px; cursor: pointer; padding: 4px 6px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(38,34,47,.55); }
.hero-content { position: relative; color: #fff; text-align: center; width: 100%; }
.hero-tagline { color: var(--accent); font-family: var(--font-head); letter-spacing: .18em; text-transform: uppercase; font-size: 14px; margin: 0 0 14px; }
.hero h1 { color: #fff; font-size: 58px; font-weight: 600; margin: 0 0 30px; }

/* ---------- 区块通用 ---------- */
.home-section, .gallery-section, .about-milestones { padding: 76px 0; }
.home-section.alt-bg, .gallery-section.alt { background: var(--bg-2); }
.dark-section { background: var(--dark); color: #eee; }
.dark-section .section-title { color: #fff; }
.section-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 600; margin: 0 0 8px; text-align: center; }
.section-title { text-align: center; font-size: 34px; font-weight: 600; margin-bottom: 42px; }

/* 分类卡 */
/* Featured collection 标题下的居中介绍（原站 text-editor widget：居中、下方 80px） */
.home-cats .section-title { margin-bottom: 12px; }
.featured-intro { text-align: center; margin: 0 0 80px; }
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; }
.cat-card img { width: 100%; aspect-ratio: 400/265; object-fit: cover; transition: transform .3s; display: block; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(38,34,47,.85)); color: #fff; }
.cat-card-info h3 { color: #fff; margin: 0; font-size: 20px; }
.cat-card-info span { font-size: 13px; color: var(--accent-2); }

/* 产品网格（5/3/2 列，还原 Astra WooCommerce 网格） */
ul.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px 20px; list-style: none; margin: 0 0 32px; padding: 0; }
.product-card { display: flex; }
.product-link { display: flex; flex-direction: column; width: 100%; }
.product-thumb { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); aspect-ratio: 400/517; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-card-title { font-size: 15.5px; font-weight: 500; margin: 12px 0 0; text-align: center; }
.thumb-blank { display: block; width: 100%; aspect-ratio: 400/517; background: var(--line); }

/* 新品横向滚动 */
.product-scroller { overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
ul.products.scroll-row { grid-template-columns: repeat(12, 220px); grid-auto-flow: column; }
.scroll-row .product-card { width: 220px; }
/* 深色区块里的产品名（原站 woocommerce-loop-product__title 为白字） */
.scroll-row .product-card-title { color: #fff; }
.scroll-row .product-link:hover .product-card-title { color: var(--accent); }
.scroller-nav { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.scroll-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.scroll-btn:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }
/* View all products 按钮（原站 Elementor 按钮：文字 + 右侧长箭头） */
.scroller-cta { text-align: center; margin-top: 30px; }
.scroller-cta .btn svg { width: 15px; height: 15px; margin-left: 22px; fill: currentColor; vertical-align: middle; }

/* 服务卡 */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; box-shadow: var(--shadow); }
.service-card h3 { position: relative; padding-bottom: 14px; }
.service-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--accent); }
.service-card p { color: var(--gray); margin: 0; font-size: 15px; }

/* 文章卡 */
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card-thumb { display: block; aspect-ratio: 768/512; overflow: hidden; background: var(--bg-2); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding: 20px 22px 24px; }
.post-card-body h3 { font-size: 19px; margin: 0 0 6px; }
.post-card-body time { color: var(--gray); font-size: 13px; }
.post-card-body p { color: var(--gray); font-size: 14.5px; margin: 10px 0 14px; }
.readmore { font-family: var(--font-head); font-weight: 500; font-size: 14px; border-bottom: 2px solid var(--accent); }

/* ---------- CTA 横幅 ---------- */
.cta-band { position: relative; color: #fff; text-align: center; padding: 120px 0;
  background: var(--dark) url('/wp-content/uploads/2022/08/home-interiors-kitchen-2486092-1.jpg') center / cover no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(38,34,47,.56); }
.cta-band .container { position: relative; }
.cta-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; margin: 0 0 8px; }
.cta-title { color: #fff; font-size: 36px; margin: 0 0 28px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: #cfc9d9; font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; padding: 60px 24px 40px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cfc9d9; }
.site-footer a:hover { color: var(--accent); }
.f-addr { margin: 0; line-height: 1.7; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13.5px; color: #8b8698; }

/* ---------- Shop / 归档布局 ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-top: 40px; padding-bottom: 60px; }
.shop-sidebar .widget { background: var(--bg-2); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; }
.widget-title { font-size: 18px; margin-bottom: 14px; }
.shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.shop-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 15px; }
.shop-sidebar li:last-child { border-bottom: 0; }
.shop-sidebar .current-cat a { font-weight: 600; border-bottom: 2px solid var(--accent); }
.shop-sidebar ul.children { margin: 0 0 0 15px; }   /* 子分类缩进（原站挂件样式） */
.shop-sidebar .count { color: var(--gray); }
.woocommerce-products-header__title { font-size: 36px; }
.term-description { margin: 14px 0 26px; font-size: 15.5px; line-height: 1.8; color: #4a4554; }
.woocommerce-result-count { color: var(--gray); font-size: 14px; }
.woocommerce-pagination { display: flex; gap: 8px; margin-top: 8px; }
.page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-head); }
.page-numbers.current { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ---------- 产品详情 ---------- */
.woocommerce-breadcrumb { font-size: 13.5px; color: var(--gray); padding: 26px 0 6px; }
.woocommerce-breadcrumb a { color: var(--gray); }
.product-detail { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,4fr); gap: 48px; padding: 16px 0 8px; }
.product-main-img { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.product-main-img img { width: 100%; display: block; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-thumbs img { width: 76px; height: 98px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); cursor: pointer; }
.product_title { font-size: 32px; }
.product-summary .price { font-size: 26px; font-family: var(--font-head); color: var(--dark); }
.product-meta { color: var(--gray); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.woocommerce-product-details__short-description { margin: 16px 0 22px; }
.product-description { padding: 34px 0 10px; border-top: 1px solid var(--line); margin-top: 34px; }
.product-related { margin: 40px 0 30px; }
.product-related h2, .related-posts h2 { font-size: 26px; }

/* ---------- 页面头 / About ---------- */
.page-hero { position: relative; text-align: center; padding: 130px 0 100px; background-color: var(--dark); background-size: cover; background-position: center; }
.page-hero .container { position: relative; }
.page-hero h1 { margin: 0; font-size: 40px; color: #fff; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
/* About 页头两栏（原站：左大标题 + 右黄色粗分隔线段落） */
.about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; text-align: left; }
.about-hero-side { padding-top: 34px; }
.about-hero-divider { width: 60px; height: 8px; background: var(--accent); margin: 0 0 18px; }
.about-hero-side p { color: #fff; margin: 0; font-size: 16.5px; }
/* 图片下方的灰色说明（原站绝对定位 h6） */
.about-img-caption { color: var(--gray); font-size: 15.5px; line-height: 1.7; margin: 18px 0 0; }
/* Gallery 页头：居中黄条 + 白字段落（原站 Elementor） */
.page-hero-divider { width: 80px; height: 8px; background: var(--accent); margin: 8px auto 16px; }
.page-hero-sub { color: #fff; margin: 0 auto; max-width: 780px; font-size: 16.5px; }
.about-text h2 { font-size: 32px; }
.about-addr { color: var(--gray); }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.counter-num { font-family: var(--font-head); font-size: 54px; font-weight: 600; }
.counter-suffix { font-family: var(--font-head); font-size: 34px; color: var(--accent); font-weight: 600; margin-left: 2px; }
.counter-title { color: var(--gray); letter-spacing: .1em; font-size: 12.5px; margin: 6px 0 0; }

/* ---------- Contact ---------- */
.contact-section { padding: 64px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.info-block h3 { font-size: 18px; margin-bottom: 8px; }
.info-block { margin-bottom: 26px; color: var(--dark); }
.info-block p { margin: 4px 0; color: var(--gray); }
.contact-form-wrap h2 { font-size: 26px; margin-bottom: 18px; }
.appointment-form .af-row { margin-bottom: 16px; }
.appointment-form label, .appointment-form legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.appointment-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 16px; }
.appointment-form input, .appointment-form select, .appointment-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; background: #fff;
}
.appointment-form input:focus, .appointment-form textarea:focus { outline: 2px solid var(--accent-2); border-color: var(--accent); }
.appointment-form fieldset input, .appointment-form fieldset select { margin-bottom: 12px; }
.af-city-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.af-apt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-field { position: absolute; left: -9999px; }
.form-success, .form-error { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: 15px; }
.form-success { background: #e8f7ee; color: #1d7a45; border: 1px solid #b7e2c8; }
.form-error { background: #fdeeee; color: #a94442; border: 1px solid #f2c9c6; }
.contact-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-intro { color: var(--gray); max-width: 780px; margin: 0 auto 30px; text-align: center; }

/* ---------- 文章 ---------- */
.news-list { padding-bottom: 50px; }
.single-post { padding: 20px 0; }
.single-post-head { border-bottom: 1px solid var(--line); padding: 18px 0 22px; margin-bottom: 26px; }
.single-post-head h1 { font-size: 36px; margin-bottom: 6px; }
.single-post-head time { color: var(--gray); font-size: 14px; }
.single-post-img { border-radius: var(--radius); margin: 0 0 24px; }
.single-post-content { font-size: 16.5px; }
.single-post-content img { border-radius: var(--radius); }
.single-post-content h2 { margin-top: 1.6em; }
.related-posts { margin: 46px 0 30px; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 90px 0; }
.error-404 h1 { font-size: 90px; margin: 0; color: var(--accent); font-weight: 700; }
.err-url { color: var(--gray); font-size: 14px; word-break: break-all; }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20,17,26,.92); display: flex; align-items: center; justify-content: center; z-index: 200; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 4px; }

/* ============================================================
   后台样式
   ============================================================ */
.admin-body { background: var(--bg-2); }
.admin-wrap { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--dark); color: #cfc9d9; padding: 22px 0; display: flex; flex-direction: column; }
.admin-brand { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: #fff; padding: 0 22px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand span { color: var(--accent); font-weight: 400; }
.admin-side nav { display: flex; flex-direction: column; padding: 14px 0; flex: 1; }
.admin-side nav a { color: #cfc9d9; padding: 11px 22px; font-size: 14.5px; border-left: 3px solid transparent; }
.admin-side nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-side nav a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(251,216,75,.08); }
.admin-side-foot { padding: 14px 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.admin-side-foot a { color: #9a93a8; }
.admin-user { color: #fff; }
.admin-main { padding: 30px 36px 60px; }
.admin-h { font-size: 27px; margin: 0 0 22px; }
.admin-h2 { font-size: 20px; margin: 30px 0 14px; }
.admin-flash { background: #e8f7ee; border: 1px solid #b7e2c8; color: #1d7a45; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; }
.admin-head-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head-row .admin-h { margin: 0; flex: 1; }
.admin-search { display: flex; gap: 8px; }
.admin-search input { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; min-width: 230px; }
.count-pill { background: var(--accent); color: var(--dark); font-size: 13px; padding: 2px 10px; border-radius: 20px; vertical-align: middle; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.admin-table th { text-align: left; background: #eef1f5; padding: 12px 14px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; }
.admin-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table.detail th { width: 180px; background: #fafbfd; }
.cell-dim { color: var(--gray); font-size: 13px; }
.cell-thumb img { width: 44px; height: 56px; object-fit: cover; border-radius: 4px; display: block; }
.row-unread td { background: #fffdf3; }
.badge-unread { background: var(--accent); color: var(--dark); font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 12px; font-weight: 600; }
.admin-pager { display: flex; gap: 8px; margin-top: 16px; }
.admin-pager .current { background: var(--dark); color: #fff; }
.admin-pager a, .admin-pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 8px; }
.admin-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; max-width: 980px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .span2 { grid-column: span 2; }
.admin-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.admin-form input:not([type="checkbox"]):not([type="file"]), .admin-form select, .admin-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; font-family: var(--font-body); margin-top: 4px;
}
.admin-form textarea { resize: vertical; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.admin-form fieldset legend { font-size: 13.5px; font-weight: 600; }
.checks { display: flex; gap: 14px 22px; flex-wrap: wrap; }
.check { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400 !important; font-size: 14.5px !important; }
.form-actions { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.form-actions form { margin: 0; }
.inline { display: inline-block; margin: 0; }
.hint { color: var(--gray); font-size: 12.5px; margin: 6px 0; }
.img-pick { display: flex; gap: 18px; align-items: flex-start; }
.img-preview { width: 130px; height: 168px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.img-preview.hidden { display: none; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.dash-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: flex; flex-direction: column; }
.dash-card strong { font-size: 30px; font-family: var(--font-head); }
.dash-card span { color: var(--gray); font-size: 13.5px; }
.tab-row { display: flex; gap: 6px; margin-bottom: 14px; }
.tab-row a { padding: 8px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: 14px; }
.tab-row a.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.narrow-form { max-width: 460px; }
.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--dark); }
.admin-login-card { background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 38px 40px; width: min(400px, 92vw); }
.admin-login-card h1 { margin: 0; font-size: 24px; }
.admin-login-card .sub { color: var(--gray); margin: 4px 0 22px; }
.admin-login-card label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.admin-login-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; margin-top: 4px; }

/* ============================================================
   响应式（对齐原站 tablet-columns-3 / mobile-columns-2）
   ============================================================ */
@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(3, 1fr); }
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail, .about-grid, .contact-grid, .shop-layout, .about-hero-grid { grid-template-columns: 1fr; }
  .about-hero-side { padding-top: 0; }
  .shop-sidebar { order: 2; }
  .post-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .admin-side nav a { border-left: 0; padding: 8px 12px; }
  .admin-brand { border: 0; padding: 4px 12px; }
  .admin-side-foot { border: 0; flex-direction: row; padding: 0 12px; }
  .admin-main { padding: 20px 18px 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
}
@media (max-width: 720px) {
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .cat-cards { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .post-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .topbar-inner { justify-content: center; gap: 6px 18px; font-size: 12px; }
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 27px; }
  .header-inner { flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .site-logo img { height: 46px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: none; border: 0; cursor: pointer; margin-left: auto;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 24px; height: 2.5px; background: var(--dark); border-radius: 2px; transition: .2s;
  }
  .nav-toggle span::before { transform: translateY(-7.5px); }
  .nav-toggle span::after { transform: translateY(5px); }
  .main-nav { width: 100%; flex-direction: column; align-items: stretch; display: none; }
  .main-nav.open { display: flex; }
  .main-menu { flex-direction: column; gap: 0; }
  .main-menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .header-search { padding: 10px 0 4px; }
  .header-search input[type="search"] { flex: 1; width: auto; }
  .af-city-row { grid-template-columns: 1fr; }
  .af-apt-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; }
  .admin-search input { min-width: 0; }
}
