: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);
  }
}

/* Unified refresh 2026-03 */
:root {
  --rf-ip-bg: #eef4ff;
  --rf-ip-surface: rgba(255, 255, 255, 0.9);
  --rf-ip-border: rgba(148, 163, 184, 0.22);
  --rf-ip-text: #0f172a;
  --rf-ip-soft: #475569;
  --rf-ip-primary: #2563eb;
  --rf-ip-primary-strong: #1d4ed8;
  --rf-ip-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

html,
body {
  background: radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.1),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 24%),
    var(--rf-ip-bg);
  color: var(--rf-ip-text);
}

body {
  min-height: 100vh;
}

.container {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: relative;
  overflow: hidden;
  padding: 42px 0 30px;
  background: radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.18),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      var(--rf-ip-primary) 0%,
      var(--rf-ip-primary-strong) 100%
    );
  box-shadow: var(--rf-ip-shadow);
}

.header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.section {
  padding: 30px 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.cards,
.services-grid,
.categories-grid {
  gap: 18px;
}

.card,
.service-card,
.category-item {
  background: var(--rf-ip-surface);
  border: 1px solid var(--rf-ip-border);
  border-radius: 22px;
  box-shadow: var(--rf-ip-shadow);
  backdrop-filter: blur(12px);
}

.card,
.service-card {
  padding: 24px;
}

.card:hover,
.service-card:hover,
.category-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.2);
}

.card-icon,
.service-icon,
.category-icon {
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--rf-ip-primary) 0%,
    var(--rf-ip-primary-strong) 100%
  );
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.service-icon,
.category-icon {
  width: 48px;
  height: 48px;
}

.card h3,
.service-title,
.coming-soon h2,
.price-tag,
.step-title {
  color: var(--rf-ip-text);
}

.card p,
.service-desc,
.coming-soon p,
.feature-item,
.step-desc,
.category-name {
  color: var(--rf-ip-soft);
}

.price-tag {
  font-size: 2rem;
}

.btn,
.price-btn,
.category-tab,
.badge {
  border-radius: 999px;
  font-weight: 700;
}

.btn,
.price-btn.active,
.category-tab.active,
.badge {
  background: linear-gradient(
    135deg,
    var(--rf-ip-primary) 0%,
    var(--rf-ip-primary-strong) 100%
  );
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.price-btn:hover,
.category-tab:hover,
.btn:hover {
  transform: translateY(-1px);
}

.coming-soon {
  margin: 0 auto 26px;
  width: min(1200px, calc(100vw - 32px));
  border-radius: 26px;
  background: var(--rf-ip-surface);
  border: 1px solid var(--rf-ip-border);
  box-shadow: var(--rf-ip-shadow);
}

@media (max-width: 768px) {
  .container {
    width: min(100vw - 20px, 100%);
    padding: 0 10px;
  }

  .header {
    padding: 28px 0 22px;
  }

  .card,
  .service-card,
  .coming-soon {
    border-radius: 18px;
  }

  .card,
  .service-card {
    padding: 18px;
  }

  .coming-soon {
    width: min(100vw - 20px, 100%);
  }
}

/* ===== No-AI redesign 2026-03 ===== */
:root {
  --ip-bg-neutral: #f4f1ec;
  --ip-surface-neutral: #ffffff;
  --ip-surface-muted-neutral: #f7f3ed;
  --ip-line-neutral: #d8d0c4;
  --ip-text-neutral: #1f2328;
  --ip-muted-neutral: #616975;
  --ip-accent-neutral: #33424f;
  --ip-shadow-neutral: 0 12px 28px rgba(31, 35, 40, 0.06);
}

html,
body {
  background: var(--ip-bg-neutral) !important;
  color: var(--ip-text-neutral) !important;
}

.container {
  width: min(1200px, calc(100vw - 32px));
}

.header {
  background: var(--ip-surface-neutral) !important;
  border-bottom: 1px solid var(--ip-line-neutral);
  box-shadow: var(--ip-shadow-neutral);
}

.header h1,
.section-title,
.card h3,
.service-title,
.price-tag,
.step-title {
  color: var(--ip-text-neutral) !important;
}

.header p,
.card p,
.service-desc,
.coming-soon p,
.feature-item,
.step-desc,
.category-name {
  color: var(--ip-muted-neutral) !important;
}

.card,
.service-card,
.category-item,
.coming-soon {
  background: var(--ip-surface-neutral) !important;
  border: 1px solid var(--ip-line-neutral) !important;
  border-radius: 18px !important;
  box-shadow: var(--ip-shadow-neutral) !important;
}

.card-icon,
.service-icon,
.category-icon,
.step-number,
.badge,
.btn,
.price-btn.active,
.category-tab.active {
  background: var(--ip-accent-neutral) !important;
  border-color: var(--ip-accent-neutral) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.btn,
.price-btn,
.category-tab {
  border-radius: 999px !important;
}

/* ===== Round 2 hard fixes ===== */
.container {
  width: min(1520px, calc(100vw - 24px));
  padding: 0 12px;
}

.category-nav {
  border-bottom: 1px solid var(--ip-line-neutral);
  background: var(--ip-surface-neutral);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-content {
  padding-top: 10px;
}

.services-grid {
  gap: 18px;
}

/* ===== IP iframe content flow fix 2026-03-07 ===== */
html,
body {
  height: auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

body {
  display: block !important;
}

.main-content {
  display: block !important;
  flex: none !important;
  overflow: visible !important;
  padding-top: 0 !important;
}

.section,
.section > .container {
  display: block !important;
  flex: none !important;
}
