/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90d9;
    --primary-dark: #357abd;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --sidebar-width: 260px;
    --header-height: 60px;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* 应用容器 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a237e 0%, #283593 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
}

.logo {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo i {
    font-size: 28px;
    color: #64b5f6;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
}

.nav-menu {
    padding: 15px 0 72px;
}

.nav-section-title {
    margin: 12px 18px 6px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    gap: 12px;
}

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

.nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left: 4px solid #64b5f6;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item .badge {
    position: absolute;
    right: 15px;
    background: #ff5252;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-module-item {
    padding: 10px 20px 10px 28px;
    font-size: 13px;
}

.nav-module-item i {
    font-size: 15px;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* 顶部栏 */
.header {
    height: var(--header-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

.header-left h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 15px 8px 35px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    width: 220px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    width: 280px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.notifications {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5252;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 999px;
    transition: var(--transition);
}

.user-info:hover {
    background: #f4f7ff;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(53, 122, 189, 0.22);
}

.user-avatar img,
.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 内容区 */
.content {
    padding: 25px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
}

/* 仪表盘卡片 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.clickable-stat {
    cursor: pointer;
    transition: var(--transition);
}

.clickable-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 217, 0.18);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-icon.green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.stat-icon.orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-icon.red { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.stat-info p {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.section-name,
.region-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.section-name {
    margin: 10px 0 8px;
    box-shadow: 0 4px 12px rgba(29, 57, 196, 0.08);
}

.region-name {
    margin: 4px 0 8px;
}

.floating-region-name {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.88);
}

/* 仪表盘分区 */
.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-sections > .calendar-card,
.dashboard-sections > .focus-cube-card,
.dashboard-sections > .master-toc-card {
    grid-column: 1 / -1;
}

/* 模块网格 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.module-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.module-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.module-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
    color: white;
}

.module-item[data-module="hr"] .module-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.module-item[data-module="admin"] .module-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.module-item[data-module="org"] .module-icon { background: linear-gradient(135deg, #3b82f6, #7c3aed); }
.module-item[data-module="logistics"] .module-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.module-item[data-module="safety"] .module-icon { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.module-item[data-module="external"] .module-icon { background: linear-gradient(135deg, #11998e, #38ef7d); }
.module-item[data-module="temporary"] .module-icon { background: linear-gradient(135deg, #f7971e, #ffd200); }
.module-item[data-module="ideas"] .module-icon { background: linear-gradient(135deg, #8e44ad, #c039ff); }
.module-item[data-module="tools"] .module-icon { background: linear-gradient(135deg, #2980b9, #6dd5fa); }
.module-item[data-module="service"] .module-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.module-item[data-module="learning"] .module-icon { background: linear-gradient(135deg, #56ab2f, #a8e063); }
.module-item[data-module="academy"] .module-icon { background: linear-gradient(135deg, #f7971e, #ffd200); }
.module-item[data-module="policy"] .module-icon { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.module-item[data-module="roster"] .module-icon { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.module-item[data-module="library"] .module-icon { background: linear-gradient(135deg, #7f53ac, #647dee); }

.module-action-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ============ 主页信息中心 ============ */
.info-center-card .card-header {
    align-items: center;
}

.info-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.info-box {
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #fafbff);
    min-height: 126px;
}

.gov-box {
    border-color: #d6e4ff;
    background: linear-gradient(135deg, #f0f5ff, #ffffff);
}

.info-box h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 7px;
}

.info-box p {
    margin: 0 0 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.info-links a,
.ai-tool-groups a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 14px;
    background: #f5f8ff;
    color: #1a4dbf;
    border: 1px solid #d6deff;
    text-decoration: none;
    font-size: 12px;
}

.info-links a:hover,
.ai-tool-groups a:hover {
    background: #1a4dbf;
    color: #fff;
}

.weather-main {
    font-size: 22px;
    font-weight: 700;
    color: #1a4dbf;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-main.weather-important {
    color: #cf1322;
    background: #fff1f0;
    border: 1px solid #ffa39e;
    border-radius: 10px;
    padding: 8px 10px;
}

.weather-sub,
.weather-time {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.weather-type {
    display: inline-flex;
    margin: 3px 0 5px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
    font-size: 12px;
    font-weight: 600;
}

.weather-type.weather-type-alert {
    background: #fff1f0;
    color: #cf1322;
    border-color: #ffa39e;
}

.weather-alert {
    display: none;
    margin-top: 6px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #fffbe6;
    color: #ad4e00;
    border: 1px solid #ffd591;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.weather-alert.show {
    display: block;
}

.ai-tool-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-tool-groups div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ai-tool-groups span {
    min-width: 48px;
    color: #555;
    font-weight: 600;
    font-size: 12px;
}

.common-tool-groups {
    margin-top: 10px;
    align-items: stretch;
}

.common-tool-groups div {
    gap: 5px;
}

.common-tool-groups span {
    min-width: 58px;
    color: #2f5f9f;
}

.common-tool-groups a {
    padding: 3px 7px;
    font-size: 11px;
}

.common-office-groups span {
    min-width: 58px;
    color: #1f6f5b;
}

.common-office-groups a {
    padding: 3px 8px;
    font-size: 11px;
}

.system-info-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.system-info-list div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    font-size: 12px;
    align-items: center;
}

.system-info-list span {
    color: #777;
}

.system-info-list strong,
.system-info-list a {
    color: #333;
    word-break: break-all;
}

.system-info-list .edit-summary-row,
.system-info-list .edit-log-row {
    align-items: flex-start;
}

.edit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.edit-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
    font-size: 11px;
    font-weight: 600;
}

.system-info-list .edit-tag {
    color: #1d39c4;
}

.edit-empty {
    color: #999;
    font-size: 12px;
}

.edit-log-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edit-log-list li {
    display: grid;
    grid-template-columns: 38px 52px 1fr;
    gap: 5px;
    align-items: center;
    color: #555;
    line-height: 1.4;
}

.edit-log-list time {
    color: #999;
    font-size: 11px;
}

.edit-log-list b {
    color: #1a4dbf;
    font-size: 11px;
    font-weight: 600;
}

.edit-log-list span {
    color: #555;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.system-info-list .edit-log-list span {
    color: #555;
}

.edit-log-list .edit-empty-line {
    display: block;
    color: #999;
}

.version-history-row {
    align-items: flex-start;
    border-top: 1px dashed #e0e0e0;
    margin-top: 8px;
    padding-top: 8px;
}

.version-snapshot-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.version-snapshot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

.version-snapshot-item span {
    color: #666;
    font-size: 12px;
}

.btn-restore-version {
    padding: 2px 10px;
    font-size: 11px;
    background: #fff;
    color: #1a4dbf;
    border: 1px solid #adc6ff;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-restore-version:hover {
    background: #1a4dbf;
    color: #fff;
    border-color: #1a4dbf;
}

.version-snapshot-empty {
    color: #999;
    font-size: 12px;
    padding: 4px 0;
}

.module-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.module-item p {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.module-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.module-count.external {
    background: #fff3e0;
    color: #ef6c00;
}

/* 系统架构说明文档 */
.arch-doc-toggle {
    margin-top: 10px;
    text-align: center;
}

.arch-doc-panel {
    margin-top: 12px;
    padding: 14px;
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    max-height: 520px;
    overflow-y: auto;
}

.arch-doc-content {
    font-size: 12px;
    line-height: 1.7;
    color: #334155;
}

.arch-section {
    margin-bottom: 16px;
}

.arch-section h5 {
    font-size: 13px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.arch-dl {
    margin: 0;
    padding: 0;
}

.arch-dl dt {
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 6px;
    font-size: 12px;
}

.arch-dl dd {
    margin-left: 0;
    margin-bottom: 4px;
    color: #475569;
    font-size: 11.5px;
    padding-left: 12px;
    border-left: 2px solid #93c5fd;
}

/* 底层逻辑流程图 */
.arch-logic-flow {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.logic-layer {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid;
}

.logic-layer.base {
    background: #eff6ff;
    border-color: #93c5fd;
}

.logic-layer.core {
    background: #f0fdf4;
    border-color: #86efac;
}

.logic-layer.biz {
    background: #fffbeb;
    border-color: #fcd34d;
}

.logic-layer.ui {
    background: #faf5ff;
    border-color: #d8b4fe;
}

.logic-title {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logic-layer.base .logic-title { color: #1e40af; }
.logic-layer.core .logic-title { color: #166534; }
.logic-layer.biz .logic-title { color: #92400e; }
.logic-layer.ui .logic-title { color: #6b21a8; }

.logic-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.logic-item {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: white;
}

.logic-layer.base .logic-item { color: #1e40af; border: 1px solid #bfdbfe; }
.logic-layer.core .logic-item { color: #166534; border: 1px solid #bbf7d0; }
.logic-layer.biz .logic-item { color: #92400e; border: 1px solid #fde68a; }
.logic-layer.ui .logic-item { color: #6b21a8; border: 1px solid #e9d5ff; }

.logic-desc {
    font-size: 11px;
    color: #64748b;
}

.logic-arrow {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* 思维导图 */
.mind-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mm-root {
    text-align: center;
}

.mm-node {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.mm-node.root {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    font-size: 13px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(30,64,175,0.25);
}

.mm-branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.mm-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mm-line {
    width: 2px;
    height: 14px;
    background: #cbd5e1;
}

.mm-node.module {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    width: 100%;
}

.mm-children {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.mm-node.child {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
}

.mm-node.child.highlight {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.mm-node small {
    font-weight: 400;
    color: #94a3b8;
    font-size: 10px;
}

/* 架构表格 */
.arch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 4px;
}

.arch-table th,
.arch-table td {
    border: 1px solid #e2e8f0;
    padding: 5px 6px;
    text-align: left;
    vertical-align: top;
}

.arch-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #334155;
}

.arch-table td {
    color: #475569;
}

.arch-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* 主页手续办理 */
.dashboard-procedure-card {
    margin-bottom: 20px;
}

.procedure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 20px;
}

.procedure-item {
    background: #f8f9fa;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.procedure-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}

.procedure-item i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a90d9, #67b7dc);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.procedure-item span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.procedure-item em {
    margin-left: auto;
    font-style: normal;
    background: #e3f2fd;
    color: #1565c0;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* 主页三维工作象限 */
.focus-cube-card {
    overflow: hidden;
}

.focus-cube-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #667085;
}

.focus-cube-actions label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.focus-cube-actions input[type="range"] {
    width: 96px;
}

.focus-cube-wrap {
    display: grid;
    grid-template-columns: minmax(420px, 1.35fr) minmax(260px, 0.75fr);
    gap: 18px;
    padding: 18px;
}

.focus-cube-scene {
    min-height: 430px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.18) 35%, transparent 58%),
        linear-gradient(135deg, #ecf5ff, #f8fbff 45%, #fff7e6);
    perspective: 950px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce9fb;
    box-shadow: inset 0 0 34px rgba(53, 122, 189, 0.12);
}

.focus-cube {
    position: relative;
    width: 500px;
    height: 310px;
    transform-style: preserve-3d;
    transition: transform 0.25s ease;
}

.cube-plane {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(53, 122, 189, 0.22);
    border-radius: 14px;
    background-image:
        linear-gradient(rgba(53, 122, 189, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 122, 189, 0.13) 1px, transparent 1px);
    background-size: 50px 38px;
    box-shadow: 0 20px 38px rgba(18, 38, 63, 0.14);
}

.cube-floor {
    transform: rotateX(72deg) translateZ(-92px);
    background-color: rgba(255, 255, 255, 0.72);
}

.cube-back {
    transform: translateZ(-110px);
    background-color: rgba(240, 247, 255, 0.55);
}

.cube-left {
    transform: rotateY(90deg) translateZ(-250px);
    background-color: rgba(255, 247, 230, 0.48);
}

.axis {
    position: absolute;
    color: #23466f;
    font-weight: 800;
    font-size: 32px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    pointer-events: none;
}

.axis span,
.axis strong {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 4px 12px rgba(18, 38, 63, 0.12);
    transform: var(--front-facing, none);
    transform-style: preserve-3d;
    transform-origin: center center;
    backface-visibility: hidden;
    line-height: 1;
}

.axis-x {
    left: 48px;
    right: 48px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    transform: translateZ(35px);
}

.axis-y {
    top: 30px;
    left: 18px;
    height: 240px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    transform: translateZ(35px);
}

.axis-z {
    right: 20px;
    top: 42px;
    height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateZ(120px) rotateY(-26deg);
}

.axis-center-label {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate3d(-50%, -50%, 20px) var(--front-facing, none);
    font-weight: 800;
    color: rgba(35, 70, 111, 0.18);
    font-size: 52px;
    white-space: nowrap;
    pointer-events: none;
    transform-style: preserve-3d;
    transform-origin: center center;
    backface-visibility: hidden;
}

.focus-cube-points {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
}

.focus-cube-point {
    position: absolute;
    transform: translate3d(var(--x), var(--y), var(--z));
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.95);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 14px 26px rgba(18, 38, 63, 0.25), inset 0 1px 8px rgba(255,255,255,0.28);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.focus-cube-point span {
    display: inline-flex;
    transform: var(--front-facing, none);
    transform-style: preserve-3d;
    transform-origin: center center;
    backface-visibility: hidden;
    line-height: 1.05;
}

.focus-cube-point:hover {
    filter: brightness(1.08);
    z-index: 5;
}

.focus-cube-point.important { background: linear-gradient(135deg, #ff9800, #f57c00); }
.focus-cube-point.key { background: linear-gradient(135deg, #7e57c2, #5e35b1); }
.focus-cube-point.urgent { background: linear-gradient(135deg, #ff4d4f, #d9363e); }
.focus-cube-point.error { background: linear-gradient(135deg, #fa8c16, #d46b08); }
.focus-cube-point.ignore { background: linear-gradient(135deg, #607d8b, #455a64); }

.focus-cube-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.focus-cube-note {
    padding: 12px;
    border-radius: 12px;
    background: #f5f9ff;
    color: #49617d;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #dbe8fb;
}

.focus-cube-legend,
.focus-axis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.focus-cube-legend span,
.focus-axis-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 12px;
    color: #50657d;
}

.focus-cube-legend i.work-tag {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
}

.focus-cube-list {
    max-height: 292px;
    overflow: auto;
    border: 1px solid #edf1f7;
    border-radius: 12px;
}

.focus-cube-list-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px;
    border-bottom: 1px solid #edf1f7;
    cursor: pointer;
}

.focus-cube-list-item:hover {
    background: #f8fbff;
}

.focus-cube-list-item:last-child {
    border-bottom: none;
}

.focus-cube-list-item h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #2f3f54;
}

.focus-cube-list-item p {
    margin: 0 0 6px;
    font-size: 12px;
    color: #7a8797;
}

/* 六边形综合表现 */
.hex-dashboard-card {
    grid-column: 1 / -1;
    overflow: hidden;
}

.hex-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}

.hex-actions label,
.roster-hex-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hex-dashboard-wrap {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(360px, 1fr);
    gap: 18px;
    padding: 18px;
}

.hex-panel {
    border: 1px solid #e5edf8;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 22px rgba(18, 38, 63, 0.06);
}

.hex-panel h4 {
    margin: 0 0 10px;
    color: #2f3f54;
}

.hex-chart-box {
    height: 300px;
    min-height: 260px;
}

.hex-score-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.hex-score-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 10px;
    background: #f4f8ff;
    color: #50657d;
    font-size: 12px;
}

.hex-score-list strong {
    color: #2f80d0;
    font-size: 15px;
}

.roster-hex-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roster-hex-head {
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.roster-hex-selectors {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
    min-width: 280px;
}

.roster-hex-selectors label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #5c4a7d;
    font-size: 12px;
    font-weight: 700;
}

.roster-hex-selectors select[multiple] {
    min-height: 76px;
    border: 1px solid #ded4f2;
    border-radius: 10px;
    padding: 5px;
    background: #fbf9ff;
}

.roster-eval-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.roster-eval-form label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #fbf9ff;
    color: #5c4a7d;
    font-size: 12px;
}

.roster-eval-form input {
    width: 64px;
    border: 1px solid #ded4f2;
    border-radius: 8px;
    padding: 4px 6px;
}

.roster-eval-form textarea {
    grid-column: 1 / -1;
    min-height: 42px;
    resize: vertical;
    border: 1px solid #ded4f2;
    border-radius: 10px;
    padding: 8px;
    font-size: 12px;
}

.roster-eval-form button {
    grid-column: 1 / -1;
    justify-self: end;
}

.roster-aggregate-summary {
    grid-column: 1 / -1;
    padding: 10px;
    border-radius: 12px;
    background: #f5f0ff;
    border: 1px solid #ded4f2;
    color: #5c4a7d;
}

.roster-aggregate-summary h4 {
    margin: 0 0 4px;
}

.roster-aggregate-summary p {
    margin: 3px 0;
    font-size: 12px;
}

.roster-aggregate-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 10px;
    background: #fbf9ff;
    color: #5c4a7d;
    font-size: 12px;
}

.roster-aggregate-score strong {
    color: #7e57c2;
    font-size: 16px;
}

.focus-empty {
    color: #999;
    font-size: 13px;
    text-align: center;
    padding: 25px 0;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -4px 0 10px;
}

.work-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.work-tag.important {
    background: #fff3e0;
    color: #ef6c00;
}

.work-tag.key {
    background: #ede7f6;
    color: #5e35b1;
}

.work-tag.urgent {
    background: #ffebee;
    color: #c62828;
}

.work-tag.error {
    background: #fff1f0;
    color: #cf1322;
}

.work-tag.ignore {
    background: #e6fffb;
    color: #006d75;
}

.work-mark-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-mark-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid #e0e8f5;
    border-radius: 16px;
    background: #f8fbff;
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
}

.work-mark-options input {
    width: auto;
}

.task-card-highlight {
    animation: taskHighlight 1.8s ease;
}

@keyframes taskHighlight {
    0%, 100% { box-shadow: var(--card-shadow); }
    25%, 75% { box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.42), 0 8px 24px rgba(255, 193, 7, 0.22); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-mini {
    border: 1px solid #d6deff;
    background: #f5f8ff;
    color: #1a4dbf;
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.btn-mini:hover {
    background: #1a4dbf;
    color: #fff;
}

.mini-select {
    border: 1px solid #d6deff;
    background: #fff;
    color: #1a4dbf;
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 12px;
    outline: none;
}

.mini-input {
    border: 1px solid #d6deff;
    background: #fff;
    color: #1a4dbf;
    border-radius: 14px;
    padding: 3px 8px;
    font-size: 12px;
    outline: none;
}

.roster-stat-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.roster-custom-range {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.roster-custom-range .range-sep {
    font-size: 12px;
    color: #6c757d;
}

.share-tip,
.subtle-text {
    color: #888;
    font-size: 12px;
}

.share-tip {
    padding: 0 18px 16px;
}

.roster-stat-note {
    padding: 0 18px;
    margin-top: -4px;
    color: #888;
    font-size: 12px;
}

.roster-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 16px 18px 0;
}

.roster-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9ff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 10px 12px;
}

.roster-stat-item span {
    color: #666;
    font-size: 12px;
}

.roster-stat-item strong {
    margin-left: auto;
    font-size: 18px;
    color: #333;
}

.roster-stat-item.net.positive strong { color: #28a745; }
.roster-stat-item.net.negative strong { color: #dc3545; }

.roster-change-details {
    padding: 12px 18px 18px;
}

.roster-change-detail-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.roster-change-detail-table-wrap {
    max-height: 260px;
    overflow: auto;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    background: #fff;
}

.roster-change-detail-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    font-size: 12px;
}

.roster-change-detail-table th,
.roster-change-detail-table td {
    border-bottom: 1px solid #eef0f5;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.roster-change-detail-table th {
    position: sticky;
    top: 0;
    background: #f6f8ff;
    color: #333;
    z-index: 1;
}

.roster-change-empty {
    color: #888;
    background: #f8f9ff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
}

/* 主页部门对应表 */
.department-matrix-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.department-table-container {
    padding: 20px;
    overflow-x: auto;
}

.department-matrix-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.department-matrix-table th,
.department-matrix-table td {
    border: 1px solid #edf0f4;
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
}

.department-matrix-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.department-matrix-table td:first-child,
.department-matrix-table th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}

.department-matrix-table th:first-child {
    background: #f8f9fa;
    z-index: 2;
}

.department-matrix-table tr:hover td {
    background: #fbfcff;
}

.department-matrix-table tr:hover td:first-child {
    background: #fbfcff;
}

.dept-count {
    min-width: 28px;
    height: 28px;
    border: none;
    border-radius: 14px;
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.dept-count:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.dept-empty {
    color: #c7ccd3;
}

/* 提醒列表 */
.reminder-list {
    padding: 15px 20px;
    max-height: 300px;
    overflow-y: auto;
}

.reminder-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
}

.reminder-item:hover {
    background: #f8fbff;
    padding-left: 8px;
    padding-right: 8px;
}

.reminder-click-area {
    cursor: pointer;
}

.reminder-item:last-child {
    border-bottom: none;
}

.reminder-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.reminder-icon.quarterly { background: #e74c3c; }
.reminder-icon.monthly { background: #3498db; }
.reminder-icon.holiday { background: #f39c12; }
.reminder-icon.birthday { background: #e91e63; }
.reminder-icon.other { background: #9b59b6; }

.reminder-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.reminder-info p {
    font-size: 12px;
    color: #888;
}

.reminder-date {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 3px;
    font-weight: 500;
}

/* 图表容器 */
.chart-container {
    padding: 20px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 工作管理页 */
.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.task-sort-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 16px;
    padding: 10px 12px;
    background: #f7faff;
    border: 1px solid #dce7ff;
    border-radius: 12px;
}

.task-sort-panel .mini-input {
    min-width: 180px;
}

.filter-btn, .tab-btn {
    padding: 8px 18px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    color: #666;
}

.filter-btn:hover, .tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active, .tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 列表搜索与筛选工具栏 */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 10px 0;
}

.list-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 400px;
}

.list-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.list-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    transition: var(--transition);
}

.list-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.list-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-select {
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    color: #475569;
    cursor: pointer;
    min-width: 100px;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* 按钮 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #e0e0e0;
    color: #555;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

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

/* 任务容器 */
.tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.task-card {
    background: white;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--card-shadow);
    transition: max-height 0.28s ease, padding 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
    border-left: 4px solid transparent;
    max-height: 58px;
    overflow: hidden;
    position: relative;
}

.task-card:hover,
.task-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    max-height: 1200px;
    padding: 20px;
    z-index: 5;
}

.task-card.priority-high { border-left-color: #e74c3c; }
.task-card.priority-medium { border-left-color: #f39c12; }
.task-card.priority-low { border-left-color: #2ecc71; }

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    min-height: 28px;
}

.task-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}

.task-card:hover .task-title,
.task-card:focus-within .task-title {
    white-space: normal;
    overflow: visible;
}

.task-priority {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.task-priority.high {
    background: #ffebee;
    color: #c62828;
}

.task-priority.medium {
    background: #fff3e0;
    color: #ef6c00;
}

.task-priority.low {
    background: #e8f5e9;
    color: #2e7d32;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.task-meta span {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-meta i {
    font-size: 11px;
}

.task-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* 目标与格言 */
.goals-board {
    background: linear-gradient(135deg, #1f4068 0%, #1b1b2f 100%);
    color: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(31, 64, 104, 0.18);
}

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

.goals-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.goals-title i {
    margin-right: 8px;
    color: #ffd54f;
}

.goals-actions .btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    margin-left: 6px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.goals-grid-two-col {
    grid-template-areas:
        "company deptYear"
        "leader deptMonth"
        "pending motto"
        "reading leisure";
    align-items: stretch;
}

.goals-grid-two-col .goal-row-full {
    grid-column: auto;
}

.goals-grid-two-col .goal-company { grid-area: company; }
.goals-grid-two-col .goal-dept-year { grid-area: deptYear; }
.goals-grid-two-col .goal-leader-message { grid-area: leader; }
.goals-grid-two-col .goal-dept-month { grid-area: deptMonth; }
.goals-grid-two-col .goal-ai-summary { grid-area: pending; }
.goals-grid-two-col .goal-motto { grid-area: motto; }
.goals-grid-two-col .goal-reading-books { grid-area: reading; }
.goals-grid-two-col .goal-leisure-plans { grid-area: leisure; }

.goals-grid .goal-row-full {
    grid-column: 1 / -1;
}

.goals-grid.goals-grid-two-col .goal-row-full {
    grid-column: auto;
}

@media (max-width: 720px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }

    .goals-grid-two-col {
        grid-template-areas:
            "company"
            "leader"
            "pending"
            "deptYear"
            "deptMonth"
            "motto"
            "reading"
            "leisure";
    }
}

.goal-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.goal-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.goal-label {
    font-size: 12.5px;
    color: #ffd54f;
    margin-bottom: 0;
    font-weight: 600;
}

.goal-label i {
    margin-right: 6px;
}

.goal-card-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.goal-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 14px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.goal-action-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.goal-action-btn.save {
    background: rgba(76, 175, 80, 0.75);
    border-color: rgba(76, 175, 80, 0.9);
}

.goal-action-btn.cancel {
    background: rgba(120, 144, 156, 0.65);
    border-color: rgba(120, 144, 156, 0.85);
}

.goal-content {
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    flex: 1;
    color: #f5f6fa;
}

.goal-content.is-placeholder {
    color: rgba(245, 246, 250, 0.6);
    font-style: italic;
}

.goal-company .goal-label {
    font-size: 15.5px;
    color: #ffea00;
}

.goal-company .goal-content {
    font-size: 16.5px;
    font-weight: 700;
    color: #ff2d2d;
    text-shadow: 0 1px 8px rgba(255, 45, 45, 0.25);
}

.goal-company .goal-content.is-placeholder {
    color: rgba(255, 45, 45, 0.72);
}

.goal-company .goal-edit {
    font-size: 16.5px;
    font-weight: 700;
}

.goal-dept-year .goal-label {
    font-size: 14.5px;
    color: #90caf9;
}

.goal-dept-year .goal-content {
    font-size: 15.5px;
    font-weight: 600;
    color: #bbdefb;
    text-shadow: 0 1px 6px rgba(144, 202, 249, 0.18);
}

.goal-dept-year .goal-content.is-placeholder {
    color: rgba(187, 222, 251, 0.72);
}

.goal-dept-year .goal-edit {
    font-size: 15.5px;
    font-weight: 600;
}

.goal-ai-summary {
    min-height: 132px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(126, 87, 194, 0.18));
}

.goal-ai-summary .goal-label {
    color: #dbeafe;
}

.goal-ai-summary-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 6px;
}

.goal-ai-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 7px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    line-height: 1.45;
}

.goal-ai-item span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 800;
}

.goal-ai-item p {
    margin: 0;
}

.goal-card .goal-edit {
    flex: 1;
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.92);
    color: #1b1b2f;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

.goal-card-editing {
    box-shadow: inset 0 0 0 1px rgba(255, 213, 79, 0.45);
}

.goal-edit-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.goal-style-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(245, 246, 250, 0.85);
}

.goal-style-row label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.goal-style-row select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 12px;
}

.goal-style-row select option {
    color: #222;
}

.goal-style-row input[type="color"] {
    width: 34px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 2px;
    cursor: pointer;
}

.goal-file-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    padding: 6px 10px;
    background: rgba(255, 213, 79, 0.2);
    border: 1px solid rgba(255, 213, 79, 0.35);
    color: #fff9c4;
    font-size: 12px;
    cursor: pointer;
}

.goal-file-picker input {
    display: none;
}

.goal-file-tip {
    font-size: 11.5px;
    color: rgba(245, 246, 250, 0.72);
}

.goal-attachments {
    margin-top: 8px;
}

.goal-attachment-empty {
    font-size: 11.5px;
    color: rgba(245, 246, 250, 0.55);
}

.goal-attachment-title {
    font-size: 12px;
    color: #c8e6ff;
    margin-bottom: 5px;
    font-weight: 600;
}

.goal-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.goal-attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #edf6ff;
    font-size: 11.5px;
}

.goal-attachment-item button {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    padding: 0 1px;
}

.goal-attachment-item button:hover {
    color: #ffb4b4;
}

.goal-dept-month {
    padding-top: 4px;
    padding-bottom: 4px;
}

.goal-dept-month .goal-card-head {
    margin-bottom: 0;
}

.goal-dept-month .goal-attachments {
    margin-top: 0;
}

.goal-dept-month .goal-attachment-empty {
    line-height: 1;
    padding: 0;
}

.goal-dept-month .goal-content {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.goal-dept-month .dept-month-table-wrap {
    margin: 0;
}

.dept-month-table-wrap {
    overflow-x: auto;
    width: 100%;
    margin: 0;
}

.dept-month-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    line-height: 1.1;
    color: #f5f6fa;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.dept-month-table th,
.dept-month-table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 4px;
    vertical-align: middle;
}

.dept-month-table th {
    background: rgba(255, 255, 255, 0.12);
    color: #fff9c4;
    font-weight: 700;
    white-space: nowrap;
}

.dept-month-table .progress-col {
    width: 110px;
    text-align: center;
    white-space: nowrap;
}

.dept-month-table .note-col {
    width: 36%;
}

.dept-month-progress {
    width: 76px;
    border: none;
    border-radius: 12px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    outline: none;
    cursor: pointer;
}

.dept-month-progress.progress-0 { background: #d32f2f; }
.dept-month-progress.progress-20 { background: #ff80ab; color: #5a0030; }
.dept-month-progress.progress-40 { background: #f57c00; }
.dept-month-progress.progress-60 { background: #fdd835; color: #5f4b00; }
.dept-month-progress.progress-80 { background: #1b5e20; }
.dept-month-progress.progress-100 { background: #43a047; }

.dept-month-table input[type="text"] {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: #1b1b2f;
    border-radius: 6px;
    padding: 1px 4px;
    font-size: 11px;
    min-height: 18px;
}

.goal-motto {
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.18), rgba(255, 255, 255, 0.05));
}

.goal-reading-books {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(255, 255, 255, 0.05));
}

.goal-leisure-plans {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.18), rgba(255, 255, 255, 0.05));
}

.goal-leader-message {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.18), rgba(255, 255, 255, 0.05));
}

.goal-leader-message .goal-label i {
    color: #ff6b6b;
}

.goal-motto .goal-content,
.goal-reading-books .goal-content,
.goal-leisure-plans .goal-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.motto-line,
.reading-book-line,
.leisure-plan-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff9c4;
}

.reading-book-line {
    color: #e8f5e9;
}

.leisure-plan-line {
    color: #e3f2fd;
}

.motto-line span,
.reading-book-line span,
.leisure-plan-line span {
    flex: 0 0 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 213, 79, 0.28);
    color: #fffde7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.reading-book-line span {
    background: rgba(76, 175, 80, 0.32);
    color: #f1f8e9;
}

.leisure-plan-line span {
    background: rgba(33, 150, 243, 0.32);
    color: #e3f2fd;
}


.task-result,
.task-milestone {
    font-size: 12.5px;
    color: #1565c0;
    background: #f3f8ff;
    border-left: 3px solid #2196f3;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    line-height: 1.5;
    word-break: break-all;
}

.task-milestone {
    color: #ad6800;
    background: #fffbe6;
    border-left-color: #faad14;
}

.task-result i,
.task-milestone i {
    margin-right: 6px;
}

.task-policy-ref,
.task-policy-files {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    background: #f6ffed;
    border-left: 3px solid #52c41a;
    color: #237804;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.task-policy-ref button {
    border: 1px solid #b7eb8f;
    background: #fff;
    color: #237804;
    border-radius: 12px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 12px;
}

.task-policy-files {
    background: #f9f0ff;
    border-left-color: #9254de;
    color: #531dab;
}

.import-doc-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    background: #e6f7ff;
    border-left: 3px solid #1890ff;
    color: #0958d9;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.task-policy-files span,
.attachment-list span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5d4ff;
}

.field-tip {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
}

.import-doc-summary {
    margin-bottom: 12px;
}

.import-doc-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    background: #f0f5ff;
}

.import-doc-summary-grid span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: #1d39c4;
}

.import-doc-summary-grid strong {
    color: #333;
}

.import-doc-table-wrap {
    max-height: 68vh;
    overflow: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.import-doc-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    background: #f8fbff;
    position: sticky;
    top: 0;
    z-index: 3;
}

#import-doc-table th,
#import-doc-table td {
    min-width: 120px;
    max-width: 420px;
    white-space: normal;
    vertical-align: top;
    word-break: break-word;
    position: relative;
}

/* 列宽拖动调整 */
#import-doc-table th .col-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    z-index: 10;
}
#import-doc-table th .col-resize-handle:hover,
#import-doc-table th .col-resize-handle.dragging {
    background: #1677ff;
    opacity: 0.4;
}

/* 锁定行/列样式 */
#import-doc-table thead.frozen {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f0f5ff;
}
#import-doc-table tbody tr td:first-child.frozen-col {
    position: sticky;
    left: 0;
    z-index: 15;
    background: #f6ffed;
}

/* 间距调整栏 */
.import-doc-spacing-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: #f6f8fa;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}
.import-doc-spacing-bar label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555;
    white-space: nowrap;
}
.import-doc-spacing-bar input[type="range"] {
    width: 70px;
    cursor: pointer;
}
.import-doc-spacing-bar span {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    color: #1677ff;
    font-size: 11px;
}

/* 模态框标题栏可拖动 */
#import-doc-modal .modal-header {
    cursor: move;
    user-select: none;
}

#import-doc-table th[contenteditable="true"],
#import-doc-table td[contenteditable="true"] {
    cursor: text;
}

#import-doc-table .selected-cell {
    outline: 2px solid #1677ff;
    outline-offset: -2px;
    background: #e6f4ff !important;
}

.import-doc-cell-img {
    max-width: 220px;
    max-height: 160px;
    display: block;
    border-radius: 6px;
    border: 1px solid #d9d9d9;
}

/* 花名册人员总表 */
.roster-table-section {
    margin-bottom: 16px;
}
.roster-table-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.roster-table-count {
    font-size: 13px;
    color: #666;
    margin-left: auto;
}
.roster-table-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
}
.roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.roster-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f0f5ff;
}
.roster-table th,
.roster-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    white-space: nowrap;
}
.roster-table th {
    font-weight: 600;
    color: #333;
    background: #f0f5ff;
}
.roster-table tbody tr:hover {
    background: #f6f8fa;
}
.roster-table .roster-name {
    font-weight: 600;
    color: #1677ff;
}
.roster-table .roster-days {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.roster-table .roster-days.d-19 { background: #fff2e8; color: #fa8c16; }
.roster-table .roster-days.d-43 { background: #e6f7ff; color: #1890ff; }
.roster-table .roster-days.d-58 { background: #f6ffed; color: #52c41a; }
.roster-table .roster-action {
    color: #1677ff;
    cursor: pointer;
    font-size: 12px;
}
.roster-table .roster-action:hover {
    text-decoration: underline;
}
/* 花名册表头排序 */
.roster-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 18px;
}
.roster-table th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 6px;
    font-size: 11px;
    color: #bbb;
}
.roster-table th.sortable.sort-asc::after {
    content: '↑';
    color: #1677ff;
}
.roster-table th.sortable.sort-desc::after {
    content: '↓';
    color: #1677ff;
}
/* 电脑明细表头排序 */
.computer-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 18px;
}
.computer-table th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 6px;
    font-size: 11px;
    color: #bbb;
}
.computer-table th.sortable.sort-asc::after {
    content: '↑';
    color: #1677ff;
}
.computer-table th.sortable.sort-desc::after {
    content: '↓';
    color: #1677ff;
}
.roster-table tbody tr.selected-row {
    background: #e6f4ff !important;
}
.roster-table .roster-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.roster-table-toolbar .roster-batch-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.task-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.task-status.pending {
    background: #fff3e0;
    color: #ef6c00;
}

.task-status.in-progress {
    background: #e3f2fd;
    color: #1565c0;
}

.task-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.task-status.confirming {
    background: #fce4ec;
    color: #c62828;
}

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

.task-actions button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 13px;
}

.btn-edit {
    background: #e3f2fd;
    color: #1565c0;
}

.btn-edit:hover {
    background: #1565c0;
    color: white;
}

.btn-complete {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-complete:hover {
    background: #2e7d32;
    color: white;
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.btn-delete:hover {
    background: #c62828;
    color: white;
}

/* 提醒页 */
.reminders-header, .confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.reminder-tabs, .confirm-tabs {
    display: flex;
    gap: 8px;
}

.reminders-container, .confirm-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.reminder-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.reminder-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reminder-card-title {
    font-size: 15px;
    font-weight: 600;
}

.reminder-card-type {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.reminder-card-type.quarterly { background: #ffebee; color: #c62828; }
.reminder-card-type.monthly { background: #e3f2fd; color: #1565c0; }
.reminder-card-type.holiday { background: #fff3e0; color: #ef6c00; }
.reminder-card-type.birthday { background: #fce4ec; color: #ad1457; }
.reminder-card-type.other { background: #f3e5f5; color: #6a1b9a; }

.reminder-card-body {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.reminder-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.reminder-card-date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reminder-card-date.overdue {
    color: #e74c3c;
    font-weight: 600;
}

/* 确认卡片 */
.confirm-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.confirm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.confirm-card-title {
    font-size: 15px;
    font-weight: 600;
}

.confirm-card-type {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #fff3e0;
    color: #ef6c00;
}

.confirm-card-body {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.confirm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #888;
}

.confirm-card-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 统计页 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-table-container {
    padding: 20px;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.stats-table th {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    background: #f8f9fa;
}

.stats-table td {
    font-size: 13px;
    color: #666;
}

.stats-table tr:hover td {
    background: #f8f9fa;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.confirm-dialog {
    max-width: 450px;
}

.modal-content.modal-lg {
    width: 96%;
    max-width: 1650px;
}

.modal-content.import-doc-resizable {
    min-width: 720px;
    min-height: 420px;
    resize: both;
    overflow: auto;
    position: relative;
}

.import-doc-resize-handle {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    border-right: 3px solid #1677ff;
    border-bottom: 3px solid #1677ff;
    border-radius: 2px;
    opacity: 0.75;
}

.import-doc-resize-handle:hover {
    opacity: 1;
}

.resizing-import-doc {
    user-select: none;
    cursor: nwse-resize !important;
}

.policy-doc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    background: #f0f7ff;
    border: 1px solid #d6e9ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #1677ff;
}

.policy-doc-item:hover {
    background: #e0f0ff;
    border-color: #1677ff;
    transform: translateX(4px);
}

.policy-doc-item i {
    font-size: 16px;
}

.policy-doc-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 16px;
    line-height: 1.8;
    font-size: 14px;
    color: #333;
}

.policy-doc-body h6 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1677ff;
}

.policy-doc-body p {
    margin: 8px 0;
    text-align: justify;
}

.policy-doc-body strong {
    color: #1a1a1a;
}

.policy-doc-resizable {
    min-width: 720px;
    min-height: 420px;
    resize: both;
    overflow: auto;
    position: relative;
}

/* 政策法规工具栏 */
.policy-doc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.color-btn {
    width: 28px;
    height: 28px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: #333;
}

.color-yellow { background: #fef3c7; color: #92400e; }
.color-green { background: #d1fae5; color: #065f46; }
.color-blue { background: #dbeafe; color: #1e40af; }
.color-pink { background: #fce7f3; color: #9d174d; }
.color-orange { background: #ffedd5; color: #9a3412; }

.style-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* 政策法规标记样式 */
.policy-annotation {
    border-radius: 2px;
    padding: 0 2px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.policy-annotation:hover {
    opacity: 0.85;
}

.highlight-yellow { background-color: #fef3c7; }
.highlight-green { background-color: #d1fae5; }
.highlight-blue { background-color: #dbeafe; }
.highlight-pink { background-color: #fce7f3; }
.highlight-orange { background-color: #ffedd5; }

.underline-solid { text-decoration: underline; text-decoration-color: #ef4444; text-decoration-thickness: 2px; }
.underline-wavy { text-decoration: underline wavy #ef4444; text-decoration-thickness: 2px; }
.underline-dotted { text-decoration: underline dotted #ef4444; text-decoration-thickness: 2px; }

.note-mark {
    background-color: #fef9c3;
    border-bottom: 2px dashed #f59e0b;
    cursor: help;
}

/* 备注列表 */
.policy-notes-list {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.policy-notes-list h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #334155;
}

.policy-note-item {
    position: relative;
    padding: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.policy-note-item .note-text {
    color: #64748b;
    margin-bottom: 4px;
}

.policy-note-item .note-content {
    color: #1e293b;
    line-height: 1.5;
}

.policy-note-item .note-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.btn-delete-note {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-delete-note:hover {
    background: #fee2e2;
}

.note-selected-preview {
    padding: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    max-height: 80px;
    overflow-y: auto;
    line-height: 1.5;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 表单 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.profile-setting-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    background: #f8fbff;
    margin-bottom: 14px;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 28px;
    flex: 0 0 auto;
}

.profile-setting-preview p,
.form-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #778195;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Toast提示 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--success-color);
    font-size: 20px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-state p {
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .procedure-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .focus-cube-wrap {
        grid-template-columns: 1fr;
    }

    .focus-cube-scene {
        min-height: 360px;
        overflow: hidden;
    }

    .focus-cube {
        width: 420px;
        height: 280px;
    }
}

/* ============ 日历卡片 ============ */
.calendar-card .card-header { flex-wrap: wrap; gap: 10px; }
.calendar-controls { display: flex; align-items: center; gap: 6px; }
.calendar-controls #calendar-title { min-width: 100px; text-align: center; font-weight: 600; color: #333; }
.calendar-score-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.calendar-score-total {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7e6, #fff1cc);
    color: #ad6800;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #ffd591;
}
.btn-icon {
    background: #f1f3f7; border: 1px solid #e1e4ec; color: #555;
    width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: 0.2s;
}
.btn-icon:hover { background: #667eea; color: #fff; border-color: #667eea; }
.calendar-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 6px; margin: 10px 0; font-size: 12px; color: #666; font-weight: 700;
}
.calendar-weekdays span {
    text-align: center;
    padding: 6px 0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(18, 38, 63, 0.06);
}
.calendar-weekdays span:nth-child(1) { background: linear-gradient(135deg, #fff1f0, #fff7f6); color: #cf1322; }
.calendar-weekdays span:nth-child(2) { background: linear-gradient(135deg, #e6f4ff, #f5fbff); color: #0958d9; }
.calendar-weekdays span:nth-child(3) { background: linear-gradient(135deg, #f6ffed, #fbfff6); color: #389e0d; }
.calendar-weekdays span:nth-child(4) { background: linear-gradient(135deg, #fffbe6, #fffdf2); color: #ad6800; }
.calendar-weekdays span:nth-child(5) { background: linear-gradient(135deg, #f9f0ff, #fcf7ff); color: #722ed1; }
.calendar-weekdays span:nth-child(6) { background: linear-gradient(135deg, #fff0f6, #fff7fb); color: #c41d7f; }
.calendar-weekdays span:nth-child(7) { background: linear-gradient(135deg, #f0f5ff, #f7faff); color: #1d39c4; }
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.calendar-cell {
    min-height: 216px; border: 3px solid #4c6ef5; border-radius: 8px;
    padding: 8px 6px; cursor: pointer; background: #fff; position: relative;
    transition: 0.18s;
    box-shadow: 0 1px 3px rgba(76, 110, 245, 0.12);
    box-sizing: border-box;
}
.calendar-cell:hover { border-color: #1d39c4; box-shadow: 0 4px 14px rgba(29, 57, 196, 0.28); transform: translateY(-1px); }
.calendar-cell.blank { background: transparent; border-color: transparent; box-shadow: none; cursor: default; }
.calendar-cell.today { background: linear-gradient(135deg,#fff7e6,#fffaf0); border-color: #fa8c16; box-shadow: 0 0 0 2px rgba(250, 140, 22, 0.35), 0 4px 12px rgba(250, 140, 22, 0.25); }
.calendar-cell.important { box-shadow: 0 0 0 3px #ff4d4f, 0 4px 12px rgba(255, 77, 79, 0.3); }
.calendar-cell .day-num {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    color: #333;
    font-size: 15px;
    line-height: 1;
}
.calendar-score-line {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    margin-bottom: 3px;
    border-radius: 999px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    color: #ad6800;
    font-size: 10px;
    font-weight: 700;
}
.calendar-score-line strong {
    color: #d46b08;
}
/* 日期类型样式：节假日 / 调休 / 周末 / 工作日 */
.calendar-cell.ct-holiday { background: linear-gradient(135deg,#fff1f0,#ffeceb); border-color: #ff4d4f; }
.calendar-cell.ct-holiday .day-num { color: #cf1322; }
.calendar-cell.ct-workday { background: linear-gradient(135deg,#fffbe6,#fff7d6); border-color: #fa8c16; }
.calendar-cell.ct-workday .day-num { color: #ad4e00; }
.calendar-cell.ct-weekend { background: linear-gradient(135deg,#f0f5ff,#e6efff); border-color: #2f54eb; }
.calendar-cell.ct-weekend .day-num { color: #1d39c4; }
.calendar-cell.ct-weekday { background: #ffffff; }
.calendar-cell.today.ct-holiday,
.calendar-cell.today.ct-workday,
.calendar-cell.today.ct-weekend { box-shadow: 0 0 0 2px #ffa940 inset; }
.day-tag {
    position: absolute; top: 4px; right: 4px;
    font-size: 10px; padding: 1px 5px; border-radius: 8px;
    line-height: 1.4; font-weight: 600;
}
.tag-holiday { background: #cf1322; color: #fff; }
.tag-workday { background: #d46b08; color: #fff; }
.tag-weekend { background: #1d39c4; color: #fff; }
.calendar-right-info {
    position: absolute;
    top: 27px;
    right: 6px;
    width: 70px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    pointer-events: none;
}
.holiday-label {
    display: block; margin-top: 0; font-size: 11px; color: #cf1322;
    line-height: 1.2; max-width: 100%; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.calendar-cell.ct-workday .holiday-label { color: #ad4e00; }
.lunar-label,
.animal-label,
.solar-term-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.lunar-label {
    margin-top: 0;
    font-size: 10px;
    color: #667085;
}

.animal-label {
    margin-top: 0;
    font-size: 10px;
    color: #0958d9;
    font-weight: 700;
}

.solar-term-label {
    margin-top: 0;
    font-size: 11px;
    color: #7b3f00;
    font-weight: 700;
}
.calendar-yiji {
    position: absolute;
    left: 6px;
    right: 82px;
    top: 66px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}
.calendar-yiji span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    line-height: 1.2;
    padding: 1px 4px;
    border-radius: 4px;
}
.calendar-yiji .yi {
    color: #237804;
    background: rgba(246, 255, 237, 0.86);
}
.calendar-yiji .ji {
    color: #a8071a;
    background: rgba(255, 241, 240, 0.86);
}
.calendar-cell-weather {
    position: absolute;
    left: 36%;
    top: 54%;
    transform: translate(-50%, -30%);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 70px;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(240, 245, 255, 0.9);
    border: 1px solid #adc6ff;
    color: #1d39c4;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-cell-weather i {
    font-size: 10px;
    flex: 0 0 auto;
}
.calendar-cell-weather span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-cell-weather strong {
    color: #0958d9;
    flex: 0 0 auto;
}
.calendar-cell .dots { position: absolute; bottom: 8px; left: 6px; display: flex; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-event { background: #1890ff; }
.dot-deadline { background: #ff4d4f; }
.dot-reminder { background: #52c41a; }
.dot-linked { background: #722ed1; }
.dot-roster { background: #fa8c16; }
.dot-reminder-event { background: #eb2f96; }
.calendar-legend { margin-top: 10px; display: flex; gap: 14px; font-size: 12px; color: #666; flex-wrap: wrap; }
.calendar-legend .dot { margin-right: 4px; }
.legend-box {
    display: inline-block; width: 12px; height: 12px; border-radius: 3px;
    margin-right: 4px; vertical-align: middle; border: 1px solid #ddd;
}
.legend-box.lb-holiday { background: #fff1f0; border-color: #ffa39e; }
.legend-box.lb-workday { background: #fffbe6; border-color: #ffd591; }
.legend-box.lb-weekend { background: #f0f5ff; border-color: #adc6ff; }
.legend-box.lb-weekday { background: #ffffff; border-color: #eef0f5; }

.calendar-existing { margin-bottom: 10px; }
.calendar-almanac {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    background: #f8fbff;
}

.calendar-almanac div {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: #4a5568;
}

.calendar-almanac .wide {
    grid-column: span 3;
}

.calendar-almanac strong {
    color: #1a4dbf;
    white-space: nowrap;
}

.calendar-almanac span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-existing h4 { font-size: 13px; color: #555; margin-bottom: 6px; }
.calendar-existing ul { list-style: none; padding: 0; margin: 0; }
.calendar-existing li {
    padding: 6px 8px; border: 1px solid #eef0f5; border-radius: 6px;
    margin-bottom: 4px; cursor: pointer; font-size: 13px;
    display: flex; gap: 6px; align-items: center;
}
.calendar-existing li:hover { background: #f5f7fa; }
.ev-type {
    display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 11px;
    background: #e6f4ff; color: #1890ff;
}
.ev-type.ev-important { background: #fff1f0; color: #ff4d4f; }
.ev-type.ev-meeting { background: #f6ffed; color: #389e0d; }
.ev-type.ev-holiday { background: #fffbe6; color: #d48806; }
.ev-type.ev-other { background: #f4f4f4; color: #666; }
.ev-type.ev-reminder { background: #f6ffed; color: #389e0d; }
.ev-type.ev-deadline { background: #fff1f0; color: #ff4d4f; }
.ev-type.ev-linked { background: #f9f0ff; color: #722ed1; }
.ev-type.ev-score { background: #fff7e6; color: #d46b08; }
.calendar-score-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #ffd591;
    background: linear-gradient(135deg, #fff7e6, #fffaf0);
}
.calendar-score-detail strong { color: #7a4b00; }
.calendar-score-detail span {
    font-size: 18px;
    color: #d46b08;
    font-weight: 800;
}
.calendar-score-detail em {
    color: #8c6d3f;
    font-style: normal;
    font-size: 12px;
}
.calendar-detail-list { list-style: none; padding: 0; margin: 0 0 10px; }
.calendar-detail-time {
    display: inline-block;
    font-size: 12px;
    color: #1a4dbf;
    background: #f5f8ff;
    border: 1px solid #d6deff;
    border-radius: 10px;
    padding: 1px 6px;
}
.calendar-existing li em {
    color: #888;
    font-style: normal;
    flex: 1;
}

/* ============ 数据管理 ============ */
.data-actions {
    display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0;
}
.data-actions .btn { font-size: 13px; }
.data-tips { font-size: 12px; color: #888; padding: 6px 0; }
.data-tips code {
    background: #f5f5f5; padding: 1px 5px; border-radius: 4px;
    color: #c41d7f; font-family: Consolas, monospace;
}
.auto-backup-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #555;
}
.auto-backup-toggle code {
    background: #f5f5f5; padding: 1px 5px; border-radius: 4px;
    color: #c41d7f; font-family: Consolas, monospace;
}
.btn-success { background: linear-gradient(135deg,#52c41a,#73d13d); color:#fff; border:none; }
.btn-success:hover { filter: brightness(1.05); }
.btn-danger { background: #ff4d4f; color:#fff; border:none; }

/* ============ 安全自检 ============ */
.security-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.security-table th, .security-table td {
    border: 1px solid #eef0f5; padding: 8px 10px; font-size: 13px; text-align: left;
}
.security-table th { background: #fafbff; color: #333; }
.row-pass td { background: #f6ffed; }
.row-warn td { background: #fffbe6; }
.row-fail td { background: #fff1f0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge-pass { background: #389e0d; color:#fff; }
.badge-warn { background: #d48806; color:#fff; }
.badge-fail { background: #cf1322; color:#fff; }
.security-summary { margin-top: 10px; font-size: 13px; color: #555; }

/* ============ 快捷链接 ============ */
.quick-links-card .ql-tips {
    font-size: 12px; color: #888; margin: 6px 0 10px;
}
.quick-links-tree { display: flex; flex-direction: column; gap: 8px; }
.ql-section {
    border: 1px solid #eef0f5; border-radius: 8px; background: #fff; overflow: hidden;
}
.ql-section-head {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; cursor: pointer; background: #fafbff;
    border-bottom: 1px solid transparent;
}
.ql-section.open .ql-section-head { border-bottom-color: #eef0f5; }
.ql-section-head .ql-toggle { color: #888; width: 14px; }
.ql-section-name { font-weight: 600; color: #333; flex: 1; }
.ql-section-body { padding: 8px 12px; display: none; }
.ql-section.open .ql-section-body { display: block; }
.ql-count {
    background: #eef0f5; color: #555; font-size: 12px;
    padding: 1px 7px; border-radius: 10px;
}
.ql-add {
    background: #fff; border: 1px solid #d8dbe4; color: #555; cursor: pointer;
    padding: 3px 8px; border-radius: 6px; font-size: 12px;
    display: inline-flex; align-items: center; gap: 4px;
}
.ql-add:hover { background: #667eea; color: #fff; border-color: #667eea; }
.ql-add.primary { background: #f0f3ff; color: #4a5cd0; border-color: #c8d2ff; }
.ql-add.primary:hover { background: #667eea; color: #fff; }
.ql-section-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ql-project {
    border-top: 1px dashed #eef0f5; padding: 8px 0 6px;
}
.ql-project:first-of-type { border-top: none; }
.ql-project-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.ql-project-name { color: #555; font-size: 13px; flex: 1; }
.ql-links { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 6px; }
.ql-empty { font-size: 12px; color: #aaa; padding-left: 6px; }
.ql-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border: 1px solid #e1e4ec; border-radius: 16px;
    color: #1a4dbf; background: #f5f8ff; font-size: 12px;
    text-decoration: none; transition: 0.15s;
    max-width: 260px;
}
.ql-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.ql-link:hover { background: #1a4dbf; color: #fff; border-color: #1a4dbf; }
.ql-link:hover .ql-link-edit { color: #fff; }
.ql-link-edit {
    background: transparent; border: none; cursor: pointer; color: #888;
    padding: 0; font-size: 11px;
}
.ql-link-edit:hover { color: #ff7a00; }

/* ============ 模块卡片右侧链接（module-links） ============ */
.module-item { position: relative; }
.module-links {
    margin-top: 10px;
    border-top: 1px dashed #eef0f5;
    padding-top: 8px;
}
.ml-row {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.ml-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 12px;
    background: #f5f8ff; color: #1a4dbf; border: 1px solid #d6deff;
    font-size: 11px; text-decoration: none; max-width: 130px;
}
.ml-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.ml-link:hover { background: #1a4dbf; color: #fff; border-color: #1a4dbf; }
.ml-link:hover .ml-edit { color: #fff; }
.ml-btn {
    display: inline-flex; align-items: center; gap: 3px;
    background: #fff; border: 1px dashed #c4c8d5; color: #888;
    padding: 2px 6px; border-radius: 12px; font-size: 11px; cursor: pointer;
}
.ml-btn:hover { color: #fff; background: #667eea; border-color: #667eea; }
.ml-btn.ml-mgr { border-style: solid; background: #fff7e6; color: #b46d00; border-color: #ffd591; }
.ml-btn.ml-mgr:hover { background: #ffa940; color: #fff; border-color: #ffa940; }
.ml-total {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 12px;
    background: #fff7e6; color: #b46d00;
    border: 1px solid #ffd591; font-size: 11px;
}
.ml-edit {
    background: transparent; border: none; cursor: pointer;
    color: #9aa1ad; padding: 0; margin-left: 2px; font-size: 10px;
}
.ml-projects {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ml-project {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: start;
    gap: 6px;
}
.ml-project-name {
    color: #666;
    font-size: 11px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ml-project-link-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 20px;
}
.ml-project-link {
    max-width: 118px;
}

/* 工作项目内部的网址入口 */
.task-project-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 10px;
    padding: 8px;
    background: #f8f9ff;
    border: 1px dashed #dfe4ff;
    border-radius: 8px;
}

.task-project-label {
    color: #555;
    font-size: 12px;
    font-weight: 600;
}

.task-project-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #d6deff;
    color: #1a4dbf;
    font-size: 12px;
    text-decoration: none;
}

.task-project-link:hover {
    background: #1a4dbf;
    color: #fff;
}

.task-project-empty {
    color: #aaa;
    font-size: 12px;
}

.task-project-add {
    border: 1px dashed #c4c8d5;
    background: #fff;
    color: #666;
    border-radius: 12px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
}

.task-project-add:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ============ 内设项目链接（部门对应表上方） ============ */
.project-links-card .card-tip { font-size: 12px; color: #999; }
.project-links-block { display: flex; flex-direction: column; gap: 12px; padding: 6px 0; }
.pl-row {
    display: grid; grid-template-columns: 130px 1fr; gap: 12px;
    border-bottom: 1px dashed #eef0f5; padding-bottom: 10px;
}
.pl-row:last-child { border-bottom: none; }
.pl-name {
    font-weight: 600; color: #4a5cd0; padding-top: 4px; font-size: 13px;
}
.pl-projects { display: flex; flex-direction: column; gap: 6px; }
.pl-project {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.pl-project-name {
    background: #f0f3ff; color: #555; font-size: 12px;
    padding: 2px 8px; border-radius: 4px; min-width: 110px;
}
.pl-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; background: #f5f8ff; color: #1a4dbf;
    border: 1px solid #d6deff; border-radius: 12px;
    font-size: 12px; text-decoration: none; max-width: 200px;
}
.pl-link:hover { background: #1a4dbf; color: #fff; }
.pl-link:hover .pl-edit { color: #fff; }
.pl-edit {
    background: transparent; border: none; cursor: pointer;
    color: #aaa; font-size: 10px; padding: 0;
}
.pl-add {
    border: 1px dashed #c4c8d5; background: #fff; color: #888;
    border-radius: 12px; padding: 2px 8px; cursor: pointer; font-size: 11px;
}
.pl-add:hover { background: #667eea; color: #fff; border-color: #667eea; }

/* ============ 采购申请等内容里的内联链接 ============ */
.confirm-card-body { white-space: pre-wrap; }
.inline-link {
    display: inline-flex; align-items: center; gap: 3px;
    color: #1a4dbf; text-decoration: none;
    background: #f5f8ff; padding: 1px 6px; border-radius: 6px;
    border: 1px solid #d6deff; margin: 0 2px;
}
.inline-link:hover { background: #1a4dbf; color: #fff; border-color: #1a4dbf; }

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .computer-summary {
        grid-template-columns: 1fr;
    }

    .procedure-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-container,
    .reminders-container,
    .confirm-container {
        grid-template-columns: 1fr;
    }
    
    .header-right .search-box {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 工作汇报模块图标 */
.module-item[data-module="report"] .module-icon {
    background: linear-gradient(135deg, #ff9a56, #ff6b6b);
}

/* 任务头部操作区 */
.task-actions-header {
    display: flex;
    gap: 10px;
}

/* 电脑明细台账 */
.computer-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.asset-table-container {
    padding: 20px;
    overflow-x: auto;
}

.asset-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.asset-table th,
.asset-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    vertical-align: top;
}

.asset-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
}

.asset-table td {
    color: #666;
}

.asset-table tr:hover td {
    background: #f8f9fa;
}

.asset-status {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.asset-status.using {
    background: #e8f5e9;
    color: #2e7d32;
}

.asset-status.spare {
    background: #e3f2fd;
    color: #1565c0;
}

.asset-status.repair {
    background: #fff3e0;
    color: #ef6c00;
}

.asset-status.scrapped {
    background: #ffebee;
    color: #c62828;
}

/* 新增功能页：通用数据表与状态徽章 */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    vertical-align: middle;
}

.data-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
}

.data-table td {
    color: #666;
}

.data-table tbody tr:hover td {
    background: #f8f9fa;
}

.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.status-in-progress {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.status-confirming {
    background: #f3e5f5;
    color: #7b1fa2;
}

.table-empty {
    text-align: center;
    color: #999;
    padding: 35px !important;
}

.modal-content.asset-modal {
    max-width: 720px;
}

/* Excel导入样式 */
.import-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.import-info p {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.import-info p i {
    color: var(--primary-color);
    margin-right: 5px;
}

.import-template-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.import-template-head label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.import-template-toolbar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.import-template-scroll {
    max-height: 320px;
    overflow: auto;
    resize: both;
    border: 1px dashed #c0c0c0;
    border-radius: 8px;
    padding: 4px;
    min-height: 120px;
    min-width: 300px;
}

/* 模态框可拖动 */
#import-modal .modal-header {
    cursor: move;
    user-select: none;
}

#import-modal .modal-content {
    resize: both;
    overflow: auto;
    min-width: 500px;
    min-height: 300px;
    max-width: 95vw;
    max-height: 95vh;
}

/* 表格列宽可拖动 */
.import-template-table th {
    position: relative;
    min-width: 60px;
}

.import-template-table th .col-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
    z-index: 10;
}

.import-template-table th .col-resize-handle:hover,
.import-template-table th .col-resize-handle.dragging {
    background: #1890ff;
    opacity: 0.5;
}

/* 表格行高可调整 */
.import-template-table tr {
    position: relative;
}

.import-template-table tr .row-resize-handle {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    cursor: row-resize;
    z-index: 10;
}

.import-template-table tr .row-resize-handle:hover,
.import-template-table tr .row-resize-handle.dragging {
    background: #1890ff;
    opacity: 0.5;
}

/* 间距调整控件 */
.import-spacing-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #f6f8fa;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
}

.import-spacing-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555;
}

.import-spacing-controls input[type="range"] {
    width: 80px;
    cursor: pointer;
}

.import-spacing-controls .spacing-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    color: #1890ff;
}

/* 单元格自由编辑 */
.import-template-table td,
.import-template-table th {
    cursor: cell;
}

.import-template-table td.editing,
.import-template-table th.editing {
    background: #e6f7ff !important;
    outline: 2px solid #1890ff;
    outline-offset: -2px;
}

.import-template-table td input.cell-edit-input,
.import-template-table th input.cell-edit-input {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    outline: none;
}

.import-template-table {
    min-width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
}

.import-template-table th,
.import-template-table td {
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    text-align: left;
    white-space: nowrap;
}

.import-template-table th {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}

.import-template-table td {
    background: white;
    color: #666;
}

.import-template-table .editable-cell {
    outline: 2px dashed #faad14;
    outline-offset: -3px;
    background: #fffbe6;
    cursor: text;
}

.import-template-edit-actions {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #fff7e6;
    border: 1px solid #ffd591;
}

.import-template-edit-actions label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ad6800;
    font-size: 12px;
    font-weight: 700;
}

.import-note {
    font-size: 12px;
    color: #888;
    margin: 5px 0;
}

.import-template-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #eef8f0;
    border: 1px solid #b7e4c7;
}

.import-template-actions span {
    color: #237804;
    font-size: 13px;
    font-weight: 700;
    margin-right: auto;
}

.preview-table-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 10px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.preview-table th,
.preview-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.preview-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    position: sticky;
    top: 0;
}

.preview-table tr:hover td {
    background: #f8f9fa;
}

.scroll-quick-actions {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-quick-actions button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 16px rgba(53, 122, 189, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.scroll-quick-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(53, 122, 189, 0.36);
}

/* 总目录 */
.master-toc-card {
    margin-bottom: 16px;
}

.master-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.master-toc-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.master-toc-actions label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.master-toc-actions select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 12px;
    background: #fff;
}

.master-toc-actions input[type="color"] {
    width: 34px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    cursor: pointer;
}

.master-toc-edit-only {
    display: none !important;
}

.master-toc-card.toc-editing-card .master-toc-edit-only {
    display: inline-flex !important;
}

#master-toc-edit-toggle.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #e67e22;
}

.master-toc-body {
    padding: 8px 4px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 16px;
}

.master-toc-body .toc-root {
    position: relative;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 20px rgba(18, 38, 63, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.master-toc-body .toc-root:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(18, 38, 63, 0.12);
}

.master-toc-body .toc-color-0 { background: linear-gradient(135deg, #eef6ff, #ffffff); }
.master-toc-body .toc-color-1 { background: linear-gradient(135deg, #fff3e8, #ffffff); }
.master-toc-body .toc-color-2 { background: linear-gradient(135deg, #eefaf2, #ffffff); }
.master-toc-body .toc-color-3 { background: linear-gradient(135deg, #fff0f5, #ffffff); }
.master-toc-body .toc-color-4 { background: linear-gradient(135deg, #f3efff, #ffffff); }
.master-toc-body .toc-color-5 { background: linear-gradient(135deg, #fffbea, #ffffff); }
.master-toc-body .toc-color-6 { background: linear-gradient(135deg, #ecfbff, #ffffff); }
.master-toc-body .toc-color-7 { background: linear-gradient(135deg, #f4f7fb, #ffffff); }

.master-toc-body .toc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
}

.master-toc-body .toc-row:hover {
    background: rgba(53, 122, 189, 0.08);
}

.master-toc-body .toc-row-root .toc-link {
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    flex: 0 1 auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 5px 12px rgba(53, 122, 189, 0.26);
}

.master-toc-body .toc-row-root .toc-link::before,
.master-toc-body .toc-row-root .toc-link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
}

.master-toc-body .toc-row-root .toc-link i {
    font-size: 12px;
}

.master-toc-body .toc-link {
    cursor: pointer;
    flex: 1;
    color: inherit;
}

.master-toc-body .toc-link:hover {
    text-decoration: underline;
}

.master-toc-body .toc-tools {
    display: none;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.master-toc-body.toc-editing .toc-tools {
    display: inline-flex;
}

.master-toc-body.toc-editing .toc-row:hover .toc-tools,
.master-toc-body.toc-editing .toc-tools {
    opacity: 1;
}

.master-toc-body .toc-tools button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
}

.master-toc-body .toc-tools button:hover {
    background: rgba(53, 122, 189, 0.12);
    color: var(--primary-color);
}

.master-toc-body .toc-children {
    display: none;
    margin-left: 14px;
    border-left: 2px dashed rgba(53, 122, 189, 0.18);
    padding-left: 10px;
    margin-top: 8px;
    animation: tocChildrenFade 0.16s ease;
}

.master-toc-body .toc-root:hover > .toc-children,
.master-toc-body .toc-root:focus-within > .toc-children {
    display: block;
}

@keyframes tocChildrenFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 内置智能工具 */
.tool-inline-btn {
    border: 1px solid #cfe0ff;
    background: #f5f9ff;
    color: var(--primary-color);
    border-radius: 14px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.tool-inline-btn:hover {
    background: #eaf2ff;
    transform: translateY(-1px);
}

.floating-tools-panel {
    position: fixed;
    right: 78px;
    bottom: 24px;
    width: min(560px, calc(100vw - 110px));
    max-height: 78vh;
    z-index: 1700;
    background: #fff;
    border: 1px solid #dfe7f3;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(18, 38, 63, 0.22);
    overflow: hidden;
}

.floating-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
}

.floating-tools-header h3 {
    font-size: 16px;
    margin: 0;
}

.floating-tools-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    background: #f5f7fb;
    border-bottom: 1px solid #e7edf7;
}

.floating-tools-tabs button {
    border: 1px solid #d6e2f3;
    background: #fff;
    color: #4a5568;
    border-radius: 14px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 12px;
}

.floating-tools-tabs button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.floating-tool-section {
    display: none;
    padding: 12px;
    overflow: auto;
    max-height: calc(78vh - 98px);
}

.floating-tool-section.active {
    display: block;
}

.tool-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 92px;
    border: 1px dashed #9db8dd;
    border-radius: 12px;
    background: #f8fbff;
    color: #3b5f91;
    cursor: pointer;
    margin-bottom: 10px;
}

.tool-upload-zone i {
    font-size: 24px;
}

.tool-upload-zone input {
    display: none;
}

.tool-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.floating-tool-textarea {
    width: 100%;
    min-height: 260px;
    resize: vertical;
    border: 1px solid #dce5f3;
    border-radius: 10px;
    padding: 10px;
    line-height: 1.55;
    font-size: 13px;
}

.tool-tip {
    font-size: 12px;
    color: #667085;
    margin: 6px 0 10px;
}

.screenshot-preview {
    min-height: 210px;
    border: 1px solid #e0e8f5;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8699;
    overflow: auto;
}

.screenshot-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 截图编辑器 */
.screenshot-editor-container {
    margin-top: 10px;
    border: 1px solid #e0e8f5;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.screenshot-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #e0e8f5;
}

.screenshot-editor-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.screenshot-editor-toolbar .tool-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #dce5f3;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    color: #475569;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-editor-toolbar .tool-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.screenshot-editor-toolbar .tool-btn.active {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}

.screenshot-editor-toolbar label {
    font-size: 12px;
    color: #64748b;
    margin-right: 2px;
}

.screenshot-editor-toolbar input[type="color"] {
    width: 32px;
    height: 32px;
    border: 1px solid #dce5f3;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

.screenshot-editor-toolbar input[type="range"] {
    width: 80px;
}

.screenshot-editor-toolbar select {
    padding: 4px 8px;
    border: 1px solid #dce5f3;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #334155;
}

.screenshot-editor-toolbar #screenshot-resize-scale {
    width: 72px;
}

.screenshot-canvas-wrapper {
    position: relative;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 200px;
    max-height: 70vh;
    overflow: auto;
}

.screenshot-canvas-wrapper canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e8f5;
    border-radius: 8px;
    background: #fff;
    cursor: crosshair;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.screenshot-text-input {
    position: fixed;
    z-index: 9999;
    padding: 4px 8px;
    border: 2px solid #1677ff;
    border-radius: 4px;
    background: rgba(255,255,255,0.95);
    font-size: 16px;
    outline: none;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.calculator-expression {
    width: 100%;
    border: 1px solid #dce5f3;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calculator-grid button {
    border: 1px solid #d7e3f2;
    background: #f8fbff;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    font-weight: 700;
}

.calculator-grid button:hover {
    background: #eaf2ff;
}

.calculator-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #f0f7ff;
    color: #1d4f91;
    font-weight: 700;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==================== 登录界面 ==================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf2fb 0%, #f6f8fb 100%);
}

.login-card {
    width: 380px;
    max-width: 90%;
    padding: 40px 36px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(74, 144, 217, 0.18);
    text-align: center;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: #fff;
    font-size: 26px;
}

.login-card h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.login-sub {
    font-size: 13px;
    color: #8c9bab;
    margin-bottom: 22px;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d3dce6;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.login-input:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}

.login-error {
    min-height: 18px;
    margin-top: 8px;
    font-size: 13px;
    color: #dc3545;
    text-align: left;
}

.login-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4a90d9, #357abd);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.login-btn:hover {
    opacity: 0.92;
}

.login-btn:active {
    transform: scale(0.98);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== 同步状态 ==================== */
.sync-status {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 10px;
}

.sync-status.online {
    background: #e6f7ec;
    color: #1a8f52;
}

.sync-status.offline {
    background: #fff3e6;
    color: #b26a00;
}
