body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root {
  --primary-color: rgb(228, 100, 61);
  --secondary-color: #000000;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --text-main: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --border-color: #e2e8f0;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --header-height: 70px;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* Navbar */
.navbar {
  height: auto;
  min-height: var(--header-height);
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto; /* Push to right */
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: radial-gradient(circle at top right, #fff1f2, transparent 40%),
              radial-gradient(circle at bottom left, #eff6ff, transparent 40%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: rgb(200, 80, 45); /* Darker shade */
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* Features */
.features {
  padding: 3rem 0;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: #fff1f2;
  color: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Models List */
.models-section {
  padding: 3rem 0;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.model-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card-badge {
  background-color: #fff7ed;
  color: #ea580c;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 9999px;
}

.card-body {
  padding: 1.5rem;
  position: relative;
  flex: 1;
}

.model-icon {
  width: 48px;
  height: 48px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.model-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.model-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.model-price {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-period {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.model-features {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-bottom: 0;
}

.model-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.check-icon {
  color: var(--success-color);
  width: 16px;
  height: 16px;
}

.card-footer {
  padding: 1rem 1.5rem;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

/* Detail Page */
.detail-header {
  background: var(--secondary-color);
  color: white;
  padding: 4rem 0 8rem;
  margin-bottom: -4rem;
}

.detail-content {
  position: relative;
  z-index: 10;
}

.detail-card {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.detail-main {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.detail-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

@media (max-width: 900px) {
  .detail-card {
    grid-template-columns: 1fr;
  }
}

/* Filters */
.filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

/* Footer */
footer {
  background: var(--secondary-color);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}

/* Footer Specific Overrides */
.footer-col .qr-placeholder {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  width: 140px;
  height: 140px;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .navbar {
    min-height: 56px;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .features {
    padding: 2.25rem 0;
  }

  .models-section {
    padding: 2.25rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .features-grid,
  .models-grid {
    gap: 1rem;
  }

  .detail-header {
    padding: 3rem 0 4.5rem;
    margin-bottom: -3rem;
  }

  .detail-main {
    padding: 1.75rem;
  }

  .detail-card {
    gap: 1.5rem;
  }

  footer {
    padding: 3rem 0 1.5rem;
    margin-top: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .floating-contact {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .floating-contact svg {
    width: 26px;
    height: 26px;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-main);
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #94a3b8;
  font-weight: 500;
}

/* Floating Contact Button */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-contact:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.floating-contact svg {
  width: 32px;
  height: 32px;
}

/* Copy Feedback */
.copy-feedback {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2000;
}

.copy-feedback.show {
  opacity: 1;
}

/* Contact Page Copy Button */
.wechat-copy-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem;
  color: var(--primary-color);
  font-size: 0.8rem;
  transition: all 0.2s;
}

.wechat-copy-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
