/* ========== CSS Custom Properties ========== */
:root {
  --color-bg-primary: #0f1319;
  --color-bg-secondary: #171c24;
  --color-bg-card: #1e242e;
  --color-bg-card-hover: #242b36;
  --color-bg-elevated: #252d38;
  --color-bg-input: #0b0f14;
  --color-bg-header: rgba(15, 19, 25, 0.96);
  --color-bg-overlay: rgba(0, 0, 0, 0.7);

  --color-border: #2d3540;
  --color-border-light: rgba(255, 255, 255, 0.06);
  --color-border-medium: rgba(255, 255, 255, 0.10);
  --color-border-accent: rgba(255, 198, 41, 0.20);
  --color-border-accent-hover: rgba(255, 198, 41, 0.45);

  --color-accent: #ffc629;
  --color-accent-light: #ffd95c;
  --color-accent-dark: #e3a70b;
  --color-accent-gradient: linear-gradient(135deg, #ffd54f, #e3a70b);
  --color-accent-glow: rgba(255, 198, 41, 0.12);
  --color-accent-glow-strong: rgba(255, 198, 41, 0.22);
  --color-accent-secondary: #7da5b8;
  --color-accent-warning: #ff7a2f;
  --color-accent-success: #48d17a;
  --color-accent-danger: #ff5f56;

  --color-text-primary: #f2f4f7;
  --color-text-body: #e1e5ea;
  --color-text-secondary: #c8cdd5;
  --color-text-muted: #87909c;
  --color-text-label: #78828e;
  --color-text-placeholder: #5b6572;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-heading: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.20);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.28);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.42), 0 0 0 1px var(--color-border-accent);
  --shadow-glow: 0 0 24px var(--color-accent-glow);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.32);

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.35s ease;

  --container-max: 1200px;
  --header-height: 60px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-body);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    /* diamond plate pattern */
    repeating-linear-gradient(45deg, rgba(255,198,41,0.018) 0px, rgba(255,198,41,0.018) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-45deg, rgba(255,198,41,0.018) 0px, rgba(255,198,41,0.018) 1px, transparent 1px, transparent 10px),
    /* subtle grid overlay */
    repeating-linear-gradient(0deg, rgba(255,255,255,0.008) 0px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.008) 0px, transparent 1px, transparent 40px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: rgba(255, 198, 41, 0.25);
  color: var(--color-text-primary);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    /* top rivet strip */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 28px,
      rgba(255,198,41,0.06) 28px,
      rgba(255,198,41,0.06) 30px
    ),
    /* main metallic gradient */
    linear-gradient(180deg, #1c2430 0%, #151c26 40%, #0f151d 100%);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,198,41,0.3) 20%, rgba(255,198,41,0.3) 80%, transparent 100%);
  opacity: 0.5;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  pointer-events: none;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.header-accent {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,198,41,0.3) 50%, transparent 100%);
  opacity: 0.5;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.logo:hover { opacity: 0.85; }

.logo-img {
  height: 100px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 4px;
}

.nav-link {
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}
.nav-link:hover {
  color: var(--color-accent);
  background: rgba(255,198,41,0.06);
}
.nav-link.active {
  color: #0f1319;
  background: var(--color-accent-gradient);
  box-shadow: 0 2px 8px var(--color-accent-glow);
}

/* ========== Main Content ========== */
.main-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px 24px;
  min-height: calc(100vh - var(--header-height) - 120px);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-medium);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-accent); }

.footer-copy {
  color: var(--color-text-muted);
  font-size: 13px;
  opacity: 0.7;
}

/* ========== Section Heading ========== */
.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 28px;
  padding: 0 0 16px 16px;
  border-bottom: 1px solid var(--color-border-medium);
  border-left: 4px solid var(--color-accent);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.06em;
  position: relative;
  text-transform: uppercase;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--color-accent-gradient);
  border-radius: 2px;
}

/* ========== Cards ========== */
.card {
  background: linear-gradient(170deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
  cursor: pointer;
}
.card:hover {
  border-color: var(--color-border-accent-hover);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
  transform: translateY(-3px);
}

/* ========== Shop Cards Grid ========== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.shop-card {
  background: linear-gradient(170deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}
.shop-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.shop-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
  transform: translateY(-3px);
}
.shop-card:hover::after {
  opacity: 1;
}

.shop-card-link { color: inherit; text-decoration: none; display: block; }

.shop-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-input);
}
.shop-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, var(--color-bg-card), transparent);
}
.shop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.shop-card:hover .shop-card-image img {
  transform: scale(1.04);
}

.shop-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 56px;
  color: var(--color-text-muted);
  opacity: 0.4;
}

.shop-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-accent-gradient);
  color: #0f1319;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.shop-card-body {
  padding: 18px;
  position: relative;
  z-index: 1;
}

.shop-card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.shop-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.shop-card-score {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
}

.shop-card-address {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-card-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--color-text-label);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent-gradient);
  color: #0f1319;
  box-shadow: 0 2px 12px var(--color-accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px var(--color-accent-glow-strong);
  color: #0f1319;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px var(--color-accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent-glow);
  color: var(--color-accent);
  border-color: var(--color-accent-light);
}
.btn-secondary:active {
  background: var(--color-accent-glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ========== Filter Section ========== */
.filter-section {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.filter-row:last-child {
  margin-bottom: 0;
}

.filter-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  flex: 1;
  max-width: 200px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-select-wrap .filter-select {
  flex: 1;
}

.filter-select-clear {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  z-index: 2;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.filter-select-clear:hover {
  background: var(--color-accent-danger);
  color: #fff;
}

.filter-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-medium);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-chip {
  padding: 7px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
}
.filter-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}
.filter-chip.active {
  border-color: var(--color-accent);
  color: #0f1319;
  background: var(--color-accent-gradient);
  font-weight: 600;
}

.filter-select {
  padding: 8px 12px;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-body);
  font-size: 13px;
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2387909c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.filter-select:hover {
  border-color: var(--color-border-medium);
}
.filter-select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.filter-select option {
  background: var(--color-bg-card);
  color: var(--color-text-body);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); cursor: pointer; transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .separator { color: var(--color-text-placeholder); }
.breadcrumb .current { color: var(--color-text-primary); font-weight: 600; }

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-medium);
}

.page-btn {
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.page-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.page-info {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ========== Brand Grid ========== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.brand-card:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  background: var(--color-bg-card-hover);
}
.brand-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}
.brand-card:hover img {
  transform: scale(1.1);
}
.brand-card-name {
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}

/* ========== Letter Index ========== */
.letter-index {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 28px;
}
.letter-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.letter-index a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
  transform: translateY(-1px);
}

.brand-group {
  margin-bottom: 32px;
}
.brand-group-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-medium);
  letter-spacing: 0.04em;
}

/* ========== Shop Detail ========== */
.shop-detail-header {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  margin-bottom: 32px;
  padding: 28px;
  background: linear-gradient(170deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
}

.shop-detail-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.shop-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-detail-info h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.shop-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
  color: var(--color-text-muted);
}
.shop-detail-meta .star-rating {
  vertical-align: middle;
}

/* Contact card */
.shop-detail-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 16px;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.shop-detail-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.shop-detail-contact-item a {
  color: var(--color-accent);
  text-decoration: none;
}
.shop-detail-contact-item a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}
.shop-detail-contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  text-align: center;
}

/* Address line */
.shop-detail-address {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 16px;
  background: rgba(255,198,41,0.04);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.shop-detail-address a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.shop-detail-address a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* Linked sections (brands, models, etc) */
.shop-detail-linked {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
}
.shop-detail-linked-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shop-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-detail-tag {
  padding: 6px 16px;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--color-accent);
  background: var(--color-accent-glow);
  transition: all var(--transition-fast);
}
.shop-detail-tag--link {
  text-decoration: none;
  cursor: pointer;
}
.shop-detail-tag--link:hover {
  background: var(--color-accent-glow-strong);
  border-color: var(--color-border-accent-hover);
  transform: translateY(-1px);
}

/* Service/category tags (primary, below name) */
.shop-detail-tags--primary {
  margin-bottom: 18px;
}

/* Content blocks */
.shop-detail-content {
  margin-bottom: 28px;
  padding: 28px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  line-height: 1.85;
  color: var(--color-text-body);
}

/* ========== Comments ========== */
.comment-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-medium);
}

.comment-list { list-style: none; }

.comment-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.comment-user {
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-date {
  font-size: 13px;
  color: var(--color-text-muted);
}

.comment-body {
  color: var(--color-text-body);
  line-height: 1.75;
  font-size: 15px;
}

.comment-reply {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--color-accent-glow);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========== Model Cards ========== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.model-card {
  display: block;
  padding: 24px;
  background: linear-gradient(170deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-body);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.model-card:hover {
  border-color: var(--color-border-accent);
  color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}
.model-card:hover::before {
  opacity: 1;
}
.model-card-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-input);
}
.model-card-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.03em;
}
.model-card-meta {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.wheel-data-card {
  position: relative;
}
.wheel-badge {
  display: inline-block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-glow);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-accent);
}

/* ========== Wheel Data Table ========== */
.wheel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wheel-table th, .wheel-table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}
.wheel-table th {
  background: var(--color-bg-card);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
.wheel-table td {
  color: var(--color-text-body);
}
.wheel-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
.wheel-table tr:hover td {
  background: var(--color-accent-glow);
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.year-tab {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.year-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}
.year-tab.active {
  border-color: var(--color-accent);
  color: #0f1319;
  background: var(--color-accent-gradient);
  font-weight: 600;
}

/* ========== Wheel Data QR Section ========== */
.wheel-qr-section {
  margin-top: 28px;
}
.wheel-qr-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding: 36px;
  background: linear-gradient(170deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.wheel-qr-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.wheel-qr-image img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}
.wheel-qr-text {
  line-height: 2;
  color: var(--color-text-body);
  font-size: 15px;
}
.wheel-qr-text p {
  margin-bottom: 14px;
}
.wheel-qr-text strong {
  color: var(--color-accent);
}
.wheel-qr-note {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ========== Modified Brand Cards ========== */
.modified-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.modified-brand-card {
  display: block;
  padding: 28px;
  background: linear-gradient(170deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-body);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}
.modified-brand-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: var(--color-accent-gradient);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.modified-brand-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}
.modified-brand-card:hover::after {
  opacity: 1;
}

.modified-brand-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.modified-brand-card-header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-light);
}
.modified-brand-card-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.03em;
}
.modified-brand-card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== Brand Detail ========== */
.brand-detail-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-bottom: 36px;
  padding: 28px;
  background: linear-gradient(170deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
}

.brand-detail-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-light);
}
.brand-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 64px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.brand-detail-intro h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.brand-detail-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.brand-detail-stats {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.brand-content-body {
  color: var(--color-text-body);
  line-height: 1.9;
  font-size: 15px;
}

.brand-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 14px 0;
}

.brand-detail-desc p {
  color: var(--color-text-body);
  line-height: 1.8;
  font-size: 14px;
}

.brand-detail-buy {
  margin-top: 36px;
  padding: 24px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
}

.brand-detail-buy p {
  color: var(--color-text-secondary);
  margin-bottom: 18px;
  font-size: 14px;
}

.brand-detail-qr {
  margin-top: 36px;
}

.brand-qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-medium);
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ========== Homepage Section ========== */
.home-section {
  margin-top: 52px;
}
.home-section:first-of-type {
  margin-top: 36px;
}

/* ========== Hero Carousel ========== */
.hero-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--color-border-medium);
  box-shadow: var(--shadow-card);
}

.hero-slides {
  display: flex;
  width: 300%;
  animation: heroSlide 12s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides {
    animation: none;
  }
  .hero-dot:nth-child(1),
  .hero-dot:nth-child(2),
  .hero-dot:nth-child(3) {
    animation: none;
  }
}

.hero-slide {
  width: 33.333%;
  flex-shrink: 0;
  padding: 72px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  background: var(--color-bg-primary);
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, var(--color-accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 198, 41, 0.04) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.hero-content p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.hero-content .highlight {
  color: var(--color-accent);
}

.hero-content .btn {
  display: inline-flex;
  margin-top: 4px;
  font-size: 16px;
  padding: 13px 32px;
}

/* Carousel dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all var(--transition-base);
  cursor: pointer;
}

.hero-dot:nth-child(1) { animation: dotPulse 12s infinite; }
.hero-dot:nth-child(2) { animation: dotPulse 12s 4s infinite; }
.hero-dot:nth-child(3) { animation: dotPulse 12s 8s infinite; }

@keyframes heroSlide {
  0%, 28%   { transform: translateX(0); }
  33%, 61%  { transform: translateX(-33.333%); }
  66%, 94%  { transform: translateX(-66.666%); }
  100%      { transform: translateX(0); }
}

@keyframes dotPulse {
  0%, 28%   { background: rgba(255, 255, 255, 0.25); }
  2%, 26%   { background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent-glow-strong); }
  33%, 61%  { background: rgba(255, 255, 255, 0.25); }
  35%, 59%  { background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent-glow-strong); }
  66%, 94%  { background: rgba(255, 255, 255, 0.25); }
  68%, 92%  { background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent-glow-strong); }
}

/* ========== Section Footer (for "view more" links) ========== */
.section-footer {
  text-align: center;
  margin-top: 28px;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-text-muted);
}
.empty-state p {
  font-size: 15px;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== Global Focus Styles ========== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========== Filter Toggle ========== */
.filter-toggle {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  position: relative;
  margin-bottom: 12px;
}
.filter-toggle::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transition: transform var(--transition-base);
}
.filter-toggle.open::after {
  transform: translateY(-25%) rotate(-135deg);
}
.filter-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-body {
  transition: max-height var(--transition-slow), opacity var(--transition-base);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}
.filter-body.expanded {
  max-height: 2000px;
  opacity: 1;
}

/* ========== Shop Banner Ad ========== */
.shop-banner {
  margin-bottom: 28px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #1a1f2b 0%, #1e242e 50%, #1a1f2b 100%);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
}
.shop-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    var(--color-accent) 0px,
    var(--color-accent) 8px,
    #0f1319 8px,
    #0f1319 16px
  );
  opacity: 0.8;
}
.shop-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(ellipse at 70% 50%, var(--color-accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.shop-banner:hover {
  border-color: var(--color-border-accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.shop-banner-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--color-accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #0f1319;
  position: relative;
  z-index: 1;
}
.shop-banner-text {
  position: relative;
  z-index: 1;
  flex: 1;
}
.shop-banner-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.shop-banner-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.shop-banner-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,198,41,0.1);
  border: 1px solid var(--color-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}
.shop-banner:hover .shop-banner-arrow {
  background: var(--color-accent);
  color: #0f1319;
}

/* ========== Modal Overlay ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), var(--shadow-glow);
  animation: modalIn var(--transition-slow);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 24px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1;
}
.modal-close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--color-text-primary);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-qr {
  display: inline-block;
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}
.modal-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-note {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 12px;
}

/* ========== Shop Detail Tags Toggle ========== */
#tagsBody.expanded {
  max-height: 500px !important;
  opacity: 1 !important;
}

/* ========== Touch device hover safety ========== */
@media (hover: none) {
  .shop-card:hover .shop-card-image img,
  .brand-card:hover img {
    transform: none;
  }
}
