* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0c10;
    color: #e1e8f0;
    line-height: 1.6;
    min-height: 100vh;
    caret-color: transparent;
}

/* 只有能输入的地方才显示光标 */
input,
textarea,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
    caret-color: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 按钮 */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: #9f7aea;
    color: white;
}

.btn-primary:hover {
    background: #8b5cf6;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #9f7aea;
    color: #9f7aea;
}

.btn-outline:hover {
    background: rgba(159, 122, 234, 0.1);
    transform: translateY(-2px);
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 12, 16, 0.95);
    border-bottom: 1px solid #2d3540;
    position: sticky;
    top: 0;
    z-index: 99;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #b3b9ff, #9f7aea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #a0a8c0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #9f7aea;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: rgba(20, 25, 35, 0.8);
    padding: 0.3rem;
    border-radius: 30px;
    border: 1px solid #2d3540;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #a0a8c0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #9f7aea;
    color: white;
}

/* 页脚 */
.footer {
    border-top: 1px solid #2d3540;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #5a6270;
    font-size: 0.8rem;
}

.footer-links a {
    color: #5a6270;
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #9f7aea;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0a0c10;
    border: 1px solid #2d3540;
    border-radius: 20px;
    max-width: 90vw;
    width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #2d3540 rgba(20, 25, 35, 0.5);
}
.modal-content::-webkit-scrollbar { width: 6px !important; }
.modal-content::-webkit-scrollbar-track { background: rgba(20, 25, 35, 0.5) !important; }
.modal-content::-webkit-scrollbar-thumb { background: #2d3540 !important; border-radius: 3px !important; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #9f7aea !important; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #2d3540;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #9f7aea;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a8c0;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    flex: 1;
    overflow-y: scroll;
    padding: 1.5rem;
    color: #c0c8e0;
    white-space: pre-wrap;
    scrollbar-width: thin;
    scrollbar-color: #2d3540 rgba(20, 25, 35, 0.5);
}
.modal-body::-webkit-scrollbar { width: 6px !important; }
.modal-body::-webkit-scrollbar-track { background: rgba(20, 25, 35, 0.5) !important; }
.modal-body::-webkit-scrollbar-thumb { background: #2d3540 !important; border-radius: 3px !important; }
.modal-body::-webkit-scrollbar-thumb:hover { background: #9f7aea !important; }

/* 最高优先级兜底 */
.modal-content { overflow-y: scroll !important; scrollbar-width: thin !important; scrollbar-color: #2d3540 rgba(20,25,35,0.5) !important; }
.modal-body { overflow-y: scroll !important; scrollbar-width: thin !important; scrollbar-color: #2d3540 rgba(20,25,35,0.5) !important; }

/* 响应式 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


