/* === 基础样式 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* === 容器布局 === */
.terms-container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

/* === 左侧边栏 === */
.terms-sidebar {
    width: 280px;
    background: #fafafa;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f0f0f0;
    color: #333;
}

.nav-item.active {
    background: linear-gradient(135deg, #d4a373, #b08d55);
    color: #fff;
    border-left-color: #8b7355;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
}

.back-link {
    display: flex;
    align-items: center;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #d4a373;
}

.back-link i {
    margin-right: 8px;
}

/* === 右侧内容区 === */
.terms-content {
    flex: 1;
    padding: 60px 80px;
    overflow-y: auto;
    max-width: 900px;
}

.content-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.update-date {
    color: #999;
    font-size: 14px;
}

.content-body {
    color: #555;
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #d4a373;
}

.terms-section p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.terms-section ul {
    margin: 16px 0 16px 30px;
}

.terms-section li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.8;
}

.terms-section strong {
    color: #333;
    font-weight: 600;
}

/* === 滚动条样式 === */
.terms-sidebar::-webkit-scrollbar,
.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-sidebar::-webkit-scrollbar-track,
.terms-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.terms-sidebar::-webkit-scrollbar-thumb,
.terms-content::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 3px;
}

.terms-sidebar::-webkit-scrollbar-thumb:hover,
.terms-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .terms-container {
        flex-direction: column;
    }

    .terms-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
    }

    .terms-content {
        padding: 40px 30px;
    }

    .content-header h1 {
        font-size: 28px;
    }

    .terms-section h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .terms-content {
        padding: 30px 20px;
    }

    .content-header h1 {
        font-size: 24px;
    }

    .terms-section h2 {
        font-size: 18px;
    }

    .terms-section p,
    .terms-section li {
        font-size: 14px;
    }
}
