/* ========================================
   快快搜盘 - 觅觅风格样式
   简洁网盘资源搜索
   ======================================== */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
}

/* ========================================
   顶部导航栏 - mipan.so 风格
   ======================================== */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.brand .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3f63b4, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.brand-dom {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-item {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #3f63b4;
}

.nav-item.active {
    color: #3f63b4;
    font-weight: 500;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    background: #eee;
}

.theme-dot {
    width: 12px;
    height: 12px;
    background: #3f63b4;
    border-radius: 50%;
}

.theme-label {
    font-size: 12px;
    color: #666;
}

/* ========================================
   主内容区域
   ======================================== */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-title span {
    color: #3f63b4;
}

.hero-subtitle {
    font-size: 15px;
    color: #999;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   搜索区域
   ======================================== */
.search-section {
    max-width: 640px;
    margin: 0 auto 32px;
}

.search-box {
    display: flex;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 4px;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: #3f63b4;
}

.search-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    color: #333;
    background: transparent;
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: #bbb;
}

.search-btn {
    height: 44px;
    padding: 0 24px;
    background: linear-gradient(135deg, #3f63b4, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    opacity: 0.9;
}

/* ========================================
   热门关键词
   ======================================== */
.hot-section {
    max-width: 700px;
    margin: 0 auto 60px;
}

.hot-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    text-align: center;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.hot-tag {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.hot-tag:hover {
    background: #f0f2f9;
    color: #3f63b4;
}

/* ========================================
   搜索结果页
   ======================================== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 8px;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.results-count strong {
    color: #3f63b4;
    font-size: 16px;
}

.cloud-filter {
    display: flex;
    gap: 6px;
}

.cloud-btn {
    padding: 5px 12px;
    font-size: 12px;
    color: #666;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.cloud-btn:hover {
    border-color: #3f63b4;
    color: #3f63b4;
}

.cloud-btn.active {
    background: linear-gradient(135deg, #3f63b4, #764ba2);
    color: white;
    border: none;
}

/* 结果网格 - 单列布局 */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.result-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    width: 100%;
}

.result-card:hover {
    border-color: #3f63b4;
}

.result-content {
    padding: 16px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.result-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    flex: 1;
}

.cloud-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
}

.cloud-badge.quark { background: #00d2ff; color: white; }
.cloud-badge.baidu { background: #3063eb; color: white; }
.cloud-badge.aliyun { background: #ff6a00; color: white; }
.cloud-badge.xunlei { background: #5bb8f5; color: white; }
.cloud-badge.tianyi { background: #00beae; color: white; }
.cloud-badge.unknown { background: #999; color: white; }

.result-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.result-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.result-date {
    font-size: 12px;
    color: #999;
}

.copy-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #3f63b4, #764ba2);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    opacity: 0.9;
}

.copy-btn.copied {
    background: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
}

.page-link {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e5e5e5;
}

.page-link:hover {
    border-color: #3f63b4;
    color: #3f63b4;
}

.page-link.active {
    background: linear-gradient(135deg, #3f63b4, #764ba2);
    color: white;
    border: none;
}

/* 无结果 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border-radius: 8px;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 14px;
    color: #999;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-disclaimer {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-disclaimer a {
    color: #3f63b4;
    text-decoration: none;
}

.footer-disclaimer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3f63b4;
}

.footer-copyright {
    font-size: 12px;
    color: #999;
}

/* ========================================
   关于页
   ======================================== */
.about-page {
    padding: 40px 0;
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    background: #fafafa;
    border-radius: 8px;
    padding: 32px;
}

.about-section {
    margin-bottom: 28px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.about-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-section ul, .about-section ol {
    font-size: 14px;
    color: #666;
    line-height: 2;
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 4px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .topbar-inner {
        padding: 0 16px;
    }
    
    .brand-dom {
        display: none;
    }
    
    .nav {
        gap: 16px;
    }
    
    .hero {
        padding: 48px 16px 32px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .main {
        padding: 0 16px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .cloud-filter {
        flex-wrap: wrap;
    }
}

/* ========================================
   深色主题
   ======================================== */
body.dark-theme {
    color: #e0e0e0;
    background: #1a1a1a;
}

body.dark-theme .topbar {
    background: #1a1a1a;
    border-bottom-color: #333;
}

body.dark-theme .brand-name {
    color: #e0e0e0;
}

body.dark-theme .brand-dom {
    color: #666;
}

body.dark-theme .nav-item {
    color: #888;
}

body.dark-theme .nav-item:hover,
body.dark-theme .nav-item.active {
    color: #7b9cff;
}

body.dark-theme .theme-btn {
    background: #2a2a2a;
}

body.dark-theme .theme-btn:hover {
    background: #333;
}

body.dark-theme .theme-label {
    color: #888;
}

body.dark-theme .theme-dot {
    background: #7b9cff;
}

body.dark-theme .hero-title {
    color: #e0e0e0;
}

body.dark-theme .hero-subtitle {
    color: #666;
}

body.dark-theme .search-box {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-theme .search-box:focus-within {
    border-color: #7b9cff;
}

body.dark-theme .search-input {
    color: #e0e0e0;
}

body.dark-theme .search-input::placeholder {
    color: #555;
}

body.dark-theme .hot-tag {
    background: #2a2a2a;
    color: #888;
}

body.dark-theme .hot-tag:hover {
    background: #333;
    color: #7b9cff;
}

body.dark-theme .results-header {
    background: #2a2a2a;
}

body.dark-theme .results-count {
    color: #888;
}

body.dark-theme .cloud-btn {
    background: #2a2a2a;
    border-color: #333;
    color: #888;
}

body.dark-theme .cloud-btn:hover {
    border-color: #7b9cff;
    color: #7b9cff;
}

body.dark-theme .result-card {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-theme .result-card:hover {
    border-color: #7b9cff;
}

body.dark-theme .result-title {
    color: #e0e0e0;
}

body.dark-theme .result-meta {
    color: #666;
}

body.dark-theme .result-desc {
    color: #888;
}

body.dark-theme .result-footer {
    border-top-color: #333;
}

body.dark-theme .result-date {
    color: #666;
}

body.dark-theme .page-link {
    background: #2a2a2a;
    border-color: #333;
    color: #888;
}

body.dark-theme .page-link:hover {
    border-color: #7b9cff;
    color: #7b9cff;
}

body.dark-theme .no-results {
    background: #2a2a2a;
}

body.dark-theme .footer {
    background: #1a1a1a;
    border-top-color: #333;
}

body.dark-theme .footer-disclaimer {
    color: #666;
}

body.dark-theme .footer-links a {
    color: #888;
}

body.dark-theme .footer-links a:hover {
    color: #7b9cff;
}

body.dark-theme .footer-copyright {
    color: #555;
}

body.dark-theme .about-content {
    background: #2a2a2a;
}

body.dark-theme .about-section h3 {
    color: #e0e0e0;
    border-bottom-color: #333;
}

body.dark-theme .about-section p,
body.dark-theme .about-section li {
    color: #888;
}

body.dark-theme .about-content {
    border-color: #333;
}
