/* ??????????? - ???? */
:root {
  --primary: #b91c1c;
  --primary-dark: #991b1b;
  --primary-light: #fef2f2;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max-width: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img {
  height: 52px;
  width: auto;
}

.hero-logo-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-logo {
  width: min(220px, 38vw);
  height: auto;
  object-fit: contain;
  display: block;
}

.about-visual img {
  width: min(200px, 70%);
  margin-inline: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1.05rem;
  color: var(--primary);
}

.logo-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .logo-text span {
    display: none;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 45%, #dc2626 100%);
  color: #fff;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero-content .en-name {
  font-size: clamp(0.85rem, 2vw, 1rem);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-slogan {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-family: "STKaiti", "KaiTi", serif;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-desc {
  max-width: 540px;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.section .btn-primary,
.cta-actions .btn-primary,
.text-center .btn-primary {
  background: var(--primary);
  color: #fff;
}

.section .btn-primary:hover,
.cta-actions .btn-primary:hover,
.text-center .btn-primary:hover {
  background: var(--primary-dark);
}

.about-content h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.highlight-list-centered {
  max-width: 720px;
  margin-inline: auto;
}

.stat-card .number.text-label {
  font-size: 1.5rem;
}

.text-center {
  text-align: center;
  margin-top: 2rem;
}

.text-center-sm {
  margin-top: 1.5rem;
}

.footer-col a {
  color: #d1d5db;
  transition: color 0.2s;
}

.contact-cta .btn-primary {
  background: var(--primary);
  color: #fff;
}

.contact-cta .btn-primary:hover {
  background: var(--primary-dark);
}

.contact-grid-home {
  align-items: start;
}

.contact-grid-home .btn-secondary {
  background: var(--primary);
  color: #fff;
}

.contact-grid-home .btn-secondary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

.section-header .divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card .number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.product-card-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border-bottom: 1px solid var(--border);
}

.card-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-content p.lead {
  font-size: 1.05rem;
  color: var(--text);
}

.highlight-list {
  list-style: none;
  margin-top: 1.5rem;
}

.highlight-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.about-visual {
  background: linear-gradient(145deg, var(--primary-light), #fff);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-visual img {
  margin-bottom: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-list {
  list-style: none;
}

.contact-info-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-list .icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list .icon svg {
  width: 20px;
  height: 20px;
}

.section-title {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.35rem;
}

.info-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--primary-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.info-box h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.info-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.map-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.map-link:hover {
  text-decoration: underline;
}

.contact-cta {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-cta h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.contact-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.contact-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-single {
  max-width: 640px;
  margin-inline: auto;
}

.contact-page-actions {
  margin-top: 2rem;
}

.contact-page-actions .btn-secondary {
  background: var(--primary);
  color: #fff;
}

.contact-page-actions .btn-secondary:hover {
  background: var(--primary-dark);
}

.category-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section-cta {
  margin-top: 3rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-info-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-info-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
}

/* Product detail page */
.product-category {
  margin-bottom: 3rem;
}

.product-category h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.product-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.product-item {
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.product-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  width: auto;
  height: 88px;
  margin-bottom: 1.25rem;
  margin-inline: 0;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo-wrap {
    margin-inline: auto;
  }

  .hero-logo {
    margin-inline: auto;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
