* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fbfbfb;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #4285f4;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: #4285f4;
    border-radius: 50%;
    margin-right: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 50px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

/* Category Navigation */
.category-nav {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.category-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.category-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-item:hover,
.category-item.active {
    color: #4285f4;
    background-color: #f0f7ff;
}

/* Cloud Storage Navigation */
.cloud-nav {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.cloud-nav-list {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.cloud-nav-item {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cloud-nav-item:hover,
.cloud-nav-item.active {
    color: #4285f4;
    border-color: #4285f4;
    background-color: #f0f7ff;
}

/* 周更列表 - 动漫花园风格 */
.weekly-schedule {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.weekly-schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.weekly-schedule-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weekly-schedule-title::before {
    content: "📅";
    font-size: 18px;
}

.weekly-schedule-subtitle {
    font-size: 12px;
    color: #999;
}

/* 表格式布局 */
.weekly-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.weekly-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.weekly-row:last-child {
    border-bottom: none;
}

.weekly-row:hover {
    background-color: #fafafa;
}

.weekly-row.today {
    background-color: #f0f7ff;
}

/* 日期列 */
.weekly-day-label {
    width: 100px;
    flex-shrink: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-right: 1px solid #f0f0f0;
}

.weekly-day-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.weekly-row.today .weekly-day-name {
    color: #4285f4;
}

.weekly-day-date {
    font-size: 12px;
    color: #999;
}

.weekly-row.today .weekly-day-date {
    color: #4285f4;
}

/* 更新列表 - 横向滚动 */
.weekly-updates-container {
    flex: 1;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
}

.weekly-updates-container::-webkit-scrollbar {
    height: 6px;
}

.weekly-updates-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.weekly-updates-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.weekly-updates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
    align-items: center;
}

.weekly-update-item {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.5;
}

.weekly-update-item:hover {
    background-color: #4285f4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.weekly-row.today .weekly-update-item {
    background-color: #e3f2fd;
    color: #1976d2;
}

.weekly-row.today .weekly-update-item:hover {
    background-color: #4285f4;
    color: #fff;
}

.weekly-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 13px;
}

/* Search Info */
/* .search-info {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
} */

.search-keyword {
    color: #4285f4;
    font-weight: 500;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 30px;
}

.content-left {
    flex: 1;
}

.content-right {
    width: 300px;
}

/* Search Results */
.search-results {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 表头样式 */
.result-header {
    padding: 14px 20px;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 5px;
    font-size: 14px;
}

.result-header .result-number {
    width: 40px;
    text-align: left;
}

.result-header .result-title {
    flex: 1;
    min-width: 0;
}

.result-header .result-date {
    width: 100px;
    text-align: left;
}

.result-header .result-icons {
    width: 120px;
    text-align: right;
}

.result-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.result-item:hover {
    background-color: #fafafa;
}

.result-item:last-child {
    border-bottom: none;
}

.result-number {
    color: #999;
    font-size: 16px;
    font-weight: 600;
    width: 40px;
    text-align: left;
    flex-shrink: 0;
}

/* 前三名序号使用橙红色 */
.result-item:nth-child(2) .result-number,
.result-item:nth-child(3) .result-number,
.result-item:nth-child(4) .result-number {
    color: #ff6b35;
}

.result-title {
    flex: 1;
    min-width: 0;
    max-width: 300px;
}

.result-title span {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-item:hover .result-title span {
    color: #4285f4;
}

.result-date {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    width: 100px;
    text-align: left;
    flex-shrink: 0;
}

.result-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    width: 120px;
    flex-shrink: 0;
}

.pan-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.result-badge {
    background-color: #333;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-meta a {
    color: #4285f4;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
    position: relative;
}

.result-meta a:hover {
    background-color: #f0f7ff;
    color: #1a73e8;
}

.result-actions {
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.result-actions a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-actions a:hover {
    color: #4285f4;
}

/* Pagination */
.pagination {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.pagination-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
}

.pagination-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    background-color: #f0f7ff;
    color: #4285f4;
}

.pagination-item.active {
    background-color: #4285f4;
    color: white;
}

.pagination-item.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 页码跳转 */
.pagination-jump {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.jump-input {
    width: 60px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.jump-input:focus {
    outline: none;
    border-color: #4285f4;
}

.jump-btn {
    height: 32px;
    padding: 0 12px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.jump-btn:hover {
    background-color: #1a73e8;
}

/* Sidebar */
.sidebar-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.sidebar-more {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

.sidebar-more:hover {
    color: #4285f4;
}

/* 每日热门使用火焰图标 */
.sidebar-section:first-child .sidebar-title-left::before {
    content: "🔥";
    font-size: 16px;
}

/* 热门推荐使用目标图标 */
.sidebar-section:last-child .sidebar-title-left::before {
    content: "🎯";
    font-size: 16px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.sidebar-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.sidebar-list a:hover {
    color: #4285f4;
}

.sidebar-list-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-number {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    min-width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-top: 1px;
}

/* 前三条序号样式 - 橙红色背景 */
.sidebar-list li:nth-child(1) .sidebar-number,
.sidebar-list li:nth-child(2) .sidebar-number,
.sidebar-list li:nth-child(3) .sidebar-number {
    background-color: #ffdad9;
}

/* 后面条目序号样式 - 灰色背景 */
.sidebar-list li:nth-child(n+4) .sidebar-number {
    color: #999;
}

/* Footer */
.footer {
    /* background-color: #ffffff; */
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 20px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #4285f4;
    text-decoration: none;
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        margin: 0;
        max-width: none;
        width: 100%;
    }

    .header-right {
        display: none;
    }

    .category-list {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cloud-nav-list {
        gap: 8px;
    }
    
    /* 移动端周更列表优化 */
    .weekly-schedule {
        padding: 15px;
    }
    
    .weekly-schedule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .weekly-day-label {
        width: 80px;
        padding: 8px;
        gap: 4px;
    }
    
    .weekly-day-name {
        font-size: 13px;
    }
    
    .weekly-day-date {
        font-size: 11px;
    }
    
    .weekly-updates-container {
        padding: 6px 10px;
    }
    
    .weekly-updates-list {
        gap: 6px;
        min-height: 28px;
    }
    
    .weekly-update-item {
        font-size: 12px;
        padding: 3px 8px;
    }

    .main-content {
        flex-direction: column;
        gap: 20px;
    }

    .content-right {
        width: 100%;
    }

    /* 移动端隐藏表头 */
    .result-header {
        display: none;
    }

    /* 卡片式布局 */
    .result-item {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        margin-bottom: 10px;
        background-color: #fff;
        position: relative;
    }

    .result-item:hover {
        background-color: #fafafa;
        border-color: #e0e0e0;
    }

    /* 序号样式 - 左上角小标签 */
    .result-number {
        position: absolute;
        top: 12px;
        left: 12px;
        width: auto;
        min-width: 24px;
        height: 24px;
        background-color: #f5f5f5;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        padding: 0 6px;
    }

    /* 前三名序号特殊样式 */
    .result-item:nth-child(2) .result-number,
    .result-item:nth-child(3) .result-number,
    .result-item:nth-child(4) .result-number {
        background-color: #fff3e0;
        color: #ff6b35;
    }

    /* 标题区域 - 占满整行 */
    .result-title {
        flex: 0 0 100%;
        width: 100%;
        padding-left: 36px;
        margin-bottom: 0;
    }

    .result-title span {
        font-size: 15px;
        font-weight: 500;
        white-space: normal;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 日期信息容器 - 自动宽度，在同一行 */
    .result-item .result-date {
        flex: 0 0 auto;
        font-size: 13px;
        color: #999;
        line-height: 1.4;
    }

    /* 第一个日期 */
    .result-item .release-date {
        margin-right: 15px;
    }

    /* 移动端日期标签 - 使用::before */
    .result-item .release-date::before {
        content: "上映时间: ";
        color: #666;
        font-weight: 500;
    }

    .result-item .update-date::before {
        content: "最新分享: ";
        color: #666;
        font-weight: 500;
    }

    /* 网盘图标 - 日期下方，占满一行 */
    .result-icons {
        flex: 0 0 100%;
        width: 100%;
        display: flex;
        gap: 8px;
        margin-top: 0;
    }

    .pan-icon {
        width: 22px;
        height: 22px;
    }

    .result-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .result-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pagination-list {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-jump {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
        font-size: 13px;
    }
    
    .jump-input {
        width: 60px;
        height: 28px;
        font-size: 13px;
    }
    
    .jump-btn {
        height: 28px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-results {
        padding: 10px;
    }

    .result-item {
        padding: 12px;
    }

    .result-number {
        font-size: 11px;
        min-width: 22px;
        height: 22px;
        top: 10px;
        left: 10px;
    }

    .result-title {
        padding-left: 32px;
    }

    .result-title span {
        font-size: 14px;
    }

    .result-item .result-date {
        font-size: 12px;
    }

    .pan-icon {
        width: 20px;
        height: 20px;
    }
    
    .pagination-jump {
        gap: 6px;
        font-size: 12px;
    }
    
    .pagination-jump span {
        white-space: nowrap;
    }
    
    .jump-input {
        width: 50px;
        height: 26px;
        font-size: 12px;
    }
    
    .jump-btn {
        height: 26px;
        padding: 0 8px;
        font-size: 12px;
    }

    .sidebar-section {
        padding: 15px;
    }

    .cloud-nav-item {
        font-size: 12px;
        padding: 4px 8px;
    }
}
