/* ===== 全局重置 & 变量 ===== */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #ffedd5;
  --secondary: #92400e;
  --accent: #10b981;
  --accent-dark: #059669;
  --bg-light: #fff7ed;
  --bg-white: #ffffff;
  --text-dark: #1c1917;
  --text-muted: #78716c;
  --text-light: #f5f5f4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(249,115,22,0.45);
}

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

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

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  padding-top: 80px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 480px;
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-stats span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hero-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.hero-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-accent {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fbbf24;
}

.card-accent i {
  color: var(--secondary);
}

/* ===== 品牌故事 ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.brand-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.brand-item i {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.brand-item h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.brand-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== 明星产品 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card .emoji-big {
  font-size: 3.6rem;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.product-card .price {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin: 8px 0;
}

.product-card .desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-card .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
}

/* ===== 加盟优势 ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.advantage-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.advantage-icon i {
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.advantage-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.advantage-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== 加盟流程 ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== 联系我们 ===== */
.contact-wrapper {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  background: white;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  flex: 2 1 400px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e7e5e4;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fafaf9;
  transition: var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
  background: white;
}

.form-tip {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-info {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.contact-info i {
  color: var(--primary);
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  color: var(--primary-dark);
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 32px 0;
  text-align: center;
}

.footer-content p {
  margin-bottom: 6px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stats strong {
    font-size: 1.6rem;
  }

  .hero-content {
    gap: 40px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .contact-wrapper {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

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

/* 辅助 */
.hide-mobile {
  display: inline;
}

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

.hide-desktop {
  display: none;
}

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