/* =======================================================
 * 详情页专属样式 (单容器・素色大一统版)
 * ======================================================= */

/* --- 1. 详情页容器 --- */
.detail-wrap { padding-top: 16px; padding-bottom: 60px; }

/* 面包屑与操作栏 */
.detail-header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 12px; font-size: 12px; color: var(--text-sub); 
}
.breadcrumb { display: flex; align-items: center; }
.breadcrumb a { color: var(--text-sub); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb i { font-size: 10px; margin: 0 8px; color: #cbd5e1; }
.breadcrumb .current { color: var(--text-desc); }

.btn-report { 
    color: #ef4444; cursor: pointer; display: flex; align-items: center; gap: 4px; 
    font-size: 11.5px; background: none; border: none; outline: none; transition: 0.2s;
}
.btn-report:hover { color: #dc2626; text-decoration: underline; }

/* --- 2. 🌟 核心主卡片 (大一统容器) --- */
.site-card { 
    background: var(--bg-white); border: 1px solid #e5e7eb; border-radius: 10px; 
    padding: 24px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); 
}

/* 卡片上半区：分左右布局 */
.site-card-top {
    display: flex; justify-content: space-between; align-items: center; 
}

/* 上半区左侧：图标与信息 */
.site-card-main { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.site-icon { 
    width: 64px; height: 64px; border-radius: 10px; background: #f8fafc; 
    border: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center; 
    font-size: 28px; color: var(--color-primary); flex-shrink: 0; overflow: hidden; 
}
.site-icon img { width: 100%; height: 100%; object-fit: contain; }

.site-info { display: flex; flex-direction: column; justify-content: center; }
.site-title { 
    font-size: 18px; font-weight: 700; color: #334155; margin: 0 0 8px 0; 
    display: flex; align-items: center; gap: 8px; 
}
.badge-banned { font-size: 11px; background: #ef4444; color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: normal; }
.site-meta { display: flex; gap: 14px; font-size: 12.5px; color: #64748b; margin: 0; }
.site-meta span { display: flex; align-items: center; gap: 4px; }

/* 上半区右侧：操作按钮控制面板 (🌟 核心调整：风格大一统) */
.site-card-actions { 
    display: flex; flex-direction: column; gap: 10px; 
    min-width: 150px; flex-shrink: 0; margin-left: 20px;
}

/* 🌟 前往访问：背景色改为素色，与点赞分享对齐 */
.btn-go { 
    display: flex; align-items: center; justify-content: center; gap: 6px; 
    height: 38px; background: #f8fafc; color: #475569; 
    border-radius: 6px; font-size: 13.5px; font-weight: 700; transition: 0.2s; 
    border: 1px solid #e2e8f0; cursor: pointer; text-decoration: none; 
}
.btn-go:hover { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }
.btn-go.disabled { background: #f1f5f9; color: #cbd5e1; cursor: not-allowed; border-color: #f1f5f9; }

.action-sub-group { display: flex; gap: 8px; }
.btn-plain { 
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; 
    height: 32px; background: #f8fafc; color: #475569; 
    border-radius: 6px; font-size: 12.5px; font-weight: 500; border: 1px solid #e2e8f0; 
    cursor: pointer; transition: 0.2s; 
}
.btn-plain:hover { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }
.btn-plain.liked { color: #ef4444; border-color: #fca5a5; background: #fef2f2; }

/* 🌟 内部分割线 */
.detail-divider {
    height: 1px; background: #f1f5f9; margin: 20px 0;
}

/* --- 3. 下半区：网站简介模块与免责声明 --- */
.desc-title { 
    font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 12px; 
    padding-left: 8px; border-left: 3px solid var(--color-primary); line-height: 1.1; 
}
.desc-content { font-size: 13.5px; color: var(--text-sub); line-height: 1.7; white-space: pre-wrap; text-align: justify; }

.disclaimer { 
    margin-top: 24px; padding-top: 16px; border-top: 1px dashed #e5e7eb;
    font-size: 11.5px; color: #94a3b8; line-height: 1.6; 
    display: flex; align-items: flex-start; gap: 6px;
}
.disclaimer i { margin-top: 2px; }

/* --- 4. 相关推荐 --- */
.related-section {
    background: var(--bg-white); border: 1px solid #e5e7eb; border-radius: 10px; 
    padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); 
}
.related-title { 
    font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 16px; 
    padding-left: 8px; border-left: 3px solid var(--color-primary); line-height: 1.1; 
}

/* 推荐卡片细边框与交互 */
.detail-wrap .app-card { border: 1px solid #e5e7eb; box-shadow: none; }
.detail-wrap .app-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.detail-wrap .app-grid { gap: 6px; }

@media (min-width: 768px) {
    .detail-wrap .app-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }
}
@media (min-width: 1024px) {
    .detail-wrap .app-grid { grid-template-columns: repeat(8, 1fr); gap: 10px; }
}

/* --- 5. 弹窗与 Toast --- */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); z-index: 3000; display: none; align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.2s; 
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-card { 
    background: #fff; width: 90%; max-width: 360px; border-radius: 10px; padding: 20px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-10px); transition: 0.2s; 
}
.modal-overlay.active .modal-card { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-header h3 { font-size: 15px; font-weight: 600; margin: 0; color: #1e293b; }
.modal-close { background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; }
.feedback-label { 
    display: flex; align-items: center; gap: 8px; background: #f8fafc; padding: 10px 12px; 
    border-radius: 6px; border: 1px solid #e2e8f0; margin-bottom: 8px; cursor: pointer; font-size: 12.5px; color: #475569; transition: 0.2s;
}
.feedback-label:hover { background: #f1f5f9; border-color: #cbd5e1; }
.modal-textarea { 
    width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #e2e8f0; margin-bottom: 16px; 
    font-size: 13px; height: 70px; resize: none; background: #f8fafc; outline: none; transition: 0.2s;
}
.modal-textarea:focus { border-color: var(--color-primary); background: #fff; }
.btn-submit { width: 100%; padding: 10px; background: var(--color-primary); color: #fff; border: none; border-radius: 6px; font-size: 13.5px; cursor: pointer; font-weight: 600;}
.btn-submit:hover { background: #2563eb; }

#toast { 
    visibility: hidden; background: rgba(30,41,59,0.9); color: #fff; text-align: center; 
    border-radius: 30px; padding: 8px 16px; position: fixed; z-index: 4000; left: 50%; transform: translateX(-50%); 
    bottom: 40px; font-size: 12.5px; opacity: 0; transition: 0.3s; 
}

/* --- 手机端适配 --- */
@media (max-width: 640px) {
    .site-card { padding: 20px; }
    .site-card-top { flex-direction: column; align-items: flex-start; gap: 20px; }
    .site-card-actions { width: 100%; margin-left: 0; }
    .related-section { padding: 20px; }
}