* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

.container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #1877f2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #166fe5;
}

.error {
    color: red;
    margin-bottom: 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    color: #1877f2;
    text-decoration: none;
}

.status-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.main-container {
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.left-sidebar {
    width: 200px;
    background-color: #2c3e50;
    padding: 20px;
    color: white;
}

.right-content {
    flex: 1;
    position: relative;
    padding: 20px;
    background-color: #f5f6fa;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-btn {
    padding: 12px;
    background-color: #34495e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
}

.sidebar-btn:hover {
    background-color: #2980b9;
}

.user-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-area {
    margin-top: 80px;
    padding: 20px;
}

.main-btn {
    padding: 15px 30px;
    margin: 10px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.main-btn:hover {
    background-color: #2980b9;
}

.writing-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.input-section h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.file-input {
    margin: 10px 0;
}

.file-name {
    margin-top: 5px;
    color: #666;
}

.action-btn {
    background-color: #27ae60;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
}

.action-btn:hover {
    background-color: #219a52;
}

.result-section {
    margin-top: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: monospace;
}

/* 等待动画样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #666;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 禁用按钮样式 */
.action-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.preview-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.preview-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: monospace;
    margin-bottom: 15px;
}

.preview-content p {
    margin-bottom: 1em;
}

.preview-image {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.confirm-btn {
    background-color: #27ae60;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 记录查询样式 */
.records-container {
    margin-top: 20px;
}

.record-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.record-date {
    color: #666;
    font-size: 14px;
}

.record-content h3 {
    color: #2c3e50;
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.content-preview {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    max-height: 100px;
    overflow-y: auto;
}

/* 登录和注册页面样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.auth-box {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 24px;
}

.auth-box .form-group {
    margin-bottom: 20px;
}

.auth-box label {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-box input:focus {
    border-color: #1a73e8;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-btn:hover {
    background-color: #1557b0;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #5f6368;
    font-size: 14px;
}

.auth-link a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error {
    background-color: #fde8e8;
    color: #dc2626;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* Logo样式 */
.app-logo {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #1a73e8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-family: "Microsoft YaHei", sans-serif;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 36px;
    color: #fbbc05;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.balance-amount {
    font-weight: bold;
    color: #e67e22;
} 