/* Pricing Section & Plan Grid */
.pricing-section {
  padding: 90px 0;
  background: #F8FAFC;
}

/* Strict Layout Rules Specified by User:
   - Ultra-wide desktop: 6 columns
   - Standard desktop: 3 columns x 2 rows
   - Tablet: 2 columns x 3 rows
   - Mobile: 1 column x 6 rows
*/
.plans-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 60px;
}

@media (min-width: 1440px) {
  .plans-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1439px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 991px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

/* Plan Card Architecture */
.plan-card {
  background: var(--station-surface);
  border: 1px solid var(--station-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--station-card-border-hover);
  box-shadow: var(--shadow-pod);
}

/* Recommended Highlight for NO.01 (TNTCloud 基础版) */
.plan-card.plan-recommended {
  border: 2px solid var(--primary-600);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 100%);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.18);
}

.plan-rank-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-light);
  background: var(--station-surface-alt);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.plan-badge-wrapper {
  margin-bottom: 12px;
}

.plan-header {
  margin-bottom: 16px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.plan-pod-theme {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-600);
}

.plan-visual {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.plan-pricing-box {
  background: var(--station-surface-alt);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  text-align: center;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-700);
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.price-cycle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.plan-traffic-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--station-card-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.traffic-amount {
  font-weight: 800;
  color: var(--primary-700);
}

.traffic-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.plan-feature-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-cta-wrapper {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-detail-link {
  font-size: 0.82rem;
  color: var(--primary-600);
  text-align: center;
  font-weight: 600;
  padding: 6px;
}

.plan-detail-link:hover {
  text-decoration: underline;
}

/* Comparison Matrix Table */
.comparison-container {
  background: #FFFFFF;
  border: 1px solid var(--station-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-bottom: 60px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--station-card-border);
}

.comparison-table th:first-child, .comparison-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
  background: #F8FAFC;
  position: sticky;
  left: 0;
}

.comparison-table th {
  background: #F1F5F9;
  font-weight: 800;
  color: var(--text-main);
}

.comparison-table tr:hover td {
  background-color: #F8FAFC;
}

.param-not-provided {
  color: #94A3B8;
  font-style: italic;
  font-size: 0.82rem;
}

.param-supported {
  color: #059669;
  font-weight: 700;
}

/* Smart Plan Matcher Widget */
.plan-matcher-widget {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 60px;
}

.matcher-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.matcher-title {
  color: #FFFFFF;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.matcher-desc {
  color: #94A3B8;
  font-size: 0.95rem;
}

.matcher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .matcher-grid {
    grid-template-columns: 1fr;
  }
}

.matcher-option-btn {
  background: #1E293B;
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  color: #E2E8F0;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matcher-option-btn:hover {
  border-color: #60A5FA;
  background: #273549;
}

.matcher-option-btn.active {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.option-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
}

.option-label {
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
}

.option-subtext {
  font-size: 0.8rem;
  color: #94A3B8;
}

.matcher-result-card {
  background: #111E38;
  border: 1px solid #2563EB;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-badge {
  color: #38BDF8;
  font-weight: 700;
  font-size: 0.82rem;
}

.result-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFFFFF;
}

.result-reason {
  font-size: 0.9rem;
  color: #CBD5E1;
  max-width: 580px;
}