/* ========== CSS 变量 - 主题配置 ========== */
:root {
    --primary-color: #764ba2;
    --primary-hover: #8b5cf6;
    --accent-color: #334f48;
    --bg-color: #f5f6f7;
    --card-bg: #fff;
    --card-hover-bg: #fafafa;
    --text-color: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #eee;
    --border-light: #f0f0f0;
    --header-bg: #2b2b2b;
    --header-text: #fff;
    --nav-link: rgba(255,255,255,0.8);
    --hero-gradient: linear-gradient(135deg, #000000 0%, #3c3543 100%);
    --tag-bg: #f0f0f0;
    --tag-text: #666;
    --tag-hot-bg: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    --tag-new-bg: linear-gradient(135deg, #4ecdc4, #44a08d);
    --tag-update-bg: #fff3e0;
    --tag-update-text: #e65100;
    --quick-icon-bg: rgba(0, 0, 0, 0.06);
    --quick-icon-color: #555;
    --quick-card-bg: rgba(255, 255, 255, 0.62);
    --notice-bg: #fff5f5;
    --notice-border: #ffcccc;
    --notice-text: #e74c3c;
    --scrollbar-track: #f1f1f1;
    --scrollbar-thumb: #c1c1c1;
    --scrollbar-hover: #a1a1a1;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;
}
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --card-bg: #222;
    --card-hover-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --text-secondary: #aaa;
    --text-muted: #888;
    --border-color: #333;
    --border-light: #333;
    --header-bg: #111;
    --hero-gradient: linear-gradient(135deg, #434343 0%, #1a1a1a 100%);
    --tag-bg: #333;
    --tag-text: #999;
    --tag-update-bg: #3d2a1a;
    --tag-update-text: #ffb74d;
    --quick-icon-bg: rgba(255, 255, 255, 0.1);
    --quick-icon-color: #ccc;
    --quick-card-bg: rgba(40, 40, 40, 0.62);
    --notice-bg: #2d2020;
    --notice-border: #4a2c2c;
    --notice-text: #ff8a80;
    --scrollbar-track: #2a2a2a;
    --scrollbar-thumb: #555;
    --scrollbar-hover: #666;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.4);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.5);
    --primary-color: #a78bfa;
    --primary-hover: #c4b5fd;
}

/* ========== 基础重置与通用样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.icon-sm { width: 14px; height: 14px; vertical-align: middle; }
.icon-md { width: 18px; height: 18px; vertical-align: middle; }
.icon-lg { width: 24px; height: 24px; vertical-align: middle; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 12px; }
.gap-lg { gap: 20px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }

/* ========== 公共组件样式 ========== */
.header { background: var(--header-bg); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.logo { font-family: '975Maru SC', '975 Maru SC', sans-serif; font-size: 22px; font-weight: 400; color: var(--header-text); display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--nav-link); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--header-text); }
.header-right { display: flex; gap: 12px; align-items: center; }
.theme-btn { width: 32px; height: 32px; border-radius: var(--radius-full); border: none; background: rgba(255,255,255,0.1); color: var(--header-text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.theme-btn:hover { background: rgba(255,255,255,0.2); }
.hero { position: relative; padding: 60px 0; text-align: center; color: #fff; overflow: hidden; min-height: 280px; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-images { width: 100%; height: 100%; background: var(--hero-gradient); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(30, 30, 35, 0.75) 0%, rgba(45, 45, 55, 0.85) 100%); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 32px; font-weight: 600; margin-bottom: 12px; }
.hero p { font-size: 14px; opacity: 0.8; margin-bottom: 28px; }
.search-box-wrapper { max-width: 500px; margin: 0 auto 20px; }
.search-box { width: 100%; padding: 14px 20px; border: none; border-radius: 25px; font-size: 15px; outline: none; background: var(--card-bg); color: var(--text-color); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.hot-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hot-tags a { padding: 5px 14px; background: rgba(255,255,255,0.15); border-radius: 15px; font-size: 13px; color: #fff; transition: background 0.2s; }
.hot-tags a:hover { background: rgba(255,255,255,0.25); }
.quick-cards { position: relative; z-index: 10; margin-top: -40px; padding: 0 0 20px; }
.quick-cards .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; background: var(--quick-card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: box-shadow 0.2s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.quick-card:hover { box-shadow: var(--shadow-lg); }
.quick-icon { width: 48px; height: 48px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--quick-icon-bg); color: var(--quick-icon-color); }
.quick-info { min-width: 0; }
.quick-title { font-size: 15px; font-weight: 600; color: var(--text-color); display: flex; align-items: center; gap: 8px; }
.quick-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.tag { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 500; background: var(--tag-bg); color: var(--tag-text); }
.tag.hot { background: var(--tag-hot-bg); color: #fff; }
.tag.new { background: var(--tag-new-bg); color: #fff; }
.tag.update { background: rgba(255, 152, 0, 0.15); color: #ff9800; margin-left: 6px; display: inline-flex; align-items: center; gap: 3px; }
.tag.update svg { width: 10px; height: 10px; }
.tag.sponsor { background: rgba(233, 30, 99, 0.15); color: #e91e63; margin-left: 6px; }
[data-theme="dark"] .tag.update { background: rgba(255, 183, 77, 0.15); color: #ffb74d; }
[data-theme="dark"] .tag.sponsor { background: rgba(244, 143, 177, 0.15); color: #f48fb1; }
.quick-icon-sponsor { background: rgba(255, 193, 7, 0.15) !important; color: #ffc107 !important; }
[data-theme="dark"] .quick-icon-sponsor { background: rgba(255, 215, 64, 0.15) !important; color: #ffd740 !important; }
.notice-bar { background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: var(--radius-md); padding: 12px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--notice-text); font-size: 13px; }
.notice-bar i { flex-shrink: 0; width: 16px; height: 16px; }
.notice-bar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-bar a { flex-shrink: 0; font-weight: 500; }
.notice-bar a:hover { text-decoration: underline; }
.category-nav { display: flex; gap: 0; overflow-x: auto; background: var(--card-bg); border-radius: var(--radius-md) var(--radius-md) 0 0; border-bottom: 1px solid var(--border-color); }
.category-nav a { padding: 14px 20px; font-size: 14px; color: var(--text-secondary); white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s; }
.category-nav a:hover { color: var(--text-color); }
.category-nav a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); font-weight: 500; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.pagination a { background: var(--card-bg); color: var(--text-secondary); border: 1px solid var(--border-color); transition: all 0.2s; }
.pagination a:hover { border-color: var(--accent-color); color: var(--accent-color); }
.pagination .current { background: var(--accent-color); color: #fff; border: 1px solid var(--accent-color); }
.img-fade-wrapper { width: 100%; height: 100%; background: url('../img/placeholder.jpg') center/cover no-repeat; }
.img-fade { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease-in-out; }
.img-fade.loaded { opacity: 1; }
.side-tools { position: fixed; right: 20px; bottom: 100px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.side-tool-btn { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--card-bg); border: none; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.2s; }
.side-tool-btn:hover { background: var(--card-hover-bg); color: var(--primary-color); border-color: var(--primary-color); }
.back-top { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.back-top.show { opacity: 1; pointer-events: auto; }

/* ========== 工具卡片样式 ========== */
.tool-list { background: var(--card-bg); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 16px; }
.tool-card { display: flex; gap: 20px; padding: 16px; border-bottom: 1px solid var(--border-light); transition: background 0.2s; }
.tool-card:last-child { border-bottom: none; }
.tool-card:hover { background: var(--card-hover-bg); }
.tool-image { flex-shrink: 0; width: 200px; height: 130px; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.tool-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tool-card:hover .tool-image img { transform: scale(1.05); }
.tool-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.tool-title { font-size: 17px; font-weight: 600; color: var(--text-color); margin-bottom: 8px; transition: color 0.2s; }
.tool-title:hover { color: var(--primary-color); }
.tool-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; max-height: 44px; }
.tool-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.tool-meta .category { background: var(--tag-bg); padding: 3px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; }
.tool-meta .version { color: var(--primary-color); }
.tool-meta .time { display: flex; align-items: center; gap: 4px; }
.tool-top-tag { position: absolute; top: 8px; left: 8px; background: #e74c3c; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: var(--radius-sm); font-weight: 500; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 20px; background: var(--card-bg); border-radius: var(--radius-md); }
.tool-card-grid { background: var(--bg-color); border-radius: var(--radius-md); overflow: hidden; transition: all 0.2s; }
.tool-card-grid:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-card-grid .tool-image { width: 100%; height: 160px; border-radius: 0; }
.tool-card-grid .tool-content { padding: 16px; }
.tool-card-grid .tool-title { font-size: 16px; margin-bottom: 8px; }
.tool-card-grid .tool-desc { font-size: 13px; -webkit-line-clamp: 2; margin-bottom: 12px; }
.tool-card-grid .tool-meta { font-size: 12px; flex-wrap: wrap; }
@media (max-width: 768px) {
    .tool-card { flex-direction: column; }
    .tool-image { width: 100%; height: 180px; }
    .tool-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 16px; }
}
@media (max-width: 480px) {
    .tool-grid { grid-template-columns: 1fr; }
}

/* ========== 页脚样式 ========== */
.footer { background: var(--header-bg); color: rgba(255,255,255,0.7); margin-top: 40px; padding: 40px 0 0; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo { font-family: '975Maru SC', '975 Maru SC', sans-serif; font-size: 22px; font-weight: 400; color: #fff; margin-bottom: 12px; display: block; letter-spacing: 1px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-brand .footer-logo { max-width: 180px; height: auto; opacity: 0.9; transition: opacity 0.2s; }
.footer-brand .footer-logo:hover { opacity: 1; }
.footer-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 16px; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: span 2; text-align: center; }
    .footer-brand .footer-logo { max-width: 140px; margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom a { margin-left: 8px; margin-right: 8px; }
}
@media (max-width: 480px) {
    .footer { padding: 32px 0 0; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
    .footer-brand { grid-column: span 2; text-align: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 8px; }
    .footer-brand .logo { font-size: 18px; }
    .footer-brand p { font-size: 12px; margin-bottom: 12px; }
    .footer-brand .footer-logo { max-width: 120px; }
    .footer-col { text-align: left; }
    .footer-title { font-size: 13px; margin-bottom: 12px; }
    .footer-links a { font-size: 12px; }
    .footer-links li { margin-bottom: 8px; }
    .footer-contact p { font-size: 12px; }
    .footer-bottom { padding: 16px 0; font-size: 12px; }
}
.side-tools { position: fixed; right: 20px; bottom: 100px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.side-tool-btn { position: relative; width: 44px; height: 44px; border-radius: 8px; background: var(--card-bg); border: 1px solid var(--border-light); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.1); text-decoration: none; overflow: visible; }
.side-tool-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }
.side-tool-btn > svg { width: 20px; height: 20px; flex-shrink: 0; }
.side-tools .side-popup { position: absolute !important; right: 54px !important; bottom: 0 !important; top: auto !important; left: auto !important; background: var(--card-bg) !important; border: 1px solid var(--border-light) !important; border-radius: 8px !important; padding: 12px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important; white-space: nowrap !important; display: none !important; flex-direction: column; align-items: center; gap: 8px; width: auto !important; height: auto !important; }
.side-tool-btn:hover > .side-popup { display: flex !important; }
.side-popup::after { content: ''; position: absolute; right: -12px; bottom: 12px; border: 6px solid transparent; border-left-color: var(--card-bg); }
.side-tools .wechat-popup img { width: 120px !important; height: 120px !important; max-width: 120px !important; max-height: 120px !important; border-radius: 4px; display: block; object-fit: contain; }
.side-popup span { font-size: 12px; color: var(--text-muted); text-align: center; }
.qq-popup span:first-child { font-size: 14px; color: var(--text-color); font-weight: 500; }
#backTop { opacity: 0; visibility: hidden; transition: all 0.3s; }
#backTop.show { opacity: 1; visibility: visible; }

/* ========== 响应式断点 ========== */
@media (max-width: 1024px) {
    .container { padding: 0 16px; }
    .quick-cards .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; }
    .hero { padding: 40px 0; }
    .nav-links { display: none; }
    .quick-cards .container { grid-template-columns: 1fr; }
    .quick-cards { margin-top: -30px; }
    .category-nav { border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .category-nav a { padding: 12px 16px; font-size: 13px; }
    .side-tools { right: 12px; bottom: 80px; }
    .side-tool-btn { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .header .container { height: 50px; }
    .logo { font-size: 18px; }
    .logo svg { width: 24px; height: 24px; }
    .hero h1 { font-size: 20px; }
    .hero { padding: 32px 0; }
    .search-box { padding: 12px 16px; font-size: 14px; }
    .hot-tags a { padding: 4px 10px; font-size: 12px; }
    .quick-card { padding: 14px 16px; }
    .quick-icon { width: 40px; height: 40px; }
    .quick-title { font-size: 14px; }
    .notice-bar { padding: 10px 14px; font-size: 12px; }
    .pagination a, .pagination span { padding: 6px 10px; font-size: 13px; }
}
.mobile-menu-btn { display: none; width: 32px; height: 32px; border: none; background: transparent; color: var(--header-text); cursor: pointer; }
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}
.mobile-nav { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--header-bg); padding: 16px; z-index: 99; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.mobile-nav.show { display: block; }
.mobile-nav a { display: block; padding: 12px 16px; color: var(--nav-link); font-size: 15px; border-radius: var(--radius-md); }
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(255,255,255,0.1); color: var(--header-text); }

/* ========== 工具详情页样式 ========== */
.detail-main { padding: 24px 0; }
.detail-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.detail-content { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; }
.detail-cover { width: 100%; height: 400px; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 24px; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.detail-title { font-size: 24px; font-weight: 600; color: var(--text-color); margin-bottom: 12px; }
.detail-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-muted); }
.detail-meta .version { background: var(--primary-color); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 13px; }
.detail-body { line-height: 1.8; color: var(--text-color); }
.detail-body h2 { font-size: 20px; margin: 24px 0 12px; }
.detail-body h3 { font-size: 18px; margin: 20px 0 10px; }
.detail-body p { margin-bottom: 16px; }
.detail-body ul, .detail-body ol { margin: 16px 0; padding-left: 24px; }
.detail-body li { margin-bottom: 8px; }
.detail-body img { max-width: 100%; border-radius: var(--radius-md); margin: 16px 0; }
.detail-body pre { background: var(--bg-color); padding: 16px; border-radius: var(--radius-md); overflow-x: auto; font-size: 14px; }
.detail-body code { background: var(--tag-bg); padding: 2px 6px; border-radius: var(--radius-sm); font-size: 14px; }
.detail-body blockquote { border-left: 4px solid var(--primary-color); padding-left: 16px; margin: 16px 0; color: var(--text-secondary); }
.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }
.download-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px; }
.download-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text-color); }
.download-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: var(--accent-color); color: #fff; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s; margin-bottom: 16px; }
.download-btn:hover { background: #3d5f56; }
.cloud-links { border-top: 1px solid var(--border-light); padding-top: 16px; }
.cloud-links h4 { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.cloud-link-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg-color); border-radius: var(--radius-md); margin-bottom: 8px; font-size: 13px; }
.cloud-link-item:last-child { margin-bottom: 0; }
.cloud-link-item .platform { display: flex; align-items: center; gap: 8px; color: var(--text-color); }
.cloud-link-item .code { color: var(--text-muted); font-size: 12px; }
.cloud-link-item a { color: var(--primary-color); font-weight: 500; }
.cloud-link-item a:hover { text-decoration: underline; }
.sponsor-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%); color: #fff; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s; margin-top: 16px; box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3); }
.sponsor-btn:hover { background: linear-gradient(135deg, #ff85ad 0%, #d4567a 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4); }
.sponsor-btn svg { animation: heartbeat 1.5s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.video-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px; }
.video-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text-color); }
.video-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-color); border-radius: var(--radius-md); margin-bottom: 10px; cursor: pointer; transition: all 0.2s; }
.video-item:last-child { margin-bottom: 0; }
.video-item:hover { background: var(--card-hover-bg); }
.video-item .icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.video-item .icon img { width: 100%; height: 100%; object-fit: contain; }
.video-item .info { flex: 1; min-width: 0; }
.video-item .title { font-size: 14px; color: var(--text-color); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-item .platform { font-size: 12px; color: var(--text-muted); }
.video-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 1000; display: none; align-items: center; justify-content: center; }
.video-modal.show { display: flex; }
.video-modal-content { width: 90%; max-width: 900px; background: #000; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.video-modal-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 24px; cursor: pointer; }
.video-modal iframe { width: 100%; aspect-ratio: 16/9; border: none; }
.detail-body img { cursor: zoom-in; transition: opacity 0.2s; }
.detail-body img:hover { opacity: 0.9; }
.image-lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.92); z-index: 1001; display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.image-lightbox.show { display: flex; }
.lightbox-content { position: relative; max-width: 95vw; max-height: 95vh; }
.lightbox-content img { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-hint { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 13px; }
@media (max-width: 900px) {
    .detail-wrapper { grid-template-columns: 1fr; }
    .detail-cover { height: 280px; }
}
@media (max-width: 480px) {
    .detail-cover { height: 200px; }
    .detail-title { font-size: 20px; }
    .detail-info { padding: 16px; }
}
.page-wrapper { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.page-content { background: var(--card-bg); border-radius: var(--radius-lg); padding: 40px; }
.page-header { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.page-header h1 { font-size: 28px; font-weight: 600; color: var(--text-color); margin-bottom: 12px; }
.page-meta { font-size: 14px; color: var(--text-muted); display: flex; justify-content: center; gap: 16px; }
.page-meta span { display: flex; align-items: center; gap: 6px; }
.page-body { line-height: 1.8; color: var(--text-secondary); }
.page-body h2, .page-body h3 { color: var(--text-color); margin: 24px 0 12px; }
.page-body p { margin-bottom: 16px; }
.page-body ul, .page-body ol { margin: 16px 0; padding-left: 24px; }
.page-body li { margin-bottom: 8px; }
.recent-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px; }
.recent-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text-color); }
.recent-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); transition: color 0.2s; }
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { color: var(--primary-color); }
.recent-title { flex: 1; font-size: 14px; color: var(--text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 8px; }
.recent-item:hover .recent-title { color: var(--primary-color); }
.recent-version { font-size: 12px; color: var(--primary-color); margin-right: 8px; flex-shrink: 0; }
.recent-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* ========== 版本更新记录卡片 ========== */
.changelog-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px; }
.changelog-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text-color); display: flex; align-items: center; gap: 6px; }
.changelog-card h3 svg { color: var(--primary-color); }
.changelog-timeline { position: relative; padding-left: 20px; }
.changelog-timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--border-color); }
.changelog-item { position: relative; padding-bottom: 20px; }
.changelog-item:last-child { padding-bottom: 0; }
.changelog-item::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--card-bg); border: 2px solid var(--border-color); z-index: 1; }
.changelog-item:first-child::before { border-color: var(--primary-color); background: var(--primary-color); box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.15); }
.changelog-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.changelog-version { font-size: 14px; font-weight: 600; color: var(--text-color); }
.changelog-item:first-child .changelog-version { color: var(--primary-color); }
.changelog-date { font-size: 12px; color: var(--text-muted); }
.changelog-badge { font-size: 10px; padding: 1px 6px; border-radius: 8px; background: var(--primary-color); color: #fff; font-weight: 500; }
.changelog-content { list-style: none; padding: 0; margin: 0; }
.changelog-content li { position: relative; padding-left: 12px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.changelog-content li::before { content: '•'; position: absolute; left: 0; color: var(--text-muted); }
.changelog-hidden { display: none; }
.changelog-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 5px 14px; font-size: 12px; color: var(--primary-color); background: none; border: 1px solid var(--border-color); border-radius: 16px; cursor: pointer; transition: all 0.2s; }
.changelog-toggle:hover { background: var(--bg-color); border-color: var(--primary-color); }
.changelog-toggle svg { transition: transform 0.2s; }
.changelog-toggle.expanded svg { transform: rotate(180deg); }

/* ========== 网站收藏页面样式 ========== */
.hero-small { min-height: 160px; padding: 40px 0; }
.hero-small h1 { font-size: 28px; margin-bottom: 8px; }
.hero-small p { font-size: 14px; margin-bottom: 0; }
.bookmarks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.bookmark-card { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px; transition: all 0.2s ease; text-decoration: none; }
.bookmark-card:hover { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
[data-theme="dark"] .bookmark-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.bookmark-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.bookmark-icon img { width: 24px; height: 24px; object-fit: contain; }
.bookmark-icon img[src=""], .bookmark-icon img:not([src]) { visibility: hidden; }
.bookmark-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bookmark-name { font-size: 14px; font-weight: 500; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookmark-desc { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state svg { opacity: 0.3; margin-bottom: 16px; }
.empty-state p { font-size: 14px; }
@media (max-width: 768px) {
    .bookmarks-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bookmark-card { padding: 12px 14px; }
    .bookmark-icon { width: 36px; height: 36px; }
    .bookmark-icon img { width: 20px; height: 20px; }
    .bookmark-name { font-size: 13px; }
    .bookmark-desc { display: none; }
}
@media (max-width: 480px) {
    .bookmarks-grid { grid-template-columns: 1fr 1fr; }
}
