/* 乐刷蓝牙POS官网样式表 */
/* 深松墨绿码清风 */

/* ==================== CSS变量 ==================== */
:root {
  /* 品牌主色 */
  --ls-pine: #1A2822;
  --ls-pine-light: #2A3832;
  --code-orange: #F97316;
  --clear-green: #10B981;
  
  /* 辅助色 */
  --white: #FFFFFF;
  --bg-page: #E8EDEB;
  --text-dark: #0A1410;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-light: #D1D9D6;
  
  /* 渐变 */
  --gradient-pine: linear-gradient(135deg, var(--ls-pine) 0%, var(--ls-pine-light) 100%);
  --gradient-orange: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  --gradient-green: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(26, 40, 34, 0.05);
  --shadow-md: 0 4px 6px rgba(26, 40, 34, 0.07);
  --shadow-lg: 0 10px 15px rgba(26, 40, 34, 0.1);
  --shadow-xl: 0 20px 25px rgba(26, 40, 34, 0.15);
  
  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* 字体 */
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-en: 'DM Sans', sans-serif;
  
  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==================== 排版 ==================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-orange { color: var(--code-orange); }
.text-green { color: var(--clear-green); }
.text-pine { color: var(--ls-pine); }
.text-white { color: var(--white); }

.font-en {
  font-family: var(--font-en);
  letter-spacing: -0.02em;
}

/* ==================== 容器 ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 800px;
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-logo {
  width: 40px;
  height: 40px;
  background: var(--ls-pine);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ls-pine);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-link {
  font-size: 0.9375rem;
  color: var(--text-body);
  padding: var(--space-sm) 0;
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--code-orange);
  transition: width var(--transition-base);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.navbar-link:hover {
  color: var(--ls-pine);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: var(--gradient-orange);
  color: var(--white);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

/* 汉堡菜单 */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
}

.navbar-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ls-pine);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.navbar-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== Hero区域 ==================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--gradient-pine);
  overflow: hidden;
  padding-top: 70px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  animation: float 20s infinite ease-in-out;
}

.hero-circle:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.hero-circle:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.hero-circle:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 10%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

/* 页面标题区 */
.page-hero {
  position: relative;
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.page-hero.orange {
  background: var(--gradient-orange);
}

.page-hero.green {
  background: var(--gradient-green);
}

.page-hero.pine {
  background: var(--gradient-pine);
}

.page-hero h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-orange);
  color: var(--white);
  border-color: var(--code-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ls-pine);
  border-color: var(--ls-pine);
}

.btn-outline:hover {
  background: var(--ls-pine);
  color: var(--white);
}

.btn-green {
  background: var(--gradient-green);
  color: var(--white);
  border-color: var(--clear-green);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  color: var(--white);
}

/* ==================== 卡片 ==================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-icon.orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--code-orange);
}

.card-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--clear-green);
}

.card-icon.pine {
  background: rgba(26, 40, 34, 0.1);
  color: var(--ls-pine);
}

/* ==================== 特色数字 ==================== */
.stat-number {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-number.orange { color: var(--code-orange); }
.stat-number.green { color: var(--clear-green); }
.stat-number.pine { color: var(--ls-pine); }

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==================== 区块 ==================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-dark {
  background: var(--ls-pine);
  color: var(--white);
}

.section-light {
  background: var(--bg-page);
}

.section-white {
  background: var(--white);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-dark);
}

.section-title span {
  color: var(--code-orange);
}

.section-title.green span {
  color: var(--clear-green);
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  color: var(--text-muted);
}

/* ==================== 特色布局 ==================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-item {
  text-align: center;
  padding: var(--space-xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* 错落卡片 */
.stagger-cards {
  display: grid;
  gap: var(--space-lg);
}

.stagger-cards .card:nth-child(1) {
  width: 55%;
}

.stagger-cards .card:nth-child(2) {
  width: 43%;
  margin-left: auto;
}

.stagger-cards .card:nth-child(3) {
  width: 100%;
}

/* 左侧对齐区块 */
.align-left {
  text-align: left;
}

/* ==================== 表格 ==================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9375rem;
}

.table th,
.table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background: var(--ls-pine);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

.table th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.table th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(26, 40, 34, 0.02);
}

.table .check {
  color: var(--clear-green);
  font-weight: 600;
}

.table .cross {
  color: var(--code-orange);
}

.table-highlight {
  background: rgba(249, 115, 22, 0.05);
}

/* ==================== FAQ手风琴 ==================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(26, 40, 34, 0.02);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  color: var(--code-orange);
  font-weight: 600;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-body);
  line-height: 1.7;
}

/* ==================== CTA区域 ==================== */
.cta-section {
  background: var(--gradient-pine);
  padding: var(--space-3xl) 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.cta-section h2 span {
  color: var(--code-orange);
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--gradient-pine);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.7;
  margin-top: var(--space-md);
  font-size: 0.9375rem;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.footer-links ul li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.9375rem;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stagger-cards .card:nth-child(1),
  .stagger-cards .card:nth-child(2) {
    width: 100%;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-hamburger {
    display: flex;
  }
  
  .feature-grid,
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .table th,
  .table td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

/* ==================== 工具类 ==================== */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.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); }

.text-center { text-align: center; }
.text-left { text-align: left; }

/* 高亮文字 */
.highlight-orange {
  background: linear-gradient(transparent 60%, rgba(249, 115, 22, 0.2) 60%);
}

.highlight-green {
  background: linear-gradient(transparent 60%, rgba(16, 185, 129, 0.2) 60%);
}
