/* ========= 全局基础样式 ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
    font-size: 14px;
    color: #333;
}

/* ========= 主容器 ========= */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========= 个人介绍区域（重点优化） ========= */
.profile-section {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;   /* 不再用 space-between */
    gap: 72px;                     /* 控制中间空白（可调 40~72） */
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 左侧文字 */
.profile-text {
    flex: 1;
}

.profile-text h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 6px;
}

.profile-text .subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

.profile-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 按钮 */
.profile-buttons {
    margin-top: 14px;
}

.profile-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 16px;
}

.profile-btn.outline {
    background: #fff;
    color: #007bff;
    border: 1px solid #007bff;
}

/* 右侧二维码（稳定占位，不漂移） */
.profile-qrcode {
    flex: 0 0 160px;     /* 固定占位，避免中轴空洞 */
    text-align: center;
}

.profile-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
}

.profile-qrcode p {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* ========= 工具分类区域 ========= */
.category-section {
    margin-bottom: 30px;
}

.category-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.category-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.category-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.category-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    min-width: 200px;
}

.category-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* ========= 工具列表区域 ========= */
.tools-list-section {
    margin-top: 30px;
}

.tools-list-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

#appListContainer {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 80px;
}

.tool-category-item {
    margin-bottom: 20px;
}

.tool-category-title {
    font-size: 16px;
    color: #007bff;
    margin-bottom: 10px;
}

.tool-item-card {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.tool-item-card a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.tool-item-desc {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* ========= 错误提示 ========= */
.tools-error {
    color: #dc3545;
    padding: 10px;
    background: #f8d7da;
    border-radius: 6px;
}

/* ========= 页脚 ========= */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer p {
    font-size: 14px;
    color: #666;
}

/* ========= 响应式（防未来再错位） ========= */
@media (max-width: 900px) {
    .profile-section {
        flex-direction: column;
        gap: 16px;
    }
    .profile-qrcode {
        flex: none;
    }
}