/* NestDirect - shared styles */
:root {
  --brown: #87623d;
  --brown-dark: #3a2a19;
  --brown-light: #6b4f35;
  --beige: #f9f5f2;
  --cream: #fffdd0;
  --tan: #e8ded1;
  --white: #ffffff;
  --text: #2d241c;
  --text-muted: #978475;
  --shadow: 0 12px 40px rgba(75, 54, 33, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--beige);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

.qrcode-container {
  display: inline-flex;
  flex-direction: column;
  align-content: center;
}

.qrcode-tip {
  margin-top: 20px;
  font-size: 12px;
  color: var(--brown-light);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(75, 54, 33, 0.2);
}

.btn-primary {
  background: var(--brown);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brown-dark);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown);
}

.btn-white {
  background: var(--white);
  color: var(--brown);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(249, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 54, 33, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--brown);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  /*background: linear-gradient(135deg, var(--brown), var(--brown-light));*/
  background: url('https://haowoo3.oss-cn-shenzhen.aliyuncs.com/web/logo.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--brown);
  font-weight: 700;
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--tan);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--beige);
  border-bottom: 1px solid var(--tan);
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--tan);
  color: var(--brown);
}

/* Footer */
.site-footer {
  background: var(--tan);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  margin-bottom: 16px;
}

.footer-col a, .footer-col div {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brown);
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(75, 54, 33, 0.15);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  outline: none;
}

.newsletter input:focus {
  border-color: var(--brown);
}

.newsletter button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brown);
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(75, 54, 33, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
}

.beian {
  text-align: center;
}

.privacy {
  position: absolute;
  left: 30px;
  text-decoration: underline;
}

/* Section utilities */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-sub {
  margin-inline: auto;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-card {
  padding: 32px 28px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* CTA banner */
.cta-banner {
  background: var(--brown);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 28px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
}

/* Stats */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 48px 0;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--brown);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .nav-desktop,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-row {
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .qrcode-tip {
    font-size: 10px;
  }

  .privacy {
    width: 100%;
    margin: 0 auto;
    position: relative;
    left: 0;
    display: flex;
    justify-content: center;
  }
}
