/**
 * BubbleAI 主题样式
 *
 * @package BubbleAI
 */

/* ===== 色彩系统 ===== */
:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-title: #1a1a1a;
    --text-body: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #e5e7eb;
    --bg-page: #f5f5f5;
    --bg-card: #ffffff;
    --bg-gray: #f8f8f8;
    --bg-hover: #f0f0f0;
    --bg-selected: #e8f4ff;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --sidebar-width: 240px;
    --header-height: 60px;
    --transition: all 0.2s ease;
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ===== 顶部导航栏 ===== */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 32px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-zh {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.2;
}

.logo-en {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.2;
}

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

.header-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: var(--transition);
}

.header-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-title);
}

.header-nav-item.active {
    background: var(--bg-selected);
    color: var(--primary);
}

.header-nav-icon {
    font-size: 16px;
}

/* 顶部广告横幅 */
.header-ad {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-ad img {
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-ad img:hover {
    opacity: 0.85;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-left: auto;
}

/* ===== 双栏布局 ===== */
.site-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* ===== 左侧边栏 ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
    transition: transform 0.3s ease;
}

.sidebar-inner {
    padding: 16px 12px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px 12px;
}

/* 一级分类 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.category-item:hover {
    background: var(--bg-hover);
}

.category-item.active {
    background: var(--bg-selected);
    color: var(--primary);
}

.category-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.category-name {
    font-weight: 500;
}

.category-count {
    font-size: 12px;
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-light);
}

/* ===== 右侧主内容区 ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px 28px;
    min-height: calc(100vh - var(--header-height));
}

/* 主内容区顶部广告横幅 */
.top-banner {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.top-banner a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.top-banner a:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.top-banner-text {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.top-banner img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
}

/* ===== 二级分类标签 ===== */
.sub-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.sub-cat-item {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.sub-cat-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sub-cat-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 分类区块 ===== */
.category-section {
    margin-bottom: 36px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title-icon {
    font-size: 22px;
}

.more-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.more-link:hover {
    color: var(--primary-hover);
}

/* ===== 页面标题 ===== */
.page-header {
    margin-bottom: 16px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.4;
    margin-bottom: 4px;
}

.page-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 网站卡片网格 ===== */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.site-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.site-card:hover {
    border-color: var(--primary);
    background: #fafbfc;
}

.site-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    overflow: hidden;
}

.site-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.site-card-content {
    flex: 1;
    min-width: 0;
}

.site-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-tag {
    font-size: 11px;
    background: #dbeafe;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.site-clicks {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-body);
    transition: var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 提交页面 ===== */
.submit-container {
    max-width: 640px;
}

.submit-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.submit-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-title);
    text-align: center;
    margin-bottom: 6px;
}

.submit-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* 提交方式选择 */
.submit-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.submit-option {
    padding: 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.submit-option:hover {
    border-color: var(--primary);
}

.submit-option.active {
    border-color: var(--primary);
    background: var(--bg-selected);
}

.submit-option-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 10px;
}

.submit-option.active .submit-option-icon {
    background: var(--primary);
}

.submit-option-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 4px;
}

.submit-option-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.submit-option-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
}

.tag-review {
    background: #fff3cd;
    color: #856404;
}

.tag-auto {
    background: #d4edda;
    color: #155724;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-title);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-title);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input-group {
    display: flex;
    gap: 10px;
}

.form-input-group .form-input {
    flex: 1;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-title);
    resize: vertical;
    min-height: 90px;
    transition: var(--transition);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-title);
    cursor: pointer;
}

/* 验证码 */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    padding: 10px 14px;
    background: var(--bg-gray);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-title);
}

.captcha-input {
    width: 70px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-body);
}

.btn-secondary:hover {
    background: var(--bg-gray);
}

/* 友链提示 */
.link-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.link-notice-title {
    font-size: 13px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 6px;
}

.link-notice-text {
    font-size: 12px;
    color: #856404;
    margin-bottom: 10px;
}

.link-notice-code {
    background: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    color: #664d03;
    overflow-x: auto;
}

/* ===== AI资讯 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.news-cover {
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.news-content {
    padding: 14px;
}

.news-tag {
    font-size: 11px;
    background: var(--bg-selected);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
}

/* ===== 排行榜 ===== */
.rank-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.rank-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.rank-tab:hover {
    border-color: var(--primary);
}

.rank-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.rank-list {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: var(--bg-gray);
}

.rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
}

.rank-num.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}

.rank-num.silver {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.rank-num.bronze {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
}

.rank-num.normal {
    background: var(--bg-gray);
    color: var(--text-muted);
}

.rank-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.rank-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-title);
    margin-bottom: 2px;
}

.rank-url {
    font-size: 11px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-stats {
    text-align: right;
}

.rank-clicks {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.rank-label {
    font-size: 10px;
    color: var(--text-light);
}

/* ===== 关于我们 ===== */
.about-container {
    max-width: 720px;
}

.about-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.about-card h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.3;
    margin-bottom: 16px;
}

.about-card h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.4;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.about-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-card ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.about-card li {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 6px;
    list-style: disc;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.contact-item {
    background: var(--bg-gray);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.contact-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.contact-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-title);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 详情页 ===== */
.detail-page {
    margin: -24px -32px 0;
    background: var(--bg-page);
}

/* 详情页顶部Banner */
.detail-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
}

.detail-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.detail-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.detail-banner-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.detail-banner-info {
    flex: 1;
}

.detail-banner-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.detail-banner-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
}

.detail-banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-banner-tag {
    font-size: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.detail-banner-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.detail-banner-action {
    flex-shrink: 0;
}

.btn-visit-banner {
    background: #fff;
    color: #1e3a5f;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-visit-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #1e3a5f;
}

/* 详情页主体 */
.detail-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

/* 左侧内容区 */
.detail-main {
    min-width: 0;
}

.detail-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.detail-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
    border-radius: 2px;
}

.detail-article {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.9;
}

.detail-article p {
    margin-bottom: 18px;
}

.detail-article h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-title);
    margin: 28px 0 14px;
}

.detail-article ul {
    padding-left: 20px;
    margin-bottom: 18px;
}

.detail-article li {
    margin-bottom: 10px;
    list-style: disc;
}

.detail-article strong {
    color: var(--text-title);
    font-weight: 600;
}

/* 广告位 */
.detail-ad {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    overflow: hidden;
}

/* 右侧边栏 */
.detail-sidebar {
    position: sticky;
    top: 88px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

.sidebar-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-ad {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* 相关推荐小卡片 */
.related-list {
    display: flex;
    flex-direction: column;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    background: var(--bg-gray);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 10px;
    border-color: transparent;
}

.related-item-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.related-item-info {
    flex: 1;
    min-width: 0;
}

.related-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-title);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #1e293b;
    margin-top: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 28px 28px;
}

/* 页脚主体 */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

/* Logo区域 */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.footer-brand-text {
    color: #fff;
}

.footer-brand-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.footer-brand-text p {
    font-size: 12px;
    color: #94a3b8;
}

/* 快捷链接 */
.footer-links-row {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-links-row a {
    font-size: 14px;
    color: #cbd5e1;
    transition: color 0.2s;
}

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

/* 友情链接 */
.friend-links-section {
    margin-bottom: 20px;
}

.friend-links-title {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.friend-links a {
    font-size: 13px;
    color: #94a3b8;
    padding: 0 16px;
    border-right: 1px solid #334155;
    transition: color 0.2s;
}

.friend-links a:first-child {
    padding-left: 0;
}

.friend-links a:last-child {
    border-right: none;
}

.friend-links a:hover {
    color: #3b82f6;
}

/* 版权信息 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.footer-bottom a {
    color: #64748b;
}

.footer-bottom a:hover {
    color: #3b82f6;
}

/* ===== 空状态 ===== */
.no-sites {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: 12px;
}

/* ===== 侧边栏遮罩 ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 40;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .sites-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .sites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .top-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 16px;
    }

    .header-logo {
        margin-right: 12px;
    }

    .logo-text {
        display: none;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .top-banner {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .submit-options {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-main {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .footer-links-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .friend-links {
        justify-content: center;
    }

    .friend-links a {
        padding: 0 12px;
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Detail page */
    .detail-page {
        margin: -16px -16px 0;
    }

    .detail-banner {
        padding: 32px 20px;
    }

    .detail-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .detail-banner-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .detail-banner-title {
        font-size: 24px;
    }

    .detail-banner-desc {
        font-size: 14px;
    }

    .detail-banner-tags {
        justify-content: center;
    }

    .detail-banner-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .detail-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .detail-sidebar {
        position: static;
    }

    .btn-visit-banner {
        padding: 14px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sites-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .friend-links-section {
        padding: 12px 16px;
    }

    .friend-links a {
        padding: 4px 12px;
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-icp {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== 排行榜页面 ===== */
.rank-page {
    margin: -24px -32px 0;
    background: var(--bg-page);
}

.rank-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
}

.rank-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.rank-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rank-banner-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.rank-banner-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.rank-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.rank-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rank-tab {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.rank-tab:hover {
    border-color: var(--primary);
}

.rank-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.rank-list {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: var(--bg-gray);
}

.rank-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.rank-num.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}

.rank-num.silver {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.rank-num.bronze {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
}

.rank-num.normal {
    background: var(--bg-gray);
    color: var(--text-muted);
}

.rank-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 2px;
}

.rank-url {
    font-size: 12px;
    color: var(--text-light);
}

.rank-stats {
    text-align: right;
}

.rank-clicks {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.rank-label {
    font-size: 11px;
    color: var(--text-light);
}

/* ===== 关于我们页面 ===== */
.about-page {
    margin: -24px -32px 0;
    background: var(--bg-page);
}

.about-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 64px 32px;
    position: relative;
    overflow: hidden;
}

.about-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.about-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-banner-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.about-banner-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

.about-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.about-stat-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.about-stat-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.about-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.about-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-card ul {
    padding-left: 20px;
}

.about-card li {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
}

.contact-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.contact-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 24px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-item {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--bg-selected);
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 6px;
}

.contact-value {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 网站提交页面 ===== */
.submit-page {
    margin: -24px -32px 0;
    background: var(--bg-page);
}

.submit-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
}

.submit-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.submit-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.submit-banner-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.submit-banner-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.submit-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.submit-main {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.submit-main h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.submit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.submit-tips {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.submit-tips h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-tips ul {
    padding-left: 20px;
}

.submit-tips li {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
}

.submit-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 16px;
}

.submit-notice-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.submit-notice-text {
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}

/* ===== AI资讯页面 ===== */
.news-page {
    margin: -24px -32px 0;
    background: var(--bg-page);
}

.news-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
}

.news-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.news-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.news-banner-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.news-banner-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.news-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.news-card-image {
    height: 180px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.news-card-body {
    padding: 20px;
}

.news-card-tag {
    display: inline-block;
    font-size: 11px;
    background: var(--bg-selected);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 响应式补充 ===== */
@media (max-width: 1024px) {
    .submit-body {
        grid-template-columns: 1fr;
    }
    
    .submit-sidebar {
        display: none;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rank-page,
    .about-page,
    .submit-page,
    .news-page {
        margin: -20px -16px 0;
    }
    
    .rank-banner,
    .about-banner,
    .submit-banner,
    .news-banner {
        padding: 32px 20px;
    }
    
    .rank-banner-title,
    .about-banner-title,
    .submit-banner-title,
    .news-banner-title {
        font-size: 24px;
    }
    
    .rank-body,
    .about-body,
    .submit-body,
    .news-body {
        padding: 20px 16px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .about-stat-num {
        font-size: 28px;
    }
    
    .about-section {
        margin-bottom: 24px;
    }
}

/* ===== 移动端适配改进 ===== */
@media (max-width: 768px) {
    /* 卡片在小屏幕上更紧凑 */
    .site-card {
        padding: 8px;
    }
    
    .site-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .site-title {
        font-size: 14px;
    }
    
    .site-desc {
        font-size: 12px;
    }
    
    /* 排行榜移动端优化 */
    .rank-item {
        padding: 12px 14px;
        gap: 12px;
    }
    
    .rank-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .rank-title {
        font-size: 14px;
    }
    
    .rank-clicks {
        font-size: 16px;
    }
    
    /* 表单移动端优化 */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* 防止 iOS 自动缩放 */
    }
    
    /* 详情页移动端优化 */
    .detail-banner {
        padding: 24px 16px;
    }
    
    .detail-banner-title {
        font-size: 22px;
    }
    
    .detail-section {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .detail-article {
        font-size: 14px;
    }
    
    /* 分类标签移动端优化 */
    .sub-categories {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 12px;
        margin-bottom: 16px;
        -webkit-overflow-scrolling: touch;
    }
    
    .sub-cat-item {
        flex-shrink: 0;
    }
}

/* ===== 480px 以下小屏幕 ===== */
@media (max-width: 480px) {
    .site-header {
        padding: 0 12px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .main-content {
        padding: 12px;
    }
    
    /* 单列卡片 */
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .site-card {
        padding: 10px;
    }
    
    .site-icon {
        width: 48px;
        height: 48px;
    }
    
    /* 排行榜小屏幕 */
    .rank-tabs {
        flex-wrap: wrap;
    }
    
    .rank-tab {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    /* 统计数据小屏幕 */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .about-stat-item {
        padding: 16px;
    }
    
    .about-stat-num {
        font-size: 24px;
    }
}

/* ===== 性能优化样式 ===== */

/* 图片懒加载占位 */
img[loading="lazy"] {
    background: var(--bg-gray);
}

/* 平滑滚动 */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .top-banner,
    .detail-ad,
    .sidebar-ad,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .site-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== 表单消息样式 ===== */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== 加载状态 ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== 空状态 ===== */
.rank-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ===== 可访问性改进 ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* 焦点样式 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 隐藏但保持可访问 */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bg-card);
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
}
