:root {
  --bg-dark: #4A7CBF;
  --bg-darker: #366099;
  --bg-medium: #6B9AD6;
  --bg-light: #F0F6FD;
  --bg-card: #ffffff;

  --text-white: #f8fbff;
  --text-gray: #d6e4f5;
  --text-dark: #10243d;
  --text-muted: #5879a3;

  --gold: #d4af37;
  --gold-light: #e6c462;
  --gold-dark: #b39027;
  --accent-wa: #25d366;

  --border-light: rgba(255,255,255,0.2);
  --shadow-sm: 0 2px 8px rgba(74, 124, 191, 0.08);
  --shadow-md: 0 6px 18px rgba(74, 124, 191, 0.12);
  --shadow-lg: 0 12px 30px rgba(74, 124, 191, 0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --container-max: 1320px;
  --section-padding: 100px 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html[dir="rtl"] {
  text-align: right;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  margin: 0;          /* 新增 */
  padding: 0;         /* 新增 */
}

html[lang="ar"] body {
  font-family: "Amiri", "Noto Naskh Arabic", "Tajawal", serif;
}

html[lang="fr"] body {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
}

html[lang="zh"] body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

h1, h2, h3, .brand-name {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: min(92%, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: var(--section-padding);
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.kicker {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.kicker.light {
  color: var(--gold-light);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 18px;
  text-align: center;
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--gold, #d4af37);
  border-radius: 2px;
}

.section-head .lead {
  max-width: 700px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: center;
}

.sub-hero .sub-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
  text-align: center;
}

.sub-hero .sub-hero-content h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold, #d4af37);
  border-radius: 2px;
}

.sub-hero .sub-hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  opacity: 0.9;
  margin-top: 8px;
  text-align: center;
}

.section h3[data-i18n="doors_title"],
.section h3[data-i18n="windows_title"],
.section h3[data-i18n="colors_title"] {
  position: relative;
  padding-bottom: 14px;
  display: inline-block;
  text-align: center;
}

.section h3[data-i18n="doors_title"]::after,
.section h3[data-i18n="windows_title"]::after,
.section h3[data-i18n="colors_title"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gold, #d4af37);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--transition-base);
  white-space: nowrap;
  text-align: center;
  min-height: 48px;
  min-width: 48px;
  box-sizing: border-box;      /* 新增 */
  max-width: 100%;            /* 新增 */
}

.btn.full {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-darker);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--bg-darker);
  transform: translateY(-3px);
}

.btn-outline.light {
  border-color: #fff;
  color: #fff;
}

.btn-outline.light:hover {
  background: #fff;
  color: var(--bg-dark);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-wa {
  background-color: var(--accent-wa);
  color: #fff;
}

.btn-wa:hover {
  background-color: #1fb95a;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn svg.ic {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.product-card .btn {
  padding: 8px 12px;
  font-size: 0.85rem;
  white-space: normal;
  box-sizing: border-box;
  width: 100%;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 0;
  transition: var(--transition-base);
  background: transparent;
  text-align: left;
}

.site-header.scrolled {
  background-color: var(--bg-dark);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
  color: var(--text-white);
}

.brand-sub {
  font-size: clamp(0.55rem, 0.8vw, 0.8rem);
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 32px);
  flex: 1;
}

.nav-links a {
  color: var(--text-white);
  font-weight: 500;
  position: relative;
  padding: 6px 4px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold-light);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-white);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  flex-shrink: 0;
  min-height: 36px;
}

.lang-switch:hover {
  border-color: var(--gold);
}

.lang-switch svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  padding: 6px;
  min-height: 36px;
  min-width: 36px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== 移动菜单 - 不霸屏 + 锁定滚动 ===== */
html.menu-open,
body.menu-open {
  overflow: hidden !important;
}

.nav-links.mobile-menu {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(26, 58, 92, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 80px 20px 32px !important;  /* ← 增加顶部内边距，避开导航栏 */
  z-index: 9998 !important;
  font-size: 1rem !important;
  gap: 8px !important;
  border-radius: 0 !important;  /* ← 取消圆角，贴顶 */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
  max-height: 100vh !important;  /* ← 撑满全屏 */
  overflow-y: auto !important;
  border: none !important;
  border-top: none !important;
  animation: slideDown 0.25s ease !important;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links.mobile-menu a {
  font-size: 1.1rem !important;
  padding: 14px 24px !important;
  border-radius: 10px !important;
  width: 100% !important;
  max-width: 320px !important;
  text-align: center !important;
  color: #fff !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

.nav-links.mobile-menu a:hover,
.nav-links.mobile-menu a:active {
  background: rgba(212, 175, 55, 0.18) !important;
  color: var(--gold-light) !important;
}

.nav-links.mobile-menu a.active {
  color: var(--gold-light) !important;
  background: rgba(212, 175, 55, 0.12) !important;
}

.nav-links.mobile-menu a::after {
  display: none !important;
}

/* ===== HERO ===== */
.hero,
.sub-hero {
  position: relative;
}

.hero::before,
.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(260px, 35%);
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.hero-content,
.sub-hero-content {
  z-index: 2;
  position: relative;
}

.hero {
  height: 100vh;
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 30s infinite alternate ease-in-out;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 58, 92, 0.70), rgba(26, 58, 92, 0.45));
}

html[dir="rtl"] .hero-overlay {
  background: linear-gradient(to left, rgba(26, 58, 92, 0.70), rgba(26, 58, 92, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
  max-width: 780px;
  padding: 40px 48px;
  border-radius: 12px;
  text-align: center;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.hero-content h1,
.hero-content .hero-text,
.hero-content .eyebrow {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.50);
}

.sub-hero .sub-hero-content {
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.18), rgba(255, 248, 235, 0.08));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-logo,
.sub-hero-logo {
  width: 80px;
  height: 80px;
  margin-inline: auto;
  margin-bottom: 16px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
  display: block;
}

.eyebrow {
  color: var(--gold);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.hero-text {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 32px;
  line-height: 1.8;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 2rem;
  animation: bounce 2s infinite;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

html[dir="rtl"] .scroll-cue {
  right: 50%;
  transform: translateX(50%);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ===== FEATURES ===== */
.features {
  background-color: var(--bg-dark);
  padding: 60px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature {
  text-align: center;
  color: var(--text-white);
}

.feature-ic {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold);
  margin-bottom: 16px;
}

.feature-ic i {
  font-size: 1.6rem;
  color: var(--gold);
}

.feature h3 {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  margin-bottom: 10px;
  text-align: center;
}

.feature p {
  color: var(--text-gray);
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  text-align: center;
}

/* ===== PRODUCTS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  text-align: center;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card.featured {
  grid-column: span 2;
}

.product-media {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.product-body {
  padding: 20px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--bg-darker);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.product-body h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  margin-bottom: 6px;
  text-align: center;
}

.spec {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-align: center;
}

.desc {
  color: var(--text-dark);
  margin-bottom: 14px;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  text-align: center;
}

/* ===== GALLERY ===== */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.g-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  position: relative;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.g-item:hover img {
  transform: scale(1.06);
}

.g-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  pointer-events: none;
}

.g-item__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}

.g-item__desc {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SWATCH ===== */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.swatch-color {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.swatch-item:hover .swatch-color {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.swatch-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-align: center;
}

.note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ============================================================
   CONTACT PAGE — 全部居中 + 图标完美对齐
   ============================================================ */

.contact-page {
  background: var(--bg-light, #f0f6fd);
  padding: 60px 0 80px;
}

.contact-page .container {
  max-width: 1200px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* 左侧联系信息 — 全部居中 */
.contact-info {
  padding-top: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info .kicker {
  color: var(--gold, #d4af37);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: var(--text-dark, #10243d);
  margin-bottom: 14px;
  line-height: 1.2;
  text-align: center;
}

.contact-info .lead-text {
  color: var(--text-muted, #5879a3);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 联系方式列表 — 图标文字完美对齐 */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  align-items: flex-start;
  width: 100%;
}

.contact-methods .method-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-dark, #10243d);
  transition: color 0.2s;
  min-height: 50px;
  width: 100%;
  max-width: 340px;
  padding: 4px 0;
}

.contact-methods .method-item:hover {
  color: var(--gold, #d4af37);
}

/* 图标圆圈 — 固定大小 + flex 居中 */
.contact-methods .method-item .icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold, #d4af37);
  font-size: 1.2rem;
  transition: background 0.3s, color 0.3s;
  line-height: 1;
}

/* 图标内部的 i 标签完美居中 */
.contact-methods .method-item .icon-circle i {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
}

.contact-methods .method-item:hover .icon-circle {
  background: var(--gold, #d4af37);
  color: #fff;
}

/* 文字部分 — 垂直居中 */
.contact-methods .method-item a,
.contact-methods .method-item span {
  color: inherit;
  text-decoration: none;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  font-size: 0.95rem;
}

.contact-methods .method-item a:hover {
  color: var(--gold, #d4af37);
}

/* 按钮组 */
.contact-info-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.contact-info-actions .btn {
  padding: 12px 22px;
  font-size: 0.9rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  justify-content: center;
}

.contact-info-actions .btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
}

.contact-info-actions .btn-wa:hover {
  background: #1fb95a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.contact-info-actions .btn-outline-gold {
  background: transparent;
  color: var(--gold, #d4af37);
  border: 2px solid var(--gold, #d4af37);
}

.contact-info-actions .btn-outline-gold:hover {
  background: var(--gold, #d4af37);
  color: #fff;
  transform: translateY(-2px);
}

/* 右侧表单 */
.form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 32px 40px;
  box-shadow: 0 12px 40px rgba(26, 58, 92, 0.10);
  transition: box-shadow 0.3s;
}

.form-card:hover {
  box-shadow: 0 18px 50px rgba(26, 58, 92, 0.14);
}

.form-card .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark, #10243d);
  margin-bottom: 4px;
}

.form-card .card-sub {
  color: var(--text-muted, #5879a3);
  font-size: 0.9rem;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gold, #d4af37);
  padding-bottom: 14px;
  width: 50px;
}

.form-card .form-group {
  margin-bottom: 16px;
}

.form-card label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-dark, #10243d);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.form-card label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e8edf3;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fafcfe;
  color: var(--text-dark, #10243d);
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
  min-height: 44px;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--gold, #d4af37);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.10);
  background: #fff;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #b0b8c5;
}

.form-card textarea {
  min-height: 100px;
  resize: vertical;
}

.form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-card .btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold, #d4af37), var(--gold-light, #e6c462));
  color: var(--bg-darker, #1a3a5c);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
  letter-spacing: 0.5px;
  min-height: 48px;
}

.form-card .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}

.form-card .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-feedback.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-feedback.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--bg-darker);
  color: var(--text-gray);
  padding: 50px 0 20px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold, #d4af37);
  border-radius: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand .brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-brand .brand-text {
  text-align: left;
}

html[dir="rtl"] .footer-brand .brand-text {
  text-align: right;
}

.footer-brand .brand-name {
  font-size: 1.3rem;
}

.footer-about {
  margin-top: 8px;
  max-width: 340px;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  line-height: 1.7;
  text-align: center;
  margin-inline: auto;
}

.footer-tagline {
  font-size: clamp(0.9rem, 1vw, 1rem);
  color: var(--gold-light, #e6c462);
  font-weight: 400;
  font-style: italic;
  margin-top: 2px;
  letter-spacing: 0.5px;
  text-align: center;
}

.footer-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: center;
}

.footer-services .service-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.75rem, 0.85vw, 0.85rem);
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.footer-services .service-tag:hover {
  color: var(--gold, #d4af37);
}

.footer-services .service-tag i {
  color: var(--gold, #d4af37);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-links a {
  transition: var(--transition-fast);
  font-size: clamp(0.9rem, 1vw, 1rem);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-cta .btn {
  padding: 12px 28px;
  font-size: 0.9rem;
  min-height: 44px;
}

.footer-contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: clamp(0.8rem, 0.85vw, 0.9rem);
  justify-content: center;
}

.footer-contact-quick a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-gray);
  transition: color 0.3s ease;
  padding: 4px 8px;
  min-height: 36px;
}

.footer-contact-quick a:hover {
  color: var(--gold, #d4af37);
}

.footer-contact-quick i {
  color: var(--gold, #d4af37);
  width: 16px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  text-align: center;
  font-size: clamp(0.75rem, 0.8vw, 0.85rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-bottom .sep {
  color: var(--gold);
  opacity: 0.3;
}

/* ===== LANG MODAL ===== */
.lang-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lang-modal[aria-hidden="true"] {
  display: none;
}

.lang-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  overflow: visible;
}

.lang-logo {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  margin-bottom: 20px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lang-title {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-bottom: 24px;
  line-height: 1.4;
  text-align: center;
}

.lang-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-opt {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
  min-height: 48px;
}

.lang-opt:hover {
  border-color: var(--gold);
  background: #fdf8e8;
}

.lang-flag {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 30px;
}

.lightbox[aria-hidden="true"] {
  display: none;
}

.lb-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  z-index: 10;
  min-height: 44px;
  min-width: 44px;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.6rem;
  padding: 8px 16px;
  opacity: 0.7;
  transition: var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
}

.lb-nav:hover {
  opacity: 1;
}

.lb-prev {
  inset-inline-start: 16px;
}

.lb-next {
  inset-inline-end: 16px;
}

.lb-img {
  max-width: 90%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
}

/* ===== SUB-HERO ===== */
.sub-hero {
  height: 100vh;
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sub-hero .sub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 58, 92, 0.70), rgba(26, 58, 92, 0.40));
}

html[dir="rtl"] .sub-hero .sub-hero-overlay {
  background: linear-gradient(to left, rgba(26, 58, 92, 0.70), rgba(26, 58, 92, 0.40));
}

.sub-hero .sub-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 800px;
  padding: 44px 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.18), rgba(255, 248, 235, 0.08));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.subpage .site-header.scrolled {
  background: rgba(26, 58, 92, 0.50) !important;
  backdrop-filter: blur(4px);
  box-shadow: none;
}

/* ===== RTL ===== */
html[dir="rtl"] .contact-info .lead-text {
  text-align: center;
}

html[dir="rtl"] .contact-methods .method-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-info-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-methods .method-item a {
  display: inline-flex;
}

html[dir="rtl"] .form-card .card-sub {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .form-card label .required {
  margin-left: 0;
  margin-right: 2px;
}

html[dir="rtl"] .form-card .form-row {
  direction: ltr;
}

html[dir="rtl"] .form-card .form-row .form-group {
  direction: rtl;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 1400px) {
  .container {
    width: min(90%, 1440px);
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-card.featured {
    grid-column: span 2;
  }
  .masonry {
    grid-template-columns: repeat(4, 1fr);
  }
  .swatch-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature-grid {
    gap: 40px;
  }
}

@media (max-width: 1400px) and (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-card.featured {
    grid-column: span 1;
  }
  .masonry {
    grid-template-columns: repeat(3, 1fr);
  }
  .swatch-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card.featured {
    grid-column: span 1;
  }
  .masonry {
    grid-template-columns: repeat(3, 1fr);
  }
  .swatch-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .feature-grid .feature:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin-inline: auto;
  }
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .nav-links.mobile-menu {
    top: 60px;
    padding: 16px 16px 22px;
  }
  .nav-links.mobile-menu a {
    font-size: 0.95rem;
    padding: 8px 20px;
    min-height: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-brand .brand {
    justify-content: center;
  }
  .footer-about {
    margin-inline: auto;
  }
  .footer-links {
    align-items: center;
  }
  .footer-services {
    justify-content: center;
  }
  .footer-contact-quick {
    justify-content: center;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry .g-item {
    height: 200px;
  }
  .swatch-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-content {
    padding: 28px 24px;
    max-width: 92%;
  }
  .sub-hero .sub-hero-content {
    padding: 28px 24px;
    max-width: 92%;
  }
}

@media (max-width: 768px) {
	  /* 修复 HERO 按钮溢出 */
	  .hero-actions .btn {
	    width: 100%;
	    max-width: 100%;
	    box-sizing: border-box;
	    white-space: normal;
	    word-break: break-word;
	    padding: 12px 16px;
	    font-size: 0.9rem;
	    min-height: 44px;
	    justify-content: center;
	  }
  :root {
    --section-padding: 50px 0;
  }
  .section {
    padding: var(--section-padding);
  }
  .section-head {
    margin-bottom: 32px;
  }
  .section-head h2 {
    font-size: 1.6rem;
  }
  .section-head .lead {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 520px;
    height: 100dvh;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-content {
    padding: 20px 16px;
    max-width: 96%;
  }
  .sub-hero .sub-hero-content {
    padding: 100px 24px 40px;   /* 顶部增加到100px，避开导航栏 */
    max-width: 92%;
  }
  .sub-hero .sub-hero-content h1 {
    font-size: 2rem;
  }
  .sub-hero .sub-hero-content p {
    font-size: 0.9rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-grid .feature:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card.featured {
    grid-column: span 1;
  }
  .product-media {
    height: 180px;
  }
  .product-body {
    padding: 16px;
  }

  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry .g-item {
    height: 170px;
  }

  .swatch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .swatch-name {
    font-size: 0.65rem;
  }

  .contact-page {
    padding: 40px 0 50px;
  }
  .form-card {
    padding: 24px 18px 28px;
    border-radius: 14px;
  }
  .form-card .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-sub {
    font-size: 0.5rem;
  }

  .hero-logo,
  .sub-hero-logo {
    width: 60px;
    height: 60px;
  }

  .nav-links.mobile-menu {
    top: 54px;
    padding: 14px 14px 18px;
    border-radius: 0 0 14px 14px;
  }
  .nav-links.mobile-menu a {
    font-size: 0.9rem;
    padding: 8px 16px;
    min-height: 38px;
  }

  .footer-bottom {
    font-size: 0.7rem;
    padding-top: 14px;
  }
  .footer-links a {
    font-size: 0.9rem;
    padding: 8px 14px;
    min-height: 40px;
  }
  .footer-contact-quick a {
    font-size: 0.8rem;
    padding: 6px 8px;
    min-height: 36px;
  }

  .sub-hero {
    min-height: calc(100dvh + 60px);
    height: calc(100dvh + 60px);
    background-size: cover !important;
    background-position: center center !important;
  }

  .lang-box {
    padding: 28px 18px;
    max-width: 340px;
  }
  .lang-logo {
    width: 80px;
    height: 80px;
    padding: 8px;
  }
  .lang-title {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  .lang-opt {
    padding: 12px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .lb-close {
    font-size: 1.8rem;
    top: 12px;
    inset-inline-end: 14px;
  }
  .lb-nav {
    font-size: 1.8rem;
    padding: 6px 10px;
  }
  .lb-prev {
    inset-inline-start: 4px;
  }
  .lb-next {
    inset-inline-end: 4px;
  }
  .lb-img {
    max-width: 98%;
    max-height: 68vh;
  }

  .section h3[data-i18n="doors_title"],
  .section h3[data-i18n="windows_title"],
  .section h3[data-i18n="colors_title"] {
    font-size: 1rem;
  }
  .section h3[data-i18n="doors_title"]::after,
  .section h3[data-i18n="windows_title"]::after,
  .section h3[data-i18n="colors_title"]::after {
    width: 30px;
  }

  .contact-info-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-methods .method-item {
    max-width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .contact-methods .method-item .icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 1rem;
  }

  .contact-methods .method-item .icon-circle i {
    font-size: 1rem;
  }

  .contact-methods .method-item a,
  .contact-methods .method-item span {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 94%;
  }

  .hero {
    min-height: 440px;
  }
  .hero h1 {
    font-size: 1.4rem;
  }
  .hero-text {
    font-size: 0.8rem;
  }
  .hero-content {
    padding: 16px 12px;
  }

  .sub-hero .sub-hero-content h1 {
    font-size: 1.6rem;
  }
  .sub-hero .sub-hero-content p {
    font-size: 0.8rem;
  }

  .masonry {
    grid-template-columns: 1fr;
  }
  .masonry .g-item {
    height: 200px;
  }

  .swatch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-media {
    height: 160px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 0.85rem;
  }
  .brand-sub {
    font-size: 0.45rem;
  }

  .nav-links.mobile-menu {
    top: 48px;
    padding: 12px 12px 16px;
  }
  .nav-links.mobile-menu a {
    font-size: 0.85rem;
    padding: 6px 14px;
    min-height: 36px;
  }

  .footer-links a {
    font-size: 0.85rem;
    padding: 6px 12px;
    min-height: 36px;
  }
  .footer-contact-quick a {
    font-size: 0.75rem;
    padding: 4px 6px;
    min-height: 32px;
  }

  .sub-hero {
    min-height: 360px;
    height: 50vh;
  }

  .form-card {
    padding: 18px 14px 22px;
  }
  .form-card .card-title {
    font-size: 1rem;
  }
  .form-card input,
  .form-card textarea,
  .form-card select {
    font-size: 0.85rem;
    padding: 9px 12px;
    min-height: 38px;
  }
  .form-card .btn-submit {
    font-size: 0.85rem;
    padding: 12px;
    min-height: 42px;
  }

  .contact-methods .method-item {
    min-height: 42px;
    gap: 12px;
  }

  .contact-methods .method-item .icon-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.9rem;
  }

  .contact-methods .method-item .icon-circle i {
    font-size: 0.9rem;
  }

  .contact-methods .method-item a,
  .contact-methods .method-item span {
    font-size: 0.85rem;
  }

  .lang-box {
    padding: 20px 14px;
    max-width: 300px;
  }
  .lang-logo {
    width: 64px;
    height: 64px;
    padding: 6px;
  }
  .lang-opt {
    font-size: 0.85rem;
    padding: 10px;
    min-height: 40px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 380px;
    height: 100vh;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero-text {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
  .hero-actions {
    flex-direction: row;
  }
  .hero-actions .btn {
    width: auto;
    padding: 8px 18px;
  }
  .scroll-cue {
    bottom: 12px;
  }
  .sub-hero {
    min-height: 380px;
    height: 80vh;
  }
  .sub-hero .sub-hero-content h1 {
    font-size: 1.8rem;
  }
  .nav-links.mobile-menu {
    top: 50px;
    max-height: 60vh;
    padding: 12px 12px 16px;
  }
  .nav-links.mobile-menu a {
    font-size: 0.85rem;
    padding: 6px 14px;
    min-height: 34px;
  }
  .hero-content {
    padding: 16px 20px;
  }
}