/* 域名电话代理人子站 — idntel.com/agent/ */

.agent-main {
  --ag-primary: #0f766e;
  --ag-primary-light: #14b8a6;
  --ag-primary-dark: #0d5c56;
  --ag-accent: #d97706;
  --ag-text: #1f2937;
  --ag-text-light: #6b7280;
  --ag-bg: #f8fafb;
  --ag-white: #ffffff;
  --ag-border: #e5e7eb;
  --ag-highlight: #ecfdf5;
  --ag-highlight-border: #10b981;
  --ag-warn-bg: #fffbeb;
  --ag-warn-border: #f59e0b;
  --ag-shadow: 0 2px 12px rgba(15, 118, 110, 0.08);
  --ag-radius: 8px;
  background: var(--ag-bg);
  color: var(--ag-text);
  font-size: 15px;
  line-height: 1.7;
}

.page-section { display: none; }
.page-section.active { display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.page-hero {
  background: linear-gradient(135deg, var(--ag-primary-dark) 0%, var(--ag-primary) 55%, var(--ag-primary-light) 100%);
  color: var(--ag-white);
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.page-hero p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto;
}

.section-block {
  background: var(--ag-white);
  border-radius: var(--ag-radius);
  box-shadow: var(--ag-shadow);
  padding: 32px;
  margin-bottom: 28px;
}

.section-block h2 {
  font-size: 20px;
  color: var(--ag-primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ag-accent);
  display: inline-block;
}

.section-block h3 {
  font-size: 16px;
  color: var(--ag-primary);
  margin: 20px 0 10px;
}

.section-block p,
.section-block li {
  color: var(--ag-text);
  margin-bottom: 10px;
}

.section-block ul,
.section-block ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.advantage-card {
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius);
  padding: 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.advantage-card:hover {
  box-shadow: var(--ag-shadow);
  border-color: var(--ag-primary-light);
}

.advantage-card .icon {
  width: 40px;
  height: 40px;
  background: var(--ag-highlight);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.advantage-card h4 {
  font-size: 15px;
  color: var(--ag-primary-dark);
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 13px;
  color: var(--ag-text-light);
  margin: 0;
  line-height: 1.6;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.product-group {
  border-radius: var(--ag-radius);
  padding: 24px;
  border: 2px solid;
}

.product-group.tel {
  background: var(--ag-highlight);
  border-color: var(--ag-highlight-border);
}

.product-group.wallet {
  background: var(--ag-warn-bg);
  border-color: var(--ag-warn-border);
}

.product-group .group-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-group.tel .group-label { color: var(--ag-highlight-border); }
.product-group.wallet .group-label { color: var(--ag-warn-border); }

.rule-list {
  list-style: none;
  padding: 0;
}

.rule-list li {
  padding: 14px 16px 14px 48px;
  margin-bottom: 10px;
  background: #f9fafb;
  border-radius: var(--ag-radius);
  border: 1px solid var(--ag-border);
  position: relative;
}

.rule-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  background: var(--ag-primary);
  color: var(--ag-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.flow-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.flow-steps li {
  position: relative;
  padding: 16px 16px 16px 56px;
  margin-bottom: 12px;
  background: #f9fafb;
  border-radius: var(--ag-radius);
  border: 1px solid var(--ag-border);
}

.flow-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--ag-primary);
  color: var(--ag-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.faq-list { list-style: none; padding: 0; }

.faq-item {
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 14px 18px;
  background: #f9fafb;
  font-weight: 600;
  font-size: 14px;
  color: var(--ag-primary-dark);
}

.faq-a {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ag-text-light);
  border-top: 1px solid var(--ag-border);
}

.resp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.resp-table th,
.resp-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--ag-border);
}

.resp-table th {
  background: var(--ag-highlight);
  color: var(--ag-primary-dark);
  font-weight: 600;
}

.resp-table tr:nth-child(even) td { background: #fafbfc; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.module-card {
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius);
  padding: 18px;
  background: #fafbfc;
}

.module-card h4 {
  font-size: 14px;
  color: var(--ag-primary-dark);
  margin: 0 0 8px;
}

.module-card p {
  font-size: 13px;
  color: var(--ag-text-light);
  margin: 0;
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 7px;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.ag-btn--primary {
  background: var(--ag-primary);
  color: var(--ag-white);
}

.ag-btn--primary:hover { background: var(--ag-primary-light); }

.ag-btn--outline {
  background: var(--ag-white);
  color: var(--ag-primary);
  border-color: var(--ag-primary);
}

.ag-btn--outline:hover { background: var(--ag-highlight); }

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.doc-sidebar {
  background: var(--ag-white);
  border-radius: var(--ag-radius);
  box-shadow: var(--ag-shadow);
  padding: 12px;
  position: sticky;
  top: 100px;
}

.doc-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--ag-text);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.5;
  margin-bottom: 4px;
}

.doc-tab:hover { background: #f3f4f6; }
.doc-tab.active { background: var(--ag-highlight); color: var(--ag-primary); font-weight: 600; }

.doc-viewer {
  background: var(--ag-white);
  border-radius: var(--ag-radius);
  box-shadow: var(--ag-shadow);
  overflow: hidden;
}

.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ag-border);
  background: #fafbfc;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-toolbar h3 {
  font-size: 15px;
  color: var(--ag-primary-dark);
  margin: 0;
}

.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.doc-preview {
  padding: 28px 32px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ag-text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 65vh;
  overflow-y: auto;
  font-family: inherit;
}

.ag-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ag-primary-dark);
  color: var(--ag-white);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.ag-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .product-showcase { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-tab { width: auto; flex: 1 1 auto; min-width: 140px; }
}

@media (max-width: 768px) {
  .page-hero h1 { font-size: 22px; }
  .section-block { padding: 20px; }
  .advantage-grid { grid-template-columns: 1fr; }
  .container { padding: 24px 16px 40px; }
}
