/* ========================================
   食光POS 官网样式 - 原创设计
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s;
}
.header.scrolled .logo { color: #1a1a2e; }
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
  position: relative;
}
.header.scrolled .nav a { color: #555; }
.nav a:hover { color: #ff6b35; }
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}
.header.scrolled .mobile-menu-btn span { background: #333; }

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(247,147,30,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 50px;
  color: #ff6b35;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255,107,53,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,107,53,0.5);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}
.hero-stats .stat-num span { color: #ff6b35; }
.hero-stats .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ===== Section Base ===== */
.section { padding: 100px 24px; }
.section-dark { background: #f8f9fa; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,107,53,0.1);
  color: #ff6b35;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  color: #777;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.fi-1 { background: linear-gradient(135deg, #ff6b35, #f7931e); color: #fff; }
.fi-2 { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff; }
.fi-3 { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.fi-4 { background: linear-gradient(135deg, #11998e, #38ef7d); color: #fff; }
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px;
  color: #777;
  line-height: 1.7;
}

/* ===== Solutions Tabs ===== */
.solutions-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.sol-tab {
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid #eee;
  background: #fff;
}
.sol-tab:hover { border-color: #ff6b35; color: #ff6b35; }
.sol-tab.active {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(255,107,53,0.3);
}
.sol-panel { display: none; }
.sol-panel.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.sol-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.sol-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.sol-text p {
  font-size: 16px;
  color: #777;
  margin-bottom: 24px;
  line-height: 1.8;
}
.sol-features { display: flex; flex-direction: column; gap: 12px; }
.sol-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 15px;
  color: #444;
}
.sol-feature .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.sol-image {
  background: linear-gradient(135deg, #f8f9fa, #e8ecf1);
  border-radius: 20px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  opacity: 0.6;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  border: 2px solid #eee;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.pricing-card.popular {
  border-color: #ff6b35;
  box-shadow: 0 20px 60px rgba(255,107,53,0.15);
}
.pricing-card.popular::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
}
.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.pricing-card .subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}
.pricing-card .price {
  font-size: 40px;
  font-weight: 800;
  color: #ff6b35;
  margin-bottom: 4px;
}
.pricing-card .price small { font-size: 16px; font-weight: 500; }
.pricing-card .price-note {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}
.pricing-card .price-original {
  font-size: 14px;
  color: #ccc;
  text-decoration: line-through;
  margin-bottom: 4px;
}
.pricing-list {
  text-align: left;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}
.pricing-item .label { color: #777; }
.pricing-item .value { font-weight: 600; color: #333; }
.pricing-item .value.highlight { color: #ff6b35; }

/* ===== Why Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  background: #fff;
  transition: all 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.why-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(247,147,30,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  text-align: center;
  padding: 80px 24px;
}
.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  padding: 60px 24px 30px;
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.footer-col a:hover { color: #ff6b35; }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== Mobile ===== */
@media (max-width: 1024px) {
  .features-grid, .pricing-grid, .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 42px; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav.open a { color: #333 !important; }
  .features-grid, .pricing-grid, .why-grid {
    grid-template-columns: 1fr;
  }
  .sol-content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .section { padding: 60px 20px; }
  .section-header h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
