:root {
  --primary: #111111;
  --primary-dark: #000000;
  --text: #161616;
  --text-light: #707070;
  --bg: #ffffff;
  --bg-gray: #f6f6f6;
  --border: #e6e6e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.container {
  width: 100%;
  padding: 0 16px;
}

/* Header - 紧凑 */
.header {
  background: #111111;
  padding: 24px 0;
  text-align: center;
  flex-shrink: 0;
}

.header h1 {
  font-size: 28px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.header p {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* Main Content - 占满剩余空间 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Section */
.section {
  flex: 1;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.section > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Cards Grid - 占满空间 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  flex: 1;
  align-content: start;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
}

/* Button */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
}

/* Coming Soon - 居中显示 */
.coming-soon {
  text-align: center;
  padding: 32px 0;
  background: var(--bg-gray);
  flex-shrink: 0;
}

.coming-soon-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.coming-soon h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.coming-soon p {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

/* Services Grid */
.services-grid {
  display: flex;
  gap: 16px;
  flex: 1;
  width: 100%;
}

.services-grid > .service-card {
  flex: 1;
  min-width: 0;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card.featured {
  border-color: #111111;
  border-width: 1.5px;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.service-title {
  font-size: 16px;
  font-weight: 600;
}

.service-desc {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
  flex-shrink: 0;
}

/* Price */
.price-tag {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}

.price-options {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.price-btn {
  flex: 1;
  min-width: 70px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}

.price-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Categories */
.category-nav {
  background: var(--bg-gray);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.category-tabs {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.category-tab.active {
  background: #111111;
  color: white;
  border-color: #111111;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  flex: 1;
  width: 100%;
}

.category-item {
  text-align: center;
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: white;
}

.category-item:hover {
  border-color: var(--primary);
}

.category-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--primary);
  font-size: 14px;
}

.category-name {
  font-weight: 500;
  font-size: 13px;
}

/* Process */
.process-section {
  padding: 24px 0;
  flex-shrink: 0;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin: 0 auto 8px;
}

.step-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-light);
}

/* Features List */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
  flex-shrink: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.feature-icon {
  color: var(--primary);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .main-content {
    overflow-y: visible;
  }

  .header {
    padding: 16px 0;
  }
  
  .header h1 {
    font-size: 22px;
  }
  
  .cards,
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    padding: 14px;
    border-radius: 10px;
  }

  .section {
    padding: 14px 0;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .container {
    padding: 0 10px;
  }

  .category-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-tab {
    width: 100%;
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
  }

  .price-options {
    gap: 6px;
  }

  .price-btn {
    min-width: 0;
    padding: 7px 8px;
    font-size: 12px;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .process-steps {
    flex-direction: column;
    gap: 16px;
  }
  
  .process-steps::before {
    display: none;
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
