* { margin: 0; padding: 0; box-sizing: border-box; }

/* 禁止文本选择（不影响 iframe 内部） */
body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
/* 允许输入框、文本域等正常选择 */
input, textarea, select, [contenteditable] {
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}
/* 确保 iframe 不受影响 */
iframe {
    user-select: auto;
}

html, body { height: 100%; }
body.main-page { overflow: hidden; }
body { font-family: "Microsoft YaHei", sans-serif; background: #f5f5f5; }

/* ========== 登录页面 ========== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-logo { margin-bottom: 30px; }
.login-logo i {
    font-size: 50px;
    color: #34495e;
    margin-bottom: 15px;
    display: block;
}
.login-logo h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 限制在登录卡片内的表单样式 */
.login-box .form-group {
    text-align: left;
    margin-bottom: 20px;
}
.login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}
.login-box .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}
.login-box .form-group input:focus {
    border-color: #34495e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.15);
}

.login-box .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}
.login-box .remember-me input {
    width: auto;
    margin: 0;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .login-box { padding: 30px 20px; max-width: 90%; }
    .login-logo i { font-size: 40px; }
    .login-logo h1 { font-size: 24px; }
    .login-box .form-group input { padding: 10px 12px; font-size: 14px; }
    .login-btn { padding: 12px; font-size: 14px; }
}

/* ========== 顶部导航 ========== */
.top-nav { 
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ecf0f1; display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; height: 49px; position: relative; z-index: 30;
}
.nav-list { list-style: none; display: flex; flex-wrap: nowrap; }
.nav-item { position: relative; margin: 0 2px; display: flex; align-items: center; height: 49px; }
.nav-link {
    display: block; padding: 0 11px; line-height: 35px; color: #ecf0f1; text-decoration: none;
    background: rgba(255,255,255,0.12); border-radius: 8px; transition: background 0.25s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 35px;
    box-sizing: border-box;
}
.nav-link:hover { background: rgba(255,255,255,0.3); }

.nav-item.active > .nav-link {
    background: #4DABF7;
}

.sub-nav {
    display: block;
    position: absolute;
    top: 46px;
    left: 0;
    background: #FFFFFF;
    list-style: none;
    min-width: 120px;
    width: 200px;
    white-space: nowrap;
    z-index: 100;
    border-radius: 8px;
    max-height: 370px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #8B8B8B transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}
.sub-nav::-webkit-scrollbar { width: 6px; }
.sub-nav::-webkit-scrollbar-track { background: transparent; }
.sub-nav::-webkit-scrollbar-thumb { background: #8B8B8B; border-radius: 3px; }
.sub-nav::-webkit-scrollbar-thumb:hover { background: #6B6B6B; }

.nav-item:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-nav li a {
    display: block;
    padding: 10px 15px;
    color: #404b59;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}
.sub-nav li a:hover { background: #F1F5F9; padding-left: 19px; padding-right: 11px; }

.user-info { display: flex; align-items: center; gap: 10px; margin-left: 22px; }
.avatar-circle {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 50%; background: #4DABF7; color: #ecf0f1; font-weight: bold; font-size: 16px;
    margin-right: 3px; user-select: none;
}
.user-nickname { color: #ecf0f1; font-size: 14px; margin-right: 6px; white-space: nowrap; }
.logout-btn {
    display: inline-flex; align-items: center; gap: 4px; padding: 0 11px; line-height: 35px; color: #ecf0f1;
    text-decoration: none; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px; font-size: 14px; transition: background 0.25s, border-color 0.25s;
    white-space: nowrap;
    overflow: hidden;
    height: 35px;
    box-sizing: border-box;
}
.logout-btn:hover { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.5); }

/* ========== 公告栏 ========== */
.announcement-bar {
    background: #EEEEEE; border-bottom: 1px solid #e0e0e0; padding: 0 20px;
    display: flex; align-items: center; height: 45px; flex-wrap: nowrap; position: relative;
}
.current-location { font-size: 14px; color: #333; white-space: nowrap; margin-right: 20px; font-weight: bold; }
.announcement-text {
    padding: 6px 80px 6px 12px;   /* 右侧留白更大，尾部渐变更长 */
    font-size: 13px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}
.announcement-icon { margin-right: 6px; font-size: 14px; }

/* ========== 内容区域 ========== */
.main-content { height: calc(100vh - 94px); position: relative; overflow: hidden; padding: 0; }
.main-content iframe { width: 100%; height: 100%; border: none; position: absolute; top: 0; left: 0; }

/* ========== 后台公共 ========== */
.admin-container { padding: 20px; height: calc(100vh - 20px); overflow-y: auto; box-sizing: border-box; }
.admin-nav { margin-bottom: 20px; } .admin-nav a { margin-right: 15px; color: #2980b9; }

/* ========== 后台表格优化 ========== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
}
table th {
    background: #ecf0f1;
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    height: 40px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-container table th:nth-child(1),
.admin-container table td:nth-child(1) { /* width: 160px; */ }
.admin-container table th:nth-child(2),
.admin-container table td:nth-child(2) { /* width: 200px; */ }
.admin-container table th:nth-child(3),
.admin-container table td:nth-child(3) { /* width: 60px; */ }
.admin-container table th:nth-child(4),
.admin-container table td:nth-child(4) { /* width: 70px; */ }
.admin-container table th:nth-child(5),
.admin-container table td:nth-child(5) { /* width: 100px; */ }
.admin-container table th:nth-child(6),
.admin-container table td:nth-child(6) { /* width: 130px; */ }

.btn { padding: 6px 12px; border: none; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary { background: #3498db; color: #fff; } .btn-danger { background: #e74c3c; color: #fff; }
.form-group { margin-bottom: 15px; } .form-group label { display: inline-block; margin-bottom: 5px; }
input, textarea, select { padding: 6px 10px; border: 1px solid #ccc; border-radius: 3px; }

.nav-left { display: flex; align-items: center; }
.site-title { font-size: 18px; font-weight: bold; color: #4DABF7; margin-right: 30px; white-space: nowrap; }
.nav-icon { margin-right: 9px; }
.nav-link .nav-icon { margin-right: 6px; }

/* ========== 弹窗样式 ========== */
.popup-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); z-index:9999; display:flex; justify-content:center; align-items:center; }
.popup-modal { background:#fff; border-radius:16px; width:95%; max-width:800px; max-height:85vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,0.3); animation:slideUp 0.4s ease; }
.popup-header { 
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color:#fff; padding:18px 20px; position:relative; flex-shrink:0; text-align:center;
}
.popup-header-icon { font-size:32px; margin-bottom:5px; color:#ecf0f1; }
.popup-header h2 { margin:0; font-size:18px; font-weight:700; }
.popup-close { position:absolute; top:12px; right:12px; background:rgba(255,255,255,0.2); border:1px solid rgba(255,255,255,0.3); color:#fff; width:32px; height:32px; border-radius:50%; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; transition:all 0.3s; }
.popup-close:hover { background:rgba(255,255,255,0.3); transform:rotate(90deg); }
.popup-body { flex:1; overflow-y:auto; padding:20px; background:#f8fafc; }
.popup-footer { background:#f8fafc; border-top:1px solid #e2e8f0; padding:15px 20px; text-align:center; flex-shrink:0; }
.popup-section { margin-bottom:25px; }
.section-title { font-size:16px; color:#1e3c72; margin:0 0 12px 0; padding-bottom:6px; border-bottom:2px solid rgba(30,60,114,0.1); display:flex; align-items:center; }
.section-title i { margin-right:8px; color:#f59e0b; }
.guide-section { background:#e7f5ff; border-left:4px solid #4dabf7; border-radius:8px; padding:15px; }
.step-item { display:flex; align-items:flex-start; margin-bottom:12px; }
.step-num { background:#4dabf7; color:#fff; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:bold; margin-right:10px; flex-shrink:0; margin-top:2px; }
.step-title { font-weight:600; font-size:13px; color:#1e3c72; margin:0 0 3px; }
.step-desc { font-size:12px; color:#64748b; margin:0 0 6px; }
.btn-wps { background:#4dabf7; color:#fff; padding:5px 12px; border-radius:4px; text-decoration:none; font-size:12px; display:inline-flex; align-items:center; gap:4px; }
.btn-wps:hover { background:#3498db; }
.btn-refresh { background:#10b981; color:#fff; border:none; padding:5px 12px; border-radius:4px; cursor:pointer; font-size:12px; display:inline-flex; align-items:center; gap:4px; }
.btn-refresh:hover { background:#059669; }
.guide-note { background:rgba(77,171,247,0.1); padding:8px; border-radius:4px; font-size:11px; color:#1e3c72; display:flex; align-items:flex-start; margin-top:10px; }
.guide-note i { margin-right:6px; color:#4dabf7; }
.announcement-popup { background:#fff8e1; border-left:4px solid #f59e0b; border-radius:8px; padding:12px; }
.announcement-popup-body { font-size:13px; color:#5d4037; }
.feature-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.feature-card { background:#fff; padding:12px; border-radius:8px; border-left:4px solid; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.feature-icon { font-size:18px; margin-bottom:6px; display:block; }
.feature-card h4 { font-size:14px; color:#1e3c72; margin:0 0 4px; }
.feature-card p { font-size:12px; color:#64748b; margin:0; }
.shortcut-table { width:100%; border-collapse:collapse; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.shortcut-table th { background:#f1f5f9; padding:10px 12px; text-align:left; font-size:13px; color:#1e3c72; }
.shortcut-table td { padding:10px 12px; font-size:12px; border-bottom:1px solid #f1f5f9; color:#475569; }
kbd { background:#f1f5f9; padding:2px 6px; border-radius:4px; font-family:monospace; font-size:11px; }
.popup-more-help { background:#e7f5ff; border-left:4px solid #4dabf7; border-radius:6px; padding:10px; display:flex; align-items:flex-start; gap:8px; font-size:12px; color:#1e3c72; margin-top:15px; }
.btn-popup-close { 
    background:linear-gradient(135deg, #1e3c72, #2a5298);
    color:#fff; border:none; padding:10px 30px; border-radius:6px; font-weight:600; cursor:pointer; transition:all 0.3s; font-size:14px;
}
.btn-popup-close:hover { transform:translateY(-2px); box-shadow:0 10px 20px rgba(30,60,114,0.3); }
@keyframes slideUp { from { transform:translateY(40px); opacity:0; } to { transform:translateY(0); opacity:1; } }

/* ========== 公告栏右侧按钮 ========== */
.admin-config-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #1E5FC7;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    border: 1px solid #1E5FC7;
}
.admin-config-btn:hover { background: #F5F5F5; }

.fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
    white-space: nowrap;
    margin-right: 8px;
    border: 1px solid rgba(0, 0, 0, 0.16);
}
.fullscreen-btn:hover { background: #F5F5F5; }

.mode-btn {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 8px;
    background: #10B981; color: #FFFFFF; text-decoration: none; font-size: 13px;
    transition: background 0.2s; white-space: nowrap; margin-right: 8px; cursor: pointer;
}
.mode-btn:hover { background: #0DA271; }

.main-content iframe { transition: transform 0.3s ease, height 0.3s ease; }

/* ========== 店铺下拉 ========== */
.shop-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    white-space: nowrap;
}
.shop-dropbtn {
    background: rgba(255,255,255,0.12); color: #ecf0f1; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px; padding: 0 15px; line-height: 35px; font-size: inherit; cursor: pointer;
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
    width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.shop-dropbtn:hover { background: rgba(255,255,255,0.3); }
.shop-dropbtn .fa-caret-down { margin-left: auto; }
.shop-dropbtn .fa-store { display: none; }

.shop-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 38px;
    background: #1E3D73;
    width: 160px;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
    max-height: 370px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.shop-dropdown-content::-webkit-scrollbar { width: 6px; }
.shop-dropdown-content::-webkit-scrollbar-track { background: transparent; }
.shop-dropdown-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }
.shop-dropdown-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.5); }
.shop-dropdown-content a {
    color: #ecf0f1; padding: 5px 15px; font-size: 15px; display: block; text-decoration: none; white-space: nowrap;
}
.shop-dropdown-content a:hover { background: rgba(173, 216, 230, 0.35); }
.shop-dropdown-content a.active { }
.show { display: block; }

/* ========== 响应式 ========== */
@media (max-width: 1300px) {
    .shop-dropbtn { width: 130px; }
    .shop-dropdown-content { width: 130px; }
    .site-title { margin-right: 20px; font-size: 16px; }
}
@media (max-width: 1200px) {
    .top-nav { height: 44px; }
    .nav-item { height: 44px; }
    .sub-nav { top: 44px; }
    .announcement-bar { height: 40px; }
    .main-content { height: calc(100vh - 84px); }
    .shop-dropbtn { width: 110px; padding: 0 10px; }
    .shop-dropdown-content { width: 110px; top: 35px; }
}
@media (max-width: 992px) {
    .top-nav { height: 42px; }
    .nav-item { height: 42px; margin: 0 1px; }
    .sub-nav { top: 42px; }
    .announcement-bar { height: auto; min-height: 40px; padding: 5px 15px; flex-wrap: wrap; }
    .main-content { height: calc(100vh - 82px); }
    .nav-link { 
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 35px;
        box-sizing: border-box;
    }
    .site-title { font-size: 15px; margin-right: 10px; }
    .shop-dropbtn { width: 90px; max-width: 90px; font-size: 12px; }
    .shop-dropdown-content { width: 90px; }
    .current-location { font-size: 12px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 768px) {
    .top-nav { height: 38px; padding: 0 10px; }
    .nav-item { height: 38px; }
    .sub-nav { top: 38px; }
    .announcement-bar { padding: 5px 8px; }
    .main-content { height: calc(100vh - 78px); }
    .site-title { display: none; }
    .nav-link { 
        font-size: 0;
        white-space: nowrap;
        overflow: hidden;
        height: 35px;
        box-sizing: border-box;
    }
    .nav-link i { font-size: 14px; }
    .shop-dropbtn { width: 78px; padding: 0 6px; font-size: 0; }
    .shop-dropbtn i { font-size: 14px; }
    .shop-dropdown-content { width: 78px; }
    .user-nickname { display: none; }
    .current-location { display: none; }
    .avatar-circle { width: 30px; height: 30px; font-size: 14px; }
    .logout-btn { 
        font-size: 0;
        white-space: nowrap;
        overflow: hidden;
        height: 35px;
        box-sizing: border-box;
    }
    .logout-btn i { font-size: 14px; }
}

/* ========== 会话超时弹窗新样式 ========== */
.session-timeout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}
.session-timeout-modal {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.timeout-icon { font-size: 60px; margin-bottom: 20px; color: #ff6b6b; }
.timeout-title { font-size: 28px; margin-bottom: 15px; font-weight: 700; }
.timeout-message { font-size: 16px; margin-bottom: 30px; line-height: 1.5; opacity: 0.9; }
.refresh-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.refresh-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4); }
.refresh-btn i { font-size: 14px; }

/* ========== 悬停提示框 ========== */
.tooltip-box {
    position: fixed;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #333;
    z-index: 9999;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tooltip-box::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0,0,0,0.15) transparent;
}
.tooltip-box::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* ========== 公告栏多主题渐变配色（更长的尾部渐变） ========== */
.announcement-text.ann-theme-yellow {
    background: linear-gradient(to right, #fff3cd 0%, #fff3cd 35%, rgba(255,243,205,0.6) 65%, rgba(255,243,205,0.2) 88%, transparent 100%);
    color: #856404;
    border-left: 4px solid #d39e00;
}
.announcement-text.ann-theme-blue {
    background: linear-gradient(to right, #d1ecf1 0%, #d1ecf1 35%, rgba(209,236,241,0.6) 65%, rgba(209,236,241,0.2) 88%, transparent 100%);
    color: #0c5460;
    border-left: 4px solid #0b4e5a;
}
.announcement-text.ann-theme-green {
    background: linear-gradient(to right, #d4edda 0%, #d4edda 35%, rgba(212,237,218,0.6) 65%, rgba(212,237,218,0.2) 88%, transparent 100%);
    color: #155724;
    border-left: 4px solid #0b3e0d;
}
.announcement-text.ann-theme-red {
    background: linear-gradient(to right, #f8d7da 0%, #f8d7da 35%, rgba(248,215,218,0.6) 65%, rgba(248,215,218,0.2) 88%, transparent 100%);
    color: #721c24;
    border-left: 4px solid #5a0d14;
}
.announcement-text.ann-theme-dark {
    background: linear-gradient(to right, #343a40 0%, #343a40 35%, rgba(52,58,64,0.6) 65%, rgba(52,58,64,0.2) 88%, transparent 100%);
    color: #f8f9fa;
    border-left: 4px solid #adb5bd;
}
.announcement-text.ann-theme-purple {
    background: linear-gradient(to right, #6f42c1 0%, #6f42c1 35%, rgba(111,66,193,0.6) 65%, rgba(111,66,193,0.2) 88%, transparent 100%);
    color: #fff;
    border-left: 4px solid #4a1e82;
}
.announcement-text.ann-theme-teal {
    background: linear-gradient(to right, #20c997 0%, #20c997 35%, rgba(32,201,151,0.6) 65%, rgba(32,201,151,0.2) 88%, transparent 100%);
    color: #fff;
    border-left: 4px solid #0b4c4c;
}
.announcement-text.ann-theme-orange {
    background: linear-gradient(to right, #fd7e14 0%, #fd7e14 35%, rgba(253,126,20,0.6) 65%, rgba(253,126,20,0.2) 88%, transparent 100%);
    color: #fff;
    border-left: 4px solid #b54a00;
}
.announcement-text.ann-theme-cyan {
    background: linear-gradient(to right, #17a2b8 0%, #17a2b8 35%, rgba(23,162,184,0.6) 65%, rgba(23,162,184,0.2) 88%, transparent 100%);
    color: #fff;
    border-left: 4px solid #0c4a54;
}

/* 新增：深蓝主题（与导航栏色调一致） */
.announcement-text.ann-theme-navy {
    background: linear-gradient(to right, #1e3c72 0%, #1e3c72 35%, rgba(30,60,114,0.6) 65%, rgba(30,60,114,0.2) 88%, transparent 100%);
    color: #ffffff;
    border-left: 4px solid #4DABF7;
}

/* 喇叭图标颜色随主题文字 */
.announcement-text .fa-bullhorn {
    color: inherit;
}


/* ========== 使用引导（优化后） ========== */
.tutorial-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    pointer-events: auto;        /* 阻止与背景页面交互 */
}
/* 全屏遮罩，使用 mask 实现镂空 */
.tutorial-mask-full {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(0.2px);
    z-index: 9999;
    pointer-events: none;   /* 让点击穿透到下层按钮 */
}
.guide-highlight {
    position: absolute;
    border: 2px dashed #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
    z-index: 10001;
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 8px rgba(255,255,255,0.25); }
    50% { box-shadow: 0 0 0 14px rgba(255,255,255,0.1); }
    100% { box-shadow: 0 0 0 8px rgba(255,255,255,0.25); }
}
.guide-card {
    position: absolute;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 30px 24px;       /* 加大内边距 */
    width: 400px;                  /* 卡片更宽 */
    max-width: 90vw;               /* 防止小屏幕溢出 */
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 10002;
    transition: all 0.35s ease;
}
.guide-step-badge {
    display: inline-block;
    background: #4DABF7;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.guide-card h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}
.guide-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}
.guide-steps-row {
    display: flex; align-items: center; justify-content: space-between;
}
.guide-dots { display: flex; gap: 6px; }
.guide-dots span {
    width: 8px; height: 8px; border-radius: 50%; background: #d0d0d0; transition: background 0.3s;
}
.guide-dots span.active { background: #4DABF7; }
.guide-dots span.done { background: #8CCCF7; }
.btn-row {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.btn-guide {
    padding: 8px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; border: none; font-weight: 500; transition: all 0.2s; white-space: nowrap;
}
.btn-guide.primary { background: #4DABF7; color: #fff; }
.btn-guide.primary:hover { background: #3598d7; }
.btn-guide.secondary { background: #e9ecef; color: #555; }
.btn-guide.secondary:hover { background: #dde1e5; }
.btn-guide.warning { background: #f39c12; color: #fff; }
.btn-guide.warning:hover { background: #e67e22; }
.guide-checkbox-row {
    display: flex; align-items: center; gap: 6px; font-size: 14px; color: #666; cursor: pointer;
}
.guide-checkbox-row input { margin: 0; }
.guide-arrow {
    position: absolute; width: 0; height: 0;
    border-left: 10px solid transparent; border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff;
}

/* 使用引导主标题（仅步骤1显示） */
.guide-main-title {
    font-size: 24px;
    font-weight: bold;
    color: #4DABF7;
    margin-bottom: 12px;
    text-align: center;
}

/* 子导航选中高亮 */
.sub-nav li a.active {
    background: #E6F2FF;
    color: #1e3c72;     /* 深色文字保证可读 */
}

/* 店铺下拉列表选中高亮 */
.shop-dropdown-content a.active {
    background: #1967D2 !important;
    color: #ffffff !important;
}

/* 历史导航按钮禁用状态 */
.history-nav-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

#newWindowBtn {
    margin-right: 8px;
}

/* AI智能按钮下拉面板 - 透明背景，按钮式入口 */
.ai-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ai-dropdown-content {
    display: none;
    position: absolute;
    left: 50%;                  /* 改为左边缘定位到父容器中点 */
    transform: translateX(-50%); /* 再向左平移自身宽度的一半，实现居中 */
    top: 34px;
    background: transparent;
    z-index: 1000;
    padding: 4px 0;
    flex-direction: column;
    gap: 6px;
}

.ai-dropdown-content.show {
    display: flex;
}

.ai-entry {
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 10px;             /* 圆角矩形按钮 */
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 13px;
    background: #ffffff;             /* 按钮白底 */
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ai-entry:hover {
    background: #f0f4ff;
    border-color: #4d6bfe;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    transform: translateY(-1px);
}

.ai-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.ai-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}