/* ===== CSS Reset & Base Styles ===== */
:root {
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --secondary-color: #14b8a6;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-color: #ffffff;
    --bg-light: #f0fdfa;
    --border-color: #ccfbf1;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.16);
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --transition: all 0.2s ease;
    --max-width: 1200px;
    --max-width-lg: 1400px;
    --max-width-xl: 1600px;
    --container-padding: 20px;
    --container-max-width: var(--max-width);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* 长复合词在窄屏撑破容器：德语的 "Massenverarbeitung"、荷兰语与土耳其语同理。
   body 的 overflow-x: hidden 只会把它裁掉（读者看不全标题），所以要允许断行。
   overflow-wrap 可继承，设在 body 上才不会漏掉 div/span 这类没有语义标签的文本容器；
   只在单词本身超过容器时才生效，正常排版不受影响。
   pre 例外：命令必须保持原样，靠自身的 overflow-x: auto 横向滚动。 */
body {
    overflow-wrap: break-word;
}

pre {
    overflow-wrap: normal;
}

/* 上面那条只让长词「能」断行，还不够：grid/flex item 的 min-width 默认是 auto，
   宽度不会小于 min-content，长词仍会把列宽顶开、把整页撑出横向滚动。
   站内所有卡片网格的直接子项统一允许收缩——两条规则要一起才生效。
   新增卡片网格时把容器加进这个列表，否则窄屏 + 长词又会溢出。 */
.features-grid > *,
.steps-container > *,
.key-features-list > *,
.use-cases-grid > *,
.blog-card-grid > *,
.example-grid > *,
.settings-grid > *,
.hero-steps > *,
.start-end-bridge-step-grid > *,
.start-end-bridge-use-case-grid > * {
    min-width: 0;
}

body.nav-open {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Navigation ===== */
.navbar {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

.logo-image {
    object-fit: contain;
}

.brand-text {
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    flex: 1;
    margin-left: 20px;
    align-items: center;
    gap: 28px;
}

.nav-menu > li {
    position: relative;
}

.nav-tools {
    flex-shrink: 0;
}

.nav-blog-link {
    margin-left: auto;
}

.nav-utility-slot {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 16px;
}

.nav-utility-slot:empty {
    display: none;
}

.nav-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
    color: var(--primary-color);
}

.nav-dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
    padding: 12px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1002;
}

.nav-dropdown.is-open .nav-submenu {
    display: flex;
}

.nav-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-color);
}

.nav-submenu a:hover {
    background: rgba(74, 158, 255, 0.08);
    color: var(--primary-color);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-dropdown-toggle::after,
.nav-submenu a::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-content {
    max-width: min(1200px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 14px 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-light);
}

/* ===== Content Landing Pages ===== */
.content-page-hero {
    padding: 72px 0 24px;
    background: linear-gradient(180deg, rgba(74, 158, 255, 0.08) 0%, rgba(74, 158, 255, 0) 100%);
}

.content-page-hero-inner {
    max-width: 820px;
}

.content-page-kicker {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.content-page-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.content-page-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.content-page-section {
    padding: 32px 0 56px;
}

.content-page-section-alt {
    background: #f8fafc;
}

/* ===== Start and End Frames to Video Bridge ===== */
.nav-feature-link {
    white-space: nowrap;
}

.start-end-bridge-hero {
    padding-bottom: 72px;
}

.start-end-bridge-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.start-end-bridge-hero .content-page-hero-inner {
    max-width: 700px;
}

.start-end-bridge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.start-end-bridge-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.start-end-bridge-trust span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(8, 145, 178, 0.22);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.08);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.start-end-bridge-visual {
    margin: 0;
}

.start-end-bridge-visual img {
    display: block;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.start-end-bridge-visual figcaption {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.start-end-bridge-prose {
    max-width: 860px;
}

.start-end-bridge-prose h2 {
    margin-bottom: 20px;
}

.start-end-bridge-prose > p {
    color: var(--text-light);
    line-height: 1.85;
}

.start-end-bridge-prose > p + p {
    margin-top: 20px;
}

.start-end-answer {
    color: var(--text-color) !important;
    font-size: 1.15rem;
    font-weight: 700;
}

.start-end-bridge-section-alt {
    padding: 88px 0;
    background: #f8fafc;
}

.start-end-bridge-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.start-end-bridge-step-grid .step-card {
    height: 100%;
}

.features-grid.start-end-bridge-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.start-end-bridge-use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.start-end-bridge-use-case-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    box-shadow: var(--shadow);
}

.start-end-bridge-use-case-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.start-end-bridge-use-case-card > div {
    padding: 24px;
}

.start-end-bridge-use-case-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.15rem;
}

.start-end-bridge-use-case-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.start-end-bridge-cta {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(20, 184, 166, 0.08));
}

.start-end-bridge-cta .cta-note {
    margin-top: 4px;
}

/* This page is a content handoff, not an interactive card gallery. Keep its
   explanatory blocks visible on first paint instead of waiting for the global
   scroll-animation observer to change inline opacity. */
body.start-end-bridge-page .feature-card,
body.start-end-bridge-page .step-card,
body.start-end-bridge-page .faq-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.frame-to-video-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 32px auto;
    padding: 20px 24px;
    max-width: 980px;
    border: 1px solid rgba(8, 145, 178, 0.25);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(20, 184, 166, 0.08));
}

.frame-to-video-cta > div {
    display: grid;
    gap: 4px;
}

.frame-to-video-cta strong {
    color: var(--text-color);
}

.frame-to-video-cta span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.blog-card-grid-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 158, 255, 0.25);
}

.blog-card-kicker {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.3rem;
}

.blog-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.blog-card-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 700;
}

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

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

.btn-secondary {
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.125rem;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
    color: var(--text-color);
    padding: 60px 0 80px;
    text-align: center;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-color);
}

.hero-title .highlight {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 12px;
    color: var(--primary-color);
}

/* Hero H2 */
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Description Paragraph */
.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Hero Tool Interface ===== */
.hero-tool {
    max-width: 100%;
    margin: 0 auto;
}

/* Upload Area */
.hero-tool .upload-area {
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.hero-tool .upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-tool .upload-area.drag-over {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.hero-tool .upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.hero-tool .upload-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.hero-tool .upload-subtext {
    color: var(--text-light);
    font-size: 1rem;
}

/* Privacy Notice */
/* Hero 3-step guide (AdSense ADS-UX-02: make the purpose readable in 3 seconds) */
.hero-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 28px auto 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.hero-step {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: start;
    gap: 10px;
    padding: 16px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.hero-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-step-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.hero-step-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hero-step-body strong {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-color);
}

.hero-step-body span {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-light);
}

.privacy-notice {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 32px;
    padding: 0 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    white-space: nowrap;
}

.privacy-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Privacy Notice H3 */
.privacy-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Example Videos */
.example-videos {
    text-align: center;
}

.example-videos h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-color);
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
}

/* Single card layout - centered */
.example-grid>.example-card:only-child {
    max-width: 400px;
    margin: 0 auto;
    grid-column: 1 / -1;
}

.example-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.example-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.example-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.example-thumbnail svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.example-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.example-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Legacy Hero Features (kept for backward compatibility) */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

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

.hero-cta .btn-primary:hover {
    background: var(--primary-dark);
}

.hero-cta .btn-secondary {
    background: white;
    color: var(--text-color);
    border-color: var(--border-color);
}

.hero-cta .btn-secondary:hover {
    background: var(--bg-light);
}

.hero-features {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feature-badge svg {
    width: 18px;
    height: 18px;
}

/* ===== Tool Section ===== */
.tool-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.tool-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tool-header {
    padding: 40px;
    text-align: center;
    background: var(--bg-light);
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.tool-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.upload-area {
    padding: 60px 40px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: white;
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: white;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.upload-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.upload-subtext {
    color: var(--text-light);
    font-size: 1rem;
}

.video-preview {
    padding: 40px;
    background: var(--bg-light);
}

.video-preview video {
    width: 100%;
    max-height: 500px;
    background: black;
    border-radius: var(--border-radius-sm);
}

.frame-controls {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.frame-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.btn-frame-control {
    padding: 12px 18px;
}

.frame-fps-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.frame-fps-control label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.frame-fps-control input {
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

.frame-fps-control input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.frame-readouts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.frame-readout {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 500;
}

.extraction-settings {
    padding: 40px;
}

/* ===== Time Range Selection ===== */
.time-range-section {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.time-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    position: relative;
    width: 52px;
    height: 32px;
    appearance: none;
    background: #cbd5e1;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.toggle-label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-label input[type="checkbox"]:checked {
    background: var(--primary-color);
}

.toggle-label input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.toggle-label input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.toggle-text {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.time-range-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.time-range-content.active {
    max-height: 300px;
    opacity: 1;
    margin-top: 24px;
}

.time-range-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.time-display-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.time-display-values {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.time-separator {
    color: var(--text-light);
}

.time-duration {
    margin-left: auto;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.range-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.btn-reset-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 44px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-range:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-reset-range:active {
    transform: scale(0.98);
}

.range-slider-container {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    appearance: none;
    pointer-events: none;
    cursor: pointer;
    inset: 0;
    z-index: 3;
}

.range-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent;
    border: none;
}

.range-slider::-moz-range-track {
    height: 8px;
    background: transparent;
    border: none;
}

.range-slider::-moz-range-progress {
    height: 8px;
    background: transparent;
    border: none;
}

/* Enhanced slider thumb styles - large white circle with directed chevrons */
.range-slider::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-top: -12px; /* (32px - 8px) / 2 = -12px - centers thumb on track */

    /* Icons < > */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 18l-6-6 6-6'/%3E%3Cpath d='M13 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.range-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(8, 145, 178, 0.1);
    transform: scale(1.05);
}

.range-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(8, 145, 178, 0.2);
    transform: scale(1.02);
}

.range-slider::-moz-range-thumb {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-top: -12px; /* (32px - 8px) / 2 = -12px - centers thumb on track */

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 18l-6-6 6-6'/%3E%3Cpath d='M13 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.range-slider::-moz-range-thumb:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(8, 145, 178, 0.1);
    transform: scale(1.05);
}

.range-slider::-moz-range-thumb:active {
    cursor: grabbing;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(8, 145, 178, 0.2);
    transform: scale(1.02);
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.range-slider-fill {
    position: absolute;
    height: 8px;
    background: var(--primary-color);
    border-radius: 9999px;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* Quality Slider Styles */
.quality-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quality-slider-container {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

/* Quality slider uses same styles as range slider */
.quality-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    appearance: none;
    pointer-events: none;
    cursor: pointer;
    inset: 0;
    z-index: 3;
}

/* Quality slider thumb - matching time range slider style */
.quality-slider::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-top: -12px; /* (32px - 8px) / 2 = -12px - centers thumb on track */

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 18l-6-6 6-6'/%3E%3Cpath d='M13 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.quality-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(8, 145, 178, 0.1);
    transform: scale(1.05);
}

.quality-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(8, 145, 178, 0.2);
    transform: scale(1.02);
}

.quality-slider::-moz-range-thumb {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-top: -12px; /* (32px - 8px) / 2 = -12px - centers thumb on track */

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 18l-6-6 6-6'/%3E%3Cpath d='M13 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.quality-slider::-moz-range-thumb:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(8, 145, 178, 0.1);
    transform: scale(1.05);
}

.quality-slider::-moz-range-thumb:active {
    cursor: grabbing;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(8, 145, 178, 0.2);
    transform: scale(1.02);
}

/* Quality slider track */
.quality-slider-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Quality slider fill */
.quality-slider-fill {
    position: absolute;
    height: 8px;
    background: var(--primary-color);
    border-radius: 9999px;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* Quality Slider Marks */
.quality-slider-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    position: relative;
    margin-top: -4px;
}

.quality-mark {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
}

.quality-mark:first-child {
    transform: translateX(0);
}

.quality-mark:last-child {
    transform: translateX(-100%);
}

.quality-mark:nth-child(2) {
    transform: translateX(-50%);
}

/* Quality Display */
.quality-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 4px;
}

.quality-display #qualityValue {
    font-weight: 600;
    color: var(--text-color);
    min-width: 45px;
}

.quality-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Disabled state for PNG format */
.quality-slider-wrapper.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.quality-slider-wrapper.disabled .quality-display {
    color: var(--text-light);
}

.quality-slider-wrapper.disabled .quality-label {
    color: var(--text-light);
}

/* Frame Count Hint */
.frame-count-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive adjustments for time range selector */
@media (max-width: 768px) {
    .time-range-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .time-display-values {
        align-self: flex-start;
    }
}

.extraction-settings h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-color);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.setting-group input,
.setting-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.frames-gallery {
    padding: 40px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.gallery-header h4 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.gallery-tip {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.gallery-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    /* Prevent too many columns on wide screens */
    grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
}

.frame-item {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.frame-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.frame-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.frame-item-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ===== Features Section ===== */
.features-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    /* Center the grid within its container */
    margin: 0 auto;
    /* Ensure equal width columns */
    justify-content: center;
}

.feature-card {
    padding: 32px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.features-grid.related-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ===== How to Use Section ===== */
.how-to-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    /* Center the grid within its container */
    margin: 0 auto;
    /* Ensure equal width columns */
    justify-content: center;
}

.step-card {
    background: white;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.step-card ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-light);
}

.step-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===== Key Features Section ===== */
.key-features-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.key-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    /* Center the grid within its container */
    margin: 0 auto;
}

.key-feature-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    /* grid/flex item 默认 min-width:auto，宽度不能小于内容的 min-content。
       德语等语言的长复合词会把 min-content 推到列宽以上，整页被撑出横向滚动。
       配合全局的 overflow-wrap: break-word，长词才真的能断开。 */
    min-width: 0;
}

.key-feature-item > div {
    min-width: 0;
}

.key-feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.key-feature-item svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.key-feature-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.key-feature-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Use Cases Section ===== */
.use-cases-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    /* Center the grid within its container */
    margin: 0 auto;
    /* Ensure equal width columns */
    justify-content: center;
}

.use-case-card {
    background: white;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.use-case-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.use-case-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.use-case-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.use-case-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.faq-accordion {
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 24px 24px 24px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.faq-item.active .faq-question {
    background: var(--bg-light);
}

/* ===== FAQ Category Tabs ===== */
.faq-tabs-wrapper {
    margin-bottom: 40px;
}

.faq-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.faq-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.faq-tab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.faq-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.faq-tab.active svg {
    color: white;
}

.faq-category {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0;
    background: var(--bg-light);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn-primary {
    background: var(--primary-color);
    color: white;
    margin-bottom: 24px;
}

.cta-content .btn-primary:hover {
    background: var(--primary-dark);
}

.cta-note {
    font-size: 1rem;
    color: var(--text-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(4, minmax(140px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: var(--container-max-width);
}

.footer-brand,
.footer-links {
    min-width: 0;
}

.footer-brand .nav-brand {
    margin-bottom: 16px;
}

.footer-brand .brand-text {
    color: var(--text-color);
}

.footer-brand p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-links h3,
.footer-links h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
}

/* ===== Responsive Design ===== */
/* Large screens (1440px and up) */
@media (min-width: 1440px) {
    :root {
        --container-max-width: var(--max-width-lg);
    }

    /* Hero section can use more width */
    .hero-content {
        max-width: 1000px;
        margin: 0 auto;
    }

    .hero-tool {
        margin: 0 auto;
    }

    /* Navbar matches footer width */
    .navbar .container {
    }

    /* Three-column grids can expand but maintain centering */
    .features-grid,
    .steps-container,
    .use-cases-grid {
        gap: 40px; /* Increase spacing for better visual balance */
    }

    /* Key Features maintains 2x2 layout */
    .key-features-list {
    }

    /* Footer can expand slightly */
    .footer-content {
    }
}

/* Extra large screens (1920px and up) */
@media (min-width: 1920px) {
    :root {
        --container-padding: 40px;
        --container-max-width: var(--max-width-xl);
    }

    /* Hero section can use even more width */
    .hero-content {
        max-width: 1100px;
        margin: 0 auto;
    }

    .hero-tool {
        margin: 0 auto;
    }

    /* Navbar matches footer width */
    .navbar .container {
    }

    /* Three-column grids maintain centering with wider max-width */
    .features-grid,
    .steps-container,
    .use-cases-grid {
        gap: 48px; /* Even more spacing for large screens */
    }

    /* Key Features maintains 2x2 layout - IMPORTANT */
    .key-features-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* FAQ accordion can be wider */
    .faq-accordion {
        margin: 0 auto;
    }

    /* Gallery grid can have more columns */
    .frames-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 250px));
        gap: 20px;
    }

    /* Footer can expand more */
    .footer-content {
        gap: 48px;
    }
}

/* Ultra-wide screens (2560px and up) */
@media (min-width: 2560px) {
    :root {
        --container-max-width: 90%;
    }

    /* Limit text content width for readability */
    .hero-content,
    .section-header,
    .cta-content {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Tool interface can use full width */
    .hero-tool {
        margin: 0 auto;
    }

    /* Navbar matches footer width */
    .navbar .container {
    }

    /* Three-column grids maintain centering but can expand */
    .features-grid,
    .steps-container,
    .use-cases-grid {
        gap: 56px; /* Maximum spacing for ultra-wide screens */
    }

    /* Keep Features and Use Cases at 3 columns on ultra-wide */
    .features-grid,
    .steps-container,
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid.related-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Key Features maintains 2x2 layout - CRITICAL */
    .key-features-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* FAQ accordion wider */
    .faq-accordion {
        margin: 0 auto;
    }

    /* Footer can expand to ultra-wide */
    .footer-content {
        gap: 56px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-title .highlight {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Three-column grids switch to 2 columns on tablets */
    .features-grid,
    .steps-container,
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Footer switches to 2 columns on tablets */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* FAQ Responsive */
    .faq-question {
        padding: 20px;
    }

    .faq-question span {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }

    /* Hero Tool Responsive */
    .example-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Navbar switches to horizontal layout with hamburger menu.

       品牌 + 汉堡按钮 + 工具槽的固有宽度之和超过容器时，flex 不换行也不收缩，
       会把 document 撑宽并产生整页横向滚动（AdSense ADS-UX-01 移动端可用性）。
       两道防线：缩小间距与品牌字号让它正常放得下；再让品牌可收缩 + 省略号，
       保证任何更窄的屏幕也只是截断品牌名，而不是撑破页面。 */
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 6px;
    }

    .nav-brand {
        flex: 0 1 auto;
        min-width: 0;
        gap: 6px;
        /* 1rem 是让 "VideoToFrames" 在 375px 下完整显示的上限：
           品牌 149 + 汉堡 44 + 工具槽 121 + gap 12 = 326，容器内宽 335，余 9px。
           调大字号或往工具槽里加东西，品牌就会被省略号截断。 */
        font-size: 1rem;
    }

    .brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .nav-utility-slot {
        flex: 0 0 auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100dvh;
        margin-left: 0;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 96px 24px 48px;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-menu > li {
        width: 100%;
        max-width: 320px;
    }

    .nav-blog-link {
        margin-left: 0;
        margin-right: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    body.nav-open .nav-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }

    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .nav-dropdown-toggle {
        justify-content: center;
        min-height: 44px;
        width: 100%;
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        width: 100%;
    }

    .nav-submenu a {
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 36px 0 40px;
    }

    .content-page-hero {
        padding: 52px 0 16px;
    }

    .blog-card-grid,
    .blog-card-grid-tools {
        grid-template-columns: 1fr;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
    }

    .hero-tool {
        order: 1;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
        text-wrap: balance;
    }

    .hero-title .highlight {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 12px;
        text-wrap: balance;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .feature-badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Hero Tool Responsive */
    .hero-tool .upload-area {
        padding: 32px 20px;
        margin: 0;
    }

    .hero-steps {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .hero-step {
        padding: 12px 14px;
    }

    .privacy-notice {
        padding: 0;
        gap: 10px;
    }

    .privacy-item {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        padding: 10px 12px;
        border-radius: 999px;
        background: rgba(8, 145, 178, 0.08);
        white-space: normal;
    }

    .example-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .example-card {
        padding: 16px;
    }

    .tool-section,
    .features-section,
    .how-to-section,
    .key-features-section,
    .use-cases-section,
    .faq-section {
        padding: 60px 0;
    }

    /* Three-column grids switch to single column on mobile */
    .features-grid,
    .steps-container,
    .use-cases-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 20px;
    }

    /* Key Features also switches to single column */
    .key-features-list {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    .upload-area {
        padding: 40px 20px;
        margin: 20px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .frame-controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-frame-control,
    .frame-fps-control {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-actions {
        width: 100%;
    }

    .gallery-actions .btn {
        flex: 1;
    }

    .frames-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .faq-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 4px 8px;
        margin: 0 -4px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .faq-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 375px（iPhone SE 及以上的主流窄屏）放得下完整品牌名，实测余 9px，
   所以这里关掉收缩——否则 flex 会为了给 .nav-menu 预留而多压 3px，
   把 "VideoToFrames" 截成 "VideoToFrame…"。
   375px 以下仍保持可收缩：那里确实放不下，截断好过整页横向滚动。 */
@media (min-width: 375px) and (max-width: 768px) {
    .nav-brand {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-title .highlight {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero .container {
        gap: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .feature-card,
    .step-card,
    .use-case-card {
        padding: 32px 24px;
    }

    .frames-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    /* FAQ Mobile Responsive */
    .faq-question {
        padding: 16px;
    }

    .faq-question span {
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px 16px;
    }

    /* FAQ Tabs Responsive */
    .faq-tabs {
        gap: 8px;
    }

    .faq-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .faq-tab svg {
        width: 18px;
        height: 18px;
    }

    .faq-tabs-wrapper {
        margin-bottom: 30px;
    }

    .privacy-item {
        flex-basis: 100%;
    }

    .time-range-header {
        align-items: flex-start;
    }

    .toggle-label {
        gap: 10px;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* ===== Language Switcher ===== */
.language-switcher-shell {
    display: flex;
    align-items: center;
}

.feedback-open {
    overflow: hidden;
}

.language-switcher-shell[hidden] {
    display: none !important;
}

.language-switcher-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher-disclosure {
    position: relative;
}

.feedback-trigger,
.language-switcher-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f4f6fb;
    color: var(--text-color);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    font-weight: 500;
}

.language-switcher-trigger::-webkit-details-marker {
    display: none;
}

.feedback-trigger-icon,
.language-switcher-globe,
.language-switcher-chevron {
    flex-shrink: 0;
}

.feedback-trigger-icon,
.language-switcher-globe {
    width: 18px;
    height: 18px;
}

.language-switcher-current-label {
    font-size: 0.98rem;
    line-height: 1;
}

.language-switcher-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.language-switcher-disclosure[open] .language-switcher-chevron {
    transform: rotate(180deg);
}

.language-switcher-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    z-index: 1004;
}

.language-switcher-disclosure[open] .language-switcher-list {
    display: flex;
}

.language-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.language-link:hover {
    color: var(--text-color);
    background: rgba(74, 158, 255, 0.08);
}

.language-link.is-current {
    color: var(--text-color);
    font-weight: 700;
    background: rgba(74, 158, 255, 0.12);
}

body[dir="rtl"] {
    direction: rtl;
}

body[dir="rtl"] .language-switcher-list {
    left: 0;
    right: auto;
}

body[dir="rtl"] .nav-blog-link {
    margin-left: 0;
    margin-right: auto;
}

body[dir="rtl"] .nav-utility-slot {
    margin-left: 0;
    margin-right: 16px;
}

body[dir="rtl"] .hero-content,
body[dir="rtl"] .section-header,
body[dir="rtl"] .content-page-hero-inner,
body[dir="rtl"] .feature-card,
body[dir="rtl"] .step-card,
body[dir="rtl"] .use-case-card,
body[dir="rtl"] .blog-card,
body[dir="rtl"] .key-feature-item,
body[dir="rtl"] .faq-question,
body[dir="rtl"] .faq-answer,
body[dir="rtl"] .footer-brand,
body[dir="rtl"] .footer-links {
    text-align: right;
}

.language-switcher-shell.is-mounted-navbar {
    margin-left: 0;
}

.language-switcher-shell.is-mounted-breadcrumb {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-top: 12px;
}

.language-switcher-shell.is-mounted-fallback {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.feedback-modal[hidden] {
    display: none !important;
}

.feedback-modal-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.44);
}

.feedback-modal-panel {
    position: relative;
    width: min(100%, 520px);
    padding: 32px 28px 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.feedback-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.feedback-modal-close svg,
.feedback-modal-icon svg {
    width: 20px;
    height: 20px;
}

.feedback-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.feedback-modal-title {
    margin: 0 0 14px;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.feedback-modal-copy {
    margin: 0 0 22px;
    color: var(--text-light);
    line-height: 1.7;
}

.feedback-email-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
}

.feedback-email-link {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.18em;
    font-size: 1.25rem;
    font-weight: 600;
    word-break: break-word;
}

.feedback-email-link:hover {
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.28);
    background: rgba(37, 99, 235, 0.12);
}

.feedback-copy-button {
    min-width: 116px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.feedback-copy-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.feedback-copy-button:hover {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(37, 99, 235, 0.04);
}

.feedback-modal-primary {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.feedback-modal-primary:hover {
    background: #1d4ed8;
}

/* ===== Footer Language Navigation ===== */
.footer-language-nav {
    background: #0b1220;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0 24px;
}

.footer-language-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.footer-language-link {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-language-link:hover {
    color: #ffffff;
}

.footer-language-link.is-current {
    color: #ffffff;
    font-weight: 700;
}

body[dir="rtl"] .footer-language-inner,
body[dir="rtl"] .footer-language-list {
    align-items: flex-start;
    text-align: right;
}

@media (max-width: 768px) {
    .nav-utility-slot {
        order: 2;
        margin-left: auto;
        margin-right: 12px;
    }

    body[dir="rtl"] .nav-utility-slot {
        margin-left: 12px;
        margin-right: auto;
    }

    .navbar .container .nav-toggle {
        order: 3;
    }

    body[dir="rtl"] .nav-menu {
        left: -100%;
        right: auto;
    }

    body[dir="rtl"] .nav-menu.active {
        left: 0;
        right: auto;
    }

    .language-switcher-list {
        right: 0;
        min-width: 170px;
    }

    .feedback-trigger span,
    .language-switcher-current-label {
        display: none;
    }

    .feedback-trigger,
    .language-switcher-trigger {
        padding: 0 12px;
    }

    .feedback-modal-panel {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }

    .feedback-modal-title {
        font-size: 1.7rem;
    }

    .feedback-email-row {
        flex-direction: column;
    }

    .feedback-email-link {
        font-size: 1.05rem;
    }

    .feedback-copy-button {
        width: 100%;
        min-height: 50px;
    }

    .footer-language-nav {
        padding: 16px 0 22px;
    }
}

/* ==========================================================================
   广告位（AdSense ADS-PROG-03 / ADS-UX-06 / ADS-PUB-10）
   --------------------------------------------------------------------------
   三条硬约束，改这段前先读 docs/adsense-audit/：
   1. 广告必须自带中性标签「Advertisement」。标签文字只能是 Advertisement
      或 Sponsored——写 "Recommended"、"Useful tools"、"Support us" 会被判
      诱导点击或伪装成内容（ADS-PROG-02 / 03）。
   2. 广告块的视觉语言必须与站内 CTA 明显不同：无品牌色、无按钮态、无阴影。
      本站首屏就是上传框 + Download ZIP 按钮，广告一旦长得像按钮就会与真实
      功能混淆（ADS-UX-03 假下载按钮观感）。
   3. min-height 预留，避免广告加载后把正文推走造成 CLS，也避免广告叠到
      导航或工具面板上（ADS-PUB-10 不得遮挡内容）。
   放置规则：只放在有正文的内容页，工具交互区（上传框/设置面板/结果画廊）
   与 /privacy、/terms 一律不放。
   ========================================================================== */
.ad-slot {
    display: block;
    max-width: 728px;
    min-width: 0;
    margin: 40px auto;
    padding: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.ad-slot__label {
    display: block;
    padding: 6px 0 4px;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.ad-slot__unit {
    display: block;
    width: 100%;
    min-height: 100px;
    margin: 0 auto 10px;
}

@media (max-width: 768px) {
    .ad-slot {
        margin: 32px auto;
    }

    .ad-slot__unit {
        min-height: 250px;
    }
}

@media (max-width: 1024px) {
    .features-grid.start-end-bridge-feature-grid,
    .start-end-bridge-step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .start-end-bridge-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .start-end-bridge-hero .content-page-hero-inner {
        max-width: 820px;
    }

    .features-grid.start-end-bridge-feature-grid,
    .start-end-bridge-step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .start-end-bridge-use-case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .start-end-bridge-hero {
        padding-bottom: 48px;
    }

    .start-end-bridge-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .start-end-bridge-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .features-grid.start-end-bridge-feature-grid,
    .start-end-bridge-step-grid {
        grid-template-columns: 1fr;
    }

    .start-end-bridge-section-alt {
        padding: 60px 0;
    }

    .start-end-bridge-use-case-card {
        grid-template-columns: 1fr;
    }

    .start-end-bridge-use-case-card img {
        height: auto;
        min-height: 0;
    }

    .frame-to-video-cta {
        align-items: stretch;
        flex-direction: column;
        margin: 24px 0;
        padding: 18px;
    }

    .frame-to-video-cta .btn {
        justify-content: center;
        width: 100%;
    }

    .nav-feature-link {
        white-space: normal;
    }
}
