/* ============================================================
   about.css — 关于页面专用样式
   与 index.css 风格统一，简洁、自适应、不花哨
   ============================================================ */

/* ===== 基础重置（仅针对 about 页面特有元素） ===== */
.about-intro ul {
    padding-left: 1.5em;
    margin: 0.4em 0 0.6em 0;
}
.about-intro ul li {
    margin: 0.2em 0;
    color: #444;
}

/* ===== 信息框 ===== */
.info-box {
    background: #f6f8fa;
    border-left: 3px solid #0066cc;
    padding: 12px 16px;
    margin: 0 0 12px 0;
}
.info-box p {
    margin: 0;
    color: #1e1e1e;
    font-size: 0.95rem;
}
.info-box i {
    color: #0066cc;
    margin-right: 6px;
}

/* ===== 关于本站介绍区 ===== */
.about-intro {
    margin: 8px 0 16px 0;
}
.about-intro h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}
.about-intro h2 i {
    color: #0066cc;
    margin-right: 6px;
}
.intro-section {
    border-left: 3px solid #0066cc;
    padding: 0 0 0 16px;
    margin: 16px 0 20px 0;
}
.intro-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}
.intro-section h3 i {
    color: #0066cc;
    margin-right: 6px;
}
.intro-section p {
    margin: 4px 0;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}
.intro-section ul {
    padding-left: 1.5em;
    margin: 4px 0 6px 0;
}
.intro-section ul li {
    margin: 2px 0;
    color: #444;
    font-size: 0.95rem;
}
.intro-section ul li strong {
    color: #1e1e1e;
}
.intro-section a {
    color: #0066cc;
}
.intro-section a:hover {
    text-decoration: underline;
}

/* ===== 可折叠模块 ===== */
.section-collapsible {
    margin: 16px 0 4px 0;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 6px 0;
    transition: color 0.2s;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 8px;
}
.section-header:hover {
    color: #0066cc;
}
.section-header .toggle-icon {
    font-size: 0.75rem;
    color: #999;
    transition: transform 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
}
.section-collapsed .section-content {
    display: none;
}
.section-collapsed .toggle-icon {
    transform: rotate(-90deg);
}
.section-header span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 1.05rem;
}
.section-header span i {
    color: #0066cc;
}
.section-content {
    padding: 4px 0 12px 0;
}

/* ===== 统计卡片网格 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin: 8px 0 4px 0;
}
.stat-card {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    padding: 12px 8px;
    text-align: center;
    transition: background 0.15s;
}
.stat-card:hover {
    background: #f0f1f2;
}
.stat-card i {
    display: block;
    font-size: 1.3rem;
    color: #0066cc;
    margin-bottom: 4px;
}
.stat-card .number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1.3;
}
.stat-card .label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}
/* 统计卡片颜色变体（柔和） */
.stat-card.info .number { color: #1565c0; }
.stat-card.accent .number { color: #e65100; }
.stat-card.success .number { color: #2e7d32; }
.stat-card.teal .number { color: #00695c; }
.stat-card.warning .number { color: #e65100; }

/* ===== 排行榜列表 ===== */
.rank-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.rank-list li:last-child {
    border-bottom: none;
}
.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e8e8e8;
    color: #666;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}
.rank-num.gold {
    background: #ffd700;
    color: #1e1e1e;
}
.rank-num.silver {
    background: #c0c0c0;
    color: #1e1e1e;
}
.rank-num.bronze {
    background: #cd7f32;
    color: #fff;
}
.rank-item {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    color: #1e1e1e;
}
.rank-item a {
    color: #1e1e1e;
}
.rank-item a:hover {
    color: #0066cc;
    text-decoration: none;
}
.rank-item a i {
    margin-right: 4px;
    color: #999;
    font-size: 0.8rem;
}
.rank-count {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}
.rank-count i {
    margin-right: 2px;
}
.time {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== 条形图 ===== */
.chart-container {
    padding: 8px 0 4px 0;
    overflow-x: auto;
}
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 180px;
    gap: 4px;
    padding: 0 4px;
    min-width: 300px;
}
.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}
.bar-value {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 2px;
    height: 18px;
}
.bar {
    width: 100%;
    max-width: 36px;
    min-height: 4px;
    background: #0066cc;
    transition: height 0.3s;
    border-radius: 0;
}
.bar-wrapper:nth-child(2n) .bar {
    background: #4d94db;
}
.bar-wrapper:nth-child(3n) .bar {
    background: #7aadde;
}
.bar-label {
    font-size: 0.65rem;
    color: #888;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

/* ===== 标签云 ===== */
.tag-cloud-section {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    padding: 16px 20px;
    margin: 4px 0 0 0;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    line-height: 2.4;
    overflow: hidden;
}
.tag-cloud-item {
    display: inline-block;
    padding: 2px 10px;
    margin: 0 2px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
}
.tag-cloud-item:hover {
    transform: scale(1.2);
    z-index: 10;
    background: #0066cc !important;
    color: #fff !important;
    border-color: #0066cc !important;
    text-decoration: none;
}
.tag-cloud-empty {
    color: #999;
    font-style: italic;
    width: 100%;
}
.tag-cloud-empty i {
    margin-right: 4px;
}

/* ===== 小黑屋 ===== */
.blacklist-box {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 14px 18px;
    margin: 4px 0 0 0;
}
.blacklist-box p {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.blacklist-box p strong {
    color: #ff6666;
}
.blacklist-box .blocked-ip {
    display: inline-block;
    background: #2a2a2a;
    color: #ff6666;
    padding: 2px 12px;
    font-family: monospace;
    font-size: 0.8rem;
    margin: 3px;
    border: 1px solid #444;
}
.blacklist-box .blocked-ip i {
    margin-right: 4px;
}
.blacklist-empty {
    color: #888;
    text-align: center;
    padding: 16px 0;
    font-style: italic;
}
.blacklist-empty i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
    color: #555;
}

/* ===== 更新日志 ===== */
.changelog-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.changelog-item:last-child {
    border-bottom: none;
}
.changelog-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #0066cc;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.changelog-version {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.changelog-version:hover {
    color: #0066cc;
}
.changelog-version .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.65rem;
    color: #999;
}
.changelog-item.collapsed .changelog-list {
    display: none;
}
.changelog-item.collapsed .changelog-version .fa-chevron-down {
    transform: rotate(-90deg);
}
.changelog-date {
    font-size: 0.75rem;
    color: #999;
    margin-left: 8px;
}
.changelog-date i {
    margin-right: 2px;
}
.changelog-list {
    list-style: none;
    padding: 6px 0 0 24px;
    margin: 0;
}
.changelog-list li {
    padding: 2px 0;
    font-size: 0.9rem;
    color: #444;
    position: relative;
}
.changelog-list li::before {
    content: "•";
    color: #0066cc;
    position: absolute;
    left: -16px;
}

/* ===== 折叠状态的更新日志条目 ===== */
.changelog-item.collapsed .changelog-list {
    display: none;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    .stat-card {
        padding: 10px 6px;
    }
    .stat-card .number {
        font-size: 1.2rem;
    }
    .stat-card i {
        font-size: 1.1rem;
    }
    .bar-chart {
        height: 140px;
        gap: 3px;
    }
    .bar-value {
        font-size: 0.6rem;
        height: 14px;
    }
    .bar-label {
        font-size: 0.55rem;
    }
    .intro-section {
        padding-left: 12px;
        margin: 12px 0 16px 0;
    }
    .intro-section h3 {
        font-size: 1rem;
    }
    .intro-section p,
    .intro-section ul li {
        font-size: 0.9rem;
    }
    .tag-cloud-section {
        padding: 12px 14px;
        min-height: 80px;
        line-height: 2.2;
    }
    .tag-cloud-item {
        padding: 1px 8px;
        margin: 0 1px;
    }
    .rank-list li {
        flex-wrap: wrap;
        gap: 4px 8px;
        padding: 5px 0;
    }
    .rank-item {
        font-size: 0.9rem;
        flex-basis: 100%;
        order: 2;
    }
    .rank-num {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        order: 1;
    }
    .rank-count {
        font-size: 0.75rem;
        order: 3;
    }
    .time {
        font-size: 0.7rem;
        order: 4;
        margin-left: auto;
    }
    .blacklist-box {
        padding: 12px 14px;
    }
    .blacklist-box .blocked-ip {
        font-size: 0.7rem;
        padding: 2px 10px;
    }
    .changelog-version {
        font-size: 0.9rem;
    }
    .changelog-list li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .stat-card {
        padding: 8px 4px;
    }
    .stat-card .number {
        font-size: 1rem;
    }
    .stat-card .label {
        font-size: 0.65rem;
    }
    .stat-card i {
        font-size: 0.95rem;
    }
    .bar-chart {
        height: 120px;
        min-width: 240px;
    }
    .bar-value {
        font-size: 0.55rem;
        height: 12px;
    }
    .bar-label {
        font-size: 0.5rem;
    }
    .intro-section {
        padding-left: 10px;
        margin: 10px 0 14px 0;
    }
    .intro-section p,
    .intro-section ul li {
        font-size: 0.85rem;
    }
    .tag-cloud-section {
        padding: 10px 10px;
        min-height: 60px;
        line-height: 2;
    }
    .tag-cloud-item {
        padding: 0 6px;
        margin: 0 1px;
    }
    .blacklist-box {
        padding: 10px 12px;
    }
}