/* ========================================
   乐刷传统大机 - 深草绿稳惠风格
   ======================================== */

/* CSS Variables */
:root {
  --ls-grass: #3F6212;
  --ls-grass-light: #4D7C0F;
  --ls-grass-dark: #365A10;
  --stable-cyan: #06B6D4;
  --stable-cyan-light: #22D3EE;
  --promo-red: #EF4444;
  --promo-red-light: #F87171;
  --bg-page: #F7FEE7;
  --bg-white: #FFFFFF;
  --bg-gray: #F8FAFC;
  --text-dark: #1A2E05;
  --text-body: #334155;
  --text-light: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-page);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

a {
  color: var(--ls-grass);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--stable-cyan);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
.font-dm {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

.text-stable {
  color: var(--stable-cyan);
  font-weight: 700;
}

.text-promo {
  color: var(--promo-red);
  font-weight: 700;
}

.text-grass {
  color: var(--ls-grass);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-white);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ls-grass);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ls-grass), var(--stable-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--stable-cyan);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--ls-grass);
}

.nav-cta {
  background: linear-gradient(135deg, var(--ls-grass), var(--stable-cyan));
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--ls-grass);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-white);
    padding: 20px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--ls-grass) 0%, var(--ls-grass-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-stable {
  background: linear-gradient(135deg, var(--stable-cyan) 0%, #0891B2 100%);
}

.hero-promo {
  background: linear-gradient(135deg, var(--promo-red) 0%, #DC2626 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: white;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.9;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--stable-cyan), var(--stable-cyan-light));
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

.btn-red {
  background: linear-gradient(135deg, var(--promo-red), var(--promo-red-light));
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  color: white;
}

.hero-low {
  padding: 100px 0 60px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 50px;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.card-icon-green {
  background: linear-gradient(135deg, rgba(63, 98, 18, 0.1), rgba(63, 98, 18, 0.2));
  color: var(--ls-grass);
}

.card-icon-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.2));
  color: var(--stable-cyan);
}

.card-icon-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
  color: var(--promo-red);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  line-height: 1.7;
}

.card-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.card-number-green {
  color: var(--ls-grass);
}

.card-number-cyan {
  color: var(--stable-cyan);
}

/* ========================================
   Feature Blocks
   ======================================== */
.feature-left-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-left-right.reverse {
  direction: rtl;
}

.feature-left-right.reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .feature-left-right,
  .feature-left-right.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  display: block;
}

.feature-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 17px;
}

.feature-highlight {
  font-size: 20px;
  color: var(--text-dark);
  border-left: 4px solid var(--stable-cyan);
  padding-left: 20px;
  margin: 30px 0;
}

/* ========================================
   Cards Grid
   ======================================== */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid-mixed {
  grid-template-columns: 55% 43%;
}

.cards-grid-mixed .card:nth-child(2) {
  align-self: end;
}

@media (max-width: 992px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-grid-3,
  .cards-grid-2,
  .cards-grid-mixed {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Promo Section
   ======================================== */
.promo-section {
  text-align: left;
  padding: 60px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.1));
  border-radius: var(--radius-lg);
  border: 2px dashed var(--promo-red);
}

.promo-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.promo-items {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0;
}

.promo-item {
  flex: 1;
  min-width: 200px;
}

.promo-item h4 {
  font-size: 20px;
  color: var(--promo-red);
  margin-bottom: 8px;
}

.promo-item p {
  color: var(--text-light);
}

/* ========================================
   Tables
   ======================================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table-wrapper th {
  background: var(--ls-grass);
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.table-wrapper th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.table-wrapper th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}

.table-wrapper tr:hover td {
  background: var(--bg-page);
}

.table-check {
  color: var(--ls-grass);
  font-weight: 700;
  font-size: 20px;
}

.table-cross {
  color: var(--promo-red);
  font-size: 18px;
}

.table-highlight {
  background: rgba(6, 182, 212, 0.1);
  font-weight: 600;
}

.compare-table th {
  font-size: 18px;
}

.compare-table td {
  font-size: 15px;
  line-height: 1.6;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--ls-grass);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--promo-red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ls-grass), var(--ls-grass-light));
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 36px;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-section .btn {
  font-size: 18px;
  padding: 16px 40px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--ls-grass), var(--ls-grass-light));
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  color: rgba(255,255,255,0.8);
}

.footer ul a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  opacity: 0.8;
}

/* ========================================
   Badge
   ======================================== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background: rgba(63, 98, 18, 0.1);
  color: var(--ls-grass);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--stable-cyan);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--promo-red);
}

/* ========================================
   Form
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--stable-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.py-20 { padding: 20px 0; }
.py-40 { padding: 40px 0; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-low {
    padding: 90px 0 50px;
  }

  .promo-section {
    padding: 40px 30px;
  }

  .promo-section h2 {
    font-size: 28px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .table-wrapper th,
  .table-wrapper td {
    padding: 14px 16px;
    font-size: 14px;
  }
}
