* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

html {
    font-size: clamp(12px, 1.5vw, 16px);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    height: clamp(50px, 8vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 0 clamp(10px, 2vw, 15px);
    height: clamp(36px, 5.5vw, 42px);
    width: clamp(200px, 30vw, 350px);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: #1677ff;
    background: #fff;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    padding: 0 8px;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: #666;
    padding: 5px;
}

.categories {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.categories-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
    overflow-x: auto;
    height: clamp(40px, 6vw, 48px);
}

.categories::-webkit-scrollbar { display: none; }

.category-item {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover,
.category-item.active {
    color: #1677ff;
    border-bottom-color: #1677ff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(15px, 3vw, 25px) clamp(15px, 3vw, 30px);
}

.section-block {
    margin-bottom: clamp(25px, 5vw, 40px);
}

.section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #333;
    margin-bottom: clamp(12px, 2.5vw, 18px);
    padding-bottom: clamp(8px, 1.5vw, 12px);
    border-bottom: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 30vw, 420px), 1fr));
    gap: clamp(12px, 2.5vw, 20px);
}

.platform-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.platform-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f5f5f5;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
}

.card-left {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
}

.card-icon {
    width: clamp(32px, 5.5vw, 40px);
    height: clamp(32px, 5.5vw, 40px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.card-title {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 600;
    color: #333;
}

.card-time {
    font-size: clamp(0.7rem, 1.3vw, 0.75rem);
    color: #999;
}

.hot-list {
    padding: clamp(8px, 1.5vw, 12px);
    max-height: clamp(320px, 50vh, 420px);
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.hot-list::-webkit-scrollbar { width: 3px; }
.hot-list::-webkit-scrollbar-track { background: #fafafa; }
.hot-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.hot-item {
    display: flex;
    align-items: center;
    padding: clamp(8px, 1.5vw, 12px) clamp(10px, 1.8vw, 14px);
    margin-bottom: clamp(4px, 0.8vw, 6px);
    background: #fafbfc;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.hot-item:hover {
    background: #f0f7ff;
    border-color: #e6f4ff;
}

.hot-item:last-child { margin-bottom: 0; }

.hot-rank {
    width: clamp(22px, 4vw, 28px);
    height: clamp(22px, 4vw, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.4vw, 0.85rem);
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: clamp(8px, 1.5vw, 12px);
}

.rank-1 { color: #ff4d4f; background: #fff1f0; }
.rank-2 { color: #fa8c16; background: #fff7e6; }
.rank-3 { color: #52c41a; background: #f6ffed; }
.rank-default { color: #999; background: #f5f5f5; }

.hot-title {
    flex: 1;
    font-size: clamp(0.8rem, 1.5vw, 0.88rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    line-height: 1.4;
}

.hot-item:hover .hot-title {
    color: #1677ff;
}

.hot-value {
    font-size: clamp(0.65rem, 1.2vw, 0.72rem);
    color: #ff7875;
    font-weight: 600;
    background: #fff1f0;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

.hot-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 25px;
    text-align: center;
}

.empty-state .icon {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}

.empty-state .title {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 500;
    color: #999;
}

.empty-state .btn {
    margin-top: 12px;
    padding: 8px 20px;
    background: #1677ff;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    cursor: pointer;
    transition: all 0.3s;
}

.empty-state .btn:hover {
    background: #4096ff;
}

.scroll-hint {
    text-align: center;
    padding: clamp(8px, 1.5vw, 10px);
    font-size: clamp(0.7rem, 1.3vw, 0.75rem);
    color: #bbb;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
}

.news-section {
    margin-top: clamp(25px, 5vw, 40px);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: clamp(12px, 2vw, 16px);
    margin-bottom: clamp(12px, 2vw, 16px);
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 700;
    color: #333;
}

.section-time {
    font-size: clamp(0.75rem, 1.4vw, 0.8rem);
    color: #999;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 28vw, 320px), 1fr));
    gap: clamp(12px, 2.5vw, 20px);
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.news-card-header {
    padding: clamp(10px, 2vw, 14px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.news-icon {
    width: clamp(28px, 5vw, 34px);
    height: clamp(28px, 5vw, 34px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

.news-title {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 600;
    color: #333;
}

.news-list {
    padding: clamp(8px, 1.5vw, 12px);
    max-height: clamp(280px, 45vh, 360px);
    overflow-y: hidden;
}

.news-item {
    display: flex;
    align-items: center;
    padding: clamp(7px, 1.2vw, 10px);
    margin-bottom: clamp(3px, 0.6vw, 5px);
    background: #fafbfc;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.news-item:hover {
    background: #fff7e6;
    border-color: #ffd591;
}

.news-item:last-child { margin-bottom: 0; }

.news-rank {
    width: clamp(20px, 3.5vw, 24px);
    height: clamp(20px, 3.5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.3vw, 0.78rem);
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 8px;
}

.news-item-title {
    flex: 1;
    font-size: clamp(0.78rem, 1.4vw, 0.85rem);
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.news-item:hover .news-item-title {
    color: #fa8c16;
}

.news-score {
    font-size: clamp(0.65rem, 1.2vw, 0.72rem);
    color: #ff4d4f;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.news-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 0.85rem;
}

.friend-links {
    max-width: 1400px;
    margin: clamp(20px, 4vw, 30px) auto 0;
    padding: 0 clamp(15px, 3vw, 30px);
    text-align: left;
}

.friend-title {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    color: #333;
    margin-bottom: clamp(12px, 2vw, 16px);
}

.friend-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1.5vw, 12px);
}

.friend-item {
    display: inline-block;
    padding: clamp(8px, 1.5vw, 10px) clamp(16px, 2.8vw, 22px);
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #666;
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    text-decoration: none;
    transition: all 0.3s;
}

.friend-item:hover {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
}

.copyright {
    text-align: center;
    padding: clamp(20px, 3vw, 30px) 0;
    color: #999;
    font-size: clamp(0.75rem, 1.4vw, 0.8rem);
    border-top: 1px solid #f0f0f0;
    margin-top: clamp(15px, 2.5vw, 20px);
}

/* 版权混淆注入 - 关键字符存储 */
[data-cpr]::before {
    content: attr(data-cpr);
    display: none;
}

.refresh-btn {
    position: fixed;
    bottom: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 30px);
    width: clamp(44px, 7vw, 50px);
    height: clamp(44px, 7vw, 50px);
    border-radius: 50%;
    background: #1677ff;
    border: none;
    color: white;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22,119,255,0.3);
    transition: all 0.3s;
    z-index: 100;
}

.refresh-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(22,119,255,0.4);
}

.footer {
    text-align: center;
    padding: clamp(30px, 5vw, 40px) clamp(15px, 3vw, 20px);
    color: #bbb;
    font-size: clamp(0.75rem, 1.4vw, 0.8rem);
}

.footer p { margin-bottom: 5px; }

@media (max-width: 768px) {
    .platform-grid { grid-template-columns: 1fr; }
    .search-box { width: clamp(140px, 35vw, 200px); }
}

@media (max-width: 480px) {
    .navbar-main { gap: 10px; }
    .logo span { display: none; }
}

.archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.back-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1677ff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #4096ff;
}

.archive-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #333;
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-picker label {
    font-size: 0.9rem;
    color: #666;
}

.date-picker select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.date-picker select:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}
