/* ==========================================================
   文章酱 - 服务页样式（降重/降AI率/查AI率）
   ========================================================== */

.service-body { padding-bottom: 60px; }
.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 26px 28px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-title .step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 上传区 */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 46px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    background: #f1f5f9;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.04);
}
.upload-zone .up-icon {
    font-size: 44px;
    margin-bottom: 12px;
    color: var(--primary);
}
.upload-zone .up-title { font-size: 16px; font-weight: 600; color: var(--text); }
.upload-zone .up-sub { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.upload-zone .up-formats {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.upload-zone .fmt-tag {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    background: var(--accent);
    color: #5a4a20;
}

/* 上传后信息 */
.upload-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f4f8fb;
    border: 1px solid #dbe8f2;
    border-radius: 12px;
    padding: 16px 20px;
}
.upload-info .file-icon { font-size: 30px; }
.upload-info .file-name {
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}
.upload-info .file-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.upload-info .btn { margin-left: auto; flex-shrink: 0; }

/* 段落列表 */
.para-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.para-stats { font-size: 13px; color: var(--text-light); }
.para-stats b { color: var(--primary); font-size: 15px; }
.para-actions { display: flex; gap: 8px; }

.para-list { max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.para-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0ece4;
    cursor: pointer;
    transition: background .15s;
    align-items: flex-start;
}
.para-item:last-child { border-bottom: none; }
.para-item:hover { background: #f8fafc; }
.para-item.selected { background: rgba(59, 130, 246, 0.06); }
.para-item .para-check { margin-top: 3px; }
.para-item .para-body { flex: 1; min-width: 0; }
.para-item .para-preview {
    font-size: 13px;
    color: var(--text);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.para-item .para-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}
.para-item .para-meta .badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}
.badge-heading { background: var(--accent); color: #1e3a8a; }

/* 选项区 */
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.option-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all .2s;
    position: relative;
}
.option-card:hover { border-color: #b9cfe0; }
.option-card.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.option-card .opt-name { font-weight: 700; font-size: 15px; color: var(--text); }
.option-card .opt-desc { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.option-card .opt-price { margin-top: 8px; font-size: 16px; color: var(--primary); font-weight: 700; }
.option-card .opt-price small { font-size: 12px; color: var(--text-light); font-weight: 400; }

/* 优惠券 */
.coupon-row { display: flex; gap: 12px; flex-wrap: wrap; }
.coupon-chip {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
}
.coupon-chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}
.coupon-chip.disabled { opacity: .45; cursor: not-allowed; }

/* 结算 */
.settle-box {
    background: linear-gradient(135deg, rgba(59,130,246,.85) 0%, rgba(96,165,250,.85) 100%);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.settle-box .amount-row { font-size: 13px; color: #fff; }
.settle-box .amount-row .ori { text-decoration: line-through; margin-right: 8px; }
.settle-box .amount-row .discount { color: #FFE58A; }
.settle-box .final-price { font-size: 26px; font-weight: 800; color: #fff; }
.settle-box .final-price small { font-size: 13px; color: #fff; font-weight: 400; }
.balance-tip { font-size: 12px; color: #fff; margin-top: 4px; }
.balance-tip a { color: #fff; text-decoration: underline; }

/* 进度 */
.progress-box { text-align: center; padding: 30px 10px; }
.progress-bar-wrap {
    max-width: 480px;
    margin: 22px auto 0;
    background: #edf0f3;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    transition: width .6s ease;
}
.progress-status { margin-top: 14px; font-size: 14px; color: var(--text-light); }
.progress-detail { margin-top: 6px; font-size: 12px; color: #9aa7b4; }
.progress-spinner {
    width: 46px; height: 46px;
    margin: 0 auto;
    border: 4px solid #e3ecf3;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-box { text-align: center; padding: 20px 10px; }
.result-icon { font-size: 52px; margin-bottom: 10px; }
.result-title { font-size: 19px; font-weight: 700; color: var(--text); }
.result-sub { font-size: 13px; color: var(--text-light); margin: 8px 0 20px; }
.download-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 404/无数据 */
.empty-tip { text-align: center; color: var(--text-light); padding: 40px 0; font-size: 14px; }

/* ==========================================================
   旧版两栏式服务页组件（版本卡 / 角标 / 功能标签 / 划线价 / 倒计时）
   ========================================================== */

/* 版本卡（兼容 service.js 对 .option-card[data-version] 的绑定） */
.vc-card { padding: 14px 16px; }
.vc-card .vc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vc-card .vc-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}
.vc-card .vc-name { font-weight: 700; font-size: 15px; color: var(--text); }
.vc-card .vc-price { text-align: right; line-height: 1.6; }
.vc-card .vc-price .cur { font-weight: 700; font-size: 15px; }
.vc-card .vc-price small { font-size: 12px; color: var(--text-light); }
.vc-card .vc-features { padding-left: 44px; display: flex; flex-wrap: wrap; }
.vc-card .vc-sub { padding-left: 44px; font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* 版本卡角标 */
.vc-badge {
    position: absolute;
    top: -8px; right: 12px;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    z-index: 1;
}
.vc-badge.blue   { background: #3B82F6; }
.vc-badge.orange { background: #F97316; }
.vc-badge.purple { background: #8B5CF6; }
.vc-badge.green  { background: #10B981; }
.vc-badge.red    { background: #EF4444; }

/* 功能标签 */
.feature-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 4px;
    margin-bottom: 3px;
}
.feature-tag i { font-size: 8px; margin-right: 3px; }
.feature-tag.has { background-color: #dcfce7; color: #16a34a; }
.feature-tag.has i { color: #16a34a; }
.feature-tag.no { background-color: #f3f4f6; color: #9ca3af; }
.feature-tag.no i { color: #9ca3af; }

/* 划线原价 */
.original-price { text-decoration: line-through; color: #9ca3af; font-size: 11px; margin-left: 5px; }

/* 红色五折倒计时 */
.countdown-container {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}
.countdown-title {
    color: #dc2626;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #dc2626;
    text-align: center;
    letter-spacing: 1px;
}
.countdown-hint { font-size: 10px; color: #ef4444; text-align: center; margin-top: 6px; }

/* 左侧卡片标题（旧版风格） */
.vc-block-title { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }

/* 蓝色信息条 */
.info-bar {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.info-bar i { color: var(--primary); margin-top: 3px; }

/* 旧版白色卡片 */
.panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.panel-title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 16px; }

/* 营销区标题 */
.mkt-title { font-size: 26px; font-weight: 700; color: var(--text); }
.mkt-sub  { font-size: 15px; color: var(--text-light); margin-top: 6px; }

/* 使用说明步骤卡 */
.usage-step {
    display: flex;
    align-items: flex-start;
}
.usage-step .us-num {
    width: 32px; height: 32px;
    background: var(--accent-deep);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
}

.hidden { display: none !important; }

/* 修复：上方 .hidden !important 会覆盖 Tailwind 的 md:flex，导致服务页桌面端导航（首页/降AI率/论文降重/查AI率/PPT生成）被隐藏。
   此处对顶部导航单独恢复 flex，使服务页导航与首页完全一致（不修改其它 .hidden 元素逻辑）。 */
@media (min-width: 768px) {
    header#navbar nav.hidden.md\:flex {
        display: flex !important;
    }
}

@media (max-width: 640px) {
    .card { padding: 18px 16px; }
    .option-grid { grid-template-columns: 1fr; }
    .settle-box { flex-direction: column; align-items: stretch; text-align: center; }
    .upload-info { flex-wrap: wrap; }
    .upload-info .btn { margin-left: 0; width: 100%; }
}
