/* ========================================
   随行付手刷MPOS - 深苔石板调套风
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  /* 主色 - 深苔石板 */
  --sxf-moss: #1F2822;
  --sxf-moss-light: #2F3832;
  --sxf-moss-dark: #141A16;
  
  /* 强调色 - 调绿 */
  --adjust-green: #10B981;
  --adjust-green-light: #34D399;
  --adjust-green-dark: #059669;
  
  /* 强调色 - 套青 */
  --trick-cyan: #06B6D4;
  --trick-cyan-light: #22D3EE;
  --trick-cyan-dark: #0891B2;
  
  /* 背景色 */
  --bg-page: #E8EDEB;
  --bg-card: #FFFFFF;
  --bg-section: #F5F7F6;
  
  /* 文字色 */
  --text-dark: #0A100D;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* 阴影 */
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* 布局 */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans SC', 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.text-green { color: var(--adjust-green); }
.text-cyan { color: var(--trick-cyan); }
.text-white { color: var(--text-white); }
.text-muted { color: var(--text-muted); }

.font-dm { font-family: 'DM Sans', sans-serif; }

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--text-white);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sxf-moss);
}

.nav__logo svg {
  width: 32px;
  height: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--adjust-green);
  transition: width 0.2s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--sxf-moss);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-md);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sxf-moss);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }
  
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--text-white);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-sm);
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--adjust-green) 0%, var(--adjust-green-dark) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: transparent;
  color: var(--sxf-moss);
  border: 2px solid var(--sxf-moss);
}

.btn--outline:hover {
  background: var(--sxf-moss);
  color: var(--text-white);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: 1.125rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--sxf-moss) 0%, var(--sxf-moss-light) 50%, var(--sxf-moss) 100%);
  background-size: 200% 200%;
  overflow: hidden;
}

.hero--sm {
  min-height: auto;
  padding: var(--space-4xl) 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-white);
}

.hero__tag {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--adjust-green-light);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-white);
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card--green {
  background: linear-gradient(135deg, var(--adjust-green) 0%, var(--adjust-green-dark) 100%);
  color: var(--text-white);
}

.card--cyan {
  background: linear-gradient(135deg, var(--trick-cyan) 0%, var(--trick-cyan-dark) 100%);
  color: var(--text-white);
}

.card--moss {
  background: var(--sxf-moss);
  color: var(--text-white);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--adjust-green);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-muted);
}

.card--green .card__text,
.card--cyan .card__text,
.card--moss .card__text {
  color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   Feature Grid
   ======================================== */
.features {
  display: grid;
  gap: var(--space-lg);
}

.features--2 {
  grid-template-columns: repeat(2, 1fr);
}

.features--3 {
  grid-template-columns: repeat(3, 1fr);
}

.features--asymmetric {
  grid-template-columns: 55% 43%;
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .features--asymmetric {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .features--2,
  .features--3 {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: var(--space-xl);
}

.feature__number {
  font-family: 'DM Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--adjust-green);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.feature__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature__desc {
  color: var(--text-muted);
}

/* ========================================
   Content Blocks
   ======================================== */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.content-split--reverse {
  direction: rtl;
}

.content-split--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .content-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .content-split--reverse {
    direction: ltr;
  }
}

.content-split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sxf-moss-light) 0%, var(--sxf-moss) 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.25rem;
}

.content-split__text h2 {
  margin-bottom: var(--space-md);
}

.content-split__text p {
  margin-bottom: var(--space-lg);
  color: var(--text-body);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header--left {
  text-align: left;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
}

.section-header--left p {
  margin-left: 0;
}

/* ========================================
   Tables
   ======================================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.table th,
.table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table th {
  background: var(--sxf-moss);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  font-size: 0.9375rem;
}

.table tbody tr:nth-child(even) {
  background: var(--bg-section);
}

.table tbody tr:hover {
  background: rgba(16, 185, 129, 0.05);
}

.table .check {
  color: var(--adjust-green);
  font-weight: bold;
}

.table .cross {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .table th,
  .table td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
  }
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--adjust-green);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq__item.open .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.open .faq__answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq__answer p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
  background: linear-gradient(135deg, var(--sxf-moss) 0%, var(--sxf-moss-light) 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
  color: var(--text-white);
}

.cta h2 {
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.cta p {
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--adjust-green);
  margin-bottom: var(--space-lg);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--sxf-moss) 0%, var(--sxf-moss-light) 100%);
  color: var(--text-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer__brand h3 {
  color: var(--text-white);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.footer__brand p {
  opacity: 0.8;
  line-height: 1.7;
}

.footer__links h4 {
  color: var(--text-white);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer__links a:hover {
  opacity: 1;
  color: var(--adjust-green);
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
  background: var(--bg-section);
  border-left: 4px solid var(--adjust-green);
  padding: var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-xl) 0;
}

.info-box--cyan {
  border-left-color: var(--trick-cyan);
}

.info-box h4 {
  margin-bottom: var(--space-sm);
  color: var(--adjust-green);
}

.info-box--cyan h4 {
  color: var(--trick-cyan);
}

.info-box p {
  color: var(--text-muted);
  margin: 0;
}

/* ========================================
   Price Display
   ======================================== */
.price {
  font-family: 'DM Sans', sans-serif;
}

.price__big {
  font-size: 3rem;
  font-weight: 700;
  color: var(--adjust-green);
  line-height: 1;
}

.price__unit {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* ========================================
   Badge
   ======================================== */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--adjust-green);
}

.badge--cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--trick-cyan);
}

/* ========================================
   Highlight Text
   ======================================== */
.highlight {
  background: linear-gradient(transparent 60%, rgba(16, 185, 129, 0.3) 60%);
}

.highlight--cyan {
  background: linear-gradient(transparent 60%, rgba(6, 182, 212, 0.3) 60%);
}

/* ========================================
   Form
   ======================================== */
.form {
  max-width: 400px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
}

.form__input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--adjust-green);
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ========================================
   Page Hero (for inner pages)
   ======================================== */
.page-hero {
  padding: var(--space-4xl) 0;
  padding-top: calc(var(--nav-height) + var(--space-4xl));
  text-align: center;
  color: var(--text-white);
}

.page-hero--green {
  background: linear-gradient(135deg, var(--adjust-green) 0%, var(--adjust-green-dark) 100%);
}

.page-hero--cyan {
  background: linear-gradient(135deg, var(--trick-cyan) 0%, var(--trick-cyan-dark) 100%);
}

.page-hero--moss {
  background: linear-gradient(135deg, var(--sxf-moss) 0%, var(--sxf-moss-light) 100%);
}

.page-hero h1 {
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
