/* ============================================
   RX Custom Patch - Global Stylesheet
   Design: Clean B2B Factory Style
   Domain: rxcustompatch.com
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- VARIABLES ---- */
:root {
  --primary: #2a7c6f;        /* 青绿主色 */
  --primary-dark: #1f5c52;   /* 深青绿 */
  --primary-light: #e8f5f3;  /* 浅青绿背景 */
  --accent: #c8a96e;         /* 金色点缀 */
  --dark: #1a1a1a;
  --mid: #444444;
  --gray: #777777;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --white: #ffffff;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --container: 1180px;
  --transition: 0.25s ease;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { color: var(--mid); line-height: 1.8; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--primary-light);
}

/* ---- SECTION LABEL ---- */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--gray);
  font-size: 0.97rem;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.logo span { color: var(--primary); }
nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav ul li a {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color var(--transition);
}
nav ul li a:hover { color: var(--primary); }
.nav-cta {
  padding: 9px 22px !important;
  font-size: 0.8rem !important;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--dark);
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  overflow: hidden;
}
.hero-left {
  background: var(--light-gray);
  display: flex;
  align-items: center;
  padding: 80px 64px;
}
.hero-content { max-width: 520px; }
.hero-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero-content h1 {
  margin-bottom: 20px;
  color: var(--dark);
}
.hero-content h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-content p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
}
.hero-badge-num {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.hero-badge-text {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--primary);
  color: #fff;
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust-item .t-icon {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}
.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.3);
}

/* ============ PRODUCTS GRID ============ */
.products-section {
  padding: 96px 0;
  background: #fff;
}
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.product-card {
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.product-card:hover .product-card-img img {
  transform: scale(1.04);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-gray);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card-body {
  padding: 24px;
  border-top: 1px solid var(--border);
}
.product-card-body .badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.product-card-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.product-card-body p {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-card-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
  transition: var(--transition);
}
.product-card-link:hover { color: var(--primary-dark); }

/* ============ FACTORY SECTION ============ */
.factory-section {
  padding: 96px 0;
  background: var(--light-gray);
}
.factory-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.factory-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
}
.factory-img { overflow: hidden; background: var(--border); }
.factory-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s ease; }
.factory-img:hover img { transform: scale(1.04); }
.factory-img.tall { grid-row: span 2; }
.factory-content .section-label { margin-bottom: 14px; }
.factory-content h2 { margin-bottom: 20px; }
.factory-content > p { margin-bottom: 14px; font-size: 0.95rem; }
.factory-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 36px 0;
  border: 1px solid var(--border);
}
.fstat {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fstat:nth-child(2n) { border-right: none; }
.fstat:nth-child(3), .fstat:nth-child(4) { border-bottom: none; }
.fstat-num {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.fstat-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.factory-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ PROCESS SECTION ============ */
.process-section {
  padding: 96px 0;
  background: #fff;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
}
.process-step {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-right: none; }
.step-num {
  font-family: 'Georgia', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.process-step h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.process-step p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
  padding: 96px 0;
  background: var(--primary);
}
.testimonials-section .section-label { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.4); }
.testimonials-section .section-title { color: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  margin-top: 48px;
}
.tcard {
  background: var(--primary);
  padding: 36px 32px;
}
.tcard-text {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.tcard-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tcard-origin { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.tcard-stars {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* ============ QUOTE BANNER ============ */
.quote-banner {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
}
.quote-banner h2 { color: #fff; margin-bottom: 14px; }
.quote-banner p { color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============ FOOTER ============ */
footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; font-size: 1.2rem; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.5); }
.footer-col h4 {
  font-family: 'Georgia', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-contact-item {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-contact-item a { color: rgba(255,255,255,0.5); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
  letter-spacing: 0;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ PRODUCTS PAGE ============ */
.page-hero {
  background: var(--light-gray);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { font-size: 0.97rem; color: var(--gray); max-width: 580px; }

.products-full-section { padding: 80px 0; }
.product-category { margin-bottom: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--border); }
.product-category:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary);
}
.category-header h2 { font-size: 1.5rem; margin: 0; }
.cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 2px;
}
.cat-badge.gold { background: #fef9ec; color: #b07d2a; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: start;
}
.product-detail-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-gray);
  border: 1px solid var(--border);
}
.product-detail-img img { width:100%; height:100%; object-fit:cover; }
.product-detail-content h3 { font-size: 1.3rem; margin-bottom: 14px; }
.product-detail-content p { font-size: 0.92rem; margin-bottom: 14px; }
.spec-list { margin: 20px 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.spec-list li:first-child { border-top: 1px solid var(--border); }
.spec-list .spec-key { font-weight: 700; color: var(--dark); }
.spec-list .spec-val { color: var(--gray); text-align: right; max-width: 260px; }

.options-full-section { padding: 80px 0; background: var(--light-gray); }
.options-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.opt-group h3 {
  font-size: 1rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 20px;
}
.opt-items { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 7px 14px;
  font-size: 0.82rem;
  color: var(--mid);
  border-radius: var(--radius);
}

/* ============ HOW IT WORKS PAGE ============ */
.hiw-steps-section { padding: 80px 0; }
.hiw-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.hiw-step:first-child { padding-top: 0; }
.hiw-step:last-child { border-bottom: none; }
.hiw-step-num {
  font-family: 'Georgia', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  padding-top: 4px;
}
.hiw-step-content h3 { font-size: 1.1rem; margin-bottom: 10px; }
.hiw-step-content p { font-size: 0.9rem; color: var(--gray); }
.step-tip {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  font-size: 0.83rem;
  color: var(--primary-dark);
}

.hiw-faq { padding: 80px 0; background: var(--light-gray); }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.faq-a { font-size: 0.88rem; color: var(--gray); line-height: 1.8; }

/* ============ QUOTE PAGE ============ */
.quote-section { padding: 80px 0; }
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}
.quote-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  padding: 48px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.form-submit:hover { background: var(--primary-dark); }
.quote-sidebar h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--primary); }
.sidebar-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--mid);
  align-items: flex-start;
}
.sidebar-list li .s-check {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.sidebar-list li .s-check::after {
  content: '';
  width: 6px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* ============ ABOUT PAGE ============ */
.about-stats-bar {
  background: var(--primary);
  padding: 40px 0;
}
.about-stats-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.2);
}
.a-stat {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.a-stat:last-child { border-right: none; }
.a-stat-num {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.a-stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 360px; }
  .hero-left { padding: 60px 32px; }
  .factory-inner { grid-template-columns: 1fr; gap: 48px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-img { max-width: 480px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .about-stats-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .options-full-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .hamburger { display: block; }
  .hero-left { padding: 48px 20px; }
  .factory-imgs { grid-template-rows: 180px 180px; }
  .about-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-bar-inner { gap: 20px; }
  .trust-divider { display: none; }
  .hiw-step { grid-template-columns: 48px 1fr; gap: 20px; }
  .hiw-step-num { font-size: 2rem; }
  .quote-form-wrap { padding: 28px 20px; }
  .form-2col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .factory-btns { flex-direction: column; }
}
