body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    padding: 20px;
    flex: 0.8;
}

header {
    background-color: #2c3e50;
    padding: 18px;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: top 0.3s ease;
    z-index: 1000;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.list-btn {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.list-btn:hover {
    transform: scale(1.1);
}

.support-btn {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.support-btn:hover {
    transform: scale(1.1);
    color: #3498db;
}

/* 主内容区域 */
.container {
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* 用户名样式 */
.username {
    color: #66ccff;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.username:hover {
    text-decoration: underline;
}

/* 题目卡片 */
.problem {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.problem:hover {
    transform: translateY(-3px);
}

.problem h3 {
    margin: 0 0 10px;
    color: #2980b9;
}

.problem h3 a {
    color: #2980b9;
    text-decoration: none;
    display: block;
}

.problem p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
}

.problem pre {
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    overflow-x: auto;
}

/* 编辑器 */
.editor {
    width: 100%;
    border: 2px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Monaco Editor 特定样式 */
.monaco-editor {
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* 调整行号区域 */
.monaco-editor .line-numbers {
    width: 30px !important;
    min-width: 20px !important;
    padding: 0 5px !important;
    text-align: right !important;
}

/* 提交按钮 */
button:not(.circle-btn):not(.submit-btn) {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:not(.circle-btn):not(.submit-btn):hover {
    background-color: #2980b9;
}

/* 结果显示 */
.result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.result:empty {
    display: none;
}

.result.accepted {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.result.wrong {
    background-color: #ffcccc;
    color: #e57373;
}

.result.error {
    background-color: #dc3f3f;
    color: white;
}

.result.timeout {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* 感谢页面 */
.thanks-container {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.thanks-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.thanks-container p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.thanks-img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 题目列表样式 */
.problems-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.problem-card {
    position: static;
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    margin-bottom: 0.5rem;
    
}

.problem-card.accepted {
    background-color: #e8f5e9;
    border-left: 4px solid #2e7d32;
}

.problem-link {
    text-decoration: none;
    color: #2980b9;
    font-size: 16px;
    display: block;

}

.problem-detail {
    display: none;
    position: absolute;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 300px;
}

/* 注册表单容器 */
.register-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 表单组 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: rgba(9, 85, 236, 0.671);
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 1px;
}

.submit-btn:hover {
    background-color: #27ae60;
}

/* 错误/成功消息 */
.flash-message, #error-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.flash-message {
    background-color: #ecf0f1;
    color: #333;
}

.result.error {
    background-color: #f2dede;
    color: #a94442;
}

.result.accepted {
    background-color: #dff0d8;
    color: #3c763d;
}

form {
    display: block;
}

/* 登录成功弹窗卡片 */
.toast {
    position: fixed;
    top: 100px;
    right: 47%;
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

/* 底部栏样式 */
.footer-bar {
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-left {
    color: #333;
    font-size: 14px;
}

.footer-left a {
    color: #333;
    text-decoration: none;
}

.footer-left a:hover {
    text-decoration: underline;
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 隐私政策内容样式 */
.privacy-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.privacy-content h3 {
    color: #2c3e50;
    margin: 20px 0 10px;
}

.privacy-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.privacy-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.privacy-content li {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* 用户协议内容样式 */
.agreement-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.agreement-content h3 {
    color: #2c3e50;
    margin: 20px 0 10px;
}

.agreement-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.agreement-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.agreement-content li {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* 联系我页面内容样式 */
.contact-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
}

.contact-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.contact-content li {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.contact-content a {
    color: #3498db;
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
    color: #2980b9;
}

.card-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    opacity: 1 !important;
}

.card-buttons .circle-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card-buttons .circle-btn:hover {
    background-color: #27ae60;
}



.ai-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.ai-btn:hover {
    transform: scale(1.1);
}

.ai-btn span {
    font-size: 20px;
}


.toast.success {
    background-color: #4caf50;
    color: white;
}

.toast.error {
    background-color: #e57373;
    color: white;
}

.category-title{
    font-size: 20px;
    margin: 0;
}
