/* ========== 关于页面专用样式 ========== */

/* 页面容器 */
.about-page {
    max-width: 100%;
    text-align: left;
}

/* ---- 个人介绍 ---- */
.about-intro {
    color: var(--muted-color);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 2rem;
}

/* ---- 自由内容区 ---- */
.about-content {
    margin-bottom: 2rem;
}

/* ---- 区块标题 ---- */
.about-page section {
    margin-bottom: 2.5rem;
}

.about-page section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.about-page section h2 i {
    font-size: 1.1em;
    opacity: 0.7;
}

/* ---- 技能标签 ---- */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.28em 0.7em;
    border-radius: 999px;
    font-size: 0.88em;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: rgba(2, 6, 23, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .skill-tag {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}
.skill-tag:hover {
    transform: translateY(-1px);
    border-color: rgba(2, 6, 23, 0.20);
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.08);
}
[data-theme="dark"] .skill-tag:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ---- 通用卡片网格 ---- */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

/* ---- 项目/网站卡片 ---- */
.about-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.01));
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .about-card {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
}
.about-card:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 6, 23, 0.20);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.10);
}
[data-theme="dark"] .about-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.about-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.04);
    overflow: hidden;
}
[data-theme="dark"] .about-card-icon {
    background: rgba(255, 255, 255, 0.08);
}
.about-card-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.about-card-info {
    flex: 1;
    min-width: 0;
}

.about-card-name {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 0.15rem;
    color: var(--primary);
}

.about-card-desc {
    font-size: 0.82em;
    color: var(--muted-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ---- GitHub 仓库卡片 ---- */
.repo-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.01));
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .repo-card {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
}
.repo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 6, 23, 0.20);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.10);
}
[data-theme="dark"] .repo-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.repo-name {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--primary);
}

.repo-desc {
    font-size: 0.82em;
    color: var(--muted-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex: 1;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.78em;
    color: var(--muted-color);
    margin-top: auto;
}

.repo-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.repo-lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.repo-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.repo-stat svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
}

/* ---- 社交账号网格 ---- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.01));
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .social-card {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
}
.social-card:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 6, 23, 0.20);
    box-shadow: 0 6px 16px rgba(2, 6, 23, 0.10);
}
[data-theme="dark"] .social-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.2em;
    flex-shrink: 0;
}
.social-icon img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.social-name {
    font-size: 0.9em;
    font-weight: 500;
}

/* ---- 站点统计 ---- */
.site-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.info-item {
    text-align: center;
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.01));
}
[data-theme="dark"] .info-item {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
}

.info-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.info-label {
    font-size: 0.82em;
    color: var(--muted-color);
    margin-top: 0.3rem;
}

/* ---- 本站主题 ---- */
.theme-info {
    padding: 1.2rem 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.01));
    font-size: 0.95em;
    line-height: 1.7;
}
[data-theme="dark"] .theme-info {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
}
.theme-info p { margin: 0; }
.theme-info a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- 加载状态 ---- */
.about-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted-color);
    font-size: 0.9em;
}

.about-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--muted-color);
    font-size: 0.88em;
    border-radius: 12px;
    border: 1px dashed rgba(2, 6, 23, 0.15);
}
[data-theme="dark"] .about-error {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---- 响应式 ---- */
@media (max-width: 480px) {
    .about-cards-grid {
        grid-template-columns: 1fr;
    }
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-info-grid {
        gap: 0.5rem;
    }
    .info-value {
        font-size: 1.3rem;
    }
    .info-item {
        padding: 0.85rem 0.3rem;
    }
}
