* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #fff8f0;
    color: #333;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    /* 为底部导航栏预留空间 */
    padding-bottom: 60px;
}

/* 顶部横幅 */
.header {
    width: 100%;
    position: relative;
    min-height: 120px;
}

.banner {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


/* 主要内容区域 */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fff;
    transition: all 0.3s ease;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.page.active {
    display: block;
}

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

.page-title {
    color: #ff9800;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc80;
}

.page-content {
    line-height: 1.6;
    color: #555;
}

/* 首页样式 */
.page-title {
    color: #ff9800;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc80;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title .welcome-text {
    color: #666;
    font-size: 14px;
    font-weight: normal;
    margin-left: 15px; /* 与标题的间距 */
}

.welcome-card {
    background: linear-gradient(135deg, #ffcc80, #ffb74d);
    border-radius: 15px;
    padding: 20px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.welcome-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.module-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.module-title {
    font-size: 26px;
    font-weight: 700;
    color: #ff6b00;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 1px;
}

.module-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #ff9d00);
    border-radius: 2px;
}

.module-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-weight: 400;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.risk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 5px;
    height: 120px;
}

.risk-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 10px;
}

.risk-name {
    font-size: 14px;
    color: #333;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

/* 图标颜色样式 */
.icon-1 { background-color: #e6f2ff; color: #2c80ff; }
.icon-2 { background-color: #ffe6e6; color: #ff3333; }
.icon-3 { background-color: #e6ffe6; color: #00a854; }
.icon-4 { background-color: #fff0e6; color: #ff9933; }
.icon-5 { background-color: #f0e6ff; color: #9966ff; }
.icon-6 { background-color: #e6ffff; color: #33cccc; }
.icon-7 { background-color: #fffae6; color: #ffcc00; }
.icon-8 { background-color: #e6f7ff; color: #3399ff; }
.icon-9 { background-color: #f5e6ff; color: #cc66ff; }

/*首页底部“为什么选择我们”*/
 .why-choose-us {
    max-width: 1000px;
    width: 100%;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 10px auto;      /* 左右 auto 即可 */
    padding: 15px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    padding:  5px 5px;
}

/* 强制保持2x2布局，不响应式改变列数 */
.features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #fff;
    min-height: 100px;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
    background-color: #fffbf9;
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #FF6B35;
    background-color: rgba(255, 107, 53, 0.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    position: relative;
}

/* 使用Unicode符号作为图标 */
.icon-fast::before {
    content: "⚡";
    font-size: 2rem;
}

.icon-privacy::before {
    content: "🔒";
    font-size: 2rem;
}

.icon-analysis::before {
    content: "📊";
    font-size: 2rem;
}

.icon-data::before {
    content: "📈";
    font-size: 2rem;
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.3;
}

.feature-desc {
    font-size: 0.6rem;
    color: #666;
    line-height: 1.5;
}

/* 极窄屏幕的强制调整 */
@media (max-width: 480px) {
    .features-grid {
        gap: 15px;
        padding: 10px 5px;
    }
    
    .feature-item {
        padding: 12px;
        gap: 12px;
        min-height: 90px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .feature-title {
        font-size: 0.8rem;
    }
    
    .feature-desc {
        font-size: 0.6rem;
    }
}

/* 报表页面样式 */




/* 帮助页面样式 */
.faq-item {
    background-color: #fff8f0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border-left: 4px solid #ff9800;
}

.faq-question {
    padding: 15px;
    background-color: #fff3e0;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    font-size: 12px;
    display: grid;                 /* 关键 1 */
    grid-template-rows: 0fr;       /* 关键 2：收起时高度 0 */
    transition: grid-template-rows .3s ease;
    padding: 0 15px;               /* 水平留白，垂直先 0 */
    overflow: hidden;
}
/* 关键：让子元素愿意被压缩到 0 */
.faq-answer > * {
    overflow: hidden;
    min-height: 0;      /* 加这一句即可 */
}
/* 展开状态 */
.faq-item.active .faq-answer {
    grid-template-rows: 1fr;       /* 关键 3：高度 = 内容自然高 */
    padding: 15px;                 /* 展开后再给上下留白 */
}

/* 我的页面样式 */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-right: 20px;
    border: 3px solid #ffcc80;
}

.user-info h3 {
    color: #ff9800;
    margin-bottom: 5px;
}

.user-info p {
    color: #666;
}

.menu-list {
    margin-top: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff8f0;
    margin-bottom: 10px;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background-color: #ffcc80;
    transform: translateX(5px);
}

.menu-item i {
    margin-right: 15px;
    color: #ff9800;
    width: 24px;
    text-align: center;
}

/* 全屏遮罩层 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* 全屏对话框内容 */
.modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
    animation: slideIn 0.3s ease;
}
/* 新增：模态框头部 */
.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
    padding: 0 10px;
    max-width: 800px;
    margin: 0 auto 0px;
    width: 100%;
    position: relative;
   /* height: 50px; /* 添加固定高度确保标题行高度一致 */
}
/* 对话框标题 */
.modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a3c6c;
     margin: 0; /* 移除原有margin-bottom */
    text-align: center;
}
/* 关闭按钮绝对定位到右边 */
.modal-close-button {
    position: absolute;
    right: 10px;
    top: 20%; /* 垂直居中 */
    transform: translateY(-50%); /* 调整垂直位置 */
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0; /* 确保没有外边距影响 */
}
.modal-close-button:hover {
    background-color: #f5f5f5;
    color: #333;
}
/* 对话框内容 */
.modal-content {
    flex: 1;
    overflow-y: auto;
    color: #000000;
    line-height: 1.5;
    font-size: 14px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 10px;
}

.modal-content p {
    margin-bottom: 6px;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(44, 111, 187, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 111, 187, 0.5);
}

/* 对话框底部 */
.modal-footer {
    padding: 20px 20px 60px;
    text-align: center;
}

/* 同意按钮 – 橙色版 */
.agree-button {
    background: linear-gradient(135deg, #ff9a44 0%, #ff6f00 100%); /* 橙→深橙 */
    color: white;
    border: none;
    padding: 12px 48px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all .3s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(255, 111, 0, .30); /* 橙色阴影 */
    position: relative;
    overflow: hidden;
}

.agree-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, .40);
}

.agree-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 111, 0, .35);
}

/* 光泽条保持白色半透明，无需改动 */
.agree-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, .3);
    transform: rotate(25deg);
    transition: all .7s;
}

.agree-button:hover::after {
    left: 120%;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-dialog {
        padding: 24px;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .modal-content {
        font-size: 15px;
    }

    .agree-button {
        padding: 14px 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        padding: 20px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-content {
        font-size: 14px;
    }

    .agree-button {
        padding: 12px 32px;
        font-size: 15px;
    }
}

 /* 隐私协议基础表格样式 */
 .table-container {
    font-size: 0.6em;
    width: 100%;
    overflow-x: auto;
    position: relative;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch; /* 优化移动端滚动 */
}

.permissions-table {
    width: 100%;
    min-width: 800px; /* 确保表格最小宽度 */
    border-collapse: collapse;
    font-family: sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
 .permissions-table thead th {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.permissions-table tbody td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    vertical-align: top;
}
.permissions-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.permissions-table tbody tr:hover {
    background-color: #f1f1f1;
}

.platform-tag {
    display: inline-block;
    background: #e0e0e0;
    padding: 2px 5px;
    margin: 2px;
    border-radius: 3px;
    /*font-size: 0.8em;*/
    white-space: nowrap;
}
/* 滚动条样式 */
 .table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 滚动提示 */
.scroll-hint {
    text-align: center;
    color: #666;
    font-size: 0.5em;
    margin-top: 5px;
    display: none;
}

@media (max-width: 768px) {
    .scroll-hint {
        display: block;
    }
}

/* 去登录按钮样式 */
.login-trigger {
    /*margin: 20px auto;*/
    display: block;
}

.login-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, #ff9800, #ffb74d);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.login-btn:hover {
    background: linear-gradient(to right, #f57c00, #ff9800);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

/* 对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.dialog-content {
    background-color: white;
    border-radius: 15px;
    width: 98%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: dialogFadeIn 0.3s ease-out;
}

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

.dialog-header {
    background: linear-gradient(to right, #ff9800, #ffb74d);
    padding: 20px;
    color: white;
    text-align: center;
}

.dialog-body {
    padding: 0px;
}

/* 表单样式 */
.auth-form {
    border-radius: 10px;
    padding: 20px;
}

.form-group {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    margin-bottom: 20px;
    gap: 8px 15px;
}

.form-label {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    color: #666;
    font-weight: 500;
    text-align: right;
}
.input-wrapper {
    grid-column: 2;
    grid-row: 1;
}
    /* 错误样式 */
 .error {
    grid-column: 2;
    grid-row: 2;
    color: #f44336;
    font-size: 12px;
    margin-top: 0;
    display: none;
}
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}
.form-input.error-input {
    border-color: #f44336;
    background-color: #fff5f5;
}

/* 对话框按钮区域 */
.dialog-actions {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 3px 20px 10px;
    border-top: 1px solid #eee;
}

.dialog-actions .dialog-btn {
    flex: 1;
    min-width: 100px;
}
.dialog-btn {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(to right, #ff9800, #ffb74d);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.dialog-btn:hover {
    background: linear-gradient(to right, #f57c00, #ff9800);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.dialog-btn-secondary {
    background: linear-gradient(to right, #6c757d, #868e96);
}

.dialog-btn-secondary:hover {
    background: linear-gradient(to right, #545b62, #6c757d);
}



/* 底部导航栏 - 固定在屏幕底部 */
.bottom-nav {
    display: flex;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    /* 固定在底部 */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 60px;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    color: #888;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-item.active {
    color: #ff9800;
    border-top-color: #ff9800;
    background-color: #fff8f0;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
    display: block;
}

.nav-item:hover {
    color: #ff9800;
}

/* 响应式调整 */
@media (max-width: 400px) {
    
    .nav-item {
        font-size: 11px;
        padding: 8px 2px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
}

/* 消息提示 */
.message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

 /*通知列表       */
 /* 手风琴式消息列表样式 */
.unread-badge {
    background-color: #ff4d4f;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

.message-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.message-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.message-item:hover {
    background-color: #fafafa;
}

.message-item.active {
    background-color: #e6f7ff;
}

.message-item.unread {
    background-color: #fff7e6;
}

.message-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-system { background: #1890ff; color: white; }
.icon-notice { background: #52c41a; color: white; }
.icon-alert { background: #faad14; color: white; }
.icon-reminder { background: #722ed1; color: white; }

.message-info {
    flex: 1;
    min-width: 0;
}

.message-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-preview {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 手风琴展开图标 */
.message-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #999;
}

.message-item.active .message-arrow {
    transform: rotate(180deg);
    color: #1890ff;
}

/* ==================== 消息详情区域（优化版） ==================== */

/* 消息详情容器 */
.message-detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease 0.1s,
                padding 0.3s ease;
    opacity: 0;
    background: linear-gradient(to bottom, #fafcff, #ffffff);
    border-radius: 0 0 8px 8px;
    margin: 0 -16px -16px;
    padding: 0 24px;
}

.message-item.active .message-detail-content {
    max-height: 1200px;
    opacity: 1;
    padding: 24px 24px 20px;
    margin-top: 16px;
    border-top: 1px solid #e8f4ff;
    box-shadow: inset 0 2px 10px rgba(24, 144, 255, 0.05);
}

/* 详情头部 - 重新设计 */
.detail-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f5ff;
    position: relative;
}

.detail-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #1890ff, #69c0ff);
    border-radius: 1px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2c4c;
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

/* 类型徽章优化 */
.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.type-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.type-system { 
    background: linear-gradient(135deg, #e6f7ff, #bae7ff); 
    color: #096dd9;
    border: 1px solid #91d5ff;
}
.type-system::before { background: #096dd9; }

.type-notice { 
    background: linear-gradient(135deg, #f6ffed, #d9f7be); 
    color: #389e0d;
    border: 1px solid #b7eb8f;
}
.type-notice::before { background: #389e0d; }

.type-alert { 
    background: linear-gradient(135deg, #fff7e6, #ffd591); 
    color: #d46b08;
    border: 1px solid #ffc069;
}
.type-alert::before { background: #d46b08; }

.type-reminder { 
    background: linear-gradient(135deg, #f9f0ff, #d3adf7); 
    color: #531dab;
    border: 1px solid #adc6ff;
}
.type-reminder::before { background: #531dab; }

/* 时间标签 */
.time-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8c8c8c;
    font-size: 13px;
    background: #fafafa;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.time-tag::before {
    content: '⏱️';
    font-size: 12px;
}

/* 详情内容区域优化 */
.detail-content {
    line-height: 1.8;
    color: #434343;
    font-size: 14px;
    
    /* 改为 normal，不保留任何换行符 */
    white-space: normal;
    
    word-wrap: break-word;
    word-break: break-word;  /* 添加这个，确保单词和长文本换行 */
    margin-bottom: 6px;
    min-height: 20px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #1890ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-indent: 2em; 
}

/* 额外信息区域 */
.detail-extra {
    background: linear-gradient(to right, #fafcff, #f6f9ff);
    padding: 18px;
    border-radius: 8px;
    border-left: 4px solid #52c41a;
    margin-bottom: 6px;
    box-shadow: 0 2px 12px rgba(82, 196, 26, 0.08);
}

.extra-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d2c4c;
    font-size: 14px;
}

.extra-title::before {
    content: '📌';
    font-size: 14px;
}

.extra-content {
    font-size: 14px;
    color: #595959;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

/* 元信息网格优化 */
.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3px;
    margin-bottom: 6px;
    padding: 6px;
    background: linear-gradient(135deg, #fafcff, #f0f5ff);
    border-radius: 8px;
    border: 1px solid #f0f5ff;
}

.detail-meta-item {
    display: flex;
    align-items: center;  /* 垂直居中 */
    gap: 12px;           /* 标签和值之间的间距 */
    margin-bottom: 0px;  /* 每个元信息项之间的间距 */
}

.detail-meta-label {
    min-width: 80px;     /* 给标签设置最小宽度，对齐美观 */
    color: #8c8c8c;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-meta-label::before {
    content: '•';
    color: #1890ff;
    font-size: 16px;
}

.detail-meta-value {
    color: #1d2c4c;
    font-weight: 500;
    font-size: 14px;
    flex: 0.5;  /* 值占据剩余空间 */
    padding-left: 0;  /* 移除之前的左边距 */
}

/* 操作按钮区域优化 */
.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    /*padding-top: 20px;*/
    border-top: 1px solid #f0f5ff;
    margin-top: 0px;
}

.detail-btn {
    min-width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-btn::before {
    font-size: 14px;
}

.detail-btn-primary {
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: white;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.detail-btn-primary::before {
    content: '✅';
}

.detail-btn-secondary {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    color: #434343;
    border: 1px solid #d9d9d9;
}

.detail-btn-secondary::before {
    content: '✏️';
}

.detail-btn-danger {
    background: linear-gradient(135deg, #ff4d4f, #d9363e);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.detail-btn-danger::before {
    content: '🗑️';
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 未读小红点 */
.unread-dot {
    width: 8px;
    height: 8px;
    background: #ff4d4f;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 动画优化 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item.active .message-detail-content > * {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

.message-item.active .message-detail-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.message-item.active .message-detail-content > *:nth-child(3) {
    animation-delay: 0.3s;
}

.message-item.active .message-detail-content > *:nth-child(4) {
    animation-delay: 0.4s;
}
