/* LBS数据仓库 - Cellocation Pages Plugin Styles */

/* =====================
   Hero Section
   ===================== */
.cl-hero {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  width: 100%;
}

.cl-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cl-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 0;
}

/* =====================
   Buttons
   ===================== */
.cl-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cl-btn-primary {
  background: #4f6ef7;
  color: #fff;
  border: 2px solid #4f6ef7;
}

.cl-btn-primary:hover {
  background: #3a58e2;
  border-color: #3a58e2;
  color: #fff;
  text-decoration: none;
}

.cl-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.cl-btn-outline:hover {
  background: #fff;
  color: #1a1f36;
  text-decoration: none;
}

/* =====================
   Section
   ===================== */
.cl-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cl-section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1f36;
}

.cl-section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* =====================
   Feature Cards
   ===================== */
.cl-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cl-feature-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cl-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cl-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7 0%, #6c8fff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.cl-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1f36;
}

.cl-feature-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* =====================
   Posts Grid
   ===================== */
.cl-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cl-post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ecf4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cl-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.cl-post-card-body {
  padding: 20px;
}

.cl-post-tag {
  display: inline-block;
  background: #eef1ff;
  color: #4f6ef7;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

.cl-post-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.cl-post-card h3 a {
  color: #1a1f36;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cl-post-card h3 a:hover {
  color: #4f6ef7;
}

.cl-post-card-meta {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}

/* =====================
   Stats Bar
   ===================== */
.cl-stats {
  background: #f0f4ff;
  padding: 40px 24px;
  height: 100%;
  box-sizing: border-box;
}

.cl-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.cl-stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: #4f6ef7;
  line-height: 1;
}

.cl-stat-label {
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
}

/* =====================
   API Doc Layout
   ===================== */
.cl-doc-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.cl-doc-nav {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 16px;
}

.cl-doc-nav h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 12px;
  margin-top: 0;
  font-weight: 600;
}

.cl-doc-nav a {
  display: block;
  padding: 8px 12px;
  color: #444;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.cl-doc-nav a:hover {
  background: #f0f4ff;
  color: #4f6ef7;
  text-decoration: none;
}

.cl-doc-nav a.active {
  background: #eef1ff;
  color: #4f6ef7;
  font-weight: 600;
}

.cl-doc-content {
  flex: 1;
  min-width: 0;
}

.cl-api-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  scroll-margin-top: 80px;
}

.cl-api-card h2 {
  font-size: 1.3rem;
  color: #1a1f36;
  margin-bottom: 4px;
  margin-top: 0;
  font-weight: 700;
}

.cl-api-card .subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.cl-endpoint {
  background: #f5f7ff;
  border-left: 3px solid #4f6ef7;
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  font-family: monospace;
  font-size: 0.9rem;
  margin-bottom: 16px;
  word-break: break-all;
}

.cl-params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cl-params-table th {
  background: #f8f9fc;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e8ecf4;
}

.cl-params-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  vertical-align: top;
}

.cl-params-table tr:last-child td {
  border-bottom: none;
}

.cl-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cl-badge-required {
  background: #fff0f0;
  color: #e53e3e;
}

.cl-badge-optional {
  background: #f0f0f0;
  color: #777;
}

.cl-example-url {
  background: #1a1f36;
  color: #a8d8a8;
  font-family: monospace;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 12px;
}

.cl-vip-badge {
  background: linear-gradient(135deg, #f6c90e, #f5a623);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 8px;
}

/* =====================
   Dashboard (My Page)
   ===================== */
.cl-dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.cl-dash-header {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
  border-radius: 12px;
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cl-dash-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
}

.cl-dash-header p {
  margin: 4px 0 0;
  opacity: 0.75;
  font-size: 0.9rem;
  color: #fff;
}

.cl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.cl-key-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cl-key-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cl-key-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1f36;
}

.cl-status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cl-status-active {
  background: #e6f9f0;
  color: #27ae60;
}

.cl-status-expired {
  background: #fff0f0;
  color: #e53e3e;
}

.cl-key-value {
  font-family: monospace;
  background: #f5f7ff;
  border: 1px solid #dde3f7;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #4f6ef7;
  margin-bottom: 14px;
  word-break: break-all;
}

.cl-key-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.cl-meta-item label {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 2px;
  font-weight: normal;
}

.cl-meta-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.cl-key-actions {
  display: flex;
  gap: 8px;
}

.cl-action-btn {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.cl-action-btn-primary {
  background: #4f6ef7;
  color: #fff;
}

.cl-action-btn-primary:hover {
  background: #3a58e2;
  color: #fff;
  text-decoration: none;
}

.cl-action-btn-secondary {
  background: #f0f4ff;
  color: #4f6ef7;
}

.cl-action-btn-secondary:hover {
  background: #dde6ff;
  color: #4f6ef7;
  text-decoration: none;
}

/* =====================
   Pricing Page
   ===================== */
.cl-pricing-section {
  padding: 40px 0;
}

.cl-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cl-price-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cl-price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.cl-price-card.featured {
  border-color: #4f6ef7;
  box-shadow: 0 4px 20px rgba(79, 110, 247, 0.15);
}

.cl-price-card-header {
  margin-bottom: 20px;
}

.cl-price-type {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1f36;
}

.cl-price-quota {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.cl-price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #4f6ef7;
  margin: 16px 0 4px;
}

.cl-price-period {
  font-size: 0.8rem;
  color: #999;
}

.cl-offline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
}

.cl-offline-table th {
  background: #1a1f36;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.cl-offline-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  vertical-align: top;
}

.cl-offline-table tr:nth-child(even) td {
  background: #f8f9fc;
}

.cl-offline-table tr:last-child td {
  border-bottom: none;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
  .cl-features {
    grid-template-columns: 1fr;
  }

  .cl-stats-grid {
    grid-template-columns: 1fr;
  }

  .cl-doc-layout {
    flex-direction: column;
  }

  .cl-doc-nav {
    width: 100%;
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }

  .cl-doc-nav h4 {
    width: 100%;
    margin-bottom: 4px;
  }

  .cl-doc-nav a {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .cl-hero h1 {
    font-size: 2rem;
  }

  .cl-features {
    grid-template-columns: 1fr;
  }

  .cl-posts-grid {
    grid-template-columns: 1fr;
  }

  .cl-stats-grid {
    grid-template-columns: 1fr;
  }

  .cl-dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cl-pricing-grid {
    grid-template-columns: 1fr;
  }

  .cl-key-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cl-hero {
    padding: 60px 16px;
  }

  .cl-section {
    padding: 40px 16px;
  }

  .cl-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
