/* 前端搜索页样式 - 轻快简约 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    color: #333;
}

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

/* 导航 */
.header { padding: 12px 0; }
.nav-top { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.nav-top .btn-submit:first-child { margin-right: auto; }
.btn-submit, .nav-extra-btn {
    padding: 6px 14px; border-radius: 18px; border: 1px solid #e0e0e0;
    background: #fff; color: #666; cursor: pointer; font-size: 13px;
    text-decoration: none; transition: all 0.2s;
}
.btn-submit:hover, .nav-extra-btn:hover { border-color: #4e6ef2; color: #4e6ef2; }

/* 主区域 */
.main { text-align: center; padding: 50px 0 24px; }

.site-title {
    font-size: 40px; color: #1a1a1a; margin-bottom: 10px; font-weight: 700;
    letter-spacing: 2px;
}

.banner-texts { margin-bottom: 24px; }
.banner-text { color: #888; font-size: 14px; margin: 4px 0; }

/* 搜索框 */
.search-box { max-width: 560px; margin: 0 auto; }
.search-input-wrap {
    display: flex; background: #fff; border-radius: 24px;
    overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid transparent; transition: border-color 0.2s;
}
.search-input-wrap:focus-within { border-color: #4e6ef2; }
.search-input-wrap input {
    flex: 1; padding: 14px 20px; border: none; outline: none;
    font-size: 15px; background: transparent;
}
.btn-search {
    padding: 14px 28px; background: #4e6ef2; color: #fff; border: none;
    cursor: pointer; font-size: 15px; font-weight: 600; transition: background 0.2s;
    border-radius: 0 24px 24px 0;
}
.btn-search:hover { background: #3d5bd6; }

/* 网盘类型选择 - 带图标全名 */
.search-pan-types {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 14px; flex-wrap: wrap;
}
.pan-type-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 18px; cursor: pointer;
    background: #fff; color: #666; font-size: 13px; transition: all 0.2s;
    border: 1px solid #e8e8e8; user-select: none;
}
.pan-type-btn input { display: none; }
.pan-type-btn .pan-svg { vertical-align: middle; flex-shrink: 0; }
.pan-type-btn.active { background: #4e6ef2; color: #fff; border-color: #4e6ef2; }
.pan-type-btn.active .pan-count { color: #fff; font-weight: 700; }
.pan-type-btn:hover { border-color: #4e6ef2; }
.pan-count { font-size: 13px; color: #e74c3c; margin-left: 2px; font-weight: 700; }

/* 搜索结果 - 紧凑框选 */
.results { margin-top: 20px; text-align: left; }
.result-list-box {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.result-item {
    padding: 12px 16px; display: flex; align-items: center; gap: 12px;
    transition: background 0.15s; border-bottom: 1px solid #f0f0f0;
}
.result-item:last-child { border-bottom: none; }
.result-item:hover { background: #fafbff; }

.result-left { flex: 1; min-width: 0; }
.result-title { font-size: 14px; font-weight: 500; color: #1a1a1a; line-height: 1.5;
    word-break: break-all; white-space: normal; }
.result-source { font-size: 12px; color: #bbb; margin-top: 2px; }

.result-right { flex-shrink: 0; }
.result-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 6px; font-size: 13px; text-decoration: none;
    color: #fff; transition: opacity 0.2s; border: none; cursor: pointer; font-weight: 500;
}
.result-link:hover { opacity: 0.85; }
.result-link svg { vertical-align: middle; }
.result-link.pan-baidu { background: #06a7ff; }
.result-link.pan-quark { background: #4e6ef2; }
.result-link.pan-xunlei { background: #0c8cf5; }
.result-link.pan-uc { background: #fa6400; }

/* Loading */
.loading { text-align: center; padding: 40px; color: #999; }
.spinner {
    width: 32px; height: 32px; margin: 0 auto 12px;
    border: 3px solid #eee; border-top-color: #4e6ef2;
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.no-result {
    text-align: center; padding: 40px; color: #bbb; font-size: 14px;
}

/* 弹窗 */
.popup-modal, .anti-red-modal, .captcha-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); display: flex; align-items: center;
    justify-content: center; z-index: 1000;
}
.popup-content, .anti-red-content, .captcha-content {
    background: #fff; border-radius: 14px; padding: 28px; max-width: 480px;
    width: 90%; max-height: 80vh; overflow-y: auto; position: relative;
    text-align: center;
}
.popup-close {
    position: absolute; top: 10px; right: 15px; border: none; background: none;
    font-size: 22px; cursor: pointer; color: #ccc;
}
.popup-image { max-width: 100%; border-radius: 8px; margin-bottom: 12px; }
.btn-agree, .btn-copy {
    margin-top: 12px; padding: 10px 28px; border: none; border-radius: 8px;
    background: #4e6ef2; color: #fff; cursor: pointer; font-size: 14px;
}
.anti-red-icon { font-size: 42px; color: #faad14; font-weight: bold; margin-bottom: 8px; }
.anti-red-url {
    margin: 12px 0; padding: 10px; background: #f7f8fa; border-radius: 8px;
    word-break: break-all; font-family: monospace; font-size: 13px;
}

/* 验证码 */
.captcha-img-wrap { margin: 12px 0; position: relative; display: inline-block; }
.captcha-img-wrap img { border: 1px solid #eee; border-radius: 4px; }
.captcha-refresh {
    position: absolute; right: -50px; top: 50%; transform: translateY(-50%);
    color: #4e6ef2; cursor: pointer; font-size: 13px;
}
#captcha-input {
    padding: 8px; font-size: 16px; text-align: center; letter-spacing: 6px;
    border: 1px solid #ddd; border-radius: 6px; width: 140px;
}
.btn-captcha {
    display: block; margin: 12px auto 0; padding: 8px 36px;
    border: none; border-radius: 6px; background: #4e6ef2; color: #fff;
    cursor: pointer; font-size: 14px;
}

/* Footer */
.footer { text-align: center; padding: 30px 16px 20px; color: #999; font-size: 12px; border-top: 1px solid #f0f0f0; margin-top: 30px; background: #fafafa; }
.footer-section-title { font-size: 14px; font-weight: 600; color: #444; margin-bottom: 10px; text-align: center; }
.footer-about { font-size: 13px; color: #666; line-height: 1.8; margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.footer-links-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-bottom: 12px; }
.footer-links a { color: #666; text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.footer-links a:hover { color: #667eea; }
.footer-links a img { width: 18px; height: 18px; border-radius: 3px; }
.footer-apply button { background: none; border: 1px dashed #ccc; color: #999; padding: 4px 16px; border-radius: 14px; cursor: pointer; font-size: 12px; }
.footer-apply button:hover { border-color: #667eea; color: #667eea; }
.footer-bottom p { margin: 3px 0; }
.footer-bottom a { color: #999; text-decoration: none; }
.footer-bottom a:hover { color: #667eea; }

/* 响应式 */
@media (max-width: 768px) {
    .site-title { font-size: 30px; }
    .main { padding: 30px 0 16px; }
    .search-input-wrap input { padding: 12px 16px; font-size: 14px; }
    .btn-search { padding: 12px 20px; font-size: 14px; }
    .pan-type-btn { padding: 5px 10px; font-size: 12px; }
}
@media (max-width: 480px) {
    .site-title { font-size: 24px; }
    .banner-text { font-size: 13px; }
    .result-item { padding: 10px 12px; flex-wrap: wrap; }
    .result-right { width: 100%; text-align: right; }
}
