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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
    font-size: 12px;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧导航栏 */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar h2 {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 20px;
}

.nav-list {
    list-style: none;
    margin-top: 20px;
}

.nav-item {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item.active {
    background: rgba(255,255,255,0.2);
    border-left: 3px solid #3498db;
}

.nav-icon {
    font-size: 18px;
}

/* 右侧内容区 */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 18px;
    color: #2c3e50;
}

/* 按钮样式 */
.btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-copy {
    padding: 5px 10px;
    font-size: 12px;
    background: #95a5a6;
    color: white;
}

/* 网址列表 */
.url-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.url-item {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.url-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.url-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 11px;
}

.url-address {
    color: #3498db;
    text-decoration: none;
    font-size: 11px;
}

.url-address:hover {
    text-decoration: underline;
}

.url-actions {
    display: flex;
    gap: 8px;
}

/* 帐号列表 */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.account-item {
    background: white;
    padding: 3px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.account-field {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.account-label {
    color: #7f8c8d;
    font-size: 11px;
}

.account-value {
    color: #2c3e50;
    font-family: monospace;
    font-size: 11px;
}

.account-actions {
    display: inline-flex;
    gap: 5px;
    margin-left: auto;
}

/* 文档页面 */
.documents-container {
    display: flex;
    height: calc(100vh - 100px);
    gap: 20px;
}

.doc-sidebar {
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.doc-sidebar-header {
    padding: 15px;
    background: #34495e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-sidebar-header h3 {
    font-size: 14px;
}

.doc-nav-list {
    list-style: none;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.doc-nav-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.3s;
}

.doc-nav-item:hover {
    background: #f8f9fa;
}

.doc-nav-item.active {
    background: #e8f4fc;
    border-left: 3px solid #3498db;
}

/* 文档编辑区 */
.doc-editor-area {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.doc-title-input {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

#editor {
    flex: 1;
    min-height: 400px;
}

.doc-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.doc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #95a5a6;
}

.hidden {
    display: none !important;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c3e50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
}

/* Quill编辑器样式调整 */
.ql-container {
    font-size: 14px;
}

.ql-editor {
    min-height: 350px;
}
