/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
    transition: all 0.3s ease;
    /* 移动端优化 */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 移动端视口优化 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* 触摸友好的滚动 */
* {
    -webkit-overflow-scrolling: touch;
}

/* 深色主题 */
body.dark-theme {
    color: #f9fafb;
    background-color: #111827;
}

/* 页面容器 */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* 首页样式 */
.home-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.dark-theme .home-nav {
    background: #1f2937;
    border-bottom-color: #374151;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

.dark-theme .logo {
    color: #f9fafb;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-theme .theme-toggle {
    border-color: #4b5563;
}

.theme-toggle:hover {
    background: #f3f4f6;
}

.dark-theme .theme-toggle:hover {
    background: #374151;
}

.theme-icon {
    font-size: 1.2rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dark-theme .nav-btn {
    border-color: #4b5563;
    background: #1f2937;
    color: #f9fafb;
}

.nav-btn:hover {
    background: #f9fafb;
}

.dark-theme .nav-btn:hover {
    background: #374151;
}

.home-main {
    margin-top: 80px;
    padding: 4rem 2rem;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    color: #111827;
}

.hero-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    white-space: nowrap;
}

.dark-theme .hero-title {
    color: #f9fafb;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.dark-theme .hero-subtitle {
    color: #9ca3af;
}

.hero-info {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.dark-theme .info-card {
    background: #1f2937;
    border-color: #374151;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dark-theme .info-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.info-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.dark-theme .info-card h4 {
    color: #f9fafb;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6b7280;
}

.dark-theme .info-card p {
    color: #9ca3af;
}

.btn-primary {
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .btn-primary {
    background: #f9fafb;
    color: #111827;
}

.btn-primary:hover {
    background: #1f2937;
}

.dark-theme .btn-primary:hover {
    background: #e5e7eb;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .btn-secondary {
    background: #1f2937;
    color: #f9fafb;
    border-color: #4b5563;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.dark-theme .btn-secondary:hover {
    background: #374151;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* 功能展示区 */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.dark-theme .feature-card {
    background: #1f2937;
    border-color: #374151;
}

.feature-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.dark-theme .feature-card h3 {
    color: #f9fafb;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

.dark-theme .feature-card p {
    color: #9ca3af;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f9fafb;
}

.dark-theme .login-container {
    background: #111827;
}

.login-card {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.dark-theme .login-card {
    background: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
}

.dark-theme .back-btn {
    color: #9ca3af;
}

.back-btn:hover {
    color: #111827;
}

.dark-theme .back-btn:hover {
    color: #f9fafb;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #111827;
}

.dark-theme .login-card h2 {
    color: #f9fafb;
}

.login-desc {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.dark-theme .login-desc {
    color: #9ca3af;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #111827;
}

.dark-theme .input-group label {
    color: #f9fafb;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    background: #ffffff;
    color: #111827;
}

.dark-theme .input-group input {
    border-color: #4b5563;
    background: #374151;
    color: #f9fafb;
}

.input-group input:focus {
    outline: none;
    border-color: #111827;
}

.dark-theme .input-group input:focus {
    border-color: #f9fafb;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.contact-btn {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.dark-theme .contact-btn {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

.contact-btn:hover {
    background: #e5e7eb;
}

.dark-theme .contact-btn:hover {
    background: #4b5563;
}

.contact-tip {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
}

.dark-theme .contact-tip {
    color: #9ca3af;
}

/* 主应用页面 */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark-theme .app-header {
    background: #1f2937;
    border-bottom-color: #374151;
}

.app-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

.dark-theme .app-title {
    color: #f9fafb;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.dark-theme .user-info {
    color: #9ca3af;
}

.header-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dark-theme .header-btn {
    border-color: #4b5563;
    background: #374151;
    color: #f9fafb;
}

.header-btn:hover {
    background: #f9fafb;
}

.dark-theme .header-btn:hover {
    background: #4b5563;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 300px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 2rem;
    overflow-y: auto;
}

.dark-theme .sidebar {
    background: #1f2937;
    border-right-color: #374151;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.dark-theme .sidebar-section h3 {
    color: #f9fafb;
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #ffffff;
    color: #111827;
    font-size: 0.875rem;
}

.dark-theme .form-select {
    border-color: #4b5563;
    background: #374151;
    color: #f9fafb;
}

.form-select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.dark-theme .form-select:disabled {
    background: #1f2937;
    color: #6b7280;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.375rem;
    padding: 1rem;
    text-align: center;
}

.dark-theme .file-upload-area {
    border-color: #4b5563;
}

.upload-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dark-theme .upload-btn {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.upload-btn:hover {
    background: #f9fafb;
}

.dark-theme .upload-btn:hover {
    background: #4b5563;
}

.file-list {
    margin-top: 0.5rem;
    text-align: left;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.dark-theme .file-item {
    color: #9ca3af;
}

.file-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.75rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.dark-theme .content-section h3 {
    color: #f9fafb;
}

.input-tips {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dark-theme .input-tips {
    background: #1f2937;
    border-color: #374151;
}

.input-tips p {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 0.95rem;
}

.dark-theme .input-tips p {
    color: #f9fafb;
}

.input-tips ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #6b7280;
}

.dark-theme .input-tips ul {
    color: #9ca3af;
}

.input-tips li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.content-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    background: #ffffff;
    color: #111827;
}

.dark-theme .content-textarea {
    border-color: #4b5563;
    background: #374151;
    color: #f9fafb;
}

.content-textarea:focus {
    outline: none;
    border-color: #111827;
}

.dark-theme .content-textarea:focus {
    border-color: #f9fafb;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.result-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.dark-theme .result-section {
    border-top-color: #374151;
}

.result-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    min-height: 200px;
    white-space: pre-wrap;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #111827;
}

.dark-theme .result-content {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #111827;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.dark-theme .loading-spinner {
    border-color: #374151;
    border-top-color: #f9fafb;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 历史记录页面 */
.history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.history-header h2 {
    color: #111827;
}

.dark-theme .history-header h2 {
    color: #f9fafb;
}

.history-list {
    display: grid;
    gap: 1rem;
}

.history-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .history-item {
    background: #1f2937;
    border-color: #374151;
}

.history-item:hover {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.history-item-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.dark-theme .history-item-title {
    color: #f9fafb;
}

.history-item-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.dark-theme .history-item-date {
    color: #9ca3af;
}

.history-item-preview {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dark-theme .history-item-preview {
    color: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.dark-theme .empty-state {
    color: #9ca3af;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 0.5rem;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dark-theme .modal-content {
    background: #1f2937;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark-theme .modal-header {
    border-bottom-color: #374151;
}

.modal-header h3 {
    color: #111827;
}

.dark-theme .modal-header h3 {
    color: #f9fafb;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-theme .close-btn {
    color: #9ca3af;
}

.close-btn:hover {
    color: #111827;
}

.dark-theme .close-btn:hover {
    color: #f9fafb;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body #modalContent {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #111827;
}

.dark-theme .modal-body #modalContent {
    color: #f9fafb;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.dark-theme .modal-footer {
    border-top-color: #374151;
}

/* 响应式设计 */
/* 平板设备 */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1.5rem;
    }
    
    .dark-theme .sidebar {
        border-bottom-color: #374151;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

/* 中等屏幕设备 */
@media (max-width: 768px) {
    .hero-header {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-btn {
        font-size: 0.875rem;
        padding: 0.6rem 1.25rem;
    }
    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        min-height: auto;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-card h4 {
        font-size: 1rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    .input-tips {
        padding: 0.75rem;
    }
    
    .input-tips li {
        font-size: 0.85rem;
    }
    
    .home-main {
        margin-top: 100px; /* 确保导航栏不重叠 */
        padding: 2rem 1rem;
    }
    
    .home-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem 0;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
    }
    
    .dark-theme .sidebar {
        border-bottom-color: #374151;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* 表单优化 */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input, .form-select, .form-textarea {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 0.75rem;
    }
    
    /* 按钮优化 */
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* 触摸友好 */
    }
    
    /* 文件上传区域 */
    .file-upload {
        padding: 1rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 小屏手机设备 */
@media (max-width: 480px) {
    .hero-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        min-height: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .dark-theme .nav-container {
        background: #1f2937;
        border-bottom-color: #374151;
    }
    
    .nav-right {
        justify-content: center;
        width: 100%;
    }
    
    .home-main {
        margin-top: 180px; /* 增加导航栏高度以避免重叠 */
        padding: 1.5rem 0.75rem;
    }
    
    .home-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.75rem 0;
    }
    
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.75rem 1rem;
        min-height: 60px;
    }
    
    .app-layout {
        margin-top: 100px;
        min-height: calc(100vh - 100px);
    }
    
    .sidebar {
        padding: 0.75rem;
        margin-top: 0;
    }
    
    .main-content {
        padding: 0.75rem;
        margin-top: 0;
    }
    
    .modal-content {
        width: 98%;
        margin: 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 编辑功能样式 */
.editable-result {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    background: #ffffff;
    color: #111827;
}

.dark-theme .editable-result {
    border-color: #4b5563;
    background: #374151;
    color: #f9fafb;
}

.editable-result:focus {
    outline: none;
    border-color: #111827;
}

.dark-theme .editable-result:focus {
    border-color: #f9fafb;
}

.edit-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.modal-editable-content {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    background: #ffffff;
    color: #111827;
}

.dark-theme .modal-editable-content {
    border-color: #4b5563;
    background: #374151;
    color: #f9fafb;
}

.modal-editable-content:focus {
    outline: none;
    border-color: #111827;
}

.dark-theme .modal-editable-content:focus {
    border-color: #f9fafb;
}

.modal-edit-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* 游客提示样式 */
.guest-tip {
    background: #fef3c7;
    color: #92400e;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid #fbbf24;
}

.dark-theme .guest-tip {
    background: #451a03;
    color: #fbbf24;
    border-color: #92400e;
}

/* 禁用文本选择 */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* 响应式编辑功能 */
@media (max-width: 768px) {
    .edit-actions {
        flex-direction: column;
    }
    
    .modal-edit-actions {
        flex-direction: column;
    }
    
    .editable-result {
        min-height: 150px;
    }
    
    .modal-editable-content {
        min-height: 200px;
    }
}