/* 首页宣传页 - 沿用 common 深色主题变量 */

body:has(.index-main) {
    overflow-x: hidden;
}

.index-main {
    min-height: calc(100vh - 60px);
    overflow-x: hidden;
    max-width: 100vw;
}

.index-nav-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    height: 60px;
}

.index-nav-simple .navbar-right a {
    text-decoration: none;
}

.index-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.index-hero {
    padding: 60px 24px 48px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.index-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.index-hero-subtitle {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.index-hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}
.index-hero-desc + .index-hero-desc {
    margin-top: 6px;
}

.index-why {
    padding: 32px 24px 12px;
    max-width: 720px;
    margin: 0 auto;
}
.index-features {
    padding: 12px 24px 48px;
    max-width: 720px;
    margin: 0 auto;
}

.index-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.index-feature-list {
    list-style: none;
}

.index-feature-item {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    padding-left: 0;
}

.index-feature-item strong {
    color: var(--text-primary);
    margin-right: 4px;
}

.index-cases {
    padding: 32px 0 48px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.index-cases .index-section-title {
    margin-bottom: 16px;
    padding: 0 24px;
}

.index-cases-wrap {
    position: relative;
    padding: 0 48px;
}

.index-cases-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    border: none;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
}

.index-cases-arrow:hover:not(:disabled) {
    background: var(--primary-color);
}

.index-cases-arrow:disabled,
.index-cases-arrow[style*="pointer-events: none"] {
    cursor: default;
}

.index-cases-arrow-left {
    left: 8px;
}

.index-cases-arrow-right {
    right: 8px;
}

.index-cases-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.index-cases-scroll::-webkit-scrollbar {
    display: none;
}

.index-cases-track {
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-height: 470px;
}

.index-case-item {
    display: block;
    width: 300px;
    flex: 0 0 300px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.index-case-item:hover {
    border-color: var(--primary-color);
}

/* 竖屏剧照固定 300×450 */
.index-case-img-wrap {
    width: 300px;
    height: 450px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.index-case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.index-case-name {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.index-cases-loading,
.index-cases-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.index-footer {
    padding: 20px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}
