/* 统一视觉风格 — 蓝色玻璃态体系 */
:root {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --secondary-color: #93c5fd;
    --accent-color: #f97316;
    --light-color: #eff6ff;
    --dark-color: #1d4ed8;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(147, 197, 253, 0.4);
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --info-color: #2563eb;
    --card-bg: rgba(255, 255, 255, 0.18);
    --card-hover: rgba(239, 246, 255, 0.45);
    --glass-blur: 10px;
    --shadow-sm: 0 2px 8px rgba(59, 130, 246, 0.1);
    --shadow-md: 0 6px 20px rgba(59, 130, 246, 0.15);
    --shadow-lg: 0 12px 32px rgba(59, 130, 246, 0.18);
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #e2ecfc; /* 浅蓝底色兜底，避免加载时闪现黑色 */
    background-image: url("bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

/* 半透明浅色蒙版：让背景与蓝色玻璃面板自然融合，整体更亮 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 58, 92, 0.15) 0%, rgba(26, 58, 92, 0.3) 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 25px 0;
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: none;
}

h1 {
    margin: 0;
    font-size: 2.4em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 10px 0;
}

.update-time {
    font-size: 0.95em;
    opacity: 0.85;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(6px);
}

.main-content {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

.panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur));
}
.main-content > .panel:first-child {
    flex: 0.42; /* 左侧风险容器更窄 */
}
.main-content > .panel:last-child {
    flex: 0.58; /* 右侧管控措施更宽 */
}

.panel-header {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title { font-weight: 600; }

.panel-copy-btn {
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 58px;
    text-align: center;
}

.panel-copy-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.panel-copy-btn.copied {
    background: rgba(76, 175, 80, 0.35);
    border-color: rgba(76, 175, 80, 0.8);
}

.panel-copy-btn.copy-failed {
    background: rgba(244, 67, 54, 0.35);
    border-color: rgba(244, 67, 54, 0.8);
}

.panel-content {
    padding: 20px;
}

.textarea-container {
    width: 100%;
    min-height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    resize: none;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.18);
    overflow-y: auto;
    backdrop-filter: blur(12px);
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 197, 253, 0.4) transparent;
}
/* 聚焦/选中状态样式 */
.textarea-container:focus {
    border-color: rgba(147, 197, 253, 0.6); /* 主色加深，半透明 */
    /* 柔光外发光，贴合页面主色，增强聚焦感但不刺眼 */
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.25), 
                inset 0 0 0 1px rgba(147, 197, 253, 0.4);
}

/* Webkit内核浏览器（Chrome/Edge/Safari）滚动条定制 */
.textarea-container::-webkit-scrollbar {
    width: 6px; /* 滚动条宽度，更纤细不突兀 */
    height: 6px;
}
/* 滚动条轨道（背景）- 完全透明，不遮挡背景图 */
.textarea-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px; /* 和滚动条滑块圆角一致 */
}
/* 滚动条滑块（拖动部分）- 低透明度主色，贴合页面风格 */
.textarea-container::-webkit-scrollbar-thumb {
    background-color: rgba(96, 165, 250, 0.3); /* 主色低透明度，不刺眼 */
    border-radius: 3px; /* 圆角更柔和 */
    transition: background-color 0.2s ease; /* hover过渡动画 */
}
/* 滑块hover状态 - 稍微加深透明度，提升交互反馈 */
.textarea-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(96, 165, 250, 0.45);
}
.content-display-area {
    width: 100%;
    min-height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.2); /* 极低透明度 */
    overflow-y: auto;
    backdrop-filter: blur(10px);
    display: none;
    /* 滚动条基础样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.3) transparent;
/* 取消缩放手柄，移除右下角斜杠 */
    resize: none; /* 新增此行 */
/* 保留原有所有样式，新增以下内容 */
    outline: none; /* 清除浏览器默认聚焦轮廓 */
    transition: all 0.3s ease; /* 统一过渡动画 */
}
/* 聚焦/选中状态样式 */
.content-display-area:focus {
    border-color: rgba(147, 197, 253, 0.6); /* 和输入框保持一致 */
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.25), 
                inset 0 0 0 1px rgba(147, 197, 253, 0.4);
}

/* Webkit内核滚动条定制（和输入区保持一致） */
.content-display-area::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.content-display-area::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}
.content-display-area::-webkit-scrollbar-thumb {
    background-color: rgba(96, 165, 250, 0.3);
    border-radius: 3px;
    transition: background-color 0.2s ease;
}
.content-display-area::-webkit-scrollbar-thumb:hover {
    background-color: rgba(96, 165, 250, 0.45);
}

.content-display-area .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-color);
}

.content-display-area .section-title:first-child {
    margin-top: 0;
}

.content-display-area .category-item {
    margin: 8px 0 8px 15px;
}

.content-display-area .category-item strong {
    color: var(--info-color);
}

.content-display-area .rule-item {
    margin: 8px 0 8px 15px;
    color: var(--text-color);
}

.content-display-area .rule-item .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.content-display-area .tip-item {
    margin: 8px 0 8px 15px;
    color: #666;
}

.content-display-area ul {
    margin: 5px 0;
    padding-left: 20px;
}

.content-display-area li {
    margin: 4px 0;
}

/* 标签容器 */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.measure-copy-list {
    display: none;
    margin-left: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    width: 150px;
    min-width: 150px;
    align-self: flex-start;
}

.measure-copy-title {
    font-size: 12px;
    color: #607d8b;
    margin-bottom: 5px;
}

.measure-copy-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.measure-copy-item-btn {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #345;
    transition: all 0.2s ease;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.measure-copy-item-btn:hover {
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.measures-layout {
    display: flex;
    align-items: stretch;
}

.measures-layout #measuresTextarea {
    flex: 1;
}

@media (max-width: 768px) {
    .measures-layout {
        flex-direction: column;
    }
    .measure-copy-list {
        width: auto;
        min-width: 0;
        margin-left: 0;
        margin-top: 10px;
    }
}

.accident-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 197, 253, 0.4) transparent;
}

.special-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
}

.accident-tag, .special-tag {
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* 基础态 — 柔蓝渐变 */
.accident-tag {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}
.special-tag {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* hover — 提亮 + 浮起 */
.accident-tag:hover, .special-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}
.accident-tag:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #93c5fd 100%);
}
.special-tag:hover {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}

/* active — 深靛蓝 + 内发光感 */
.accident-tag.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3), 0 4px 16px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}
.special-tag.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3), 0 4px 16px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

/* 卡片容器 */
.diagram-container, .template-container {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    min-height: 400px;
}

.other-template-container {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-height: 400px;
    padding: 10px 0;
}

.template-category-block {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title::before {
    content: "";
    width: 6px;
    height: 20px;
    background-color: var(--info-color);
    border-radius: 3px;
}

.template-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.template-list-item {
    padding: 10px 8px;
    margin-bottom: 8px;
    background-color: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}

.template-list-item:hover {
    background-color: rgba(147, 197, 253, 0.15);
    border-left-color: var(--primary-light);
    transform: translateX(3px);
}

.file-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.file-icon.xlsx { color: var(--success-color); }
.file-icon.docx, .file-icon.doc { color: #2196f3; }
.file-icon.pptx { color: var(--warning-color); }

.template-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
}

.template-file-tip {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}

/* 卡片样式 */
.diagram-card, .template-card {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diagram-card-icon, .template-card-icon {
    font-size: 32px;
    color: var(--primary-light);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.template-card-icon {
    color: var(--primary-light);
}

.diagram-card:hover, .template-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.3);
    border-color: rgba(147, 197, 253, 0.5);
}

.diagram-card:hover .diagram-card-icon {
    color: var(--primary-color);
    transform: scale(1.15);
}

.template-card:hover .template-card-icon {
    color: var(--primary-color);
    transform: scale(1.15);
}

.diagram-card-name, .template-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.diagram-card-tip, .template-card-tip {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.9;
}

.template-card-tip {
    color: var(--info-color);
}

.weekboard-date {
    font-size: 12px;
    color: #4b5c7a;
}

.weekboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weekboard-item {
    background-color: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 3px solid var(--primary-color);
    font-size: 14px;
    color: var(--text-color);
}

footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
}

/* 提示框 */
.prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center; /* 改回垂直居中，更自然 */
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
    backdrop-filter: blur(4px);
    padding: 10px; /* 上下留空，避免贴边 */
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 提示框主体 - 合并重复定义，去掉!important，用合理优先级 */
.prompt-box {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    width: 580px;
    max-width: 95%;
    max-height: 90vh; /* 核心：最大高度90%屏幕，避免溢出 */
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    animation: slideIn 0.4s ease-out;
    border: 1px solid rgba(220, 230, 250, 0.8);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 仅内容区滚动，主体不滚动 */
}
/* 内容区强制滚动，高度自适应 */
        .prompt-box-content-wrapper {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch; /* 移动端顺滑滚动 */
            padding-right: 5px;
	   margin-bottom: 10px; /* 和按钮区隔开 */
        }
/* 新增：内容区滚动条Webkit样式 */
.prompt-box-content-wrapper::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.prompt-box-content-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}
.prompt-box-content-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(96, 165, 250, 0.3);
    border-radius: 2px;
}

.prompt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(240, 245, 255, 0.8);
}

.prompt-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.prompt-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}

.prompt-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(4px);
}

.prompt-close:hover {
    background-color: var(--light-color);
    color: var(--accent-color);
    transform: rotate(90deg);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15);
}

.prompt-content {
    font-size: 15px;
    line-height: 1.8;
    color: #495057;
}

.prompt-section {
    margin-bottom: 18px;
}

.prompt-section:last-child {
    margin-bottom: 0;
}

.prompt-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--info-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-section-title::before {
    content: "";
    width: 4px;
    height: 16px;
    background-color: var(--info-color);
    border-radius: 2px;
}

.prompt-content .required-note {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.prompt-content ul {
    margin: 0 0 0 0;
    padding-left: 20px;
    list-style: none;
}

.prompt-content li {
    margin: 6px 0;
    padding-left: 20px;
    position: relative;
}

.prompt-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(67, 160, 71, 0.1);
}

.prompt-content li span {
    display: inline-block;
    background-color: rgba(240, 248, 255, 0.8);
    color: var(--dark-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid rgba(96, 165, 250, 0.1);
}

.cycle-info {
    background-color: rgba(227, 242, 253, 0.6);
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 3px solid var(--info-color);
}

.cycle-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    font-size: 14px;
}

.cycle-info-item strong {
    color: var(--dark-color);
    min-width: 60px;
    display: inline-block;
}

.prompt-footer-note {
    color: #666;
    font-size: 13px;
    margin-top: 12px;
    line-height: 1.6;
}

/* 调整：原.prompt-content 移入滚动容器，无需修改原有样式，仅调整层级 */
/* 弹出框按钮区 - 固定底部，简化样式 */
.prompt-footer {
    flex-shrink: 0; /* 不被压缩，固定在底部 */
    padding-top: 15px;
    border-top: 1px solid rgba(240, 245, 255, 0.8);
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.prompt-confirm {
    padding: 8px 20px;
    background: linear-gradient(to right, var(--primary-color), var(--dark-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(4px);
}

.prompt-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}
/* 平板横屏专属适配（优先级高于通用移动端） */
@media (orientation: landscape) and (min-width: 768px) and (max-width: 1024px) {
    .prompt-overlay {
        padding: 5px; /* 减少上下留空，适配横屏高度 */
    }
    .prompt-box {
        max-height: 95vh; /* 横屏可利用更多高度 */
        padding: 20px; /* 减少内边距 */
        width: 80%; /* 横屏宽度更宽，高度更矮 */
    }
    .prompt-content {
        font-size: 13px;
        line-height: 1.5;
    }
    .prompt-confirm {
        padding: 6px 16px;
        font-size: 12px;
    }
    .prompt-close {
        top: 10px;
        right: 10px;
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    /* 确保文本框在横屏不挤压 */
    .main-content {
        gap: 15px;
    }
    .textarea-container, .content-display-area {
        min-height: 300px; /* 横屏降低文本框最小高度 */
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .prompt-box {
        padding: 20px 15px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        width: 90%;
        max-height: 85vh; /* 移动端最大高度85% */
    }
    
    .prompt-title {
        font-size: 18px;
    }
    
    .prompt-content {
        font-size: 14px;
        line-height: 1.6;
    }
    .prompt-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .prompt-confirm {
        padding: 7px 18px;
        font-size: 13px;
    }
    
    .cycle-info-item {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .cycle-info-item strong {
        min-width: 50px;
    }
    
    .diagram-container, .template-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .accident-tags {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .other-template-container {
        grid-template-columns: 1fr;
    }
    
    .diagram-card, .template-card {
        padding: 15px 10px;
    }
    
    .diagram-card-icon, .template-card-icon {
        font-size: 28px;
    }
    
    .diagram-card-name, .template-card-name {
        font-size: 14px;
    }
    
    .content-display-area {
        padding: 15px;
        font-size: 13px;
    }
    
    .content-display-area .section-title {
        font-size: 14px;
    }

    /* 移动端日历适配保留 */
    .date-float-content {
        width: 240px;
        padding: 15px;
        border-radius: 6px;
    }
    .date-float-toggle {
        width: 42px;
        height: 42px;
        font-size: 18px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    }
}
#AlookElementHide {
    display: none !important;
    height: 0px !important;
    line-height: 0px !important;
}

 /* ========== 滚动通知 - 贴合页面Header+内容区的最终优化版 ========== */
/* ========== 滚动通知 - 文字变红+【】内加粗 ========== */
#noticeContainer {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  height: 20px;
  line-height: 20px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.03), rgba(227, 242, 253, 0.08)); /* 近乎透明 */
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.03); /* 阴影几乎不可见 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 0;
  transition: all 0.2s ease;
}

#noticeContent {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation-play-state: running;
  color: var(--accent-color) !important; /* 全局红色，贴合页面警告色 */
  font-size: 14px;
  padding-left: 20px;
  font-weight: 400;
}

/* 【】内内容加粗样式 */
#noticeContent .notice-bold {
  font-weight: 700 !important; /* 加粗 */
  color: var(--accent-color) !important; /* 确保红色不变 */
}

/* 滚动速度动画 */
.notice-speed-slow {
  animation: scrollNotice 32s linear infinite;
}
.notice-speed-normal {
  animation: scrollNotice 22s linear infinite;
}
.notice-speed-fast {
  animation: scrollNotice 14s linear infinite;
}

@keyframes scrollNotice {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.notice-hidden {
  display: none !important;
  visibility: hidden !important;
}

#noticeContainer:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), var(--light-color));
  box-shadow: 0 3px 10px rgba(96, 165, 250, 0.12);
}


/* ========== 悬浮日历 - 完全适配全局风格 ========== */
.date-float-window {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999 !important; /* 最高层级避免遮挡 */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

/* 日历按钮（匹配页面按钮渐变/质感） */
.date-float-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color)); /* 全局主色渐变 */
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 匹配页面阴影规范 */
  transition: all 0.3s ease; /* 统一过渡动画 */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: auto;
}

.date-float-toggle:hover {
  transform: translateY(-2px) scale(1.05); /* 匹配卡片hover动效 */
  box-shadow: 0 8px 16px rgba(0,0,0,0.12); /* 增强hover阴影 */
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); /* hover渐变加深 */
}

/* 黄历面板（匹配页面卡片风格） */
.date-float-content {
  background: linear-gradient(135deg, var(--card-bg), rgba(245,250,255,0.95)); /* 全局卡片背景 */
  border: 1px solid var(--border-color); /* 全局边框色 */
  border-radius: 8px; /* 全局圆角规范 */
  padding: 18px; /* 优化内边距匹配页面 */
  margin-bottom: 10px;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 匹配面板阴影 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none !important;
  pointer-events: auto;
  transition: all 0.3s ease; /* 展开过渡 */
}

.float-section {
  margin-bottom: 8px;
}

.float-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.float-section-divider {
  margin: 10px 0 12px;
  border-top: 1px dashed var(--border-color);
}

/* 展开样式（强制生效+过渡） */
.date-float-window.active .date-float-content {
  display: block !important;
  animation: slideUp 0.3s ease-out; /* 匹配提示框slideIn动画风格 */
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 加载/错误提示（适配全局文字色） */
.date-loading {
  text-align: center;
  color: var(--text-color);
  font-size: 14px;
  padding: 5px 0;
}
.date-error {
  text-align: center;
  color: var(--accent-color); /* 全局错误色 */
  font-size: 14px;
  padding: 5px 0;
}

/* 黄历数据项（适配全局文字/强调色） */
.date-item {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-color); /* 全局文本色 */
  padding: 3px 0;
}
.date-item strong {
  color: var(--dark-color); /* 全局深色强调 */
  min-width: 40px;
  display: inline-block;
  font-weight: 600;
}

/* 宜/忌颜色（匹配全局状态色） */
.lucky-things {
  color: var(--success-color); /* 全局成功色（宜） */
  font-weight: 500;
}
.unlucky-things {
  color: var(--accent-color); /* 全局危险色（忌） */
  font-weight: 500;
}

/* 移动端适配（匹配页面响应式规范） */
@media (max-width: 768px) {
  .date-float-content {
    width: 240px;
    padding: 15px;
    border-radius: 6px; /* 移动端圆角略小 */
  }
  .date-float-toggle {
    width: 42px;
    height: 42px;
    font-size: 18px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); /* 移动端阴影略轻 */
  }
}