/* ========================================
   昌邑市新开元印染有限公司 - 企业官网
   暖色调 · 高级感 · 响应式
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
  --primary: #4A2C2A;
  --primary-dark: #2C1810;
  --secondary: #C77D38;
  --secondary-dark: #A8652D;
  --accent: #D35400;
  --accent-dark: #B84500;
  --gold: #C4923A;
  --bg-warm: #FAF7F2;
  --bg-cream: #FBF6EF;
  --white: #FFFDF8;
  --border: #E8D5C4;
  --border-light: #EDE0D0;
  --text-muted: #8B7355;
  --text-main: #2C1810;
  --shadow: 0 4px 16px rgba(74,44,42,0.08);
  --shadow-lg: 0 12px 36px rgba(74,44,42,0.10);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --nav-height: 80px;
  --nav-height-mobile: 60px;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Serif SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Noto Serif SC', -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a { color: var(--secondary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--secondary-dark); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
}
.btn-primary:hover { background: var(--secondary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,253,248,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav-links { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--secondary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--secondary); }
.nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { color: var(--primary); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  margin-top: var(--nav-height);
  min-height: 520px;
  background: linear-gradient(160deg, #4A2C2A 0%, #3D1F1F 40%, #2C1810 100%);
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(199,125,56,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 40%, rgba(212,84,0,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero .hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.hero-tags {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

/* --- Page Header --- */
.page-header {
  margin-top: var(--nav-height);
  background: linear-gradient(160deg, #4A2C2A 0%, #2C1810 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-header h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.page-header .breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.9); }

/* --- Sections --- */
.section { padding: 72px 0; }
.section-title {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 52px;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-bg { background: var(--bg-cream); }

/* --- Decorative Divider --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  margin: 0 auto 16px;
  border-radius: 2px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.card-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-warm));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--primary); }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* --- Fabric Swatch Showcase --- */
.fabric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fabric-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fabric-swatch:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.fabric-swatch .swatch-color {
  position: absolute;
  inset: 0;
}
.fabric-swatch .swatch-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Fabric texture overlay for all swatches */
.fabric-swatch .swatch-color::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 6px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 6px);
  pointer-events: none;
}

/* Individual swatch base colors - vibrant polyester/cationic shades */
.swatch-crimson  { background: linear-gradient(135deg, #C62828 0%, #D32F2F 30%, #E53935 60%, #C62828 100%); }
.swatch-royal    { background: linear-gradient(135deg, #4527A0 0%, #5E35B1 30%, #7E57C2 60%, #4527A0 100%); }
.swatch-emerald  { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 30%, #43A047 60%, #1B5E20 100%); }
.swatch-golden   { background: linear-gradient(135deg, #E6A817 0%, #F0C040 30%, #FFD54F 60%, #E6A817 100%); }
.swatch-coral    { background: linear-gradient(135deg, #D84315 0%, #E64A19 30%, #FF6E40 60%, #D84315 100%); }
.swatch-turquoise{ background: linear-gradient(135deg, #00695C 0%, #00897B 30%, #26A69A 60%, #00695C 100%); }
.swatch-magenta  { background: linear-gradient(135deg, #880E4F 0%, #AD1457 30%, #D81B60 60%, #880E4F 100%); }
.swatch-amber    { background: linear-gradient(135deg, #E65100 0%, #F57C00 30%, #FFB300 60%, #E65100 100%); }
.swatch-indigo   { background: linear-gradient(135deg, #1A237E 0%, #283593 30%, #5C6BC0 60%, #1A237E 100%); }
.swatch-ruby     { background: linear-gradient(135deg, #B71C1C 0%, #D50000 30%, #FF1744 60%, #B71C1C 100%); }
.swatch-teal     { background: linear-gradient(135deg, #004D40 0%, #00796B 30%, #4DB6AC 60%, #004D40 100%); }
.swatch-violet   { background: linear-gradient(135deg, #4A148C 0%, #6A1B9A 30%, #AB47BC 60%, #4A148C 100%); }

/* --- Color Category Cards --- */
.color-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.color-category {
  text-align: center;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.color-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.color-dot-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.color-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.color-category h4 { font-size: 0.9rem; margin-bottom: 4px; }
.color-category p { font-size: 0.8rem; color: var(--text-muted); }

/* --- Photo Grid --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo-grid .photo-item {
  aspect-ratio: 4 / 3;
  background: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.photo-item:hover img { transform: scale(1.05); }
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: linear-gradient(135deg, #EDE0D0 0%, #E8D5C4 100%);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(160deg, #4A2C2A 0%, #3D1F1F 50%, #2C1810 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(199,125,56,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; }
.cta-banner .phone-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-top: 18px;
  font-family: 'Montserrat', sans-serif;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-intro .about-text h2 { margin-bottom: 18px; }
.about-intro .about-text p { margin-bottom: 14px; color: var(--text-muted); line-height: 1.85; font-size: 1.02rem; }
.about-intro .about-image {
  aspect-ratio: 4/3;
  background: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat-item { padding: 28px; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 8px; display: block; }

.equipment-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.equipment-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: box-shadow 0.3s;
}
.equipment-item:hover { box-shadow: var(--shadow); }
.equipment-item .eq-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-warm));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.equipment-item h4 { font-size: 1rem; margin-bottom: 4px; }
.equipment-item p { font-size: 0.85rem; color: var(--text-muted); }

/* --- Services Page --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 72px;
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail .service-image {
  aspect-ratio: 4/3;
  background: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-detail .service-content h2 { margin-bottom: 16px; }
.service-detail .service-content p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.85; font-size: 1.02rem; }

.process-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  text-align: center;
}
.process-step {
  position: relative;
  padding: 28px 14px;
}
.process-step::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 1.5rem;
  font-weight: 700;
}
.process-step:last-child::after { display: none; }
.process-step .step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: 'Montserrat', sans-serif;
}
.process-step h4 { font-size: 0.95rem; margin-bottom: 6px; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }

.param-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
}
.param-table th, .param-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.param-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.param-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.param-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.param-table td { font-size: 0.95rem; }
.param-table tr:hover td { background: rgba(199,125,56,0.04); }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}
.contact-detail .contact-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-warm));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.contact-detail h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-detail p { color: var(--text-muted); font-size: 0.95rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 2px 12px rgba(74,44,42,0.04);
}
.contact-form h3 { margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.9rem;
  color: var(--text-main);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--bg-warm);
}
.form-group textarea { height: 150px; padding: 14px 16px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(199,125,56,0.12);
}
.form-group .required { color: var(--accent); }
.form-submit { text-align: right; }

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  display: none;
  font-size: 0.9rem;
}
.form-feedback.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
.form-feedback.error {
  display: block;
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

/* --- Footer --- */
.footer {
  background: linear-gradient(180deg, #3D1F1F 0%, #2C1810 100%);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer p { font-size: 0.9rem; line-height: 1.9; }
.footer a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question:hover { background: var(--bg-warm); }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--secondary);
  transition: transform 0.3s;
  font-family: 'Montserrat', sans-serif;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s;
  background: var(--bg-warm);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.faq-item.open .faq-answer { padding: 18px 24px; max-height: 500px; }

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-size: 1.3rem; font-weight: 600; color: var(--primary); }

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(199,125,56,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(199,125,56,0.4); }

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary), var(--accent), var(--secondary));
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -19px; top: 6px;
  width: 16px; height: 16px;
  background: var(--white);
  border: 3px solid var(--secondary);
  border-radius: 50%;
  z-index: 1;
}
.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  display: block;
  margin-bottom: 4px;
}
.timeline-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--primary);
}
.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Application Areas --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.app-card .app-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.app-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.app-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- QC Section --- */
.qc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.qc-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s;
}
.qc-item:hover { box-shadow: var(--shadow); }
.qc-item .qc-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
}
.qc-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.qc-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* --- Knowledge / Article --- */
.knowledge-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s;
}
.knowledge-card:hover { box-shadow: var(--shadow); }
.knowledge-card h3 {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.knowledge-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 10px;
}
.knowledge-card .highlight-box {
  background: var(--bg-warm);
  border-left: 4px solid var(--secondary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}
.knowledge-card .highlight-box p {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.compare-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.compare-table td { color: var(--text-muted); }
.compare-table .check { color: var(--secondary); font-weight: 700; }

/* --- Two-Color Effect Showcase --- */
.dual-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dual-color-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.dual-color-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.dual-color-bar {
  display: flex;
  height: 120px;
}
.dual-color-bar .dc-half {
  flex: 1;
  position: relative;
}
.dual-color-bar .dc-half::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
}
.dual-color-info {
  padding: 16px;
  text-align: center;
}
.dual-color-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.dual-color-info p { font-size: 0.8rem; color: var(--text-muted); }

/* --- Category Tabs --- */
.category-tabs {
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background: rgba(255,253,248,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}
.category-tabs .container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-tab {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}
.cat-tab:hover,
.cat-tab.active {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(199,125,56,0.25);
}

/* Offset for sticky nav + tabs when anchor scrolling */
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 70px);
}

/* --- Product Catalog --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.product-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--border-light);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.08);
}
.product-info {
  padding: 20px;
}
.product-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--primary);
}
.product-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 6px;
}
.product-spec {
  font-size: 0.8rem !important;
  color: var(--secondary) !important;
  font-weight: 600;
  margin-bottom: 2px;
}
.product-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.product-features span {
  display: inline-block;
  padding: 2px 9px;
  background: var(--bg-warm);
  color: var(--secondary-dark);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.product-tag {
  display: inline-block;
  padding: 3px 12px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.product-inquiry {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary) !important;
  white-space: nowrap;
  transition: all 0.3s;
}
.product-inquiry:hover {
  color: var(--accent) !important;
  transform: translateX(3px);
}
.product-inquiry::after {
  content: '';
  display: inline-block;
  width: 0;
  transition: width 0.3s;
}

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

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* --- Color Picker Tool --- */
.picker-layout { padding-top: 32px; padding-bottom: 64px; }
.picker-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}
.picker-intro h2 { margin-bottom: 8px; }
.picker-intro p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.picker-intro .picker-hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
}

.picker-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* Tabs */
.picker-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.picker-tab {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.picker-tab:hover { border-color: var(--secondary); color: var(--secondary); }
.picker-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Swatch Grid */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.swatch-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
  font-family: inherit;
  overflow: hidden;
}
.swatch-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px);
  pointer-events: none;
}
.swatch-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-color: var(--secondary);
}
.swatch-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(211,84,0,0.2);
  transform: scale(1.05);
}
.swatch-item.selected::before {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  width: 26px; height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}
.swatch-item.hidden { display: none; }
.swatch-name {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  white-space: nowrap;
}
/* Auto dark text on light colors */
.swatch-item[data-color="桃红"] .swatch-name,
.swatch-item[data-color="薰衣草紫"] .swatch-name,
.swatch-item[data-color="浅紫"] .swatch-name,
.swatch-item[data-color="天蓝"] .swatch-name,
.swatch-item[data-color="湖蓝"] .swatch-name,
.swatch-item[data-color="孔雀蓝"] .swatch-name,
.swatch-item[data-color="翠绿"] .swatch-name,
.swatch-item[data-color="草绿"] .swatch-name,
.swatch-item[data-color="薄荷绿"] .swatch-name,
.swatch-item[data-color="明黄"] .swatch-name,
.swatch-item[data-color="金黄"] .swatch-name,
.swatch-item[data-color="驼色"] .swatch-name,
.swatch-item[data-color="卡其"] .swatch-name,
.swatch-item[data-color="米色"] .swatch-name,
.swatch-item[data-color="浅灰"] .swatch-name,
.swatch-item[data-color="本白"] .swatch-name {
  color: #333;
  text-shadow: none;
}

/* Sidebar */
.picker-sidebar {
  position: relative;
}
.sidebar-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-sticky h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}
.sidebar-hint { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.empty-state p { font-size: 0.85rem; line-height: 1.7; }

.selected-list { margin-bottom: 18px; }
.selected-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.chip-color {
  width: 32px; height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.chip-info { flex: 1; min-width: 0; }
.chip-name { font-size: 0.85rem; font-weight: 600; }
.chip-meta { font-size: 0.72rem; color: var(--text-muted); }
.chip-remove {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chip-remove:hover { background: #fce4ec; color: #c62828; }

.selected-actions { text-align: center; }
.btn-clear {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}
.btn-clear:hover { color: #c62828; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text-main); }
.modal h3 { margin-bottom: 4px; }
.modal-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.modal-color-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  position: relative;
}
.modal-color-dot::after {
  content: attr(data-label);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  white-space: nowrap;
  color: var(--text-muted);
}
.modal-colors + .form-group { margin-top: 8px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1024px) {
  .picker-body { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: repeat(4, 1fr); }
  .sidebar-sticky { position: static; }
}

@media (max-width: 768px) {
  .swatch-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .picker-tabs { gap: 4px; }
  .picker-tab { padding: 5px 12px; font-size: 0.78rem; }
  .modal { padding: 24px; }
}

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

/* --- Color Card Page --- */
.color-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.color-card-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.color-card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.color-card-preview {
  height: 120px;
  position: relative;
}
.color-card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 6px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 6px);
}
.color-card-info {
  padding: 16px;
  text-align: center;
}
.color-card-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.color-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.color-card-info .pantone-ref {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  background: var(--bg-warm);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .fabric-grid { grid-template-columns: repeat(3, 1fr); }
  .color-category-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .qc-grid { grid-template-columns: repeat(2, 1fr); }
  .dual-color-grid { grid-template-columns: repeat(2, 1fr); }
  .color-card-grid { grid-template-columns: repeat(3, 1fr); }
  .about-intro { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: repeat(3, 1fr); }
  .process-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { height: var(--nav-height-mobile); }
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .hero { margin-top: var(--nav-height-mobile); min-height: 420px; }
  .hero h1 { font-size: 1.6rem; }
  .hero .subtitle { font-size: 1rem; }
  .page-header { margin-top: var(--nav-height-mobile); padding: 52px 0; }
  .page-header h1 { font-size: 1.6rem; }
  .section { padding: 52px 0; }
  .section-subtitle { margin-bottom: 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .fabric-grid { grid-template-columns: repeat(2, 1fr); }
  .color-category-grid { grid-template-columns: repeat(2, 1fr); }
  .color-card-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .qc-grid { grid-template-columns: 1fr; }
  .dual-color-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.2rem; }
  .equipment-list { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr 1fr; }
  .hero-tags { gap: 8px; }
  .hero-tag { padding: 6px 14px; font-size: 0.8rem; }
  .cta-banner .phone-large { font-size: 1.75rem; }
  .timeline { padding-left: 16px; }
}

@media (max-width: 480px) {
  .fabric-grid { grid-template-columns: repeat(2, 1fr); }
  .color-category-grid { grid-template-columns: repeat(2, 1fr); }
  .color-card-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .dual-color-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .hero .hero-btns { flex-direction: column; }
  .btn { width: 100%; }
}
