/**
 * douyin.css - 抖音视频解析页面样式
 */

/* ============================================================
   页面主容器
   ============================================================ */
.douyin-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.douyin-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    padding: 30px 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.douyin-header {
    text-align: center;
    margin-bottom: 24px;
}
.douyin-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.douyin-header h1 i {
    color: #4a6cf7;
    background: rgba(74, 108, 247, 0.10);
    padding: 8px 12px;
    border-radius: 12px;
}
.douyin-header p {
    font-size: 15px;
    color: #718096;
    margin-top: 6px;
}

/* ============================================================
   输入框 & 按钮
   ============================================================ */
.douyin-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.douyin-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #f7fafc;
    color: #2d3748;
}
.douyin-input-group input:focus {
    border-color: #4a6cf7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.08);
}
.douyin-input-group input::placeholder {
    color: #a0aec0;
}
.douyin-btn {
    padding: 12px 30px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.douyin-btn:hover {
    background: #3a5cd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.25);
}
.douyin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   顶部功能提示条
   ============================================================ */
.douyin-features {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 12px 0 6px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border-radius: 12px;
    border: 1px solid #d4e2f7;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.04);
    transition: all 0.25s ease;
}
.douyin-features:hover {
    border-color: #4a6cf7;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.08);
}
.douyin-features .features-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}
.douyin-features .features-content {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.6;
}
.douyin-features .features-tag {
    display: inline-block;
    background: #4a6cf7;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 0 10px;
    border-radius: 20px;
    line-height: 20px;
    margin-right: 6px;
    vertical-align: middle;
}
.douyin-features .features-text {
    vertical-align: middle;
}
.douyin-features .features-text strong {
    color: #4a6cf7;
}

/* ============================================================
   加载 / 错误 / 结果容器
   ============================================================ */
.douyin-loading {
    display: none;
    text-align: center;
    padding: 30px 0;
}
.douyin-loading.active {
    display: block;
}
.douyin-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #4a6cf7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.douyin-loading .spinner-text {
    color: #a0aec0;
    font-size: 14px;
}

.douyin-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 10px;
    color: #c53030;
    display: none;
}
.douyin-error.active {
    display: block;
}

.douyin-result {
    margin-top: 24px;
    display: none;
    animation: fadeIn 0.3s ease;
}
.douyin-result.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   底部提示条 / 赞助商
   ============================================================ */
.douyin-tips {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border-left: 4px solid #f6ad55;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
}
.douyin-tips i {
    font-size: 18px;
    color: #f6ad55;
}
.api-status {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 8px;
    text-align: center;
}

/* ============================================================
   调试框
   ============================================================ */
.debug-box {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: none;
}
.debug-box.active {
    display: block;
}
.debug-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 12px;
    max-height: 300px;
    overflow: auto;
}

/* ============================================================
   功能特点和使用说明样式
   ============================================================ */
.douyin-features-grid {
    margin-top: 20px;
}

/* ===== 四个优势卡片 ===== */
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.feature-advantage-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    padding: 18px 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.feature-advantage-card:hover {
    border-color: #4a6cf7;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.06);
    transform: translateY(-3px);
}
.feature-advantage-card .advantage-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}
.feature-advantage-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 4px 0;
}
.feature-advantage-card p {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ===== 底部两栏布局 ===== */
.features-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.how-to-card,
.support-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    padding: 20px 24px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.how-to-card:hover,
.support-card:hover {
    border-color: #4a6cf7;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.06);
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i {
    color: #4a6cf7;
    font-size: 18px;
}

/* ===== 步骤列表 ===== */
.how-to-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.how-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.how-step .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #4a6cf7;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.how-step .step-info strong {
    display: block;
    font-size: 13px;
    color: #1a202c;
}
.how-step .step-info p {
    font-size: 12px;
    color: #718096;
    margin: 1px 0 0 0;
    line-height: 1.4;
}

/* ===== 支持内容列表 ===== */
.support-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.support-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.support-item:hover {
    border-color: #4a6cf7;
    background: #f0f5ff;
}
.support-item i {
    font-size: 22px;
    color: #4a6cf7;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}
.support-item strong {
    display: block;
    font-size: 13px;
    color: #1a202c;
}
.support-item p {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   新版解析结果卡片
   ============================================================ */
.dp-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.dp-card-body {
    display: flex;
    gap: 24px;
    padding: 24px;
    align-items: stretch;
}

/* ===== 左侧预览区 ===== */
.dp-preview {
    flex: 0 0 260px;
    width: 260px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dp-preview video,
.dp-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}
.dp-preview img {
    object-fit: cover;
    background: #f5f7fa;
}
.dp-preview-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ===== 右侧信息区 ===== */
.dp-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 标签栏 */
.dp-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dp-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.dp-tag-platform {
    background: linear-gradient(135deg, #e8f0ff, #d6e4ff);
    color: #4a6cf7;
}
.dp-tag-type {
    background: linear-gradient(135deg, #f0e8ff, #e2d6ff);
    color: #7c3aed;
}
.dp-tag-time {
    font-size: 12.5px;
    color: #a0aec0;
    margin-left: auto;
}

/* 标题 */
.dp-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
}

/* 作者 */
.dp-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dp-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dp-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dp-author-avatar-text {
    font-size: 18px;
    font-weight: 700;
    color: #4a6cf7;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dp-author-info {
    min-width: 0;
}
.dp-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dp-author-id {
    font-size: 12.5px;
    color: #a0aec0;
    margin-top: 2px;
}

/* 统计卡片 */
.dp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
}
.dp-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.dp-stat i {
    font-size: 20px;
    color: #a0aec0;
}
.dp-stat:nth-child(1) i { color: #e53e3e; }
.dp-stat:nth-child(2) i { color: #4a6cf7; }
.dp-stat:nth-child(3) i { color: #38a169; }
.dp-stat:nth-child(4) i { color: #ed8936; }
.dp-stat-num {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}
.dp-stat-label {
    font-size: 11.5px;
    color: #a0aec0;
}

/* 操作按钮 */
.dp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}
.dp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    font-family: inherit;
    white-space: nowrap;
}
.dp-btn:hover {
    border-color: #4a6cf7;
    color: #4a6cf7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.08);
}
.dp-btn-primary {
    background: #4a6cf7;
    border-color: #4a6cf7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.25);
}
.dp-btn-primary:hover {
    background: #3a5cd9;
    border-color: #3a5cd9;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(74, 108, 247, 0.35);
}
.dp-btn i {
    font-size: 15px;
}

/* ============================================================
   图集网格
   ============================================================ */
.dp-gallery-section {
    margin-top: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.dp-gallery-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dp-gallery-title i {
    color: #4a6cf7;
    font-size: 18px;
}
.dp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.dp-gallery-item {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.dp-gallery-item:hover {
    border-color: #4a6cf7;
    box-shadow: 0 8px 24px rgba(74, 108, 247, 0.1);
    transform: translateY(-3px);
}
.dp-gallery-media {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dp-gallery-media img,
.dp-gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.dp-gallery-media img {
    object-fit: cover;
    background: #f5f7fa;
}
.dp-gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
}
.dp-gallery-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #718096;
}
.dp-gallery-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f0f4ff;
    color: #4a6cf7;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}
.dp-gallery-dl:hover {
    background: #4a6cf7;
    color: #ffffff;
    transform: scale(1.05);
}

/* ============================================================
   Toast
   ============================================================ */
.dp-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(26, 32, 44, 0.92);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.dp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   深色模式
   ============================================================ */
body.dark-mode .douyin-box {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .douyin-header h1 {
    color: #e2e8f0;
}
body.dark-mode .douyin-header p {
    color: #a0aec0;
}
body.dark-mode .douyin-input-group input {
    background: #2a3a5a;
    border-color: #3a4a6a;
    color: #cbd5e0;
}
body.dark-mode .douyin-input-group input:focus {
    border-color: #4a6cf7;
    background: #1a2a4a;
}
body.dark-mode .douyin-features {
    background: linear-gradient(135deg, #1a2a4a, #1e2a4a);
    border-color: #2a3a5a;
}
body.dark-mode .douyin-features .features-text {
    color: #cbd5e0;
}
body.dark-mode .douyin-features .features-text strong {
    color: #6a8cff;
}
body.dark-mode .douyin-tips {
    background: #2a2a2a;
    border-left-color: #d69e2e;
    color: #d69e2e;
}
body.dark-mode .douyin-error {
    background: #3a1a1a;
    border-color: #5a2a2a;
    color: #fc8181;
}
body.dark-mode .debug-box {
    background: #1a2a4a;
    border-color: #2a3a5a;
    color: #cbd5e0;
}
body.dark-mode .feature-advantage-card {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .feature-advantage-card:hover {
    border-color: #4a6cf7;
}
body.dark-mode .feature-advantage-card h4 {
    color: #e2e8f0;
}
body.dark-mode .feature-advantage-card p {
    color: #a0aec0;
}
body.dark-mode .how-to-card,
body.dark-mode .support-card {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .how-to-card:hover,
body.dark-mode .support-card:hover {
    border-color: #4a6cf7;
}
body.dark-mode .section-title {
    color: #e2e8f0;
}
body.dark-mode .how-step .step-info strong {
    color: #e2e8f0;
}
body.dark-mode .how-step .step-info p {
    color: #a0aec0;
}
body.dark-mode .support-item {
    background: #1a2a4a;
}
body.dark-mode .support-item:hover {
    background: #1e2a4a;
    border-color: #4a6cf7;
}
body.dark-mode .support-item strong {
    color: #e2e8f0;
}
body.dark-mode .support-item p {
    color: #a0aec0;
}

body.dark-mode .dp-card,
body.dark-mode .dp-gallery-section {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .dp-title {
    color: #e2e8f0;
}
body.dark-mode .dp-author-name {
    color: #e2e8f0;
}
body.dark-mode .dp-author-avatar {
    background: #1a2a4a;
}
body.dark-mode .dp-author-avatar-text {
    background: linear-gradient(135deg, #1e2a4a, #2a3a5a);
    color: #6a8cff;
}
body.dark-mode .dp-stats {
    background: #1a2a4a;
}
body.dark-mode .dp-stat-num {
    color: #e2e8f0;
}
body.dark-mode .dp-btn {
    background: #1a2a4a;
    border-color: #2a3a5a;
    color: #a0aec0;
}
body.dark-mode .dp-btn:hover {
    border-color: #4a6cf7;
    color: #6a8cff;
}
body.dark-mode .dp-btn-primary {
    background: #4a6cf7;
    border-color: #4a6cf7;
    color: #fff;
}
body.dark-mode .dp-btn-primary:hover {
    background: #3a5cd9;
    color: #fff;
}
body.dark-mode .dp-gallery-title {
    color: #e2e8f0;
}
body.dark-mode .dp-gallery-item {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .dp-gallery-footer {
    background: #1a2a4a;
    border-top-color: #2a3a5a;
}
body.dark-mode .dp-gallery-label {
    color: #a0aec0;
}
body.dark-mode .dp-gallery-dl {
    background: #1e2a4a;
    color: #6a8cff;
}
body.dark-mode .dp-gallery-dl:hover {
    background: #4a6cf7;
    color: #fff;
}
body.dark-mode .dp-tag-time {
    color: #718096;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
    .features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .features-bottom-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .dp-card-body {
        flex-direction: column;
        gap: 20px;
        padding: 18px;
    }
    .dp-preview {
        width: 100%;
        flex: 0 0 auto;
        aspect-ratio: 3 / 4;
        max-height: 420px;
    }
    .dp-title {
        font-size: 17px;
    }
    .dp-stats {
        padding: 12px 8px;
    }
    .dp-stat-num {
        font-size: 14px;
    }
    .dp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .dp-gallery-section {
        padding: 18px;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .douyin-box {
        padding: 20px 16px;
    }
    .douyin-input-group {
        flex-direction: column;
    }
    .douyin-input-group input {
        width: 100%;
    }
    .douyin-btn {
        width: 100%;
        justify-content: center;
    }
    .douyin-header h1 {
        font-size: 22px;
    }
    .douyin-features {
        flex-wrap: wrap;
        padding: 10px 14px;
    }
    .douyin-features .features-icon {
        font-size: 20px;
    }
    .douyin-features .features-text {
        font-size: 13px;
    }
    .features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .feature-advantage-card {
        padding: 14px 14px 12px;
    }
    .feature-advantage-card .advantage-icon {
        font-size: 26px;
    }
    .feature-advantage-card h4 {
        font-size: 14px;
    }
    .how-to-card,
    .support-card {
        padding: 16px 18px 18px;
    }
    .how-to-steps {
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
    }

    /* 手机端按钮布局：主按钮整行 + 次要按钮一行 3 个 */
    .dp-actions {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px !important;
        width: 100%;
        margin-top: auto;
    }
    .dp-actions .dp-btn-primary {
        grid-column: 1 / -1;
        width: 100%;
        padding: 13px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 14px rgba(74, 108, 247, 0.3) !important;
        gap: 8px !important;
    }
    .dp-actions .dp-btn-primary i {
        font-size: 18px !important;
    }
    .dp-actions .dp-btn:not(.dp-btn-primary) {
        flex: none !important;
        padding: 10px 4px !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        border-radius: 10px !important;
        gap: 4px !important;
        justify-content: center !important;
        min-width: 0 !important;
        width: 100% !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dp-actions .dp-btn:not(.dp-btn-primary) i {
        font-size: 14px !important;
        flex-shrink: 0;
    }
    .dp-actions .dp-btn:not(.dp-btn-primary) {
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .features-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .feature-advantage-card {
        padding: 10px 8px;
        border-radius: 10px;
    }
    .feature-advantage-card .advantage-icon {
        font-size: 22px;
    }
    .feature-advantage-card h4 {
        font-size: 12px;
    }
    .feature-advantage-card p {
        font-size: 11px;
    }
    .how-to-card,
    .support-card {
        padding: 14px 14px 16px;
    }
    .how-to-steps {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .how-step .step-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .how-step .step-info strong {
        font-size: 12px;
    }
    .how-step .step-info p {
        font-size: 11px;
    }
    .support-item {
        padding: 6px 10px;
    }
    .support-item i {
        font-size: 18px;
        width: 26px;
    }
    .support-item strong {
        font-size: 12px;
    }

    .dp-preview {
        max-height: 340px;
    }
    .dp-title {
        font-size: 16px;
    }
    .dp-actions {
        gap: 6px !important;
    }
    .dp-actions .dp-btn-primary {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    .dp-actions .dp-btn-primary i {
        font-size: 16px !important;
    }
    .dp-actions .dp-btn:not(.dp-btn-primary) {
        padding: 9px 2px !important;
        font-size: 11.5px !important;
        gap: 3px !important;
    }
    .dp-actions .dp-btn:not(.dp-btn-primary) i {
        font-size: 13px !important;
    }
    .dp-gallery-grid {
        grid-template-columns: 1fr;
    }
    .dp-stat i {
        font-size: 17px;
    }
    .dp-stat-num {
        font-size: 13px;
    }
    .dp-stat-label {
        font-size: 10.5px;
    }
}
/* ============================================================
   清晰度列表区块
   ============================================================ */
.dp-quality-section {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.dp-quality-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
}
.dp-quality-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dp-quality-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    background: #fafbfc;
    transition: all 0.2s;
    cursor: pointer;
}
.dp-quality-item:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
}
.dp-quality-item.active {
    background: #f0f5ff;
    border-color: #4a6cf7;
}
.dp-quality-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dp-quality-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}
.dp-quality-meta {
    font-size: 12px;
    color: #718096;
}
.dp-quality-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.dp-q-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}
.dp-q-preview {
    background: transparent;
    color: #4a6cf7;
}
.dp-q-preview:hover {
    background: #eef2ff;
}
.dp-q-download {
    background: #2d3748;
    color: #ffffff;
}
.dp-q-download:hover {
    background: #1a202c;
}
.dp-quality-item.active .dp-q-download {
    background: #4a6cf7;
}
.dp-quality-item.active .dp-q-download:hover {
    background: #3a5cd9;
}

/* 深色模式适配 */
body.dark-mode .dp-quality-section {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .dp-quality-title {
    color: #e2e8f0;
}
body.dark-mode .dp-quality-item {
    background: #1a2a4a;
    border-color: #2a3a5a;
}
body.dark-mode .dp-quality-item:hover {
    border-color: #4a6cf7;
}
body.dark-mode .dp-quality-item.active {
    background: #1e2a4a;
    border-color: #4a6cf7;
}
body.dark-mode .dp-quality-name {
    color: #e2e8f0;
}
body.dark-mode .dp-quality-meta {
    color: #a0aec0;
}
body.dark-mode .dp-q-preview {
    color: #6a8cff;
}
body.dark-mode .dp-q-preview:hover {
    background: #2a3a5a;
}
body.dark-mode .dp-q-download {
    background: #4a5568;
}
body.dark-mode .dp-q-download:hover {
    background: #2d3748;
}
body.dark-mode .dp-quality-item.active .dp-q-download {
    background: #4a6cf7;
}

/* 手机端适配清晰度列表 */
@media (max-width: 768px) {
    .dp-quality-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }
    .dp-quality-actions {
        width: 100%;
    }
    .dp-q-btn {
        flex: 1;
        padding: 8px 0;
    }
}