/* AVIF 转换器共享样式：首页（PNG）与 /avif-to-jpeg/（JPEG）共用。 */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --green: #059669;
    --green-dark: #047857;
    --green-light: #d1fae5;
    --green-pale: #ecfdf5;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg: #fafcf9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03);
    --radius: 16px;
    --radius-sm: 10px;
    --max-w: 720px;
  }

  html { scroll-behavior: smooth; font-size: 17px; }

  body {
    font-family: 'Nunito', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  main { display: block; }

  h1, h2, h3 {
    font-family: 'Nunito', -apple-system, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
  }
  h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; }
  h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); line-height: 1.25; font-weight: 700; }
  h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

  /* --- Hero Tool Section --- */
  #hero-tool {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 24px) clamp(32px, 6vw, 56px);
    text-align: center;
  }

  .hero-title {
    animation: fadeInUp 0.6s 0.1s ease both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: clamp(12px, 2vw, 18px) auto 0;
    max-width: 460px;
    animation: fadeInUp 0.6s 0.2s ease both;
    line-height: 1.55;
  }

  /* --- Convert Container: all states share this space --- */
  .convert-container {
    position: relative;
    margin-top: clamp(24px, 4vw, 36px);
    animation: fadeInUp 0.6s 0.3s ease both;
  }

  .convert-state {
    display: none;
  }
  .convert-state.active {
    display: block;
    animation: fadeInUp 0.3s ease both;
  }

  /* --- Drop Zone --- */
  #drop-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: clamp(36px, 6vw, 56px) clamp(20px, 3vw, 32px);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
    box-shadow: var(--shadow-sm);
    outline: none;
  }
  #drop-zone:hover,
  #drop-zone:focus-within {
    border-color: var(--green);
    background: var(--green-pale);
    box-shadow: var(--shadow-md);
  }
  #drop-zone.drag-over {
    border-color: var(--green);
    background: var(--green-pale);
    box-shadow: var(--shadow-lg);
    transform: scale(1.01);
  }

  .drop-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--green-pale);
    border-radius: 50%;
    position: relative;
    transition: background 0.25s;
  }
  .drop-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--green);
    -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>") center/28px no-repeat;
    mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>") center/28px no-repeat;
  }
  .drop-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 6px;
  }
  .drop-hint {
    color: var(--text-muted);
    font-size: 0.92rem;
  }
  .btn-file {
    /* 行内按钮：左右内边距会在 "or" 与 "browse your files" 之间撑出一块空白，
       这里只保留文字本身，点击热区由整个拖放区承担。 */
    display: inline;
    padding: 0;
    background: none;
    color: var(--green-dark);
    border: none;
    border-radius: 99px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
  }
  .btn-file:hover { color: var(--green); }
  .btn-file:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

  #file-input { display: none; }

  .trust-marks {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 36px);
    margin-top: 20px;
    flex-wrap: wrap;
  }
  .trust-mark {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--text-muted);
  }
  .trust-mark .mark-icon {
    width: 20px;
    height: 20px;
    background: var(--green);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
  }
  .trust-mark .mark-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
    mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
  }

  /* --- Result Section --- */
  #state-result {
    text-align: center;
  }

  .result-label {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--green-dark);
    margin-bottom: 20px;
  }
  .preview-row {
    display: flex;
    gap: clamp(16px, 3vw, 28px);
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
  }
  .preview-card {
    flex: 1 1 220px;
    max-width: 300px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-md);
  }
  .preview-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .preview-card img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    image-rendering: auto;
    background: #f8fafc;
  }
  .preview-card .size {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
  }
  .preview-arrow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--green);
    flex-shrink: 0;
    padding-top: 40px;
  }

  .result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 24px;
    border-radius: 99px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
  }
  .btn-primary {
    background: var(--green-dark);
    color: #fff;
    box-shadow: 0 2px 10px rgba(5,150,105,0.3);
  }
  .btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
  .btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
  .btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
  }
  .btn-secondary:hover { border-color: var(--green); color: var(--green); }

  /* --- Error State --- */
  .error-msg {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #991b1b;
    font-size: 0.92rem;
    text-align: left;
  }
  .error-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

  /* --- Toast Warning (overlays the container) --- */
  .toast-warning {
    display: none;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: calc(100% - 16px);
    padding: 10px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    color: #92400e;
    font-size: 0.86rem;
    text-align: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
  }
  .toast-warning.visible { display: block; }

  /* --- How It Works --- */
  #how-it-works {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(36px, 6vw, 60px) clamp(16px, 4vw, 24px);
    text-align: center;
  }
  #how-it-works h2 {
    margin-bottom: clamp(24px, 4vw, 36px);
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(20px, 4vw, 32px);
  }
  .step {
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 28px) 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-pale);
    color: var(--green-dark);
    font-family: 'Nunito', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .step h3 { margin-bottom: 6px; }
  .step p { color: var(--text-secondary); font-size: 0.9rem; }

  /* --- FAQ --- */
  #faq {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(36px, 6vw, 60px) clamp(16px, 4vw, 24px);
  }
  #faq h2 { text-align: center; margin-bottom: clamp(24px, 4vw, 36px); }

  .faq-list { display: flex; flex-direction: column; gap: 12px; }

  .faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow 0.25s;
  }
  .faq-item:hover { box-shadow: var(--shadow-sm); }

  .faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    line-height: 1.45;
  }
  .faq-q .faq-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: transform 0.3s;
  }
  .faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--green); }

  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .faq-item.open .faq-a {
    max-height: 600px;
  }
  .faq-a-inner {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
  }
  .faq-a-inner p + p { margin-top: 10px; }

  /* --- Footer --- */
  footer {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px) 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: var(--text-muted);
  }
  footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
  footer a:hover { color: var(--green); }

  /* --- Backlink Section --- */
  .backlink-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px) clamp(32px, 4vw, 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
  }
  .backlink-section a {
    display: inline-flex;
    align-items: center;
    opacity: 0.65;
    transition: opacity 0.2s;
  }
  .backlink-section a:hover { opacity: 1; }

  /* --- Affiliate --- */
  .affiliate-bar {
    max-width: 480px;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: var(--green-pale);
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    color: var(--text-secondary);
    text-align: center;
  }
  .affiliate-bar a { color: var(--green-dark); font-weight: 600; }

  /* --- Loading spinner --- */
  .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--green-pale);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
  }
  .spinner-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
  }

  /* --- Animations --- */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* --- Responsive --- */
  @media (max-width: 640px) {
    .preview-arrow { padding-top: 0; transform: rotate(90deg); }
    .preview-row { flex-direction: column; align-items: center; }
    .steps { grid-template-columns: 1fr; }
    .trust-marks { gap: 14px; }
  }

  /* --- Reduced motion --- */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

  /* --- Batch Mode --- */
  .batch-trigger {
    margin-top: 16px;
    text-align: center;
  }
  .batch-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .batch-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
  }
  .batch-divider::before,
  .batch-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  .btn-batch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 99px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--green);
    background: var(--white);
    color: var(--green-dark);
    transition: all 0.2s;
  }
  .btn-batch:hover {
    background: var(--green-pale);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  .btn-batch:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
  }

.batch-hint {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
  }
  .batch-progress {
    display: none;
    text-align: center;
    padding: 24px 0;
    margin-top: 20px;
  }
  .batch-progress.visible {
    display: block;
    animation: fadeInUp 0.3s ease both;
  }
  .batch-progress .spinner {
    margin: 0 auto 12px;
  }
  .batch-progress-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
  }

  /* --- Batch Results --- */
  .batch-results {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px) clamp(32px, 4vw, 40px);
  }
  .batch-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .batch-results-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
  }
  .batch-results-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
  }
  .batch-results-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .batch-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .batch-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.4s ease both;
  }
  .batch-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .batch-item-filename {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    word-break: break-all;
  }
  .batch-item-status {
    font-size: 0.84rem;
    color: var(--green-dark);
    font-weight: 600;
  }
  .batch-item .preview-row {
    gap: clamp(12px, 2vw, 20px);
  }
  .batch-item .preview-card {
    flex: 1 1 180px;
    max-width: 260px;
    padding: 12px;
  }
  .batch-item .preview-card img {
    max-height: 300px;
  }
  .batch-item .result-actions {
    margin-top: 16px;
    gap: 8px;
  }
  .batch-item .result-actions .btn {
    padding: 8px 16px;
    font-size: 0.88rem;
  }
  .batch-item .preview-arrow {
    padding-top: 30px;
  }

  @media (max-width: 640px) {
    .batch-item .preview-row {
      flex-direction: column;
      align-items: center;
    }
    .batch-item .preview-arrow {
      padding-top: 0;
      transform: rotate(90deg);
    }
    .batch-results-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  /* --- Shared additions: comparison table, cross link, FAQ lists --- */
  .content-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(36px, 6vw, 60px) clamp(16px, 4vw, 24px);
  }
  .content-section h2 { text-align: center; margin-bottom: clamp(20px, 3vw, 28px); }
  .content-section > p { color: var(--text-secondary); margin-top: 12px; }
  /* 章节内的小标题默认只有 1rem 且无上边距，紧贴上一段时会被读成正文里的一句加粗话；
     列表的圆点默认悬在文本列之外，因此在章节语境里补上间距与缩进。 */
  .content-section h3 { margin: clamp(20px, 3vw, 28px) 0 6px; }
  .content-section ul { margin: 12px 0 0 22px; padding: 0; }
  .content-section ul li { color: var(--text-secondary); margin-top: 8px; }
  .table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.92rem;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
  }
  .compare-table th { background: var(--green-pale); color: var(--green-dark); font-weight: 700; }
  .compare-table tr:last-child td { border-bottom: none; }
  .compare-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
  .cross-link { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px) clamp(36px, 6vw, 56px); }
  .cross-link-inner {
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--shadow-sm);
    text-align: center;
  }
  .cross-link-inner p { color: var(--text-secondary); margin-bottom: 14px; }
  .faq-a-inner ul,
  .faq-a-inner ol { margin: 8px 0 0 22px; padding: 0; }
  .faq-a-inner li { margin-top: 4px; }
  /* --- Related converters (bottom nav, outside main) --- */
  .related-tools {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 36px) clamp(16px, 4vw, 24px) 8px;
    border-top: 1px solid var(--border);
  }
  .related-tools-title {
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .related-tools-list { display: grid; gap: 12px; }
  .related-tool {
    display: block;
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  .related-tool:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
  }
  .related-tool:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
  .related-tool-name { display: block; font-weight: 700; color: var(--text); }
  .related-tool-desc {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
    color: var(--text-secondary);
  }

  @media (max-width: 520px) {
    .compare-table th,
    .compare-table td { padding: 10px 12px; }
  }

/* 引擎主题专用样式：与老站 assets/avif-converter.css 分开写，
   由 tools/sync-theme-css.mjs 拼成 theme/style.css。
   这样「老站原有的」和「迁移新增的」一眼可分。 */

/* ---------- 法务页（隐私政策 / 条款）----------
   老站这两页有自己的内联样式表（720px 容器 + 一套更小的字号阶梯 + .back-link），
   迁移时那一段没有跟着走，结果落到转换器样式表的基础排版上：标题明显偏大、链接没有样式。
   这里按老站那套数值搬回来，全部收在 .doc 下，不影响工具页。 */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 60px) clamp(16px, 4vw, 24px) clamp(48px, 8vw, 72px);
  text-align: left;
  line-height: 1.7;
}
.doc h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.doc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 6px;
}
.doc h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
}
.doc p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 10px;
}
.doc em {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.doc ul, .doc ol {
  margin: 10px 0;
  padding-left: 22px;
}
.doc li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-top: 8px;
}
.doc a { color: var(--green-dark); }
.doc a:hover { color: var(--green); }
.doc .back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.doc .back-link:hover { color: var(--green); text-decoration: underline; }

/* ---------- 工具页面包屑 ----------
   一条轻量导航，不加卡片和阴影（按待办 i_dc241d04 的要求）。 */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 4vw, 24px) 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-dark); text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.6; }
.breadcrumb [aria-current='page'] { color: var(--text); }

/* ---------- 手机首屏（待办 i_0127065059784a）----------
   390×844 下首页 H1 占三行，把拖拽区压到屏幕底部，批量按钮完全看不到；
   首屏看不到「能用」是工具站最贵的转化损失。只动手机断点，桌面端不受影响。 */
@media (max-width: 640px) {
  #hero-tool {
    padding-top: 14px;
    padding-bottom: clamp(20px, 5vw, 32px);
  }
  #hero-tool h1 {
    font-size: 1.6rem;
    max-width: 90vw;
    margin: 0 auto;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    margin-top: 8px;
    max-width: 100%;
  }
  .convert-container { margin-top: 16px; }
  #drop-zone { padding: 26px 16px; }
  .drop-hint {
    line-height: 1.8;
    padding: 0 8px;
  }
  .drop-hint .btn-file { margin-top: 4px; }
  .batch-trigger { margin-top: 12px; }
}

/* 三张步骤卡片底部对齐（同一条待办）：等高是 grid 默认行为，
   这里让卡片里的文字块贴底，避免内容短的那张在下方留一块空白。 */
@media (min-width: 641px) {
  .steps { align-items: stretch; }
  .step { justify-content: space-between; }
  .step h3 { margin: 8px 0 6px; }
  .step p { margin: 0; }
}
