* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.top-bar {
    position: fixed;
    top: 0;
    left: 80px;
    right: 0;
    height: 60px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    z-index: 1000;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.brand-btn {
    font-size: 20px;
    font-weight: bold;
    color: #1890ff;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.brand-btn:hover {
    color: #096dd9;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
    white-space: nowrap;
}

/* 侧边栏Logo */
.logo-container {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 300px;
    height: 36px;
    padding: 0 15px 0 40px;
    border: 2px solid #e0e0e0;
    border-radius: 18px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.search-box input:focus {
    border-color: #1890ff;
}

.search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-actions {
    display: flex;
    gap: 8px;
}

.search-action-btn {
    height: 32px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.search-action-btn.has-data {
    border-color: #1890ff;
    color: #1890ff;
}

.search-action-btn:hover {
    background: #f5f5f5;
}

.search-action-btn.has-data:hover {
    background: #e6f7ff;
}

/* 左侧导航栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: #f5f5f5;
    z-index: 1001;
}

/* 移动端导航（默认隐藏） */
.mobile-nav {
    display: none;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
    border-radius: 8px;
}

.mobile-nav-item:hover {
    background: #f0f0f0;
}

.mobile-nav-item.active {
    color: #1890ff;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    gap: 5px;
}

.nav-item:hover {
    background: #f0f9ff;
    color: #1890ff;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item.active {
    background: #e6f7ff;
    color: #1890ff;
    border-left-color: #1890ff;
    font-weight: bold;
}

/* 主内容区 */
.main-content {
    margin-left: 80px;
    margin-top: 60px;
    min-height: calc(100vh - 180px);
    padding: 20px;
}

.page {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 防止闪烁 */
img {
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 首页模块 */
.modules-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.module-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.module-title {
    font-size: 22px;
    color: #333;
    border-left: 4px solid #1890ff;
    padding-left: 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.module-title:hover {
    color: #1890ff;
}

.sub-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: #f0f9ff;
    color: #1890ff;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: #1890ff;
    color: #fff;
}

.tag.active {
    background: #1890ff;
    color: #fff;
    font-weight: bold;
}

/* 横向卡片流 */
.horizontal-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.horizontal-list::-webkit-scrollbar {
    height: 6px;
}

.horizontal-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.card {
    flex-shrink: 0;
    width: 140px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-cover {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* 图片容器 */
.card-cover-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: url('bj.png') center/cover no-repeat;
    background-color: #f5f5f5;
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-source {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.card-remarks {
    font-size: 12px;
    color: #1890ff;
}

/* 列表页 */
.list-page-container {
    background: #fff;
    padding: 20px 30px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.list-sub-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.list-sub-tags .tag {
    padding: 6px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.list-sub-tags .tag:hover {
    background: #e6f7ff;
    color: #1890ff;
    border-color: #1890ff;
}

.list-sub-tags .tag.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
    font-weight: bold;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-title {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.clear-btn {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #ff4d4f;
    border-radius: 4px;
    color: #ff4d4f;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #fff2f0;
    border-color: #ff7875;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-info {
    color: #666;
    font-size: 14px;
    margin: 0 10px;
}

.page-btn {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 详情页 */
.detail-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.detail-left {
    flex-shrink: 0;
    width: 140px;
    position: relative;
}

.poster-wrapper {
    position: relative;
}

.detail-poster {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

.detail-source-tabs {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.detail-source-tabs .source-tab {
    padding: 4px 8px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.source-episodes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.poster-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.order-toggle {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.order-toggle:hover {
    background: #fff;
    transform: scale(1.1);
}

.order-icon {
    width: 20px;
    height: 20px;
    color: #1890ff;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.order-toggle.desc .order-icon {
    transform: rotate(180deg);
}

.favorite-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.favorite-icon {
    width: 18px;
    height: 18px;
    color: #999;
    transition: all 0.3s;
}

.favorite-btn.favorited .favorite-icon {
    color: #ff4d4f;
    fill: #ff4d4f;
}

.detail-right {
    flex: 1;
    padding-top: 0;
    padding-left: 0;
}

.detail-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.play-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.play-controls .play-button {
    margin-bottom: 0;
}

.play-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.play-controls .play-button {
    margin-bottom: 0;
}

.detail-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    padding: 5px 12px;
    background: #1890ff;
    color: #fff;
    border-radius: 15px;
    font-size: 14px;
}

.order-btn {
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.order-btn:hover {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.order-btn.desc {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.detail-info {
    margin-bottom: 20px;
}

.detail-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.detail-info p {
    margin-bottom: 10px;
    font-size: 15px;
}

.detail-info strong {
    color: #666;
}

.detail-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 12px 0;
}

.play-button {
    padding: 8px 30px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    margin-top: 0;
    transition: background 0.3s;
}

.play-button:hover {
    background: #096dd9;
}

.play-controls-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.order-text-btn {
    padding: 8px 16px;
    background: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.order-text-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.favorite-text-btn {
    padding: 8px 16px;
    background: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.favorite-text-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.favorite-text-btn.favorited {
    background: #fff2f0;
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.source-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.source-tab {
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.source-tab:hover {
    background: #1890ff;
    color: #fff;
}

.source-tab.active {
    background: #1890ff;
    color: #fff;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.episode-btn {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
}

.episode-btn:hover {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.episode-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.detail-desc {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.desc-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.desc-content {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* 播放页 */
.play-container {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.play-left {
    flex: 0 0 70%;
}

.player-wrapper {
    position: relative;
    width: 100%;
    max-height: 60vh;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* 旧iframe播放器样式已移除 */

/* 解析源选择器 */
.parse-api-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.parse-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.parse-api-btn {
    padding: 6px 16px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.parse-api-btn:hover {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.parse-api-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
    font-weight: 500;
}

.player-info {
    padding: 10px 0;
}

.play-title {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
}

.play-type {
    font-size: 16px;
    color: #666;
}

.play-right {
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.episode-title {
    font-size: 20px;
    margin: 0;
    color: #333;
}

.play-favorite-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.play-favorite-btn:hover {
    border-color: #ff4d4f;
    background: #fff2f0;
}

.play-favorite-btn.favorited {
    border-color: #ff4d4f;
}

.play-favorite-btn.favorited .favorite-icon {
    color: #ff4d4f;
    fill: #ff4d4f;
}

/* 底部 */
/* Toast消息样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.footer {
    background: #f5f5f5;
    padding: 30px 20px;
    margin-left: 80px;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
    color: #999;
    font-size: 13px;
    line-height: 2;
}

/* 响应式 */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .top-bar {
        left: 80px;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .footer {
        margin-left: 80px;
    }
}

/* 自定义密码对话框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    padding: 20px 25px;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-body input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.modal-body input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.modal-body input::placeholder {
    color: #999;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 25px 25px;
}

.modal-footer button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-footer #passwordCancel {
    background: #f5f5f5;
    color: #666;
}

.modal-footer #passwordCancel:hover {
    background: #e8e8e8;
}

.modal-footer #passwordConfirm {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
}

.modal-footer #passwordConfirm:hover {
    opacity: 0.9;
}

/* 中等屏幕优化 (768px - 1024px) */
@media (max-width: 1024px) {
    .card {
        width: 130px;
    }
    
    .card-cover-wrapper,
    .card-cover {
        height: 175px;
    }
    
    .module-title {
        font-size: 20px;
    }
    
    .top-bar-content {
        gap: 20px;
    }
    
    .search-box input {
        height: 34px;
        padding: 0 12px 0 40px;
        border-radius: 17px;
    }
}

/* 平板端优化 (600px - 768px) */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .top-bar {
        left: 0;
        padding: 0;
        position: relative;
        height: auto;
        flex-direction: column;
    }
    
    .top-bar-content {
        gap: 15px;
        padding: 10px 15px;
        width: 100%;
    }
    
    /* 显示移动端导航 */
    .mobile-nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-around;
        padding: 8px 10px;
        border-top: 1px solid #eee;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .brand-btn {
        font-size: 18px;
    }
    
    .search-box {
        flex: 1;
        min-width: 180px;
    }
    
    .search-box input {
        height: 34px;
        padding: 0 12px 0 40px;
        border-radius: 17px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .footer {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .module-section {
        padding: 15px;
    }
    
    .module-header {
        gap: 8px;
    }
    
    .module-title {
        font-size: 18px;
        padding-left: 10px;
    }
    
    .card {
        width: 120px;
    }
    
    .card-cover-wrapper,
    .card-cover {
        height: 160px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .detail-content {
        flex-direction: column;
    }
    
    .detail-left {
        width: 100%;
    }
    
    .play-container {
        flex-direction: column;
    }
    
    .play-left {
        flex: 1;
    }
    
    .play-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    
    .grid-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 350px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
}

/* 移动端优化 (< 600px) */
@media (max-width: 600px) {
    .top-bar {
        padding: 0;
        height: auto;
    }
    
    .top-bar-content {
        padding: 8px 10px;
    }
    
    .mobile-nav {
        padding: 6px 5px;
    }
    
    .mobile-nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .mobile-nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .mobile-nav-item span {
        font-size: 11px;
    }
    
    .main-content {
        margin-top: 50px;
        padding: 10px;
    }
    
    .brand-btn {
        font-size: 18px;
    }
    
    .search-box {
        min-width: 120px;
    }
    
    .search-box input {
        height: 34px;
        padding: 0 12px 0 40px;
        font-size: 13px;
        border-radius: 17px;
    }
    
    .module-section {
        padding: 12px;
        border-radius: 8px;
    }
    
    .module-title {
        font-size: 16px;
        padding-left: 8px;
    }
    
    .card {
        width: 100px;
    }
    
    .card-cover-wrapper,
    .card-cover {
        height: 135px;
    }
    
    .card-title {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .card-info {
        padding: 10px;
    }
    
    .tag {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .horizontal-list {
        gap: 10px;
        padding: 5px 0;
    }
    
    .grid-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .list-title {
        font-size: 22px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 300px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 0 20px 20px;
    }
}
