@charset "utf-8";
/* ===== Tutorial 页专用 ===== */
    .step-section { margin-bottom: 38px; }

    .step-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      display: grid;
      grid-template-columns: 60px 1fr;
      gap: 24px;
      transition: box-shadow var(--transition), border-color var(--transition);
    }
    .step-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
    }
    .step-number {
      width: 56px; height: 56px;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; font-weight: 800; color: #fff;
      flex-shrink: 0; align-self: start;
    }
    .step-body h3 {
      font-size: 17px; font-weight: 700;
      color: var(--text-primary); margin-bottom: 8px;
    }
    .step-body p {
      font-size: 14px; color: var(--text-secondary);
      line-height: 1.75; margin-bottom: 14px;
    }
    .step-body p strong { color: var(--text-primary); }

    .step-guide {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px 20px;
      font-size: 13.5px;
      color: var(--text-secondary);
      line-height: 1.8;
    }
    .step-guide strong { color: var(--text-primary); font-weight: 600; }
    .step-guide code {
      background: var(--border-light);
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 12.5px;
      font-family: 'SF Mono', Consolas, monospace;
      color: var(--primary-dark);
    }
    .step-guide a { color: var(--primary); font-weight: 500; }
    .step-guide a:hover { text-decoration: underline; }
    .step-guide ol { padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 6px; margin: 0; }
    .step-guide ul { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; }

    .step-tip {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(102,126,234,0.06);
      border: 1px solid rgba(102,126,234,0.15);
      border-radius: var(--radius);
      padding: 6px 14px;
      font-size: 12.5px; color: var(--text-secondary);
      margin-top: 12px;
    }
    .step-tip strong { color: var(--primary); }

    .guide-divider {
      display: flex; align-items: center; gap: 16px;
      margin: 0 0 38px;
      color: var(--text-muted); font-size: 13px;
    }
    .guide-divider::before,
    .guide-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }

    .toc-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 10px;
      margin-bottom: 36px;
    }
    .toc-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px 18px;
      display: flex; align-items: center; gap: 12px;
      text-decoration: none;
      transition: all var(--transition);
    }
    .toc-card:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-sm);
      transform: translateY(-1px);
    }
    .toc-num {
      width: 32px; height: 32px;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; font-weight: 800; color: #fff;
      flex-shrink: 0;
    }
    .toc-text { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* ===== comparison 页专用 ===== */
/* ===== Comparison 页专用 ===== */
    .comp-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 24px 28px;
      margin-bottom: 16px;
      transition: box-shadow var(--transition), border-color var(--transition);
    }
    .comp-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
    }

    /* 对比表格 */
    .comp-table-wrap {
      overflow-x: auto;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      margin-bottom: 36px;
    }
    .comp-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13.5px;
    }
    .comp-table thead tr {
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      color: #fff;
    }
    .comp-table th {
      padding: 13px 16px;
      font-weight: 600;
      text-align: left;
      white-space: nowrap;
      vertical-align: top;
    }
    .comp-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
    .comp-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
    .comp-table td {
      padding: 11px 16px;
      border-bottom: 1px solid var(--border-light);
      color: var(--text-secondary);
      vertical-align: top;
    }
    .comp-table tbody tr:last-child td { border-bottom: none; }
    .comp-table tbody tr:hover td { background: rgba(102,126,234,0.03); }

    /* 高亮列：Clash Verge Rev */
    .comp-table .col-highlight {
      background: rgba(102,126,234,0.05);
    }
    .comp-table thead .col-highlight {
      background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    }
    .comp-table .col-highlight td { color: var(--text-primary); font-weight: 500; }

    .comp-table .badge-rev {
      display: inline-block;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 10px;
      vertical-align: middle;
      margin-left: 6px;
    }

    .comp-table .cell-check { color: var(--success); font-weight: 700; }
    .comp-table .cell-cross { color: var(--text-muted); }
    .comp-table .cell-warn { color: var(--warning); font-weight: 600; font-size: 11px; }

    .comp-table .feature-name {
      font-weight: 600;
      color: var(--text-primary);
      white-space: nowrap;
    }

    /* 客户端卡片 */
    .client-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 14px;
      margin-bottom: 36px;
    }
    .client-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px 22px;
      transition: all var(--transition);
    }
    .client-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
      transform: translateY(-2px);
    }
    .client-card.is-rev {
      border-color: var(--primary);
      background: rgba(102,126,234,0.03);
    }
    .client-card .cc-name {
      font-size: 15px; font-weight: 700;
      color: var(--text-primary); margin-bottom: 4px;
      display: flex; align-items: center; gap: 8px;
    }
    .client-card .cc-tag {
      font-size: 10px; font-weight: 700;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      color: #fff; padding: 2px 8px;
      border-radius: 10px;
    }
    .client-card .cc-tag.discontinued {
      background: var(--text-muted);
    }
    .client-card .cc-tag.active {
      background: var(--success);
    }
    .client-card .cc-platform {
      font-size: 12px; color: var(--text-muted); margin-bottom: 8px;
    }
    .client-card .cc-desc {
      font-size: 12.5px; color: var(--text-secondary); line-height: 1.6;
    }

    /* Verdict */
    .verdict-box {
      background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.06));
      border: 1px solid rgba(102,126,234,0.2);
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      text-align: center;
    }
    .verdict-title {
      font-size: 20px; font-weight: 800;
      color: var(--text-primary); margin-bottom: 8px;
    }
    .verdict-text {
      font-size: 14.5px; color: var(--text-secondary);
      line-height: 1.8; max-width: 600px; margin: 0 auto;
    }
    .verdict-text strong { color: var(--primary); }

/* ===== features 页专用 ===== */
/* ===== Features 页专用样式 ===== */
    .feature-section { margin-bottom: 32px; }

    .feature-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      transition: box-shadow var(--transition), border-color var(--transition);
    }
    .feature-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
    }

    .feature-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 14px;
    }
    .feature-icon {
      width: 44px; height: 44px;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; flex-shrink: 0;
    }
    .feature-title {
      font-size: 18px; font-weight: 700;
      color: var(--text-primary); margin: 0;
    }

    .feature-desc {
      font-size: 14.5px; color: var(--text-secondary);
      line-height: 1.8; margin-bottom: 16px;
    }
    .feature-desc strong { color: var(--text-primary); }

    .feature-list {
      list-style: none;
      display: flex; flex-direction: column; gap: 8px;
    }
    .feature-list li {
      font-size: 14px; color: var(--text-secondary);
      padding-left: 20px; position: relative; line-height: 1.6;
    }
    .feature-list li::before {
      content: '✓';
      position: absolute; left: 0;
      color: var(--success); font-weight: 700;
    }

    /* 协议网格 */
    .proto-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 10px;
      margin-top: 14px;
    }
    .proto-item {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 12px 16px;
    }
    .proto-name {
      display: block;
      font-weight: 700; font-size: 13px;
      color: var(--primary);
      font-family: 'SF Mono', Consolas, monospace;
      margin-bottom: 4px;
    }
    .proto-desc {
      font-size: 12px; color: var(--text-muted); line-height: 1.5;
    }

    /* 对比表 */
    .compare-table-wrap {
      overflow-x: auto;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
    }
    .compare-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13.5px;
    }
    .compare-table thead tr {
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      color: #fff;
    }
    .compare-table th {
      padding: 12px 16px;
      font-weight: 600;
      text-align: left;
      white-space: nowrap;
    }
    .compare-table td {
      padding: 11px 16px;
      border-bottom: 1px solid var(--border-light);
      color: var(--text-secondary);
    }
    .compare-table tbody tr:last-child td { border-bottom: none; }
    .compare-table tbody tr:hover td { background: var(--border-light); }
    .highlight-cell {
      color: var(--success); font-weight: 600;
    }

/* ===== changelog 页专用 ===== */
/* ===== Changelog 专用 ===== */
    .changelog-list { display: flex; flex-direction: column; gap: 24px; }

    .changelog-entry {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: box-shadow var(--transition);
    }
    .changelog-entry:hover { box-shadow: var(--shadow-md); }

    .changelog-header {
      display: flex; align-items: center; gap: 14px;
      padding: 18px 24px;
      background: var(--bg);
      border-bottom: 1px solid var(--border-light);
    }
    .changelog-version {
      font-size: 15px; font-weight: 800;
      color: var(--primary);
      font-family: 'SF Mono', Consolas, monospace;
    }
    .changelog-date {
      font-size: 12.5px; color: var(--text-muted);
      margin-left: auto;
    }
    .changelog-tag {
      font-size: 11px; font-weight: 700;
      padding: 3px 10px; border-radius: 10px;
    }
    .tag-major {
      background: rgba(102,126,234,0.12);
      color: var(--primary);
      border: 1px solid rgba(102,126,234,0.2);
    }
    .tag-minor {
      background: rgba(5,150,105,0.1);
      color: #059669;
      border: 1px solid rgba(5,150,105,0.2);
    }
    .tag-fix {
      background: rgba(245,158,11,0.1);
      color: #d97706;
      border: 1px solid rgba(245,158,11,0.2);
    }
    .tag-security {
      background: rgba(239,68,68,0.1);
      color: #dc2626;
      border: 1px solid rgba(239,68,68,0.2);
    }

    .changelog-body { padding: 18px 24px 22px; }

    .changelog-type {
      font-size: 12px; font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 10px;
    }
    .changelog-ul {
      list-style: none;
      display: flex; flex-direction: column; gap: 7px;
      padding: 0; margin: 0;
    }
    .changelog-ul li {
      font-size: 13.5px; color: var(--text-secondary);
      line-height: 1.65;
      padding-left: 18px; position: relative;
    }
    .changelog-ul li::before {
      content: '•'; position: absolute; left: 4px;
      color: var(--primary); font-weight: 700;
    }
    .changelog-ul li strong { color: var(--text-primary); font-weight: 600; }
    .changelog-ul li code {
      background: var(--border-light);
      padding: 1px 5px; border-radius: 4px;
      font-size: 12px; font-family: 'SF Mono', Consolas, monospace;
    }

    .changelog-sections { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; }

    .section-sep {
      display: grid; grid-template-columns: auto 1fr;
      gap: 0 20px; margin-top: 14px;
    }
    .section-sep + .section-sep { margin-top: 10px; }

    .changelog-type { margin-bottom: 6px; }

/* ===== faq 页专用 ===== */
/* 版本卡片（faq 页独有，保留内联） */
    .ver-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
      margin-top: 12px;
    }
    .ver-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px 16px;
    }
    .ver-card .ver-name {
      font-weight: 700;
      color: var(--text-primary);
      font-size: 14px;
      margin-bottom: 4px;
    }
    .ver-card .ver-arch {
      font-size: 12px;
      color: var(--text-muted);
    }

    /* 快捷导航 */
    .faq-toc {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 24px;
      margin-bottom: 36px;
    }
    .faq-toc-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .faq-toc-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      list-style: none;
    }
    .faq-toc-list a {
      display: inline-block;
      padding: 5px 14px;
      background: var(--border-light);
      border: 1px solid var(--border);
      border-radius: 20px;
      font-size: 13px;
      color: var(--text-secondary);
      font-weight: 500;
      transition: all var(--transition);
    }
    .faq-toc-list a:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

/* ===== android 页专用 ===== */
.client-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--primary); font-weight: 600; font-size: 13.5px; }
    .client-link:hover { text-decoration: underline; }

/* ===== ios 页专用 ===== */
.client-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--primary); font-weight: 600; font-size: 13.5px; }
    .client-link:hover { text-decoration: underline; }
