/*
 * style.css - 前台页面主样式表
 * 包含：全局重置、分类标题、平台标签、应用卡片、弹窗、顶部栏、分享弹窗、响应式布局等
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    background: #fafbfc;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px;
}


/* 分类标题 */
.category-section {
    margin-bottom: 24px;
}

.category-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    letter-spacing: -0.3px;
    flex-shrink: 0;
    margin: 0;
    align-self: center;
    line-height: 1.4;
}

/* 推荐区副标题（所有域名通用）：跟主标题同行，左标题右副标题 */
.cinema-cat-sub {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.2px;
    line-height: 1.4;
    align-self: center;
}

/* 平台标签 */
.platform-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
    flex: 1;
    min-width: 0;
}

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

.platform-tab {
    padding: 5px 10px;
    background-color: #ffffff;
    color: #64748b;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    flex-shrink: 0;
}

.platform-tab:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.platform-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 应用卡片容器 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 应用卡片 */
.app-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* 默认只显示 iOS 应用，隐藏其他平台（推荐专区除外） */
.app-grid:not(.recommended-grid) .app-card:not([data-platform="iOS"]) {
    display: none;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.app-card:hover::before {
    opacity: 1;
}

/* 卡片内容容器 */
.app-card-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

/* 应用图标 */
.app-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    align-self: flex-start;
}

.app-icon img {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 48px;
    height: 48px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon img {
    transform: scale(1.05);
}

/* 应用信息区域 */
.app-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    padding-right: 65px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.app-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    flex: 1;
    letter-spacing: -0.2px;
}

.app-platform {
    display: none;
}

.platform-iOS {
    background: linear-gradient(135deg, #007AFF 0%, #0051d5 100%);
    color: white;
}

.platform-安卓 {
    background: linear-gradient(135deg, #34A853 0%, #2d8f47 100%);
    color: white;
}

.platform-TV {
    background: linear-gradient(135deg, #FBBC05 0%, #f9ab00 100%);
    color: white;
}

.platform-电脑 {
    background: linear-gradient(135deg, #EA4335 0%, #d33b2c 100%);
    color: white;
}

.app-status {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: flex-start;
    margin: 0;
    z-index: 1;
}

.status-tag {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-上架 {
    background-color: #d1fae5;
    color: #065f46;
}

.status-下架 {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-有广 {
    background-color: #fef3c7;
    color: #92400e;
}

.status-无广 {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-更新 {
    background-color: #e9d5ff;
    color: #6b21a8;
}

.status-推荐 {
    background-color: #fce7f3;
    color: #9f1239;
}

.app-description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-recommended-note {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.app-footer {
    display: none;
}

.download-btn {
    display: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.download-btn:active {
    transform: translateY(0);
}

/* 推荐专区卡片右下角下载按钮 */
.recommended-grid .app-card .app-footer,
.app-card.has-download-button .app-footer {
    display: block;
    position: absolute;
    bottom: 6px;
    right: 6px;
}

.recommended-grid .app-card .download-btn,
.app-card.has-download-button .download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7c948 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.5);
    transition: all 0.2s ease;
    white-space: nowrap;
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0%   { box-shadow: 0 3px 10px rgba(255, 107, 53, 0.5); }
    50%  { box-shadow: 0 4px 18px rgba(255, 107, 53, 0.85); transform: scale(1.05); }
    100% { box-shadow: 0 3px 10px rgba(255, 107, 53, 0.5); }
}

.transform-code {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    background-color: #f8fafc;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 0 16px 16px;
    border-radius: 12px;
    width: 90%;
    max-width: 280px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-header {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    height: 0;
}

.modal-title {
    display: none;
}

.close-btn {
    display: none;
}

.close-btn:hover {
    background-color: #f1f5f9;
    color: #64748b;
}

.modal-body {
    margin-bottom: 0;
}

#downloadLinks {
    margin-top: 0;
    position: relative;
    padding-top: 0;
}

.download-link {
    display: block;
    padding: 16px;
    background-color: #f8fafc;
    text-decoration: none;
    color: #1a202c;
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.download-link:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-body .app-info {
    text-align: center;
    margin: 0 auto 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.app-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a202c;
    letter-spacing: -0.3px;
    text-align: center;
}

.app-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    text-align: center;
}

.app-recommended-note {
    font-size: 12px;
    color: #f59e0b;
    margin: 6px 0 0 0;
    font-weight: 500;
    line-height: 1.4;
}

/* 下载弹窗内应用名与描述：绝对居中 */
#downloadLinks > .app-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0 12px 0;
    border-bottom: none;
    z-index: 2;
    box-sizing: border-box;
}

#downloadLinks > .app-info .app-title,
#downloadLinks > .app-info .app-subtitle {
    text-align: center;
}

.platform-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.platform-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
}

.platform-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.platform-card.ios-card {
    border-left: 4px solid #007AFF;
}

.platform-card.android-card {
    border-left: 4px solid #34A853;
}

.platform-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.platform-icon {
    font-size: 18px;
    margin-right: 8px;
}

.platform-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    flex: 1;
}

.platform-body {
    padding: 10px;
}

.download-button {
    position: absolute;
    top: 8px;
    right: 12px;
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.download-button.ios-button {
    background: linear-gradient(135deg, #ff6b35 0%, #f7c948 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.5);
    animation: pulse-btn 2s infinite;
}

.download-button.ios-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(255, 107, 53, 0.85);
}

.download-button.android-button {
    background: linear-gradient(135deg, #34A853 0%, #2d8f47 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.2);
}

.download-button.android-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

/* iOS主备链接全部下架时:显示"即将上架"(绿色、禁用) */
.download-button.off-shelf-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    cursor: not-allowed;
    opacity: 0.85;
    animation: none;
}

.download-button.off-shelf-button:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.download-button.off-shelf-button[disabled] {
    pointer-events: none;
}

.installation-steps {
    margin-top: 8px;
}

.installation-steps h5 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}

.installation-steps ol {
    margin: 0;
    padding-left: 18px;
}

.installation-steps li {
    margin-bottom: 6px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

.code-box {
    background-color: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #667eea;
    margin: 5px 0;
    border: 1px solid #e2e8f0;
    word-break: break-all;
}

.android-note {
    margin: 5px 0 0 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* 推荐板块下载说明（黄色区域） */
.recommended-download-notice {
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.recommended-download-notice p {
    margin: 0;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
    font-weight: 500;
}

.recommended-download-notice strong {
    color: #78350f;
    font-weight: 600;
}

.support-info {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.support-info p {
    margin: 0;
    font-size: 10px;
    color: #94a3b8;
}

/* 安卓弹窗底部「官方正版」高亮提示 */
.support-info p .apk-official-tip {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 5px 12px;
    line-height: 1.5;
}

.modal-footer {
    text-align: center;
    position: sticky;
    bottom: 0;
    background-color: #ffffff;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

/* 下载弹窗 - 你可能还需要 */
.recommend-section {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.recommend-title {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-align: center;
}

.recommend-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}

.recommend-scroll::-webkit-scrollbar {
    display: none;
}

.recommend-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 64px;
    padding: 6px 4px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.recommend-card:hover {
    background: #f1f5f9;
}

.recommend-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.recommend-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-card-name {
    font-size: 11px;
    color: #4a5568;
    text-align: center;
    line-height: 1.2;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 提示弹窗 */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    z-index: 1100;
    display: none;
    animation: slideIn 0.3s ease;
    font-weight: 500;
    white-space: pre-line;
    line-height: 1.6;
}

.toast.active {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 底部导航 */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    padding: 60px 0 32px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
}

/* 顶部 Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* 隐藏顶部banner，底部弹窗有介绍网站内容 */
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.banner-description {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 400;
}

/* 收藏引导条 */
.bookmark-bar {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(102,126,234,0.12) 0%, rgba(118,75,162,0.12) 100%);
    border-bottom: 1px solid rgba(102,126,234,0.15);
    padding: 10px 16px;
    font-size: 14px;
    color: #4a5568;
    position: relative;
    animation: bookmarkSlideDown 0.3s ease;
}

.bookmark-bar.active {
    display: flex;
}

.bookmark-bar.returning {
    background: linear-gradient(135deg, rgba(72,187,120,0.1) 0%, rgba(56,161,105,0.1) 100%);
    border-bottom-color: rgba(72,187,120,0.15);
}

.bookmark-bar-text {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.bookmark-bar.returning .bookmark-bar-text {
    color: #2f855a;
}

.bookmark-bar-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
}

.bookmark-bar-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.bookmark-bar.returning .bookmark-bar-btn {
    display: none;
}

.bookmark-bar-close {
    cursor: pointer;
    font-size: 18px;
    color: #a0aec0;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.bookmark-bar-close:hover {
    color: #4a5568;
}

@keyframes bookmarkSlideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bookmarkFadeOut {
    from { opacity: 1; max-height: 50px; }
    to { opacity: 0; max-height: 0; padding: 0 16px; }
}

.bookmark-bar.fading {
    animation: bookmarkFadeOut 0.4s ease forwards;
    overflow: hidden;
}

/* 热播推荐板块 */
.hot-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 12px 0;
}

.hot-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.hot-icon {
    font-size: 20px;
    line-height: 1;
}

.hot-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.3px;
}

.hot-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 8px;
}

.hot-scroll::-webkit-scrollbar {
    display: none;
}

.hot-card {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hot-card:active {
    transform: scale(0.95);
}

.hot-cover {
    position: relative;
    width: 100px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hot-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hot-card:hover .hot-cover img {
    transform: scale(1.05);
}

/* 预告片播放按钮：半透明圆形 + 白色三角，仿豆瓣预告片样式 */
.hot-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    transition: background 0.2s ease, transform 0.2s ease;
    animation: hotPlayPulse 1.9s ease-in-out infinite;
}

.hot-play svg {
    width: 11px;
    height: 11px;
    margin-left: 1px; /* 视觉居中：三角形偏右补偿 */
}

/* 呼吸动效：缓慢循环放大缩小，余光吸引点击 */
@keyframes hotPlayPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .hot-play { animation: none; }
}

/* 错峰呼吸：同排卡片按位置分配不同延迟，6 张一循环，峰值波浪式滚动 */
.hot-scroll .hot-card:nth-child(6n + 1) .hot-play { animation-delay: 0s; }
.hot-scroll .hot-card:nth-child(6n + 2) .hot-play { animation-delay: -0.32s; }
.hot-scroll .hot-card:nth-child(6n + 3) .hot-play { animation-delay: -0.63s; }
.hot-scroll .hot-card:nth-child(6n + 4) .hot-play { animation-delay: -0.95s; }
.hot-scroll .hot-card:nth-child(6n + 5) .hot-play { animation-delay: -1.27s; }
.hot-scroll .hot-card:nth-child(6n + 6) .hot-play { animation-delay: -1.58s; }

.hot-card:hover .hot-play {
    animation: none;
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.15);
}

.hot-card:active .hot-play {
    animation: none;
    transform: scale(0.9);
}

.hot-rating {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
}

.hot-type {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
}

.hot-name {
    font-size: 12px;
    color: #4a5568;
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hot-section {
        padding: 8px 10px 0;
    }

    .hot-card {
        width: 88px;
    }

    .hot-cover {
        width: 88px;
        height: 124px;
    }

    .hot-name {
        max-width: 88px;
        font-size: 11px;
    }

    .hot-title {
        font-size: 16px;
    }
}

/* 关注弹窗样式 */
.follow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.follow-modal.active {
    display: flex;
    pointer-events: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.follow-modal-content {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 20px 18px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 300px;
    width: 90%;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    pointer-events: auto !important;
    z-index: 1000;
}

.follow-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.follow-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    pointer-events: auto !important;
    user-select: none;
    transition: all 0.3s ease;
}

.follow-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.follow-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.follow-modal-icon {
    font-size: 26px;
    line-height: 1;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.follow-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.follow-modal-body {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.follow-modal-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.follow-modal-text .highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    display: inline-block;
    transform: translateY(-1px);
}

.follow-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.follow-btn-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.follow-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    pointer-events: auto !important;
    z-index: 10;
}

.follow-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.follow-btn:hover::before {
    width: 300px;
    height: 300px;
}

.follow-btn-row .follow-btn {
    flex: 1;
    min-width: 0;
}

.follow-btn-wrapper {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    min-width: 0;
    pointer-events: auto !important;
}

.follow-btn-wrapper .follow-btn {
    width: 100%;
    min-width: 0;
}

.follow-btn-secondary {
    width: 100%;
}

.follow-btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.follow-btn-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.follow-btn-primary:active {
    transform: translateY(-1px);
}

.follow-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.follow-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.follow-btn-icon {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* 二维码悬浮显示 */
.qrcode-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    display: none;
    animation: popupFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 200px;
    pointer-events: auto;
}

/* 确保关闭按钮始终在最上层，不被二维码弹窗遮挡 */
.follow-modal-content {
    position: relative;
}

.follow-modal-content > .follow-modal-close {
    z-index: 99999 !important;
    pointer-events: auto !important;
    position: absolute !important;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.qrcode-popup.active {
    display: block;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.qrcode-popup img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qrcode-popup-text {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.follow-btn-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    overflow: visible;
}

.follow-btn-share {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.follow-btn-share:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* 分享弹窗样式 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px 20px 20px;
    width: 90%;
    max-width: 320px;
    position: relative;
    animation: shareModalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes shareModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: #e2e8f0;
    color: #475569;
}

/* 社交媒体图标区域 */
.share-modal-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    padding: 0 16px;
}

.share-modal-icons::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 2px dashed #e2e8f0;
    z-index: 0;
}

.share-icon-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: white;
}

.share-icon-item[data-platform="weibo"] {
    color: #e6162d;
}

.share-icon-item[data-platform="wechat"] {
    color: #07c160;
}

.share-icon-item[data-platform="bilibili"] {
    color: #fb7299;
}

.share-icon-item[data-platform="douyin"] {
    color: #000000;
}

.share-icon-item[data-platform="xiaohongshu"] {
    color: #ff2442;
}

.share-icon-item[data-platform="douban"] {
    color: #007722;
}

.share-icon-item svg {
    width: 26px;
    height: 26px;
}

.share-icon-item:hover {
    transform: scale(1.15);
}

/* 成功提示区域 */
.share-modal-success {
    text-align: center;
    margin-bottom: 24px;
}

.share-fist-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: fistPunch 0.5s ease;
}

@keyframes fistPunch {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
}

.share-success-text {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

.share-success-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 0 12px;
}

.share-save-btn {
    width: 100%;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.share-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.share-save-btn:active {
    transform: translateY(0);
}

/* 底部域名区域 */
.share-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.share-domain-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.share-domain {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

/* 关闭按钮（弹窗下方） */
.share-modal-close-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #374151;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-modal-close-btn:hover {
    background: #4b5563;
    transform: translateX(-50%) scale(1.1);
}

.share-modal-close-btn svg {
    width: 18px;
    height: 18px;
}

/* 分享图片容器（用于生成图片） */
.share-image-container {
    width: 600px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    position: fixed;
    left: -9999px;
    top: -9999px;
}

.share-image-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.share-image-description {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
}

.share-image-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border: 4px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    background: white;
}

.share-image-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.share-image-url {
    font-size: 16px;
    color: #3b82f6;
    word-break: break-all;
    margin-bottom: 24px;
}

.share-image-domain {
    font-size: 14px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

/* 分享提示弹窗 */
.share-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
    animation: popupFadeIn 0.3s ease;
    min-width: 200px;
    white-space: nowrap;
}

.share-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.share-popup.active {
    display: block;
}

.share-popup-text {
    text-align: center;
    font-size: 14px;
    color: #1a202c;
    font-weight: 500;
}

.fixed-icon-wrapper {
    position: relative;
}

/* 右下角固定图标 */
.fixed-icons {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fixed-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.fixed-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.fixed-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bookmark-bar {
        font-size: 13px;
        padding: 8px 12px;
        gap: 8px;
    }

    .bookmark-bar-btn {
        padding: 4px 12px;
        font-size: 12px;
    }

    .container {
        padding: 24px 16px;
    }

    .category-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .app-card {
        padding: 5px 7px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    
    .app-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    
    /* 移动端横向扁平布局 */
    .app-card-content {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        position: relative;
    }
    
    .app-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .app-icon img {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }
    
    .app-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        position: relative;
        padding-right: 65px; /* 为右侧状态标签留出空间 */
    }
    
    .app-header {
        margin-bottom: 0;
        gap: 4px;
        align-items: flex-start;
    }
    
    .app-name {
        font-size: 17px;
        line-height: 1.2;
        flex: 1;
        min-width: 0;
        margin: 0;
    }
    
    .app-platform {
        display: none; /* 移动端隐藏平台标签 */
    }
    
    /* 在移动端将状态标签移到右边 */
    .app-status {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        flex-direction: row;
        gap: 4px;
        align-items: flex-start;
        margin: 0;
        z-index: 1;
    }
    
    .status-tag {
        font-size: 9px;
        padding: 2px 6px;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    .app-description {
        font-size: 16px;
        margin-bottom: 0;
        margin-top: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
        padding-top: 0;
    }
    
    .app-recommended-note {
        font-size: 11px;
        margin-top: 4px;
        margin-bottom: 0;
    }
    
    /* 移动端隐藏底部下载区域 */
    .app-footer {
        display: none;
    }

    .recommended-grid .app-card .app-footer,
    .app-card.has-download-button .app-footer {
        display: block;
        position: absolute;
        bottom: 6px;
        right: 6px;
    }

    .recommended-grid .app-card,
    .app-card.has-download-button {
        overflow: visible;
    }

    .platform-tab {
        padding: 4px 9px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .category-section {
        margin-bottom: 16px;
    }
    
    .footer {
        padding: 40px 0 24px;
        margin-top: 60px;
    }
    
    .footer-container {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }

    .category-section {
        margin-bottom: 12px;
    }
    
    .category-title {
        font-size: 22px;
        margin-bottom: 16px;
        display: inline-block;
        margin-right: 12px;
        vertical-align: middle;
    }
    
    .app-grid {
        gap: 6px;
    }

    .app-card {
        padding: 10px 8px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    
    .app-card:hover {
        transform: none;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    
    .app-card-content {
        gap: 6px;
    }
    
    .app-icon img {
        width: 36px;
        height: 36px;
        border-radius: 5px;
    }
    
    .app-name {
        font-size: 15px;
        line-height: 1.2;
    }
    
    .app-info {
        padding-right: 60px;
        gap: 1px;
    }
    
    .app-status {
        gap: 2px;
    }
    
    .status-tag {
        font-size: 8px;
        padding: 2px 5px;
        border-radius: 3px;
    }
    
    .app-description {
        font-size: 12px;
        margin-bottom: 0;
        margin-top: 0;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .app-footer {
        display: none;
    }

    .recommended-grid .app-card .app-footer,
    .app-card.has-download-button .app-footer {
        display: block;
        position: absolute;
        bottom: 6px;
        right: 6px;
    }

    .recommended-grid .app-card,
    .app-card.has-download-button {
        overflow: visible;
    }

    .platform-tabs {
        gap: 6px;
        margin-bottom: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .platform-tab {
        padding: 4px 9px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .modal-content {
        padding: 0 14px 14px;
        width: 92%;
        max-width: 280px;
        max-height: 85vh;
    }

    .modal-header {
        display: none;
        margin: 0;
        padding: 0;
        border: 0;
        height: 0;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .close-btn {
        font-size: 22px;
        width: 28px;
        height: 28px;
    }
    
    .modal-body {
        margin-bottom: 12px;
    }
    
    .modal-body .app-info {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .app-title {
        font-size: 16px;
    }
    
    .app-subtitle {
        font-size: 11px;
    }
    
    .app-recommended-note {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .platform-container {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .platform-header {
        padding: 10px 12px;
    }
    
    .platform-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .platform-name {
        font-size: 13px;
    }
    
    .platform-body {
        padding: 10px;
    }
    
    .download-button {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .installation-steps {
        margin-top: 8px;
    }
    
    .installation-steps h5 {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .installation-steps ol {
        padding-left: 18px;
    }
    
    .installation-steps li {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .code-box {
        font-size: 11px;
        padding: 6px 10px;
        margin: 5px 0;
    }
    
    .android-note {
        font-size: 11px;
        margin: 5px 0 0 0;
    }
    
    .support-info {
        padding-top: 10px;
    }
    
    .support-info p {
        font-size: 10px;
    }
    
    .recommended-download-notice {
        margin-top: 8px;
        padding: 8px 10px;
    }
    
    .recommended-download-notice p {
        font-size: 11px;
    }
    
    .modal-footer {
        padding-top: 0;
        margin-top: 0;
        border-top: none;
    }
    
    .banner {
        padding: 40px 16px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-description {
        font-size: 16px;
    }
    
    .follow-modal {
        padding: 16px;
        align-items: flex-end;
    }
    
    .follow-modal-content {
        padding: 20px 18px;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        animation: modalSlideUpMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    @keyframes modalSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .follow-modal-title {
        font-size: 20px;
    }
    
    .follow-modal-text {
        font-size: 14px;
    }
    
    .follow-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .follow-modal-text {
        font-size: 13px;
    }
    
    .follow-modal-footer {
        gap: 10px;
    }
    
    .follow-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .share-modal-content {
        padding: 24px 20px 20px;
        max-width: 90%;
    }
    
    .share-modal-icons {
        padding: 0 10px;
    }
    
    .share-icon-item {
        width: 40px;
        height: 40px;
    }
    
    .share-icon-item svg {
        width: 24px;
        height: 24px;
    }
    
    .share-fist-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .share-success-text {
        font-size: 24px;
    }
    
    .share-success-desc {
        font-size: 13px;
        padding: 0 8px;
    }
    
    .share-save-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .share-modal-close-btn {
        bottom: -50px;
        width: 36px;
        height: 36px;
    }
    
    .follow-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .qrcode-popup {
        min-width: 160px;
        padding: 12px;
    }
    
    .qrcode-popup img {
        width: 140px;
        height: 140px;
    }
    
    .share-popup {
        min-width: 160px;
        padding: 12px 16px;
    }
    
    .share-popup-text {
        font-size: 12px;
    }
    
    .fixed-icons {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .fixed-icon {
        width: 45px;
        height: 45px;
    }
    
    .fixed-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* 微信浏览器引导层 */
.wechat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.wechat-overlay.active {
    display: flex;
}

.wechat-guide-arrow {
    position: absolute;
    top: 8px;
    right: 16px;
    animation: wechatArrowBounce 1.5s ease-in-out infinite;
}

@keyframes wechatArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.wechat-guide-content {
    margin-top: 130px;
    text-align: center;
}

.wechat-guide-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 16px;
    opacity: 0.85;
}

.wechat-guide-step {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
    margin: 0;
}

.wechat-dots {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #07c160;
}

.wechat-highlight {
    color: #07c160;
    font-weight: 700;
}

.wechat-overlay-footer {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    text-align: center;
}

.wechat-skip-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 32px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.wechat-skip-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
 * 追剧.cc 专属：暗夜影院主题（theme-cinema）— 第一期
 * 仅当 body.theme-cinema 时生效，其他域名零影响
 * ============================================================ */

body.theme-cinema {
    background:
        radial-gradient(ellipse at top left, rgba(255, 59, 107, 0.10) 0%, transparent 45%),
        radial-gradient(ellipse at top right, rgba(108, 92, 231, 0.12) 0%, transparent 45%),
        linear-gradient(180deg, #0d0d1a 0%, #15172b 60%, #0d0d1a 100%);
    background-attachment: fixed;
    color: #f1f5f9;
}

/* 全局覆盖：文字颜色 */
body.theme-cinema .container {
    color: #f1f5f9;
}

/* === 影院风欢迎条 === */
body.theme-cinema .cinema-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px 8px;
    position: relative;
}

body.theme-cinema .cinema-hero-inner {
    background: linear-gradient(135deg, rgba(255, 59, 107, 0.18) 0%, rgba(108, 92, 231, 0.18) 50%, rgba(255, 215, 0, 0.10) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

body.theme-cinema .cinema-hero-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, transparent 65%);
    pointer-events: none;
    animation: cinemaSpotlight 8s ease-in-out infinite;
}

@keyframes cinemaSpotlight {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50%      { transform: translate(-30px, 20px) scale(1.15); opacity: 1; }
}

body.theme-cinema .cinema-hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

body.theme-cinema .cinema-hero-title strong {
    background: linear-gradient(135deg, #ffd700 0%, #ff3b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

body.theme-cinema .cinema-hero-emoji {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

body.theme-cinema .cinema-hero-sub {
    margin-top: 6px;
    font-size: 13px;
    color: #c5cae9;
    letter-spacing: 0.2px;
}

/* === 影视分类 chips === */
body.theme-cinema .cinema-genres {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 16px 8px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.theme-cinema .cinema-genres::-webkit-scrollbar {
    display: none;
}

body.theme-cinema .cinema-genre-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}

body.theme-cinema .cinema-genre-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.20);
    color: #fff;
    transform: translateY(-1px);
}

body.theme-cinema .cinema-genre-chip.is-active {
    background: linear-gradient(135deg, #ff3b6b 0%, #6c5ce7 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 59, 107, 0.35);
}

/* === Banner 改造（虽然默认隐藏，但保险起见覆盖一下） === */
body.theme-cinema .banner {
    background: linear-gradient(135deg, #15172b 0%, #2d1b4e 100%);
}

/* === 收藏引导条 适配深色 === */
body.theme-cinema .bookmark-bar {
    background: linear-gradient(135deg, rgba(255, 59, 107, 0.18) 0%, rgba(108, 92, 231, 0.18) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

body.theme-cinema .bookmark-bar.returning {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.18) 0%, rgba(56, 161, 105, 0.18) 100%);
    border-bottom-color: rgba(72, 187, 120, 0.20);
}

body.theme-cinema .bookmark-bar.returning .bookmark-bar-text {
    color: #6ee7b7;
}

body.theme-cinema .bookmark-bar-btn {
    background: linear-gradient(135deg, #ff3b6b 0%, #6c5ce7 100%);
    box-shadow: 0 2px 8px rgba(255, 59, 107, 0.35);
}

body.theme-cinema .bookmark-bar-close {
    color: rgba(255, 255, 255, 0.45);
}

body.theme-cinema .bookmark-bar-close:hover {
    color: #fff;
}

/* === 热播板块（核心改造）：放大海报 + 影院氛围 === */
body.theme-cinema .hot-section {
    padding: 14px 16px 4px;
}

body.theme-cinema .hot-header {
    gap: 8px;
    margin-bottom: 14px;
}

body.theme-cinema .hot-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.7));
    animation: cinemaFlame 1.6s ease-in-out infinite;
}

@keyframes cinemaFlame {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50%      { transform: scale(1.12) rotate(3deg); }
}

body.theme-cinema .hot-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-cinema .hot-scroll {
    gap: 14px;
    padding: 4px 0 14px;
    cursor: grab;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
}

body.theme-cinema .hot-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

body.theme-cinema .hot-scroll.is-dragging .hot-card {
    pointer-events: none;
}

body.theme-cinema .hot-card {
    width: 140px;
    gap: 8px;
}

body.theme-cinema .hot-cover {
    width: 140px;
    height: 200px;
    border-radius: 12px;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

body.theme-cinema .hot-card:hover .hot-cover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(255, 59, 107, 0.30),
        0 0 0 1px rgba(255, 215, 0, 0.30) inset;
}

body.theme-cinema .hot-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    border-radius: 12px;
}

/* 影院主题：海报更大，播放按钮同步放大 */
body.theme-cinema .hot-play {
    width: 21px;
    height: 21px;
    background: rgba(0, 0, 0, 0.4);
    border-width: 1.5px;
}

body.theme-cinema .hot-play svg {
    width: 15px;
    height: 15px;
}

body.theme-cinema .hot-rating {
    position: static;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a0f00;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.4);
    line-height: 1;
    white-space: nowrap;
}

body.theme-cinema .hot-rating::before {
    content: '⭐';
    margin-right: 2px;
    font-size: 10px;
}

body.theme-cinema .hot-type {
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

body.theme-cinema .hot-name {
    font-size: 13px;
    color: #f1f5f9;
    font-weight: 600;
    max-width: 140px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* === 分类标题、平台标签 适配深色 === */
body.theme-cinema .category-title {
    color: #fff;
}

body.theme-cinema .platform-tab {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
    box-shadow: none;
}

body.theme-cinema .platform-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.20);
    color: #fff;
}

body.theme-cinema .platform-tab.active {
    background: linear-gradient(135deg, #ff3b6b 0%, #6c5ce7 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 59, 107, 0.35);
}

/* === 应用卡片 适配深色（保留布局，仅换肤） === */
body.theme-cinema .app-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.theme-cinema .app-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 32px rgba(255, 59, 107, 0.18);
}

body.theme-cinema .app-card::before {
    background: linear-gradient(90deg, #ff3b6b 0%, #ffd700 50%, #6c5ce7 100%);
}

body.theme-cinema .app-card .app-name {
    color: #fff;
}

body.theme-cinema .app-card .app-desc,
body.theme-cinema .app-card .app-description,
body.theme-cinema .app-card .app-version,
body.theme-cinema .app-card .app-update,
body.theme-cinema .app-card .app-meta,
body.theme-cinema .app-card .app-info-text,
body.theme-cinema .app-card p,
body.theme-cinema .app-card span:not(.app-status):not(.app-platform):not(.app-tag):not(.tag) {
    color: #a8b2c5;
}

body.theme-cinema .app-card .app-icon img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* === 移动端适配 === */
@media (max-width: 768px) {
    body.theme-cinema .cinema-hero {
        padding: 14px 12px 6px;
    }

    body.theme-cinema .cinema-hero-inner {
        padding: 12px 14px;
        border-radius: 12px;
    }

    body.theme-cinema .cinema-hero-title {
        font-size: 16px;
    }

    body.theme-cinema .cinema-hero-sub {
        font-size: 12px;
    }

    body.theme-cinema .cinema-genres {
        padding: 4px 12px 6px;
        gap: 6px;
    }

    body.theme-cinema .cinema-genre-chip {
        padding: 5px 12px;
        font-size: 12px;
    }

    body.theme-cinema .hot-section {
        padding: 10px 12px 4px;
    }

    body.theme-cinema .hot-card {
        width: 118px;
    }

    body.theme-cinema .hot-cover {
        width: 118px;
        height: 168px;
        border-radius: 10px;
    }

    body.theme-cinema .hot-name {
        max-width: 118px;
        font-size: 12px;
    }

    body.theme-cinema .hot-title {
        font-size: 17px;
    }
}

/* === 实时数据滚动条（追剧.cc 专属）=== */
body.theme-cinema .cinema-stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 16px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 13px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

body.theme-cinema .cinema-stats::-webkit-scrollbar {
    display: none;
}

body.theme-cinema .cinema-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

body.theme-cinema .cinema-stat-icon {
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

body.theme-cinema .cinema-stat-text {
    color: #94a3b8;
    font-weight: 500;
}

body.theme-cinema .cinema-stat-num {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.3px;
    min-width: 36px;
    display: inline-block;
}

body.theme-cinema .cinema-stat-online {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

body.theme-cinema .cinema-stat-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* "在线观看" 数字旁的呼吸点 */
body.theme-cinema .cinema-stat-item:has(.cinema-stat-online)::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    margin-right: 2px;
    animation: cinemaPulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.7);
}

@keyframes cinemaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}

/* === 热播板块多分类面板切换 === */
body.theme-cinema .hot-section .hot-genre-pane {
    display: none;
}

body.theme-cinema .hot-section .hot-genre-pane.is-active {
    display: block;
    animation: cinemaPaneFade 0.35s ease;
}

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

/* 移动端数字条更紧凑 */
@media (max-width: 768px) {
    body.theme-cinema .cinema-stats {
        padding: 4px 12px 4px;
        gap: 4px;
        font-size: 12px;
    }

    body.theme-cinema .cinema-stat-divider {
        height: 10px;
    }
}

/* ============================================================
 * 追剧.cc 专属：第二期优化（角标 / 热度 / PC 二维码 / 退出意图 / 副标题）
 * ============================================================ */

/* === 板块副标题 === */
body.theme-cinema .cinema-cat-sub {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.2px;
    align-self: center;
}

/* === 紧迫感角标 + 评分 共享容器（左上纵向堆叠，避免重叠） === */
body.theme-cinema .hot-tags {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 3;
    max-width: calc(100% - 12px);
}

body.theme-cinema .hot-badge {
    position: static;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
}

body.theme-cinema .hot-badge.tag-top1 {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a0f00;
    animation: cinemaBadgeShine 2.4s ease-in-out infinite;
}

body.theme-cinema .hot-badge.tag-updating {
    background: linear-gradient(135deg, #ff3b6b 0%, #c2185b 100%);
    animation: cinemaPulseDot 1.6s ease-in-out infinite;
}

body.theme-cinema .hot-badge.tag-new {
    background: linear-gradient(135deg, #6c5ce7 0%, #4338ca 100%);
}

@keyframes cinemaBadgeShine {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 140, 0, 0.5); }
    50%      { box-shadow: 0 4px 18px rgba(255, 215, 0, 0.85); transform: scale(1.04); }
}

@keyframes cinemaPulseDot {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 59, 107, 0.55); }
    50%      { box-shadow: 0 4px 16px rgba(255, 59, 107, 0.85); }
}

/* 评分加豆瓣前缀（无需新样式，沿用 .hot-rating，但加宽以容纳前缀） */
body.theme-cinema .hot-rating {
    padding: 3px 8px;
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* === 热度数字（标题下方第二行） === */
body.theme-cinema .hot-heat {
    display: block;
    font-size: 11px;
    color: #ff8c00;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.2px;
    text-shadow: 0 0 4px rgba(255, 140, 0, 0.3);
}

/* === PC 端二维码兜底区 === */
body.theme-cinema .cinema-pc-qr {
    max-width: 1200px;
    margin: 14px auto 0;
    padding: 0 16px;
}

body.theme-cinema .cinema-pc-qr-inner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.10) 0%, rgba(255, 59, 107, 0.10) 50%, rgba(108, 92, 231, 0.10) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    padding: 14px 22px; /* 减少上下内边距: 18px → 14px */
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.theme-cinema .cinema-pc-qr-text {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 280px;
}

body.theme-cinema .cinema-pc-qr-emoji {
    font-size: 32px; /* 减小图标: 36px → 32px */
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    flex-shrink: 0;
}

body.theme-cinema .cinema-pc-qr-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-cinema .cinema-pc-qr-sub {
    font-size: 13px;
    color: #c5cae9;
    margin: 0;
    line-height: 1.5;
}

body.theme-cinema .cinema-pc-qr-sub-pc {
    margin-top: 4px;
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

body.theme-cinema .cinema-pc-qr-codes {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    align-items: stretch;
}

body.theme-cinema .cinema-pc-qr-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s;
}

body.theme-cinema .cinema-pc-qr-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.4);
}

body.theme-cinema .cinema-pc-qr-card img {
    display: block;
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
}

body.theme-cinema .cinema-pc-qr-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

body.theme-cinema .cinema-pc-qr-platform {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    line-height: 1;
}

body.theme-cinema .cinema-pc-qr-platform.ios {
    background: linear-gradient(135deg, #007AFF 0%, #0051d5 100%);
}

body.theme-cinema .cinema-pc-qr-platform.android {
    background: linear-gradient(135deg, #34A853 0%, #2d8f47 100%);
}

body.theme-cinema .cinema-pc-qr-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

body.theme-cinema .cinema-pc-qr-tip {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* === 瓜子影视安装步骤区（PC 二维码右侧） === */
body.theme-cinema .cinema-pc-qr-steps {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 10px;
    padding: 12px 18px; /* 减少内边距: 14px 16px → 12px 18px */
    max-width: 420px; /* 拉宽: 340px → 420px */
    min-width: 320px; /* 拉宽: 260px → 320px */
    color: #e2e8f0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.theme-cinema .cinema-pc-qr-steps-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 6px; /* 减少间距: 8px → 6px */
    letter-spacing: 0.3px;
}

body.theme-cinema .cinema-pc-qr-steps-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
    font-size: 12.5px;
    line-height: 1.6; /* 减少行高: 1.7 → 1.6 */
    color: #cbd5e1;
}

body.theme-cinema .cinema-pc-qr-steps-list li {
    margin-bottom: 2px;
}

body.theme-cinema .cinema-pc-qr-steps-list strong {
    color: #fff;
    font-weight: 600;
}

body.theme-cinema .cinema-pc-qr-code {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a0f00;
    font-weight: 800;
    /* 用微软雅黑等清晰字体，避免等宽/装饰字体导致 0/O、1/l 混淆看错变身码 */
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    border-radius: 4px;
    font-size: 15px;
    letter-spacing: 1px;
    user-select: all;
    cursor: pointer;
}

body.theme-cinema .cinema-pc-qr-steps-tip {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.10);
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

/* === 安卓安装注意事项区（绿色主题，区别于 iOS 金色） === */
body.theme-cinema .cinema-pc-qr-steps-android {
    border-color: rgba(52, 168, 83, 0.28);
}
body.theme-cinema .cinema-pc-qr-steps-android .cinema-pc-qr-steps-title {
    color: #4ade80;
}
body.theme-cinema .cinema-pc-qr-steps-android .cinema-pc-qr-steps-list strong {
    color: #86efac;
}

/* 安卓「立即下载」按钮：标题右侧，绿色主题 */
body.theme-cinema .cinema-pc-qr-steps-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
body.theme-cinema .cinema-pc-qr-steps-head .cinema-pc-qr-steps-title {
    margin-bottom: 0;
}
body.theme-cinema .cinema-pc-android-dl-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 7px 16px;
    background: linear-gradient(135deg, #34a853 0%, #1e8e3e 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 18px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(52, 168, 83, 0.35);
    transition: all 0.2s;
}
body.theme-cinema .cinema-pc-android-dl-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(52, 168, 83, 0.5);
}
body.theme-cinema .cinema-pc-android-dl-btn:active {
    transform: translateY(0);
}

/* === 退出意图浮窗 === */
body.theme-cinema .cinema-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.theme-cinema .cinema-exit-modal.is-active {
    display: flex;
    animation: cinemaExitFadeIn 0.3s ease;
}

body.theme-cinema .cinema-exit-mask {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 26, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.theme-cinema .cinema-exit-card {
    position: relative;
    background: linear-gradient(160deg, #1a1d36 0%, #2d1b4e 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 18px;
    padding: 32px 26px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(255, 59, 107, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: cinemaExitSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.theme-cinema .cinema-exit-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

body.theme-cinema .cinema-exit-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

body.theme-cinema .cinema-exit-emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    animation: cinemaExitEmoji 2.4s ease-in-out infinite;
}

@keyframes cinemaExitEmoji {
    0%, 100% { transform: scale(1) rotate(-3deg); }
    50%      { transform: scale(1.1) rotate(3deg); }
}

body.theme-cinema .cinema-exit-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

body.theme-cinema .cinema-exit-sub {
    font-size: 14px;
    color: #c5cae9;
    margin: 0 0 22px;
    line-height: 1.6;
}

body.theme-cinema .cinema-exit-sub strong {
    color: #ffd700;
    font-weight: 700;
}

body.theme-cinema .cinema-exit-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
}

body.theme-cinema .cinema-exit-btn-primary {
    flex: 1;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff3b6b 0%, #ff6b35 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 59, 107, 0.4);
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

body.theme-cinema .cinema-exit-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 59, 107, 0.55);
}

body.theme-cinema .cinema-exit-btn-primary:active {
    transform: translateY(0);
}

body.theme-cinema .cinema-exit-btn-secondary {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

body.theme-cinema .cinema-exit-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

body.theme-cinema .cinema-exit-meta {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

@keyframes cinemaExitFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes cinemaExitSlideUp {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* === 移动端适配 === */
@media (max-width: 768px) {
    body.theme-cinema .cinema-pc-qr {
        padding: 0 12px;
    }
    body.theme-cinema .cinema-pc-qr-inner {
        padding: 14px 16px;
        gap: 14px;
    }
    body.theme-cinema .cinema-pc-qr-card img {
        width: 90px;
        height: 90px;
    }

    body.theme-cinema .hot-badge {
        font-size: 10px;
        padding: 2px 6px;
        top: 4px;
        left: 4px;
    }

    body.theme-cinema .hot-heat {
        font-size: 10px;
    }

    body.theme-cinema .cinema-exit-card {
        padding: 26px 20px 20px;
    }
    body.theme-cinema .cinema-exit-title {
        font-size: 19px;
    }
    body.theme-cinema .cinema-exit-sub {
        font-size: 13px;
        margin-bottom: 18px;
    }
}

/* ============================================================
 * 追剧.cc：白底浅色覆盖（在所有暗色规则之后，优先级取胜）
 * 保留所有新功能（欢迎条/chips/数据条/热播角标/PC二维码/退出意图）
 * 仅把背景从暗夜黑切回浅色，文字反色，品牌色（金/红/紫）保留
 * ============================================================ */

/* === 全局背景 === */
body.theme-cinema {
    background:
        radial-gradient(ellipse at top left, rgba(255, 59, 107, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at top right, rgba(108, 92, 231, 0.06) 0%, transparent 45%),
        linear-gradient(180deg, #fafbfc 0%, #f1f5f9 60%, #fafbfc 100%);
    background-attachment: fixed;
    color: #2d3748;
}

body.theme-cinema .container {
    color: #2d3748;
}

/* === 欢迎条：白底玻璃 === */
body.theme-cinema .cinema-hero-inner {
    background: linear-gradient(135deg, rgba(255, 59, 107, 0.06) 0%, rgba(108, 92, 231, 0.06) 50%, rgba(255, 215, 0, 0.05) 100%);
    border-color: rgba(102, 126, 234, 0.15);
}

body.theme-cinema .cinema-hero-title {
    color: #1a202c;
}

body.theme-cinema .cinema-hero-sub {
    color: #64748b;
}

/* === 实时数据条：浅色文字 === */
body.theme-cinema .cinema-stats {
    color: #64748b;
}

body.theme-cinema .cinema-stat-text {
    color: #94a3b8;
}

body.theme-cinema .cinema-stat-divider {
    background: rgba(102, 126, 234, 0.18);
}

/* === 分类 chips：白底 === */
body.theme-cinema .cinema-genre-chip {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-cinema .cinema-genre-chip:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* === 收藏条：浅色 === */
body.theme-cinema .bookmark-bar {
    background: linear-gradient(135deg, rgba(255, 59, 107, 0.10) 0%, rgba(108, 92, 231, 0.10) 100%);
    border-bottom-color: rgba(102, 126, 234, 0.15);
    color: #4a5568;
}

body.theme-cinema .bookmark-bar.returning {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.10) 0%, rgba(56, 161, 105, 0.10) 100%);
    border-bottom-color: rgba(72, 187, 120, 0.18);
}

body.theme-cinema .bookmark-bar.returning .bookmark-bar-text {
    color: #2f855a;
}

body.theme-cinema .bookmark-bar-close {
    color: #a0aec0;
}

body.theme-cinema .bookmark-bar-close:hover {
    color: #4a5568;
}

/* === 热播板块标题保留金红渐变（已是渐变色，无需改） === */
/* hot-title 是 -webkit-text-fill-color: transparent + 渐变背景，本身在浅色背景上更突出 */

/* === 热播海报：浅色阴影替换深色阴影 === */
body.theme-cinema .hot-cover {
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

body.theme-cinema .hot-card:hover .hot-cover {
    box-shadow:
        0 12px 32px rgba(255, 59, 107, 0.20),
        0 0 0 1px rgba(255, 215, 0, 0.40) inset;
}

body.theme-cinema .hot-name {
    color: #1a202c;
    text-shadow: none;
}

/* hot-rating（豆瓣 X.X）金色渐变保留，hot-type 改浅色 */
body.theme-cinema .hot-type {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.20);
}

/* === 分类标题：深色文字（不用渐变） === */
body.theme-cinema .category-title {
    color: #1a202c;
}

body.theme-cinema .cinema-cat-sub {
    color: #94a3b8;
}

/* === 平台标签：浅色 === */
body.theme-cinema .platform-tab {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-cinema .platform-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

body.theme-cinema .platform-tab.active {
    color: #fff;
}

/* === 应用卡片：白底 === */
body.theme-cinema .app-card {
    background: #ffffff;
    border-color: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-cinema .app-card:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(255, 59, 107, 0.12);
}

body.theme-cinema .app-card .app-name {
    color: #1a202c;
}

body.theme-cinema .app-card .app-desc,
body.theme-cinema .app-card .app-description,
body.theme-cinema .app-card .app-version,
body.theme-cinema .app-card .app-update,
body.theme-cinema .app-card .app-meta,
body.theme-cinema .app-card .app-info-text,
body.theme-cinema .app-card p,
body.theme-cinema .app-card span:not(.app-status):not(.app-platform):not(.app-tag):not(.tag) {
    color: #64748b;
}

body.theme-cinema .app-card .app-icon img {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

/* === PC 二维码区：白底玻璃 === */
body.theme-cinema .cinema-pc-qr-inner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 59, 107, 0.05) 50%, rgba(108, 92, 231, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.30);
}

body.theme-cinema .cinema-pc-qr-title {
    /* 保留金红渐变（在白底上更突出）*/
}

body.theme-cinema .cinema-pc-qr-sub {
    color: #64748b;
}

body.theme-cinema .cinema-pc-qr-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.theme-cinema .cinema-pc-qr-card:hover {
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 6px 18px rgba(255, 140, 0, 0.15);
}

body.theme-cinema .cinema-pc-qr-card img {
    background: #ffffff;
}

body.theme-cinema .cinema-pc-qr-name {
    color: #1a202c;
}

body.theme-cinema .cinema-pc-qr-tip {
    color: #94a3b8;
}

/* === 安装步骤区：浅色 === */
body.theme-cinema .cinema-pc-qr-steps {
    background: #ffffff;
    border-color: rgba(255, 140, 0, 0.30);
    color: #2d3748;
}

body.theme-cinema .cinema-pc-qr-steps-title {
    color: #c2410c;
}

body.theme-cinema .cinema-pc-qr-steps-list {
    color: #475569;
}

body.theme-cinema .cinema-pc-qr-steps-list strong {
    color: #1a202c;
}

body.theme-cinema .cinema-pc-qr-steps-tip {
    color: #94a3b8;
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* === 退出意图浮窗：白底 === */
body.theme-cinema .cinema-exit-mask {
    background: rgba(15, 23, 42, 0.55);
}

body.theme-cinema .cinema-exit-card {
    background: #ffffff;
    border-color: rgba(255, 215, 0, 0.30);
    color: #1a202c;
    box-shadow: 0 20px 60px rgba(255, 59, 107, 0.20), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

body.theme-cinema .cinema-exit-close {
    background: #f1f5f9;
    color: #64748b;
}

body.theme-cinema .cinema-exit-close:hover {
    background: #e2e8f0;
    color: #1a202c;
}

body.theme-cinema .cinema-exit-sub {
    color: #475569;
}

body.theme-cinema .cinema-exit-sub strong {
    color: #c2410c;
}

body.theme-cinema .cinema-exit-btn-secondary {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

body.theme-cinema .cinema-exit-btn-secondary:hover {
    background: #e2e8f0;
    color: #1a202c;
}

body.theme-cinema .cinema-exit-meta {
    color: #94a3b8;
}

/* ============================================================
 * 退出意图浮窗：非影院主题域名兜底样式（zjapp.net / 神器.中国 移动端）
 * 这些域名 body 无 .theme-cinema，上面所有 body.theme-cinema .cinema-exit-* 规则不命中，
 * 导致浮窗只剩裸文字。这里用无主题前缀的选择器复刻「追剧.cc 最终白底样式」。
 * 影院域名因 body.theme-cinema 规则特异性更高(0,2,1>0,1,0)，仍走原样式、不受影响。
 * keyframes(cinemaExitFadeIn/SlideUp/Emoji) 为全局定义，可直接复用。
 * ============================================================ */
.cinema-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cinema-exit-modal.is-active {
    display: flex;
    animation: cinemaExitFadeIn 0.3s ease;
}
.cinema-exit-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cinema-exit-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(255, 215, 0, 0.30);
    border-radius: 18px;
    padding: 32px 26px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    color: #1a202c;
    box-shadow: 0 20px 60px rgba(255, 59, 107, 0.20), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
    animation: cinemaExitSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cinema-exit-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}
.cinema-exit-close:hover {
    background: #e2e8f0;
    color: #1a202c;
}
.cinema-exit-emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    animation: cinemaExitEmoji 2.4s ease-in-out infinite;
}
.cinema-exit-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}
.cinema-exit-sub {
    font-size: 14px;
    color: #475569;
    margin: 0 0 22px;
    line-height: 1.6;
}
.cinema-exit-sub strong {
    color: #c2410c;
    font-weight: 700;
}
.cinema-exit-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
}
.cinema-exit-btn-primary {
    flex: 1;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff3b6b 0%, #ff6b35 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 59, 107, 0.4);
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.cinema-exit-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 59, 107, 0.55);
}
.cinema-exit-btn-primary:active {
    transform: translateY(0);
}
.cinema-exit-btn-secondary {
    padding: 12px 18px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.cinema-exit-btn-secondary:hover {
    background: #e2e8f0;
    color: #1a202c;
}
.cinema-exit-meta {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.3px;
}
@media (max-width: 768px) {
    .cinema-exit-card {
        padding: 26px 20px 20px;
    }
    .cinema-exit-title {
        font-size: 19px;
    }
    .cinema-exit-sub {
        font-size: 13px;
        margin-bottom: 18px;
    }
}

/* === 角标在白底上需稍微加重阴影 === */
body.theme-cinema .hot-badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* ============================================================
 * 追剧.cc：首屏紧凑布局（让下方应用卡片多露出）
 * 目标：首屏总高度从 ~750px → ~520px（节省 ~230px）
 * 不删除任何原有规则，仅靠覆盖优先级取胜
 * ============================================================ */

/* === PC 二维码区：压缩 ~100px === */
body.theme-cinema .cinema-pc-qr {
    margin: 10px auto 0;
}

body.theme-cinema .cinema-pc-qr-inner {
    padding: 10px 14px;       /* 18→10 上下 -16px */
    gap: 16px;                /* 28→16 横向间距 */
    border-radius: 12px;
}

body.theme-cinema .cinema-pc-qr-text {
    gap: 10px;                /* 14→10 */
}

body.theme-cinema .cinema-pc-qr-emoji {
    font-size: 24px;          /* 36→24 */
}

body.theme-cinema .cinema-pc-qr-title {
    font-size: 15px;          /* 18→15 */
    margin: 0;
}

body.theme-cinema .cinema-pc-qr-sub {
    font-size: 12px;          /* 13→12 */
    line-height: 1.4;
}

body.theme-cinema .cinema-pc-qr-sub-pc {
    margin-top: 2px;
}

/* 二维码缩小 110 → 84，但保持清晰度（300x300 png 缩到 84 仍清晰） */
body.theme-cinema .cinema-pc-qr-card {
    padding: 6px;             /* 10→6 */
}

body.theme-cinema .cinema-pc-qr-card img {
    width: 84px;
    height: 84px;
    padding: 3px;
}

body.theme-cinema .cinema-pc-qr-label {
    margin-top: 4px;
    gap: 4px;
}

body.theme-cinema .cinema-pc-qr-name {
    font-size: 12px;
}

body.theme-cinema .cinema-pc-qr-platform {
    font-size: 9px;
    padding: 1px 5px;
}

body.theme-cinema .cinema-pc-qr-tip {
    font-size: 10px;
    margin-top: 2px;
}

/* 安装步骤区压缩 */
body.theme-cinema .cinema-pc-qr-steps {
    padding: 8px 12px;        /* 14/16→8/12 */
    min-width: 220px;
    max-width: 300px;
    border-radius: 8px;
}

body.theme-cinema .cinema-pc-qr-steps-title {
    font-size: 12px;
    margin-bottom: 4px;
}

body.theme-cinema .cinema-pc-qr-steps-list {
    padding-left: 18px;
    font-size: 11.5px;
    line-height: 1.55;
}

body.theme-cinema .cinema-pc-qr-steps-list li {
    margin-bottom: 0;
}

body.theme-cinema .cinema-pc-qr-code {
    font-size: 15px;
    padding: 2px 10px;
    letter-spacing: 1px;
}

body.theme-cinema .cinema-pc-qr-steps-tip {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 10px;
    line-height: 1.4;
}

/* === 欢迎条：压缩 ~30px === */
body.theme-cinema .cinema-hero {
    padding: 8px 16px 4px;    /* 18/8→8/4 */
}

body.theme-cinema .cinema-hero-inner {
    padding: 8px 14px;        /* 14/18→8/14 */
    border-radius: 10px;
}

body.theme-cinema .cinema-hero-title {
    font-size: 15px;
}

body.theme-cinema .cinema-hero-emoji {
    font-size: 18px;
}

body.theme-cinema .cinema-hero-sub {
    font-size: 12px;
    margin-top: 2px;
}

/* === 实时数据条：压缩 ~10px === */
body.theme-cinema .cinema-stats {
    padding: 2px 16px 4px;
    font-size: 12px;
}

/* === 分类 chips：压缩 ~10px === */
body.theme-cinema .cinema-genres {
    padding: 2px 16px 6px;
    gap: 6px;
}

body.theme-cinema .cinema-genre-chip {
    padding: 5px 12px;
    font-size: 12px;
}

/* === 热播板块：标题压缩 + 海报缩小 ~60px === */
body.theme-cinema .hot-section {
    padding: 8px 16px 4px;
}

body.theme-cinema .hot-header {
    margin-bottom: 8px;       /* 14→8 */
    gap: 6px;
}

body.theme-cinema .hot-icon {
    font-size: 18px;          /* 22→18 */
}

body.theme-cinema .hot-title {
    font-size: 17px;          /* 20→17 */
}

body.theme-cinema .hot-scroll {
    gap: 10px;                /* 14→10 */
    padding: 2px 0 8px;
}

/* 海报缩小：140×200 → 116×160（每张矮 40px）*/
body.theme-cinema .hot-card {
    width: 116px;             /* 140→116 */
    gap: 6px;
}

body.theme-cinema .hot-cover {
    width: 116px;
    height: 160px;            /* 200→160 节省 40px */
    border-radius: 10px;
}

body.theme-cinema .hot-name {
    font-size: 12px;
    max-width: 116px;
}

body.theme-cinema .hot-heat {
    font-size: 10px;
    margin-top: 1px;
}

body.theme-cinema .hot-tags {
    top: 4px;
    left: 4px;
    gap: 3px;
}

body.theme-cinema .hot-badge {
    font-size: 10px;
    padding: 2px 6px;
}

body.theme-cinema .hot-rating {
    font-size: 11px;
    padding: 2px 6px;
}

body.theme-cinema .hot-type {
    font-size: 10px;
    padding: 2px 6px;
    bottom: 4px;
    left: 4px;
}

/* === 移动端：进一步紧凑（保持原有移动端规则不动，单独压缩 PC 二维码不在移动端显示） === */
@media (max-width: 768px) {
    body.theme-cinema .cinema-hero {
        padding: 6px 12px 2px;
    }
    body.theme-cinema .cinema-hero-inner {
        padding: 8px 12px;
    }
    body.theme-cinema .cinema-hero-title {
        font-size: 14px;
    }
    body.theme-cinema .cinema-hero-sub {
        font-size: 11px;
    }

    body.theme-cinema .cinema-stats {
        padding: 2px 12px 3px;
        font-size: 11px;
    }

    body.theme-cinema .cinema-genres {
        padding: 2px 12px 4px;
        gap: 5px;
    }

    body.theme-cinema .cinema-genre-chip {
        padding: 4px 10px;
        font-size: 11px;
    }

    body.theme-cinema .hot-section {
        padding: 4px 12px 0;       /* 6/2 → 4/0 */
    }

    body.theme-cinema .hot-header {
        margin-bottom: 4px;        /* 8 → 4 */
        gap: 4px;
    }

    body.theme-cinema .hot-icon {
        font-size: 15px;           /* 18 → 15 */
    }

    body.theme-cinema .hot-title {
        font-size: 14px;           /* 15 → 14 */
    }

    body.theme-cinema .hot-scroll {
        gap: 8px;                  /* 10 → 8 */
        padding: 0 0 4px;          /* 2/8 → 0/4 */
    }

    /* 移动端海报：100×140 → 88×124（再缩 16px）*/
    body.theme-cinema .hot-card {
        width: 88px;
        gap: 3px;                  /* 6 → 3 */
    }
    body.theme-cinema .hot-cover {
        width: 88px;
        height: 124px;
        border-radius: 7px;
    }
    body.theme-cinema .hot-name {
        max-width: 88px;
        font-size: 11px;
    }

    /* 移动端隐藏热度行让海报区紧凑（每张卡省 ~14px）*/
    body.theme-cinema .hot-heat {
        display: none;
    }

    /* 角标/评分/类型 微缩 */
    body.theme-cinema .hot-tags {
        top: 3px;
        left: 3px;
        gap: 2px;
    }
    body.theme-cinema .hot-badge {
        font-size: 9px;
        padding: 1px 5px;
    }
    body.theme-cinema .hot-rating {
        font-size: 10px;
        padding: 1px 5px;
    }
    body.theme-cinema .hot-type {
        font-size: 9px;
        padding: 1px 5px;
        bottom: 3px;
        left: 3px;
    }
}

/* === 「🔥 X 热度」仅在追剧.cc(影院主题)电脑端显示，其他一律隐藏 === */
/* 默认全局隐藏（覆盖其他域名 PC + 所有域名移动端的 inline 显示） */
.hot-heat {
    display: none;
}
/* 仅追剧.cc 影院主题的 PC 端放行（移动端在下方 media query 再次隐藏） */
@media (max-width: 768px) {
    .hot-heat,
    body.theme-cinema .hot-heat {
        display: none !important;
    }
}

/* === PC 端 iOS 专区下载弹窗：左侧下载二维码 + 右侧安装步骤 === */
/* 弹窗加宽：原内容区宽度(280)不变，额外加出二维码所需宽度 */
.modal-content.has-ios-qr {
    max-width: 440px;
}
/* 加宽后顶部居中的应用名/描述跟随新宽度居中 */
.modal-content.has-ios-qr #downloadLinks > .app-info {
    width: 100%;
}
.platform-body.ios-pc-body {
    display: flex;
    gap: 16px;
    align-items: center;
}
.ios-pc-qr-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ios-pc-qr-box {
    width: 132px;
    height: 132px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
}
.ios-pc-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ios-pc-qr-tip {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
}
.ios-pc-main-col {
    flex: 1 1 auto;
    min-width: 0;
}

/* ============================================================
 * PC 顶部二维码区：文字介绍 + 二维码 强制同一横排，压缩高度
 * 文字可收缩不再独占一行，步骤面板收窄，整行不换行
 * ============================================================ */
body.theme-cinema .cinema-pc-qr-inner {
    flex-wrap: nowrap;          /* 不换行：文字与二维码恒在同一横向面 */
    gap: 14px;
    align-items: center;
}
body.theme-cinema .cinema-pc-qr-text {
    flex: 0 1 auto;             /* 文字可收缩，不强占 280px 把二维码挤下去 */
    min-width: 0;
}
body.theme-cinema .cinema-pc-qr-codes {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
}
/* 步骤面板收窄，确保 文字+iOS+安卓 一整排放得下 */
body.theme-cinema .cinema-pc-qr-codes .cinema-pc-qr-steps {
    min-width: 0;
    max-width: 230px;
    padding: 8px 12px;
}
body.theme-cinema .cinema-pc-qr-codes .cinema-pc-qr-steps-list {
    font-size: 11.5px;
    line-height: 1.5;
    padding-left: 16px;
}
body.theme-cinema .cinema-pc-qr-codes .cinema-pc-qr-steps-tip {
    margin-top: 6px;
    padding-top: 6px;
}

/* ============================================================
 * PC 顶部二维码：鼠标悬停 → 屏幕居中弹出大图，便于扫码；移开自动隐藏
 * ============================================================ */
body.theme-cinema .cinema-pc-qr-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.25s ease;
}
body.theme-cinema .cinema-pc-qr-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 140, 0, 0.6);
}

/* 居中弹出的二维码大图遮罩 */
.cinema-qr-preview {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 11, 22, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.cinema-qr-preview.is-active {
    opacity: 1;
    visibility: visible;
}
.cinema-qr-preview-box {
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}
.cinema-qr-preview.is-active .cinema-qr-preview-box {
    transform: scale(1);
}
.cinema-qr-preview-box img {
    display: block;
    width: 300px;
    height: 300px;
    max-width: 70vmin;
    max-height: 70vmin;
    background: #fff;
    border-radius: 8px;
}
.cinema-qr-preview-label {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}
.cinema-qr-preview-tip {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}


/* === 专区标题与卡片间动态下载文案（从右向左滚动，小字占位小） === */
.download-ticker {
    overflow: hidden;
    margin: -18px 0 4px;
    padding: 0;
    line-height: 1.2;
    min-height: 14px;
    white-space: nowrap;
    position: relative;
}
.download-ticker-track {
    display: inline-block;
    white-space: nowrap;
    /* 从右屏外滚入、向左滚出，循环 */
    will-change: transform;
    animation: downloadTickerScroll 18s linear infinite;
}
.download-ticker-text {
    display: inline-block;
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.download-ticker-num {
    font-weight: 700;
    color: #ff6b35;
    font-variant-numeric: tabular-nums;
}
/* 「安全检验」提示高亮（绿色，传达安全感） */
.download-ticker-safe {
    color: #22c55e;
    font-weight: 600;
}
body.theme-cinema .download-ticker-safe {
    color: #4ade80;
}
@keyframes downloadTickerScroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
/* 鼠标悬停暂停滚动，方便看清 */
.download-ticker:hover .download-ticker-track {
    animation-play-state: paused;
}
/* 暗夜影院主题下配色微调 */
body.theme-cinema .download-ticker-text {
    color: #8b93a7;
}
body.theme-cinema .download-ticker-num {
    color: #ffa500;
}

/* ============================================================
 * 追剧.cc 移动端：压缩各板块间隔 + 标题与卡片间距，
 * 让首屏尽量多显示后面的卡片（最高优先级，放文件末尾）
 * ============================================================ */
@media (max-width: 768px) {
    /* 欢迎条：上下留白收紧 */
    body.theme-cinema .cinema-hero {
        padding: 8px 12px 2px;
    }
    body.theme-cinema .cinema-hero-inner {
        padding: 8px 12px;
    }
    /* 实时数据条：收紧上下 */
    body.theme-cinema .cinema-stats {
        padding: 2px 12px 2px;
    }
    /* 分类 chips：收紧上下 */
    body.theme-cinema .cinema-genres {
        padding: 2px 12px 4px;
    }
    /* 热播板块：收紧上下 + 标题与卡片间距 */
    body.theme-cinema .hot-section {
        padding: 6px 12px 2px;
    }
    body.theme-cinema .hot-title {
        padding: 0 0 4px;
        margin: 0;
    }
    /* 滚动文案：紧贴 */
    body.theme-cinema .download-ticker {
        margin: -10px 0 2px;
    }
    /* 应用专区：板块之间、标题与卡片之间收紧 */
    body.theme-cinema .category-section {
        margin-bottom: 8px;
    }
    body.theme-cinema .category-header {
        margin-bottom: 4px;
    }
    body.theme-cinema .category-title {
        margin: 0;
    }
    /* 平台 Tab 栏（iOS/安卓切换）收紧上下 */
    body.theme-cinema .platform-tabs {
        margin: 4px 0 6px;
    }
    /* 卡片网格行间距收紧 */
    body.theme-cinema .app-grid {
        gap: 8px;
    }
    /* 热播板块与推荐板块间距进一步收紧 */
    body.theme-cinema .hot-section {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    /* 海报标题(hot-name)到「解锁全网免费追剧」标题的间隙：尽量压到最小 */
    body.theme-cinema .hot-scroll {
        padding-bottom: 0;
    }
    body.theme-cinema .hot-name {
        margin-top: 1px;
    }
    body.theme-cinema .category-section:first-of-type {
        margin-top: 0;
        padding-top: 0;
    }
    body.theme-cinema .category-section:first-of-type .category-header {
        margin-top: 0;
        padding-top: 0;
    }
    /* 应用卡片内部上下留白收紧 */
    body.theme-cinema .app-card {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}

/* === 首屏底部「向下滑」半透明双箭头指示标（下滑后隐藏） === */
.cinema-scroll-hint {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
    animation: cinemaScrollBounce 1.6s ease-in-out infinite;
}
.cinema-scroll-hint.is-hidden {
    opacity: 0;
}
.cinema-scroll-hint-arrow {
    font-size: 46px;
    line-height: 0.6;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.28);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: scaleX(1.5);
}
/* 第二个箭头叠加，形成双箭头（V V）；间距加大一倍 */
.cinema-scroll-hint-arrow::after {
    content: '⌄';
    display: block;
    margin-top: -10px;
    color: rgba(255, 255, 255, 0.18);
}
@keyframes cinemaScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* === 右下角浮动图标：仅移动端调整（隐藏分享、缩间距、降透明度）；PC端保持原样 === */
@media (max-width: 768px) {
    .fixed-icons {
        gap: 4px;
    }
    .fixed-icon {
        opacity: 0.8;
    }
    .fixed-icon:hover {
        opacity: 1;
    }
    /* 移动端隐藏分享图标 */
    .fixed-icons .fixed-icon-wrapper {
        display: none;
    }
}

/* ============================================================
 * 追剧.cc 吸顶下载钩子（导航站冷流量专属，首屏行动召唤）
 * ============================================================ */
.zj-hero-cta {
    position: sticky;
    top: 0;
    z-index: 800;
    background: linear-gradient(135deg, #ff8c00 0%, #ff5e3a 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.zj-hero-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.zj-hero-cta-text { min-width: 0; }
.zj-hero-cta-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zj-hero-cta-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.92);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zj-hero-cta-btn {
    flex-shrink: 0;
    background: #fff;
    color: #ff5e3a;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: zjHeroPulse 1.8s ease-in-out infinite;
}
@keyframes zjHeroPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
.zj-hero-cta-btn:active { transform: scale(0.96); }
@media (max-width: 768px) {
    .zj-hero-cta-title { font-size: 13px; }
    .zj-hero-cta-sub { font-size: 10px; }
    .zj-hero-cta-btn { font-size: 13px; padding: 6px 12px; }
}
@media (max-width: 360px) {
    .zj-hero-cta-title { font-size: 12px; }
}
