/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* 主题变量 */
:root {
    --primary-color: #00BCD4;
    --primary-light: #B2EBF2;
    --primary-dark: #0097A7;
    --background-color: #ffffff;
    --surface-color: #f5f5f5;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --card-background: #ffffff;
    --card-hover: #f5f5f5;
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --blur-bg: blur(10px) saturate(180%);
    --card-blur-bg: blur(20px) saturate(180%);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
    /* 响应式断点 */
    --bp-small: 480px;
    --bp-medium: 768px;
    --bp-large: 1024px;
    --bp-xlarge: 1200px;
    /* 响应式间距 */
    --spacing-base: clamp(1rem, 2vw, 2rem);
    --spacing-lg: clamp(2rem, 4vw, 4rem);
    /* 响应式字体大小 */
    --font-size-base: clamp(0.875rem, 1vw, 1rem);
    --font-size-lg: clamp(1.25rem, 2vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 3vw, 2rem);
    --font-size-xxl: clamp(2rem, 4vw, 3.5rem);
}

[data-theme="dark"] {
    --primary-color: #00BCD4;
    --primary-light: #006064;
    --primary-dark: #84FFFF;
    --background-color: #1a1a1a;
    --surface-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --card-background: #2a2a2a;
    --card-hover: #333333;
    --card-background-rgb: 42, 42, 42;
}

[data-theme="light"] {
    --card-background-rgb: 255, 255, 255;
}

/* 容器样式 */
.container {
    width: 100%;
    min-height: 100vh;
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 2rem;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: clamp(3rem, 10vh, 6rem) var(--spacing-base);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 188, 212, 0.2),
        inset 0 -60px 60px -60px rgba(0,0,0,0.3);
    backdrop-filter: var(--blur-bg);
    width: 100%;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.2),
        0 0 20px rgba(255,255,255,0.3);
    transform: translateY(-20px);
    opacity: 0;
    animation: slideDown 0.8s var(--transition-bounce) forwards;
}

header p {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-base);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s var(--transition-bounce) 0.2s forwards;
}

.stats-container {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    font-size: 1.2em;
}

.stats-text {
    color: var(--text-color);
}

#modelCount, #categoryCount {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 主要内容区域 */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    flex: 1;
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

/* 模型卡片样式 */
.model-card {
    background: rgba(var(--card-background-rgb), 0.7);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.4s var(--transition-bounce);
    box-shadow: 
        0 4px 15px rgba(0, 188, 212, 0.1),
        0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    backdrop-filter: var(--card-blur-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: cardAppear 0.6s var(--transition-bounce) backwards;
    animation-delay: calc(var(--card-index) * 0.1s);
    transform-origin: center bottom;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 188, 212, 0.2),
        0 0 0 4px rgba(0, 188, 212, 0.2);
    border-color: rgba(0, 188, 212, 0.4);
}

.model-image-container {
    aspect-ratio: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.model-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.model-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 80%, rgba(0,0,0,0.1));
    pointer-events: none;
}

.model-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--transition-bounce);
}

.model-card:hover .model-image img {
    transform: scale(1.08) rotate(2deg);
}

.model-info {
    padding: clamp(1rem, 2vw, 1.8rem);
    background: rgba(var(--card-background-rgb), 0.9);
    backdrop-filter: var(--card-blur-bg);
    position: relative;
}

.model-info h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    transition: color 0.3s ease;
}

.model-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

/* 模型类型标签样式 */
.model-category {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.category-label {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
    transition: all 0.3s var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.category-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
}

.model-card:hover .category-label {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.model-card:hover .category-label::before {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.model-stats {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.model-stat {
    background: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.model-card:hover .model-stat {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* 添加一些动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(var(--card-background-rgb), 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
    backdrop-filter: var(--blur-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--transition-bounce);
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(10deg);
    background: var(--primary-dark);
}

.theme-toggle .icon {
    font-size: 20px;
    color: white;
}

/* 响应式设计 */
@media (max-width: var(--bp-large)) {
    .control-sidebar {
        width: min(100%, 280px);
    }
}

@media (max-width: var(--bp-medium)) {
    .control-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 60vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .control-sidebar.active {
        transform: translateY(0);
    }
    
    /* 添加控制面板切换按钮 */
    .sidebar-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: var(--bp-small)) {
    .model-grid {
        gap: 1rem;
    }

    .category-tag {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }

    .search-input {
        font-size: 0.9rem;
    }
    
    .model-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .model-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .model-info {
        padding: 1rem;
    }
}

/* 新增动画 */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 暗色主题优化 */
[data-theme="dark"] .model-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .model-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* 搜索框容器 */
.search-container {
    position: relative;
    width: min(90%, 600px);
    margin: 1.5rem auto;
    z-index: 2;
}

/* 搜索输入框 */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s var(--transition-bounce) 0.3s forwards;
}

.search-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 2px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* 搜索图标 */
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: #666;
    stroke-width: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input:focus + .search-icon {
    stroke: var(--primary-color);
    stroke-width: 2.5;
}

/* 暗色主题适配 */
[data-theme="dark"] .search-input {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .search-input:focus {
    background: rgba(0, 0, 0, 0.3);
}

/* 无搜索结果提示 */
.no-results {
    text-align: center;
    padding: 2rem;
    grid-column: 1 / -1;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--surface-color);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-2rem);
    width: min(90%, 500px);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    fill: var(--primary-color);
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-results-text {
    text-align: center;
}

.no-results h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.search-details {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 1rem 0;
    opacity: 0.8;
    line-height: 1.6;
}

.search-details .highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.search-tip {
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* 分类容器 */
.category-container {
    width: 100%;
    margin: 1rem auto;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s var(--transition-bounce) 0.6s forwards;
    position: relative;
    z-index: 1;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.4rem, 1vw, 0.8rem);
    justify-content: center;
    align-items: center;
    max-height: 120px;
    overflow-y: auto;
    padding: clamp(0.3rem, 1vw, 0.5rem);
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* 自定义滚动条 */
.category-list::-webkit-scrollbar {
    width: 6px;
}

.category-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.category-tag {
    padding: 8px 16px;
    background-color: var(--card-bg);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tag:hover {
    background-color: var(--primary-color);
}

.category-tag .category-name {
    color: #ffffff;
}

.category-tag .category-count {
    color: #ffffff;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

.category-tag.active {
    background-color: var(--primary-color);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        border-radius: 0;
        margin: -1rem -1rem 1rem -1rem;
        width: calc(100% + 2rem);
    }
    
    .model-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .category-container {
        margin: 1rem 0;
    }
    
    .category-list {
        gap: 0.6rem;
        padding: 0.4rem;
        max-height: 100px;
    }
    
    .category-tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .category-list {
        gap: 0.4rem;
        max-height: 80px;
    }
    
    .category-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 加载触发器优化 */
.load-trigger {
    width: 100%;
    height: 100px; /* 增加高度 */
    margin-top: 20px;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 加载结束提示 */
.end-message {
    width: 100%;
    padding: 2rem 0 1rem 0;  /* 减少上下内边距 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
}

.end-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.end-message-content {
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    padding: 1rem;
}

.end-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

.end-text {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: 400;
}

.end-decoration {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.end-decoration span {
    animation: twinkle 1.5s infinite;
    transform: scale(0.8);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1);
    }
}

/* 添加分隔线 */
.end-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--text-secondary),
        transparent
    );
    opacity: 0.2;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .end-message {
        padding: 1.5rem 0 0.5rem 0;
    }
    
    .end-text {
        font-size: 0.9rem;
    }
    
    .end-decoration {
        gap: 0.6rem;
        font-size: 0.8rem;
    }
}

/* 优化加载提示器样式 */
.loading {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.loading.visible {
    opacity: 1;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 修改加载动画显示位置 */
.loading-text {
    font-size: 0.9rem;
}

/* 页脚样式 */
.footer {
    margin-top: 1rem;  /* 减少与提示的间距 */
    padding: 2rem 0;
    background: linear-gradient(to top,
        rgba(var(--card-background-rgb), 0.9),
        rgba(var(--card-background-rgb), 0.7)
    );
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    width: 100%;
    justify-content: space-between;
}

.divider {
    color: var(--text-secondary);
    opacity: 0.5;
}

.beian-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(var(--primary-color-rgb), 0.1);
    backdrop-filter: var(--blur-bg);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.beian-link:hover {
    background: rgba(var(--primary-color-rgb), 0.15);
    transform: translateY(-2px);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.beian-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.beian-link:hover .beian-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
        margin-top: 0.5rem;
    }

    .footer-info {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        justify-content: center;
    }

    .footer-content {
        padding: 0 1rem;
    }
    
    .beian-link {
        margin: 0 auto;
    }
}

/* 添加暗色主题特定样式 */
[data-theme="dark"] .footer {
    background: linear-gradient(to top,
        rgba(42, 42, 42, 0.9),
        rgba(42, 42, 42, 0.7)
    );
}

[data-theme="dark"] .beian-link {
    background: rgba(0, 188, 212, 0.1);
    border-color: rgba(0, 188, 212, 0.2);
}

[data-theme="dark"] .beian-link:hover {
    background: rgba(0, 188, 212, 0.15);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.15);
}

/* 适配超大屏幕 */
@media (min-width: var(--bp-xlarge)) {
    .model-grid {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* 适配横屏模式 */
@media (orientation: landscape) and (max-height: 600px) {
    .control-sidebar {
        max-height: 80vh;
    }

    header {
        padding: var(--spacing-base);
    }
}

/* 适配折叠屏 */
@media (max-width: 350px) {
    .model-grid {
        grid-template-columns: 1fr;
    }

    .category-list {
        max-height: 80px;
    }
}

/* 适配深色模式和高对比度模式 */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --background-color: #1a1a1a;
        --surface-color: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
    }
}

/* 适配减少动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 适配触摸屏 */
@media (hover: none) {
    .model-card:hover {
        transform: none;
    }

    .category-tag:hover {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .control-sidebar,
    .theme-toggle,
    .search-container {
        display: none;
    }
}

/* 加载占位符样式 */
.loading-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--card-background-rgb), 0.5);
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--primary-color-rgb), 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
    color: var(--text-secondary);
    gap: 0.5rem;
}

.no-thumbnail .icon {
    font-size: 2rem;
    opacity: 0.5;
}

.no-thumbnail span {
    font-size: 0.9rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    &::placeholder {
        color: var(--text-secondary);
        opacity: 0.7;
    }
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    &::placeholder {
        opacity: 0.5;
    }
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: #666;
    stroke-width: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input:focus + .search-icon {
    stroke: var(--primary-color);
    stroke-width: 2.5;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-results h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* 确保在浅色主题下的颜色 */
:root[data-theme="light"] {
    .search-input::placeholder {
        color: #666;
        opacity: 0.8;
    }
    
    .search-icon {
        stroke: #333;
        stroke-width: 2;
    }
    
    .search-input:focus + .search-icon {
        stroke: var(--primary-color);
        stroke-width: 2.5;
    }
}

/* 暗色主题下的样式 */
:root[data-theme="dark"] {
    .search-icon {
        stroke: #ccc;
        stroke-width: 2;
    }
    
    .search-input:focus + .search-icon {
        stroke: var(--primary-color);
        stroke-width: 2.5;
    }
}

/* 添加滚动到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 关于本站按钮 */
.about-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-background);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: var(--blur-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.about-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.4);
}

/* 按钮图标 */
.about-toggle .icon {
    font-size: 20px;
    line-height: 1;
}

/* 添加旋转的光晕效果 */
.about-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 188, 212, 0.1) 0%,
        transparent 70%
    );
    animation: rotate 10s linear infinite;
}

/* 添加旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .about-toggle {
    background: var(--card-background);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .about-toggle:hover {
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.4);
}

/* 关于本站弹窗 */
.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.about-modal .modal-content {
    position: relative;
    width: min(90%, 800px);
    max-height: 90vh;
    margin: 2rem auto;
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tech-item {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.tech-item h5 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tech-item ul {
    list-style: none;
    padding: 0;
}

.tech-item li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item li::before {
    content: '•';
    color: var(--primary-color);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .about-modal .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }
} 