/* 苏州宏源香料 - 参考样例深色主题 */
:root {
  --color-primary: #e84545;
  --color-primary-dark: #c41e3a;
  --color-accent: #ff6b6b;
  --color-dark: #1a1a1a;
  --color-dark-2: #2d2d2d;
  --color-dark-3: #252525;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-white: #fff;
  --color-bg-light: #f8f8f8;
  --color-border: #e8e6e3;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --spacing: 1.5rem;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
}

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

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

/* SEO/无障碍：仅读屏器可见，不占视觉空间 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 顶部红色条 */
.top-bar {
  height: 4px;
  background: var(--color-primary);
}

/* Header - 深色 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--spacing);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border-radius: 4px;
}

.logo:hover {
  color: var(--color-white);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-white);
  font-size: 0.9375rem;
}

.nav a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
}

.nav a:hover {
  color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  color: var(--color-white);
  font-size: 0.875rem;
}

.header-phone:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

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

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

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* Hero - 深色背景，左侧文案 */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--color-dark-2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--color-dark-2) 0%, var(--color-dark-2) 42%, rgba(45,45,45,0.92) 50%, transparent 68%),
    url('images/hero.jpg') right center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 560px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1rem;
}

.hero-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

/* Section 通用 */
.section {
  padding: 4rem 0;
}

.section-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About - 双栏，左图右文 */
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 2rem;
  background: var(--color-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.about-badge strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.about-badge p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.about-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.about-content p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.about-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Products - 四卡片 */
.products {
  background: var(--color-bg-light);
}

.products-subtitle {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

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

.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.product-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: block;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.product-card ul {
  margin: 0 0 1rem;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.product-card li {
  margin-bottom: 0.25rem;
}

.product-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Why - 三卡片 */
.why {
  background: var(--color-white);
}

.why-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--color-bg-light);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.why-icon-1 { background: #ffe5d9; }
.why-icon-2 { background: #ffd6e0; }
.why-icon-3 { background: #d9e8ff; }

.why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Flow - 四张深色卡片，大红数字 */
.flow {
  background: var(--color-bg-light);
}

.flow-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 2rem;
}

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

.flow-card {
  background: var(--color-dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}

.flow-num {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.flow-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 0.5rem;
}

.flow-card p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.5;
}

/* Clients - 客户 logo 占位 */
.clients {
  background: var(--color-white);
  padding: 3rem 0;
}

.clients-headline {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.clients-logos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.client-logo {
  width: 160px;
  padding: 1.25rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Contact - 左红右白表单 */
.contact {
  padding: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.contact-left {
  background: var(--color-primary);
  padding: 3rem;
  color: var(--color-white);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.contact-desc {
  font-size: 0.9375rem;
  opacity: 0.95;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.contact-item-label {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.contact-phone {
  font-size: 1.25rem;
}

.contact-phone-link {
  color: var(--color-white);
}

.contact-phone-link:hover {
  text-decoration: underline;
}

.contact-wechat-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.contact-wechat-desc {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}

.qrcode-placeholder {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}

.contact-right {
  background: var(--color-white);
  padding: 3rem;
  border: 1px solid var(--color-border);
  border-left: none;
}

.contact-form-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}

.contact-form .form-row input {
  margin-bottom: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0 0;
}

/* Footer - 深色三栏 */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 0;
}

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

.footer-col h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.35rem;
  line-height: 1.5;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem var(--spacing);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-dark);
    padding: var(--spacing);
    display: none;
    gap: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .header-right {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .hero-stats {
    gap: 1.5rem;
  }

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

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

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

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

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

  .contact-right {
    border-left: 1px solid var(--color-border);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .clients-logos {
    justify-content: center;
  }

  .client-logo {
    width: 100%;
    max-width: 200px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}
