/**
 * 3G壁纸 - 深色主题样式
 * 参考设计图风格
 */

/* CSS 变量 - 深色主题 */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-hover: #1f1f1f;
    --bg-elevated: #1c1c1c;
    --border-color: #262626;
    --border-hover: #333333;
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent-orange: #f97316;
    --accent-orange-dark: #ea580c;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.15);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Lantinghei SC', 'Microsoft YaHei', 'HanHei SC', 'Helvetica Neue', 'Open Sans', 'Arial', 'Hiragino Sans GB', '微软雅黑', 'STHeiti', 'WenQuanYi Micro Hei', 'SimSun', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* 容器 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   顶部导航栏
   ============================================ */
.header {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(38, 38, 38, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header:hover {
    background: rgba(17, 17, 17, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
}

.nav-link:hover::before {
    width: 150%;
    height: 150%;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.12);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.nav-link svg {
    opacity: 0.7;
    transition: var(--transition-fast);
}

.nav-link:hover svg {
    opacity: 1;
}

/* 右侧操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.icon-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.icon-btn:hover::after {
    width: 100%;
    height: 100%;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-login {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: white;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* ============================================
   子导航栏
   ============================================ */
.sub-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.sub-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.category-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tags .tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-tags .tag img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.category-tags .tag:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.category-tags .tag:hover img {
    opacity: 1;
}

.category-tags .tag.active {
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.15);
}

.filter-dropdowns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

/* ============================================
   Hero 搜索区域
   ============================================ */
.hero-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://s21.ax1x.com/2025/09/08/pV2oLad.jpg') center/cover no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    font-weight: 400;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(22, 22, 22, 0.95);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(249, 115, 22, 0.2), 0 0 20px rgba(249, 115, 22, 0.1);
}

.search-type {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-type:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.search-input {
    flex: 1;
    padding: 16px 18px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 26px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    padding-right: 30px;
}

.hot-keywords {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-keywords .label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.hot-keywords a {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.hot-keywords a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   精选专题
   ============================================ */
.topics-section {
    padding: 40px 0;
    background: var(--bg-primary);
}

.section-header {
    margin-bottom: 24px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.section-icon svg {
    width: 20px;
    height: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 8px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.topic-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.topic-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.topic-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.topic-card:hover .topic-image img {
    transform: scale(1.08);
}

.topic-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* 专题角标 - 左上角 */
.topic-corner {
    position: absolute;
    top: 0;
    left: -30px;
    width: 100px;
    height: auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    text-align: center;
    padding: 2px 0;
    transform: rotate(-45deg);
    transform-origin: center;
    transform-box: fill-box;
}

.topic-corner span {
    font-size: 12px;
    font-weight: 200;
    color: #e5dfdf;
    letter-spacing: 2px;
}

.topic-info {
    padding: 14px;
}

.topic-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-info p {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-all-topics {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================================
   列表页面样式
   ============================================ */
.list-main {
    padding: 32px 0 48px;
    background: var(--bg-primary);
}

.list-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 筛选栏 */
.filter-sidebar {
    width: 100%;
}

.filter-bar {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    overflow-x: auto;
}

.filter-bar::-webkit-scrollbar {
    height: 4px;
}

.filter-bar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.filter-bar::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 2px;
}

.filter-bar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-label svg {
    color: var(--accent-orange);
    opacity: 0.8;
}

.filter-tags-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tag-sm {
    padding: 5px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.filter-tag-sm:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.filter-tag-sm.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.filter-divider {
    width: 1px;
    background: var(--border-color);
    flex-shrink: 0;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.color-option {
    aspect-ratio: 1;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.color-option:hover {
    transform: scale(1.05);
}

.color-option.active {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* 右侧内容区 */
.list-content {
    flex: 1;
    min-width: 0;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.list-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.list-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.list-divider {
    color: var(--border-color);
}

/* 壁纸网格 */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.wallpaper-grid.desktop-grid .card-image {
    aspect-ratio: 16/10;
}

.wallpaper-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.wallpaper-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallpaper-card:hover .card-image img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.card-resolution {
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.card-info {
    padding: 10px 8px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.pagination-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.page-item:hover:not(.page-disabled):not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.page-item.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    font-weight: 600;
}

.page-item.page-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 8px;
    color: var(--text-muted);
}

/* ============================================
   壁纸画廊
   ============================================ */
.gallery-section {
    padding: 32px 0;
}

.gallery-section:nth-child(odd) {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    gap: 16px;
}

.gallery-grid.mobile {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-grid.desktop {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-item {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    z-index: 2;
}

.gallery-grid.desktop .gallery-item img,
.gallery-grid.desktop .gallery-item video {
    aspect-ratio: 16/10;
}

.item-info {
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #d4d4d4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.item-info p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 今日优选、最新手机壁纸、最新电脑壁纸 - 标题悬浮在图片上 */
.gallery-section:has(.section-icon[style*="FF6B35"]) .gallery-item,
.gallery-section:has(.section-icon[style*="10B981"]) .gallery-item,
.gallery-section:has(.section-icon[style*="3B82F6"]) .gallery-item {
    position: relative;
}

.gallery-section:has(.section-icon[style*="FF6B35"]) .gallery-item .item-info,
.gallery-section:has(.section-icon[style*="10B981"]) .gallery-item .item-info,
.gallery-section:has(.section-icon[style*="3B82F6"]) .gallery-item .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: all 0.3s ease;
}

.gallery-section:has(.section-icon[style*="FF6B35"]) .gallery-item:hover .item-info,
.gallery-section:has(.section-icon[style*="10B981"]) .gallery-item:hover .item-info,
.gallery-section:has(.section-icon[style*="3B82F6"]) .gallery-item:hover .item-info {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2) 100%);
    padding-bottom: 16px;
}

.gallery-section:has(.section-icon[style*="FF6B35"]) .gallery-item .item-info h4,
.gallery-section:has(.section-icon[style*="10B981"]) .gallery-item .item-info h4,
.gallery-section:has(.section-icon[style*="3B82F6"]) .gallery-item .item-info h4 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: text-shadow 0.3s ease;
}

.gallery-section:has(.section-icon[style*="FF6B35"]) .gallery-item:hover .item-info h4,
.gallery-section:has(.section-icon[style*="10B981"]) .gallery-item:hover .item-info h4,
.gallery-section:has(.section-icon[style*="3B82F6"]) .gallery-item:hover .item-info h4 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(249,115,22,0.3);
}

.gallery-section:has(.section-icon[style*="FF6B35"]) .gallery-item .item-info p,
.gallery-section:has(.section-icon[style*="10B981"]) .gallery-item .item-info p,
.gallery-section:has(.section-icon[style*="3B82F6"]) .gallery-item .item-info p {
    display: none;
}

/* ============================================
   最新电脑壁纸 - 新样式
   ============================================ */
.desktop-wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.desktop-wallpaper-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.desktop-wallpaper-item .wallpaper-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.desktop-wallpaper-item .wallpaper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 动态壁纸标签 */
.dynamic-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #09730080;
    border-radius: 20px;
    font-size: 11px;
    color: #fff;
    font-weight: 500;
}

.dynamic-badge svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

/* 标题栏 */
.desktop-wallpaper-item .wallpaper-title-bar {
    padding: 12px;
    background: var(--bg-card);
}

.desktop-wallpaper-item .wallpaper-title-bar h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

@media (max-width: 992px) {
    .desktop-wallpaper-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* ============================================
   手机壁纸 - 新样式（与电脑壁纸一致）
   ============================================ */
.mobile-wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.mobile-wallpaper-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mobile-wallpaper-item .wallpaper-image {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
}

.mobile-wallpaper-item .wallpaper-image img,
.mobile-wallpaper-item .wallpaper-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-wallpaper-item .wallpaper-title-bar {
    padding: 12px;
    background: var(--bg-card);
}

.mobile-wallpaper-item .wallpaper-title-bar h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 手机壁纸响应式 */
@media (max-width: 1200px) {
    .mobile-wallpaper-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .mobile-wallpaper-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.view-more-wrap {
    text-align: center;
    margin-top: 32px;
}

.view-more-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.view-more-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================================
   底部页脚
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 48px;
}

.footer-top {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.footer-notice {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    padding: 12px 20px;
    background: rgba(249, 115, 22, 0.05);
    border-radius: var(--radius);
    border-left: 3px solid rgba(249, 115, 22, 0.3);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.6;
}

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

.footer-stats span {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1400px) {
    .gallery-grid.mobile,
    .gallery-grid.desktop {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid.mobile,
    .gallery-grid.desktop {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-inner {
        height: 56px;
    }
    
    .main-nav {
        display: none;
    }
    
    .sub-nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 0;
        gap: 8px;
    }
    
    .category-tags {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .filter-dropdowns {
        width: 100%;
        justify-content: flex-start;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid.mobile,
    .gallery-grid.desktop {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 列表页响应式 */
@media (max-width: 1400px) {
    .wallpaper-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .filter-bar {
        gap: 16px;
    }
}

@media (max-width: 1200px) {
    .wallpaper-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .filter-bar {
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .wallpaper-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .filter-bar {
        gap: 12px;
        padding: 14px 16px;
    }
}

@media (max-width: 768px) {
    .list-main {
        padding: 20px 0 32px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }

    .filter-group {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-tags-inline {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .filter-tags-inline::-webkit-scrollbar {
        height: 3px;
    }

    .filter-divider {
        display: none;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card-info {
        padding: 8px 6px;
    }

    .card-title {
        font-size: 12px;
    }

    .card-desc {
        font-size: 10px;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .card-info {
        padding: 6px 4px;
    }

    .card-title {
        font-size: 11px;
    }

    .card-desc {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .header-inner {
        height: 50px;
    }

    .logo-img {
        height: 28px;
    }

    .header-actions .icon-btn {
        display: none;
    }

    .btn-login {
        padding: 5px 10px;
        font-size: 11px;
    }

    .sub-nav-inner {
        padding: 8px 0;
    }

    .category-tags {
        gap: 6px;
    }

    .category-tags .tag {
        padding: 4px 8px;
        font-size: 11px;
    }

    .filter-dropdowns {
        gap: 6px;
    }

    .dropdown-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .hero-section {
        padding: 24px 0;
    }

    .hero-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .search-box {
        flex-direction: row;
        border-radius: var(--radius);
        flex-wrap: wrap;
    }

    .search-type {
        display: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
        flex-shrink: 0;
        justify-content: center;
        padding: 12px;
        font-size: 12px;
    }

    .search-input {
        flex: 1;
        padding: 12px;
        font-size: 13px;
        min-width: 0;
    }

    .search-btn {
        flex-shrink: 0;
        padding: 12px 20px;
        font-size: 13px;
    }

    .hot-keywords {
        gap: 6px;
    }

    .hot-keywords .label {
        font-size: 11px;
    }

    .hot-keywords a {
        padding: 3px 8px;
        font-size: 11px;
    }

    .topics-section {
        padding: 20px 0;
    }

    .section-header {
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-desc {
        font-size: 11px;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }

    .topic-image {
        aspect-ratio: 16/10;
    }

    .topic-info {
        padding: 6px;
    }

    .topic-info h3 {
        font-size: 11px;
    }

    .topic-info p {
        font-size: 9px;
    }

    .topic-badge {
        padding: 2px 5px;
        font-size: 9px;
    }

    .view-all-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .gallery-section {
        padding: 16px 0;
    }

    .gallery-grid.mobile,
    .gallery-grid.desktop {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item img,
    .gallery-item video {
        aspect-ratio: 3/4;
    }

    .gallery-grid.desktop .gallery-item img,
    .gallery-grid.desktop .gallery-item video {
        aspect-ratio: 16/10;
    }

    .item-info {
        padding: 6px 8px;
        gap: 2px;
    }

    .item-info h4 {
        font-size: 13px;
    }

    .item-info p {
        font-size: 9px;
    }

    .gallery-section:has(.section-icon[style*="FF6B35"]) .gallery-item .item-info,
    .gallery-section:has(.section-icon[style*="10B981"]) .gallery-item .item-info,
    .gallery-section:has(.section-icon[style*="3B82F6"]) .gallery-item .item-info {
        padding: 14px 8px 8px;
    }

    .section-title-wrap {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding: 4px 0;
    }

    .section-title-wrap::-webkit-scrollbar {
        height: 3px;
    }

    .section-title-wrap::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 2px;
    }

    .section-title-wrap::-webkit-scrollbar-thumb {
        background: var(--border-hover);
        border-radius: 2px;
    }

    .section-title-left {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .section-icon {
        font-size: 14px;
    }

    .section-icon svg {
        width: 14px;
        height: 14px;
    }

    .section-title {
        font-size: 14px;
        white-space: nowrap;
    }

    .section-desc {
        flex-shrink: 0;
        margin-left: 0;
        margin-top: 0;
        font-size: 10px;
        padding-left: 8px;
        border-left: 1px solid var(--border-color);
        white-space: nowrap;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .view-more-wrap {
        margin-top: 16px;
    }

    .view-more-btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    .footer {
        padding: 20px 0;
        margin-top: 20px;
    }

    .footer-top {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .footer-notice {
        font-size: 11px;
        padding: 10px 16px;
    }

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

    .footer-links a {
        font-size: 12px;
    }

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

    .footer-info p {
        font-size: 10px;
    }

    .footer-stats {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-stats span {
        font-size: 10px;
        padding: 5px 10px;
    }
}