﻿* { 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; background: #f0f2f5; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 顶部导航 */
.header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; transition: all 0.3s ease; }
.header.scrolled { background: #1a1a2e; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.header.scrolled .logo { color: #fff; }
.header.scrolled .nav a { color: rgba(255,255,255,0.8); }
.header.scrolled .nav a:hover, .header.scrolled .nav a.active { background: rgba(255,255,255,0.15); color: #fff; }
.header.scrolled .search-box { background: rgba(255,255,255,0.1); }
.header.scrolled .search-box input { color: #fff; }
.header.scrolled .search-box input::placeholder { color: rgba(255,255,255,0.5); }
.header.scrolled .search-box button { color: rgba(255,255,255,0.6); }
.header.scrolled .header-icon-btn { color: rgba(255,255,255,0.8); }
.header.scrolled .header-icon-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 60px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #1a1a2e; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 16px; border-radius: 0; font-size: 14px; color: #555; transition: all 0.2s; font-weight: 500; }
.nav a:hover, .nav a.active { color: #4a6cf7; background: #f0f4ff; }
.search-box { display: flex; align-items: center; background: #f5f6fa; border-radius: 0; padding: 6px 14px; width: 240px; border: 1px solid transparent; transition: all 0.2s; }
.search-box:focus-within { background: #fff; border-color: #4a6cf7; }
.search-box input { border: none; background: transparent; outline: none; flex: 1; font-size: 13px; color: #333; }
.search-box button { border: none; background: none; cursor: pointer; color: #999; display: flex; align-items: center; }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-icon-btn { width: 36px; height: 36px; border-radius: 0; display: flex; align-items: center; justify-content: center; color: #666; cursor: pointer; transition: all 0.2s; background: transparent; border: none; }
.header-icon-btn:hover { background: #f0f2f5; color: #4a6cf7; }
.btn { padding: 8px 20px; border-radius: 0; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: linear-gradient(135deg, #4a6cf7, #667eea); color: #fff; box-shadow: 0 2px 8px rgba(74,108,247,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(74,108,247,0.4); }
.btn-outline { border: 1px solid #e0e0e0; background: #fff; color: #555; }
.btn-outline:hover { border-color: #4a6cf7; color: #4a6cf7; }
.btn-vip { background: linear-gradient(135deg, #4a6cf7, #667eea); color: #fff; padding: 8px 18px; border-radius: 0; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(74,108,247,0.3); }

/* 主容器 */
.container { max-width: 1400px; margin: 20px auto; padding: 0 24px; }
.main-wrapper { display: flex; gap: 20px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 280px; flex-shrink: 0; }

/* 轮播Banner */
.banner { border-radius: 0; overflow: hidden; margin-bottom: 16px; position: relative; height: 280px; background: linear-gradient(135deg, #ffd93d 0%, #ff6b9d 30%, #c44dff 60%, #4a6cf7 100%); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.5)); color: #fff; }
.banner-overlay h2 { font-size: 28px; margin-bottom: 8px; font-weight: 700; }
.banner-overlay p { font-size: 14px; opacity: 0.9; }

/* 四色分类入口 */
.quick-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 20px; border-radius: 0; overflow: hidden; }
.quick-cat { padding: 18px; text-align: center; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.quick-cat:hover { opacity: 0.9; transform: scale(1.02); }
.quick-cat.red { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); }
.quick-cat.green { background: linear-gradient(135deg, #51cf66, #37b24d); }
.quick-cat.blue { background: linear-gradient(135deg, #4dabf7, #339af0); }
.quick-cat.purple { background: linear-gradient(135deg, #9775fa, #845ef7); }

/* 板块标题 */
.section { background: #fff; border-radius: 0; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.section-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.section-row .section { margin-bottom: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title { font-size: 18px; font-weight: 700; color: #1a1a2e; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 18px; background: linear-gradient(180deg, #4a6cf7, #667eea); border-radius: 0; }
.section-more { font-size: 13px; color: #999; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.section-more:hover { color: #4a6cf7; }
.more-dots { display: flex; gap: 3px; }
.more-dots span { width: 4px; height: 4px; border-radius: 0; background: #ccc; }

/* 壁纸网格 */
.wallpaper-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wallpaper-card { display: block; border-radius: 0; overflow: hidden; cursor: pointer; background: #fff; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.wallpaper-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.wallpaper-card .card-img { position: relative; aspect-ratio: 16/10; background: #f0f0f0; overflow: hidden; }
.wallpaper-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.wallpaper-card .resolution { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.5); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 0; backdrop-filter: blur(4px); }
.wallpaper-card .vip-tag { position: absolute; top: 8px; right: 8px; background: linear-gradient(135deg, #ffd93d, #ff922b); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 0; font-weight: 600; }
.wallpaper-card .card-hover-btn { position: absolute; bottom: 8px; right: 8px; background: linear-gradient(135deg, #4a6cf7, #667eea); color: #fff; font-size: 11px; padding: 4px 10px; display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity 0.2s; cursor: pointer; }
.wallpaper-card:hover .card-hover-btn { opacity: 1; }
.wallpaper-card .card-info { padding: 10px 12px; }
.wallpaper-card .card-title { font-size: 13px; font-weight: 500; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.wallpaper-card .card-meta { display: flex; justify-content: space-between; align-items: center; }
.wallpaper-card .card-source { display: flex; align-items: center; gap: 5px; color: #888; font-size: 11px; }
.wallpaper-card .card-source .source-icon { width: 16px; height: 16px; border-radius: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 700; }
.wallpaper-card .card-downloads { color: #999; font-size: 11px; display: flex; align-items: center; gap: 3px; }

/* 侧边栏 */
.sidebar-widget { background: #fff; border-radius: 0; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.widget-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #1a1a2e; display: flex; align-items: center; gap: 8px; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: all 0.2s; }
.rank-list li:last-child { border-bottom: none; }
.rank-list li:hover { background: #fafafa; margin: 0 -8px; padding: 10px 8px; border-radius: 0; }
.rank-num { width: 22px; height: 22px; border-radius: 0; background: #f0f2f5; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #999; flex-shrink: 0; }
.rank-list li:nth-child(1) .rank-num { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: linear-gradient(135deg, #ffd93d, #ff922b); color: #fff; }
.rank-list li:nth-child(3) .rank-num { background: linear-gradient(135deg, #51cf66, #37b24d); color: #fff; }
.rank-thumb { width: 48px; height: 36px; border-radius: 0; object-fit: cover; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rank-cat { font-size: 11px; color: #999; margin-top: 2px; }
.rank-arrow { width: 22px; height: 22px; border-radius: 0; background: #f5f6fa; display: flex; align-items: center; justify-content: center; color: #999; flex-shrink: 0; transition: all 0.2s; }
.rank-list li:hover .rank-arrow { background: #4a6cf7; color: #fff; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 5px 12px; background: #f5f6fa; color: #666; border-radius: 0; font-size: 12px; transition: all 0.2s; }
.tag-cloud a:hover { background: #4a6cf7; color: #fff; }

/* 筛选栏 */
.filter-bar { background: #fff; border-radius: 0; padding: 16px 20px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 13px; color: #999; }
.filter-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tags a { padding: 5px 14px; border-radius: 0; font-size: 13px; color: #666; background: #f5f6fa; transition: all 0.2s; }
.filter-tags a.active, .filter-tags a:hover { background: #4a6cf7; color: #fff; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 0; background: #fff; font-size: 13px; color: #555; border: 1px solid #eee; transition: all 0.2s; }
.pagination a:hover { border-color: #4a6cf7; color: #4a6cf7; }
.pagination .current { background: linear-gradient(135deg, #4a6cf7, #667eea); color: #fff; border-color: transparent; }

/* 详情页 */
.detail-wrap { background: #fff; border-radius: 0; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.detail-image { width: 100%; border-radius: 0; overflow: hidden; margin-bottom: 20px; background: #f0f0f0; }
.detail-image img { width: 100%; display: block; }
.detail-title { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; padding: 12px 16px; background: #f8f9fa; border-radius: 0; }
.detail-meta span { font-size: 13px; color: #666; display: flex; align-items: center; gap: 4px; }
.detail-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.detail-desc { font-size: 14px; color: #555; line-height: 1.8; }
.download-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; background: linear-gradient(135deg, #4a6cf7, #667eea); color: #fff; border-radius: 0; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(74,108,247,0.3); }
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(74,108,247,0.4); }

/* 底部 */
.footer { background: #fff; margin-top: 40px; padding: 30px 0; text-align: center; color: #999; font-size: 13px; border-top: 1px solid #eee; }
.footer a { color: #666; margin: 0 10px; }
.footer a:hover { color: #4a6cf7; }

/* 响应式 */
@media (max-width: 1200px) {
    .wallpaper-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .sidebar { display: none; }
    .wallpaper-grid { grid-template-columns: repeat(3, 1fr); }
    .nav { display: none; }
    .quick-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .wallpaper-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .header-inner { height: 56px; padding: 0 12px; gap: 12px; }
    .logo { font-size: 18px; }
    .search-box { width: 140px; }
    .container { padding: 0 12px; margin: 12px auto; }
    .banner { height: 160px; }
    .section { padding: 12px; }
    .section-title { font-size: 16px; }
    .quick-cat { font-size: 14px; padding: 14px; }
    .filter-bar { padding: 12px; }
    .filter-tags a { padding: 4px 10px; font-size: 12px; }
    .detail-title { font-size: 18px; }
    .detail-meta { gap: 10px; padding: 10px 12px; }
    .detail-meta span { font-size: 12px; }
    .detail-actions { flex-wrap: wrap; }
    .btn { padding: 8px 16px; font-size: 13px; }
    .card-title { font-size: 11px; }
    .pagination a, .pagination span { padding: 6px 10px; font-size: 12px; }
    .sidebar-widget { padding: 12px; }
    .rank-thumb { width: 40px; height: 30px; }
    .rank-title { font-size: 12px; }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .wallpaper-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .header-inner { height: 52px; padding: 0 10px; gap: 8px; }
    .logo { font-size: 16px; }
    .logo-icon { width: 26px; height: 26px; }
    .search-box { width: 120px; padding: 5px 10px; }
    .search-box input { font-size: 12px; }
    .header-right { gap: 6px; }
    .header-icon-btn { width: 32px; height: 32px; }
    .btn-vip { padding: 6px 12px; font-size: 12px; }
    .container { padding: 0 10px; margin: 10px auto; }
    .banner { height: 120px; }
    .banner-overlay { padding: 16px; }
    .banner-overlay h2 { font-size: 18px; }
    .section { padding: 10px; }
    .section-title { font-size: 15px; }
    .quick-cats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .quick-cat { font-size: 13px; padding: 12px 8px; }
    .card-info { padding: 6px 8px; }
    .card-title { font-size: 11px; }
    .card-downloads { font-size: 9px; }
    .resolution { font-size: 9px; padding: 2px 4px; }
    .detail-title { font-size: 16px; }
    .detail-meta { gap: 8px; padding: 8px 10px; }
    .detail-meta span { font-size: 11px; }
    .detail-actions { gap: 8px; }
    .btn { padding: 7px 14px; font-size: 12px; }
    .filter-bar { padding: 10px; gap: 8px; }
    .filter-tags a { padding: 4px 8px; font-size: 11px; }
    .pagination a, .pagination span { padding: 5px 8px; font-size: 11px; }
    .footer { padding: 20px 0; font-size: 12px; }
}

/* 横屏平板 */
@media (min-width: 769px) and (max-width: 1024px) {
    .wallpaper-grid { grid-template-columns: repeat(3, 1fr); }
    .sidebar { width: 240px; }
}

/* 移动端导航菜单 */
.mobile-menu-btn { display: none; }
@media (max-width: 992px) {
    .mobile-menu-btn { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: none; background: transparent; cursor: pointer; color: #555; }
    .nav.mobile-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); gap: 0; }
    .nav.mobile-open a { padding: 12px 20px; border-bottom: 1px solid #f5f5f5; }
    .header.scrolled .nav.mobile-open { background: #1a1a2e; }
    .header.scrolled .nav.mobile-open a { border-bottom-color: rgba(255,255,255,0.1); }
}

/* 图片防下载保护 */
.no-save {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}
.protected-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.protected-image img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}
.image-shield {
    background: transparent;
}
/* 全局禁用图片拖拽 */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}
