/* ============================================
   GlorientCN — 工业自动化产品展示
   基于 fieldcommunicator.net 设计风格
   遵循前端开发规范：CSS 变量化 / BEM / z-index 管理
   ============================================ */

/* ─── Design Tokens ─── */
:root {
  /* Primary */
  --c-primary: #f0a016;
  --c-primary-hover: #d88e0f;
  --c-primary-dark: #e8960f;
  --c-highlight: #fff000;

  /* Backgrounds */
  --c-bg-body: #444;
  --c-bg-white: #fff;
  --c-bg-light: #fafafa;
  --c-bg-lighter: #f9f9f9;
  --c-bg-lighter2: #f5f5f5;
  --c-bg-dark: #333;
  --c-bg-darker: #222;

  /* Text */
  --c-text: #333;
  --c-text-light: #555;
  --c-text-lighter: #666;
  --c-text-lightest: #777;
  --c-text-muted: #888;
  --c-text-subtle: #999;
  --c-text-soft: #aaa;
  --c-text-ghost: #ccc;
  --c-text-white: #fff;

  /* Borders */
  --c-border: #e5e5e5;
  --c-border-light: #ddd;
  --c-border-lighter: #eee;
  --c-border-lightest: #f0f0f0;

  /* Status */
  --c-success: #52c41a;
  --c-success-bg: #f6ffed;
  --c-success-border: #b7eb8f;
  --c-error: #e74c3c;

  /* Shadows */
  --shadow-sm: 0 3px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 3px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 3px 12px rgba(0, 0, 0, 0.15);

  /* Overlay */
  --overlay-light: rgba(0, 0, 0, 0.4);
  --overlay-medium: rgba(0, 0, 0, 0.6);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-image: rgba(240, 160, 22, 0.1);

  /* Spacing */
  --space-xs: 0.3125rem;   /*  5px */
  --space-sm: 0.5rem;      /*  8px */
  --space-md: 0.625rem;    /* 10px */
  --space-lg: 0.9375rem;   /* 15px */
  --space-xl: 1.25rem;     /* 20px */
  --space-2xl: 1.5625rem;  /* 25px */
  --space-3xl: 1.875rem;   /* 30px */

  /* Z-index layers */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 800;
  --z-nav: 900;
  --z-overlay: 999;

  /* Layout */
  --container-max: 72.5rem;   /* 1160px */
  --nav-height: 2.875rem;     /* 46px */
  --sidebar-width: 15.625rem; /* 250px */

  /* Transitions */
  --t-fast: 0.2s;
  --t-normal: 0.3s;
  --t-slow: 0.4s;
  --t-slide: 0.6s;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", Verdana, Tahoma, Arial, Helvetica, sans-serif;
  --fs-xs: 0.6875rem;    /* 11px */
  --fs-sm: 0.75rem;      /* 12px */
  --fs-md: 0.8125rem;    /* 13px */
  --fs-lg: 0.875rem;     /* 14px */
  --fs-xl: 1rem;         /* 16px */
  --fs-2xl: 1.125rem;    /* 18px */
  --fs-3xl: 1.25rem;     /* 20px */
  --fs-4xl: 1.375rem;    /* 22px */
  --fs-5xl: 1.5rem;      /* 24px */
  --fs-6xl: 1.75rem;     /* 28px */
  --fs-7xl: 1.875rem;    /* 30px */

  /* Border radius */
  --radius-sm: 0.1875rem; /* 3px */
  --radius-full: 50%;
}

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

html {
  overflow-y: scroll;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  color: var(--c-text);
  background: var(--c-bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--c-text);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--c-primary);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-sm { margin-top: var(--space-md); }
.mt-md { margin-top: var(--space-xl); }
.mt-lg { margin-top: var(--space-3xl); }
.mb-sm { margin-bottom: var(--space-md); }
.mb-md { margin-bottom: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-3xl); }

/* ─── Buttons (shared) ─── */
.btn-primary {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-text-white);
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: bold;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  text-transform: uppercase;
}

.btn-primary:hover {
  background: var(--c-primary-hover);
  color: var(--c-text-white);
}

/* ─── Header ─── */
.header {
  background: var(--c-bg-white);
  padding: var(--space-md) 0;
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: inline-block;
  font-size: var(--fs-6xl);
  font-weight: bold;
  color: var(--c-primary);
  line-height: 3.75rem;
  vertical-align: middle;
}

.header__contact {
  text-align: right;
  font-size: var(--fs-md);
  color: var(--c-text-lighter);
}

.header__contact strong {
  color: var(--c-primary);
  font-size: var(--fs-lg);
}

/* ─── Navigation ─── */
.nav-box {
  background: var(--c-primary);
  height: var(--nav-height);
  position: relative;
  z-index: var(--z-nav);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.navbar {
  display: flex;
  align-items: center;
  height: var(--nav-height);
}

.navbar__menu {
  display: flex;
  height: var(--nav-height);
}

.navbar__menu > li {
  position: relative;
  height: var(--nav-height);
}

.navbar__menu > li > a {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 1.125rem;
  color: var(--c-text-white);
  font-size: var(--fs-md);
  font-weight: bold;
  white-space: nowrap;
  text-transform: uppercase;
  transition: background var(--t-fast), color var(--t-fast);
}

.navbar__menu > li > a:hover,
.navbar__menu > li.active > a {
  background: var(--c-primary-dark);
  color: var(--c-highlight);
}

/* Dropdown */
.navbar__menu > li > .sub-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  background: var(--c-bg-white);
  min-width: 12.5rem;
  border: 1px solid var(--c-border-light);
  border-top: 2px solid var(--c-primary);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-overlay);
}

.navbar__menu > li:hover > .sub-menu {
  display: block;
}

.navbar__menu > li > .sub-menu li a {
  display: block;
  padding: var(--space-md) 1rem;
  color: var(--c-text);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--c-border-lighter);
  transition: all var(--t-fast);
}

.navbar__menu > li > .sub-menu li a:hover {
  background: var(--c-bg-lighter);
  color: var(--c-primary);
  padding-left: 1.375rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-md);
  position: absolute;
  right: var(--space-md);
  top: 0.375rem;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--c-text-white);
  margin: var(--space-xs) 0;
  transition: all var(--t-normal);
}

/* ─── Slider / Banner ─── */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-dark);
}

.slider__container {
  position: relative;
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform var(--t-slide) ease;
}

.slider__slide {
  min-width: 100%;
  position: relative;
}

.slider__slide img {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}

.slider__caption {
  position: absolute;
  bottom: var(--space-3xl);
  left: 50%;
  transform: translateX(-50%);
  background: var(--overlay-medium);
  color: var(--c-text-white);
  padding: var(--space-md) 1.5625rem;
  font-size: var(--fs-lg);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Slider controls */
.slider__prev,
.slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-dropdown);
  background: var(--overlay-light);
  color: var(--c-text-white);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  font-size: var(--fs-xl);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--t-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__prev:hover,
.slider__next:hover {
  background: var(--overlay-dark);
}

.slider__prev { left: var(--space-xl); }
.slider__next { right: var(--space-xl); }

.slider__dots {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: var(--z-dropdown);
}

.slider__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background var(--t-normal);
}

.slider__dot--active {
  background: var(--c-primary);
}

/* ─── Main Layout ─── */
.main-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content-area {
  background: var(--c-bg-white);
  padding: var(--space-2xl);
  display: flex;
  gap: var(--space-2xl);
  min-height: 31.25rem;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* ─── Section Title ─── */
.section__title {
  font-size: var(--fs-2xl);
  font-weight: bold;
  color: var(--c-text);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--c-primary);
  text-transform: uppercase;
}

.section__title span {
  color: var(--c-primary);
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar__box {
  margin-bottom: var(--space-xl);
  border: 1px solid var(--c-border);
}

.sidebar__title {
  background: var(--c-primary);
  color: var(--c-text-white);
  font-size: var(--fs-lg);
  font-weight: bold;
  padding: var(--space-md) var(--space-lg);
  text-transform: uppercase;
}

.sidebar__menu {
  padding: var(--space-xs) 0;
}

.sidebar__menu > li {
  border-bottom: 1px solid var(--c-border-lightest);
}

.sidebar__menu > li:last-child {
  border-bottom: none;
}

.sidebar__menu > li > a {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: var(--c-text);
  font-size: var(--fs-sm);
  transition: all var(--t-fast);
  position: relative;
}

.sidebar__menu > li > a:hover,
.sidebar__link--active {
  background: var(--c-bg-light);
  color: var(--c-primary);
  padding-left: var(--space-xl);
}

.sidebar__link--active {
  font-weight: bold;
}

.sidebar__menu > li.has-sub > a::after {
  content: "+";
  position: absolute;
  right: var(--space-lg);
  font-weight: bold;
  color: var(--c-text-subtle);
}

.sidebar__menu > li.has-sub.open > a::after {
  content: "\2212";
}

.sidebar__menu .sub-menu {
  display: none;
  background: var(--c-bg-light);
  padding: var(--space-xs) 0;
}

.sidebar__menu > li.open > .sub-menu {
  display: block;
}

.sidebar__menu .sub-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-lg) var(--space-sm) 1.75rem;
  color: var(--c-text-lighter);
  font-size: var(--fs-xs);
  transition: all var(--t-fast);
}

.sidebar__menu .sub-menu li a:hover {
  color: var(--c-primary);
  background: var(--c-bg-lighter2);
  padding-left: 2.0625rem;
}

/* Sidebar contact */
.sidebar__contact {
  padding: var(--space-lg);
  font-size: var(--fs-sm);
  line-height: 2;
}

.sidebar__contact strong {
  color: var(--c-primary);
}

/* ─── About Section ─── */
.about-section {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.about-section__img {
  flex-shrink: 0;
  width: 17.5rem;
}

.about-section__img img {
  width: 100%;
  border: 1px solid var(--c-border);
}

.about-section__text {
  flex: 1;
}

.about-section__text h3 {
  font-size: var(--fs-xl);
  color: var(--c-primary);
  margin-bottom: 0.75rem;
}

.about-section__text p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--c-text-light);
  margin-bottom: var(--space-md);
}

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.product-card {
  border: 1px solid var(--c-border);
  text-align: center;
  transition: all var(--t-normal);
  background: var(--c-bg-white);
  overflow: hidden;
}

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

.product-card__img {
  overflow: hidden;
  position: relative;
}

.product-card__img img {
  width: 100%;
  display: block;
  transition: transform var(--t-slow) ease;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card:hover .product-card__img img {
  transform: scale(1.1);
}

.product-card__info {
  padding: 0.75rem var(--space-md);
}

.product-card__name {
  font-size: var(--fs-sm);
  font-weight: bold;
  color: var(--c-text);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2rem;
}

.product-card__name a {
  color: var(--c-text);
}

.product-card__name a:hover {
  color: var(--c-primary);
}

.product-card__btn {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-text-white);
  padding: 0.375rem 1.125rem;
  font-size: var(--fs-xs);
  font-weight: bold;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
  border: none;
  cursor: pointer;
}

.product-card__btn:hover {
  background: var(--c-primary-hover);
  color: var(--c-text-white);
}

/* ─── Features / Advantages ─── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border: 1px solid var(--c-border);
  transition: all var(--t-normal);
}

.feature-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto var(--space-lg);
  background: var(--c-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-white);
  font-size: var(--fs-5xl);
}

.feature-card__title {
  font-size: var(--fs-lg);
  color: var(--c-text);
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-lightest);
  line-height: 1.6;
}

/* ─── Form Elements (shared) ─── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: var(--space-xs);
  color: var(--c-text);
  font-size: var(--fs-sm);
}

.form-label__required {
  color: var(--c-error);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) 0.75rem;
  border: 1px solid var(--c-border-light);
  font-size: var(--fs-sm);
  font-family: var(--font-family);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--c-primary);
}

.form-textarea {
  width: 100%;
  padding: var(--space-sm) 0.75rem;
  border: 1px solid var(--c-border-light);
  font-size: var(--fs-sm);
  font-family: var(--font-family);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
  resize: vertical;
  min-height: 7.5rem;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem var(--space-md);
  font-size: var(--fs-xs);
  color: var(--c-text-subtle);
}

.breadcrumb a {
  color: var(--c-text-lighter);
}

.breadcrumb a:hover {
  color: var(--c-primary);
}

.breadcrumb__sep {
  margin: 0 var(--space-sm);
  color: var(--c-text-ghost);
  font-style: normal;
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin: var(--space-2xl) 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--c-border-light);
  color: var(--c-text);
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}

.pagination a:hover {
  background: var(--c-primary);
  color: var(--c-text-white);
  border-color: var(--c-primary);
}

.pagination__current {
  background: var(--c-primary);
  color: var(--c-text-white) !important;
  border-color: var(--c-primary);
}

/* ─── Footer ─── */
.footer {
  background: var(--c-bg-dark);
  color: var(--c-text-ghost);
  padding: var(--space-3xl) 0 0;
  margin-top: var(--space-xl);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
}

.footer__col-title {
  color: var(--c-text-white);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--c-text-light);
  text-transform: uppercase;
}

.footer__col p {
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--c-text-soft);
}

.footer__col ul li a {
  color: var(--c-text-soft);
  font-size: var(--fs-xs);
  line-height: 2;
}

.footer__col ul li a:hover {
  color: var(--c-primary);
}

.footer__bottom {
  background: var(--c-bg-darker);
  text-align: center;
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.footer__bottom a {
  color: var(--c-text-soft);
}

.footer__bottom a:hover {
  color: var(--c-primary);
}

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed;
  bottom: var(--space-3xl);
  right: var(--space-3xl);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--c-primary);
  color: var(--c-text-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--fs-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-normal);
  z-index: var(--z-sticky);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--c-primary-hover);
}

/* ═══════════════════════════════════════════
   Sub-page Styles
   ═══════════════════════════════════════════ */

/* ─── Page Banner ─── */
.page-banner {
  position: relative;
  overflow: hidden;
  min-height: 11.25rem;
  background: linear-gradient(135deg, var(--c-navy) 0%, #1a3a5c 50%, var(--c-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner__overlay {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.page-banner__title {
  color: var(--c-primary);
  font-size: var(--fs-3xl);
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.page-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-primary);
}

/* ─── Page Container ─── */
.page-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-inner {
  background: var(--c-bg-white);
  padding: var(--space-2xl);
  display: flex;
  gap: var(--space-2xl);
  min-height: 25rem;
}

/* ─── Page Title ─── */
.page-title {
  font-size: var(--fs-2xl);
  color: var(--c-text);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--c-primary);
  text-transform: uppercase;
  font-weight: bold;
}

/* ─── Product List (piclist) ─── */
.piclist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.piclist > li {
  list-style: none;
}

.folio-card {
  border: 1px solid var(--c-border);
  text-align: center;
  transition: all var(--t-normal);
  overflow: hidden;
  background: var(--c-bg-white);
}

.folio-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}

.folio-card__thumb {
  position: relative;
  overflow: hidden;
}

.folio-card__thumb-img {
  overflow: hidden;
}

.folio-card__thumb-img img {
  width: 100%;
  display: block;
  transition: transform var(--t-slow) ease;
  aspect-ratio: 1;
  object-fit: cover;
}

.folio-card:hover .folio-card__thumb-img img {
  transform: scale(1.1);
}

.folio-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-image);
  opacity: 0;
  transition: opacity var(--t-normal);
}

.folio-card:hover .folio-card__overlay {
  opacity: 1;
}

.folio-card__title {
  font-size: var(--fs-sm);
  font-weight: bold;
  color: var(--c-text);
  padding: var(--space-md) var(--space-md) var(--space-xs);
  line-height: 1.5;
  min-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.folio-card__title a {
  color: var(--c-text);
}

.folio-card__title a:hover {
  color: var(--c-primary);
}

.folio-card__meta {
  padding: 0 var(--space-md) var(--space-md);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.folio-card__btn {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-text-white);
  padding: 0.3125rem 1rem;
  font-size: var(--fs-xs);
  font-weight: bold;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}

.folio-card__btn:hover {
  background: var(--c-primary-hover);
  color: var(--c-text-white);
}

/* ─── Product Detail ─── */
.product-detail {
  display: flex;
  gap: var(--space-3xl);
}

.product-detail__gallery {
  width: 23.75rem;
  flex-shrink: 0;
}

.product-detail__main-img {
  border: 1px solid var(--c-border);
  margin-bottom: var(--space-md);
}

.product-detail__main-img img {
  width: 100%;
  display: block;
}

.product-detail__thumbs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.product-detail__thumbs img {
  width: 4.375rem;
  height: 4.375rem;
  object-fit: cover;
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: border-color var(--t-fast);
}

.product-detail__thumbs img:hover,
.product-detail__thumbs img.active {
  border-color: var(--c-primary);
}

.product-detail__info {
  flex: 1;
  min-width: 0;
}

.product-detail__info h1 {
  font-size: var(--fs-2xl);
  color: var(--c-text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--c-border-lighter);
}

.product-detail__meta {
  margin-bottom: var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: 2;
}

.product-detail__meta strong {
  color: var(--c-text);
  min-width: 5rem;
  display: inline-block;
}

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: var(--fs-sm);
}

.specs-table th,
.specs-table td {
  border: 1px solid var(--c-border);
  padding: var(--space-sm) 0.75rem;
  text-align: left;
}

.specs-table th {
  background: var(--c-bg-lighter);
  font-weight: bold;
  color: var(--c-text);
  width: 35%;
}

.specs-table td {
  color: var(--c-text-light);
}

/* Inquiry box */
.inquiry-box {
  background: var(--c-bg-light);
  border: 1px solid var(--c-border);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.inquiry-box__title {
  font-size: var(--fs-lg);
  color: var(--c-primary);
  margin-bottom: 0.75rem;
}

.inquiry-box__row {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.inquiry-box__row input,
.inquiry-box__row textarea {
  flex: 1;
  min-width: 9.375rem;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--c-border-light);
  font-size: var(--fs-sm);
  font-family: var(--font-family);
  border-radius: var(--radius-sm);
}

.inquiry-box__row textarea {
  width: 100%;
  min-height: 5rem;
  resize: vertical;
}

.inquiry-box__row input:focus,
.inquiry-box__row textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}

/* Product description */
.product-description {
  margin-top: var(--space-2xl);
  line-height: 1.8;
  font-size: var(--fs-sm);
  color: var(--c-text-light);
}

.product-description h2 {
  font-size: var(--fs-xl);
  color: var(--c-text);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--c-border-lighter);
}

.product-description p {
  margin-bottom: var(--space-md);
}

.product-description ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
  list-style: disc;
}

.product-description ul li {
  margin-bottom: var(--space-xs);
}

/* ─── About Page ─── */
.about-page__content {
  line-height: 2;
  font-size: var(--fs-sm);
  color: var(--c-text-light);
}

.about-page__content h2 {
  font-size: var(--fs-xl);
  color: var(--c-text);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--c-border-lighter);
}

.about-page__content p {
  margin-bottom: 0.75rem;
}

.about-page__content img {
  float: right;
  margin: 0 0 var(--space-lg) var(--space-xl);
  max-width: 21.875rem;
  border: 1px solid var(--c-border);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.value-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border: 1px solid var(--c-border);
  transition: border-color var(--t-normal);
}

.value-card:hover {
  border-color: var(--c-primary);
}

.value-card__icon {
  font-size: var(--fs-7xl);
  margin-bottom: var(--space-sm);
}

.value-card__title {
  font-size: var(--fs-md);
  color: var(--c-primary);
  margin-bottom: var(--space-xs);
}

.value-card__desc {
  font-size: var(--fs-xs);
  color: var(--c-text-subtle);
}

/* ─── Contact Page ─── */
.contact-page {
  display: flex;
  gap: var(--space-3xl);
}

.contact-page__form {
  flex: 1;
}

.contact-page__sidebar {
  width: 17.5rem;
  flex-shrink: 0;
}

.contact-info {
  border: 1px solid var(--c-border);
  margin-bottom: var(--space-lg);
}

.contact-info__title {
  background: var(--c-primary);
  color: var(--c-text-white);
  font-size: var(--fs-lg);
  padding: var(--space-md) var(--space-lg);
}

.contact-info__body {
  padding: var(--space-lg);
  font-size: var(--fs-sm);
  line-height: 2;
  color: var(--c-text-light);
}

.contact-info__body strong {
  color: var(--c-text);
}

/* Success message */
.alert-success {
  background: var(--c-success-bg);
  border: 1px solid var(--c-success-border);
  color: var(--c-success);
  padding: var(--space-xl);
  border-radius: 0.375rem;
  margin-bottom: var(--space-xl);
}

.alert-success h3 {
  margin-bottom: var(--space-sm);
}

/* ─── News Page ─── */
.news-list__item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--c-border-lighter);
  transition: all var(--t-fast);
}

.news-list__item:hover {
  background: var(--c-bg-light);
  padding-left: var(--space-md);
}

.news-date {
  width: 4.375rem;
  flex-shrink: 0;
  text-align: center;
  background: var(--c-primary);
  color: var(--c-text-white);
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  line-height: 1.4;
  align-self: flex-start;
}

.news-date__day {
  font-size: var(--fs-4xl);
  font-weight: bold;
  display: block;
}

.news-info {
  flex: 1;
  min-width: 0;
}

.news-info__title {
  font-size: var(--fs-lg);
  margin-bottom: 0.375rem;
}

.news-info__title a {
  color: var(--c-text);
}

.news-info__title a:hover {
  color: var(--c-primary);
}

.news-info__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-text-lightest);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News detail */
.news-detail__header {
  text-align: center;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--c-border-lighter);
}

.news-detail__header h1 {
  font-size: var(--fs-3xl);
  color: var(--c-text);
  margin-bottom: var(--space-md);
}

.news-detail__meta {
  font-size: var(--fs-xs);
  color: var(--c-text-subtle);
}

.news-detail__body {
  font-size: var(--fs-md);
  line-height: 2;
  color: var(--c-text-light);
}

.news-detail__body p {
  margin-bottom: 0.75rem;
}

.news-detail__body img {
  max-width: 100%;
  margin: var(--space-lg) 0;
}

/* Empty state */
.empty-state {
  padding: 2.5rem;
  text-align: center;
  color: var(--c-text-subtle);
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .product-grid,
  .piclist {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .content-area,
  .page-inner {
    flex-direction: column;
    padding: var(--space-lg);
  }

  .sidebar {
    width: 100%;
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .product-grid,
  .piclist {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

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

  .about-section {
    flex-direction: column;
  }

  .about-section__img {
    width: 100%;
  }

  .product-detail {
    flex-direction: column;
  }

  .product-detail__gallery {
    width: 100%;
  }

  .contact-page {
    flex-direction: column;
  }

  .contact-page__sidebar {
    width: 100%;
  }

  .about-page__content img {
    float: none;
    display: block;
    margin: 0 auto var(--space-lg);
    max-width: 100%;
  }

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

  .news-list__item {
    flex-direction: column;
  }

  .news-date {
    width: auto;
    display: inline-block;
  }

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

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .navbar {
    position: relative;
  }

  .navbar__menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--c-primary);
    flex-direction: column;
    z-index: var(--z-overlay);
  }

  .navbar__menu--open {
    display: flex;
  }

  .navbar__menu > li > a {
    padding: 0.75rem var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar__menu > li > .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
  }

  .navbar__menu > li.mobile-open > .sub-menu {
    display: block;
  }

  .slider__prev,
  .slider__next {
    width: 1.875rem;
    height: 1.875rem;
    font-size: var(--fs-xl);
  }

  .slider__prev { left: var(--space-md); }
  .slider__next { right: var(--space-md); }

  .header__contact {
    float: none;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .piclist {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .product-detail .inquiry-box__row {
    flex-direction: column;
  }

  .back-to-top {
    bottom: var(--space-lg);
    right: var(--space-lg);
  }
}

/* ─── Accessibility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
