:root {
  --brand: #0a5cff;
  --brand-2: #1bc7ff;
  --accent: #7c3aed;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0f172a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.site-header { position: sticky; top: 0; z-index: 1000; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: .2px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .2s ease, transform .2s ease; }
.nav a:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.nav a.active { background: rgba(255,255,255,0.28); font-weight: 700; }
.hero { position: relative; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; border-radius: 18px; padding: 40px; overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,0.12); }
.hero { margin-bottom: 18px; }
.hero::before { content:""; position:absolute; inset:-20%; background: radial-gradient(ellipse at top left, rgba(255,255,255,0.25), transparent 60%); pointer-events: none; z-index: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,0.08); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.12); }
.card-link { display:block; color:inherit; text-decoration:none; }
.card-link:hover { text-decoration:none; }
.card-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-header-soft { background: linear-gradient(135deg, #f3f6fc, #e8f2ff); color: var(--text); }
.card-body { padding: 16px; }
.bg-azure { background: var(--brand); }
.text-white { color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.col-md-3 { width: calc(25% - 18px); }
.col-md-6 { width: calc(50% - 12px); }
.col-md-9 { width: calc(75% - 6px); }
.col-md-12 { width: 100%; }
.list-group { list-style: none; margin: 0; padding: 0; }
.list-group-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.list-group-item:last-child { border-bottom: 0; }
.text-muted { color: var(--muted); }
.text-dark { color: #111827; }
.fw-bold { font-weight: 700; }
.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.img-fluid { max-width: 100%; height: auto; }
.rounded-2 { border-radius: 10px; }
.datagrid { padding-top: 20px;display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.datagrid-item { padding: 0; }
.recommend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 16px; }
.recommend-item { padding: 0; }
.badge { display:inline-block; padding:5px 10px; border-radius:999px; background:#eef2ff; color:#1e3a8a; font-size:12px; }
.badge-soft { background:#f1f5f9; color:#0f172a; }
.operator { display:flex; align-items:center; gap:8px; }
.operator-icon { width:24px; height:24px; border-radius:50%; background: linear-gradient(135deg, #00c6ff, #0072ff); }
.detail-title { font-size: 32px; margin: 12px 0; font-weight: 800; letter-spacing: .2px; }
.detail-top { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; margin: 16px 0 8px; }
.site-footer { margin-top: 24px; padding: 24px 0; border-top: 1px solid var(--border); color: var(--muted); }
main.container { padding-top: 24px; }

.breadcrumb { display:flex; align-items:center; gap:6px; font-size:14px; color: var(--muted); margin: 4px 0 12px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .current { color: var(--text); font-weight: 700; }

@media (max-width: 992px) {
  .detail-top { grid-template-columns: 1fr; }
  .searchbar { flex-wrap: wrap; }
  /* 在平板和移动端，所有列都变为100%宽度 */
  .col-md-3, .col-md-6, .col-md-9 { width: 100%; }
}
@media (max-width: 768px) {
  .col-md-6 { width: 100%; }
  .header-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .nav a { margin: 0; background: rgba(255,255,255,0.18); }
  .hero { padding: 28px; }
  .pagination a { padding:6px 10px; line-height: 1.1; }
  .searchbar { flex-direction: column; flex-wrap: nowrap; }
  .searchbar { gap: 6px; margin: 8px 0 12px; }
  .searchbar input[type="text"],
  .searchbar input[type="number"],
  .searchbar select,
  .searchbar button { width: 100%; padding: 6px 8px; font-size: 13px; line-height: 1.3; border-radius: 8px; }
  .card-body { padding: 10px; }
}

.searchbar { flex-wrap: nowrap; gap:8px; margin:16px 0; overflow-x: auto; }
.searchbar input[type="text"],
.searchbar input[type="number"],
.searchbar select { padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.searchbar input[type="text"] { flex: 1 1 320px; }
.searchbar input[type="number"],
.searchbar select { flex: 0 1 180px; }
.searchbar input[type="number"],
.searchbar select { flex: 1 1 160px; }
.searchbar button { flex: 0 0 auto; }
.searchbar button { padding:10px 14px; border:none; border-radius:10px; background:var(--brand); color:#fff; flex: 0 0 auto; }
.pagination { display:flex; gap:8px; margin:16px 0; }
.pagination a { padding:8px 12px; border:1px solid var(--border); border-radius:10px; text-decoration:none; color:#111827; background:#fff; transition: all .15s ease; }
.pagination a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.06); }
.pagination a.active { background:#111827; color:#fff; border-color:#111827; }
.pagination a.disabled { pointer-events:none; opacity:.5; }

.editor { border:1px solid var(--border); border-radius:10px; padding:10px; min-height:140px; background:#fff; }
.form-row { display:flex; flex-direction:column; gap:8px; margin:8px 0; }

.product-card-media { height: 180px; background:#f3f4f6; position: relative; }
.product-card-media img { width: 100%; height: 180px; object-fit: cover; display:block; }
.price-badge { position: absolute; right: 12px; top: 12px; background: #111827; color:#fff; padding: 6px 10px; border-radius: 999px; font-size: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
