/* About 页面 */
.about-section,
.privacy-section,
.terms-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
}

.about-header h1 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.about-content {
    margin: 0 auto;
    padding: 0 20px;
}

.about-intro {
    background-color: rgba(93, 138, 168, 0.05);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 8px solid #f88d5c;
}

.about-intro p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--light-text);
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-text {
    line-height: 1.8;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.about-text a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Privacy/Terms 页面 */
.privacy-header,
.terms-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.privacy-header h1,
.terms-header h1 {
    font-size: 2.2rem;
    color: var(--text-color);
}

.privacy-header p,
.terms-header p {
    color: var(--light-text);
    font-size: 1rem;
}

.privacy-content,
.terms-content {
    margin: 0 auto;
    padding: 0 1.5rem;
}

.privacy-intro,
.terms-intro {
    background-color: rgba(93, 138, 168, 0.05);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 8px solid #f88d5c;
}

.privacy-intro p,
.terms-intro p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.privacy-intro p:last-child,
.terms-intro p:last-child {
    margin-bottom: 0;
}

.privacy-grid,
.terms-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.privacy-toc,
.terms-toc {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 8px;
    position: sticky;
    overflow-y: auto;
}

.privacy-toc h2,
.terms-toc h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list li a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
}

.toc-list li a:hover {
    color: var(--primary-color);
    background-color: rgba(93, 138, 168, 0.1);
}

.privacy-text,
.terms-text {
    line-height: 1.8;
}

.privacy-text h2,
.terms-text h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.privacy-text h3,
.terms-text h3 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.privacy-text p,
.terms-text p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.privacy-text ul,
.terms-text ul,
.privacy-text ol,
.terms-text ol {
    margin-bottom: 25px;
    padding-left: 25px;
    color: var(--light-text);
}

.privacy-text li,
.terms-text li {
    margin-bottom: 10px;
}

.privacy-text li:last-child,
.terms-text li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .main {
        padding: 0.5rem 0;
    }

    .main .container {
        padding: 0 0.5rem;
    }

    .about-section,
    .privacy-section,
    .terms-section {
        padding: 0;
    }

    .about-header h1 {
        margin: 0;
        padding: 0 0.5rem;
    }

    .about-content {
        padding: 0.5rem;
    }

    .about-intro {
        padding: 0.5rem;
        margin-bottom: 0;
    }

    .about-text {
        line-height: 1.1;
    }

    .about-text h2 {
        font-size: 1.6rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .privacy-header,
    .terms-header {
        margin-bottom: 0;
        padding: 0 0.5rem;
    }

    .privacy-content,
    .terms-content {
        padding: 0.5rem;
    }

    .privacy-intro,
    .terms-intro {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .privacy-grid,
    .terms-grid {
        gap: 0.5rem;
    }

    .privacy-toc,
    .terms-toc {
        padding: 0.5rem;
        overflow-y: auto;
    }

    .privacy-toc h2,
    .terms-toc h2 {
        margin-bottom: 0.5rem;
    }

    .toc-list li {
        margin-bottom: 0.5rem;
    }

    .toc-list li a {
        padding: 0;
    }

    .privacy-text,
    .terms-text {
        line-height: 1.2;
    }

    .privacy-text p,
    .terms-text p {
        margin-bottom: 0.5rem;
    }

    .privacy-text h2,
    .terms-text h2 {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .privacy-text h3,
    .terms-text h3 {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .privacy-text ul,
    .terms-text ul,
    .privacy-text ol,
    .terms-text ol {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .privacy-grid, .terms-grid {
        grid-template-columns: 1fr; /* 将网格布局改为单列 */
        gap: 1rem;
    }

    .privacy-toc, .terms-toc {
        position: static; /* 移除 sticky 定位，避免在小屏幕上溢出 */
        overflow-y: visible; /* 允许内容自然展开 */
        max-height: none; /* 移除最大高度限制 */
        padding: 1rem; /* 调整内边距 */
    }

    .privacy-toc h2, .terms-toc h2 {
        font-size: 1.1rem; /* 稍微调整标题大小 */
        margin-bottom: 1rem;
    }

    .toc-list {
        display: flex;
        flex-wrap: wrap; /* 允许列表项换行，充分利用宽度 */
        gap: 0.5rem; /* 添加项目之间的间距 */
    }

    .toc-list li {
        margin-bottom: 0; /* 移除列表项底部间距 */
    }

    .toc-list li a {
        white-space: nowrap; /* 防止链接文本换行 */
        font-size: 0.9rem; /* 稍微调整链接字体大小 */
    }
}