/* ========== 基础重置与全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font: 14px/1.6 -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fc;
    color: rgba(0, 0, 0, 0.85);
    height: 100%;
}

a {
    color: #2c6bdb;
    text-decoration: none;
}

/* ========== 头部导航 ========== */
.head {
    align-items: center;
    background-color: #1e5bd7;
    box-sizing: border-box;
    display: flex;
    height: 90px;
    padding: 0 32px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    display: inline-block;
    flex-shrink: 0;
    margin-right: 32px;
    font-size: 64px;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
    line-height: 54px;
}
.logo img {
    height: 54px;
    vertical-align: middle;
}

.nav {
    align-items: center;
    display: flex;
    flex: 1;
    font-size: 16px;
    overflow: hidden;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    display: block;
    line-height: 54px;
    margin-right: 28px;
    white-space: nowrap;
    font-weight: 500;
}

.nav a:hover {
    color: white;
}

.lang_change {
    display: flex;
    flex-shrink: 0;
    font-size: 14px;
}

.lang_change a {
    color: rgba(255, 255, 255, 0.7);
    padding: 0 8px;
}

.lang_change a.current {
    color: white;
}

/* ========== 主体布局 ========== */
.faq {
    display: flex;
    overflow: hidden;
    margin-top: 90px;
    min-height: calc(100vh - 90px);
}

/* 左侧边栏（版本日志风格，用于任务广场等） */
.faq_list {
    background-color: rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
    padding: 28px 0;
    width: 320px;
    flex-shrink: 0;
}

.faq_list_title {
    font-size: 16px;
    line-height: 22.4px;
    padding: 12px 32px;
    font-weight: 600;
    color: #1e2f44;
}

/* 右侧内容区域 */
.faq_content {
    background-color: #fff;
    flex: 1;
    overflow: auto;
    position: relative;
}

.faq__wrap {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.faq__detail {
    box-sizing: border-box;
    flex: 1;
    font-size: 17px;
    margin: 0 auto;
    max-width: 900px;
    padding: 64px 64px 80px;
}

.faq_title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a2c3e;
}

.publish-date {
    color: #6c7a8e;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f6;
    font-size: 15px;
}

.download-links {
    background: #f8faff;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 24px 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.download-btn {
    background-color: #1e5bd7;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #0e3a8f;
    text-decoration: none;
    color: white;
}

.update-content {
    margin-top: 24px;
}

.update-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #1e2f44;
}

.update-list {
    padding-left: 24px;
    list-style: disc;
}

.update-list li {
    margin: 12px 0;
    line-height: 1.5;
}

/* ========== 底部 ========== */
.footer-wrp {
    background: #f5f7fc;
    border-top: 1px solid #eaeef5;
}

.footer {
    background-color: #fff;
    padding: 32px 0 28px;
    text-align: center;
}

.footer__links {
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 13px;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer a {
    color: #4a627a;
    margin: 0 6px;
}

.footer a:hover {
    color: #1e5bd7;
}

.footer__copyright {
    color: #8a99ae;
    font-size: 12px;
    margin-top: 6px;
}

/* ========== 表单元素 ========== */
input, textarea, select {
    font-family: inherit;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: #1e5bd7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30,91,215,0.1);
}
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}
th, td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #f8fafc;
}

/* 消息提示 */
.success-msg {
    color: green;
    background: #e6f7e6;
    padding: 10px;
    border-radius: 6px;
}
.error-msg {
    color: red;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 6px;
}
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #856404;
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

/* ========== 模态框 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    min-width: 400px;
    max-width: 90%;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .head {
        height: 60px;
        padding: 0 16px;
    }
    .logo {
        font-size: 24px;
        line-height: 30px;
    }
    .logo img {
        height: 30px;
    }
    .nav {
        display: none; /* 移动端隐藏导航，可后续扩展汉堡菜单 */
    }
    .faq {
        flex-direction: column;
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
    .faq_list {
        width: 100%;
        height: auto;
        max-height: 280px;
        overflow-y: auto;
        padding: 16px 0;
    }
    .faq__detail {
        padding: 24px 16px;
    }
    .faq_title {
        font-size: 24px;
    }
    .download-links {
        flex-direction: column;
        align-items: flex-start;
    }
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    /* 表格横向滚动 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 600px;
    }
    /* 模态框适配 */
    .modal-content {
        min-width: auto;
        width: 90%;
        padding: 20px;
    }
    /* 表单按钮组 */
    form p {
        margin-bottom: 12px;
    }
    input, select, textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
    /* 个人中心头像区域 */
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .head {
        justify-content: space-between;
        padding: 0 24px;
    }
    .nav {
        display: none;
    }
    .faq__detail {
        padding: 40px 32px;
    }
}