/**
 * 网址导航 - 样式
 * @file /plugins/web_nav/assets/css/nav.css
 */

/* ============================================================
   1. 基础容器
   ============================================================ */
.web-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ============================================================
   2. Hero 区（顶部搜索）
   ============================================================ */
.nav-hero {
    background: linear-gradient(135deg, #2C3E6B 0%, #4a6a9e 100%);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(44, 62, 107, 0.15);
}

.nav-hero-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-hero-subtitle {
    opacity: 0.85;
    font-size: 14px;
    margin: 0 0 24px;
}

.nav-search-box {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.nav-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b8;
    font-size: 16px;
    pointer-events: none;
}

.nav-search-input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.98);
    color: #1a1a2e;
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.nav-search-input:focus {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.nav-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
}

.nav-hero-stats {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 13px;
    opacity: 0.9;
}

.nav-hero-stats strong {
    font-weight: 600;
}

/* ============================================================
   3. 区块
   ============================================================ */
.nav-section {
    margin-bottom: 40px;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-section-badge {
    background: #e7f1ff;
    color: #2C3E6B;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
}

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

/* ============================================================
   4. 分类筛选
   ============================================================ */
.nav-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nav-filter-chip {
    border: 1px solid #e1e5eb;
    background: #fff;
    color: #495057;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    outline: none;
}

.nav-filter-chip:hover {
    border-color: #2C3E6B;
    color: #2C3E6B;
}

.nav-filter-chip.active {
    background: #2C3E6B;
    border-color: #2C3E6B;
    color: #fff;
}

/* ============================================================
   5. 卡片
   ============================================================ */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.nav-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 62, 107, 0.12);
    border-color: #c9d6e8;
}

.nav-card-pending {
    border-color: #ffe4a1;
    background: #fffef8;
}

.nav-card-rejected {
    border-color: #f5c6cb;
    background: #fff8f8;
    opacity: 0.75;
}

.nav-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.nav-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.nav-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-card-icon-letter {
    font-size: 18px;
    font-weight: 700;
    color: #2C3E6B;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-card-body {
    flex: 1;
    min-width: 0;
}

.nav-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.nav-card-desc,
.nav-card-url {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-card-status {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fff3cd;
    color: #856404;
    font-weight: 500;
}

.nav-card-visit {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 11px;
    color: #adb5bd;
}

.nav-card-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-card:hover .nav-card-actions {
    opacity: 1;
}

.nav-card-action {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e1e5eb;
    color: #495057;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
}

.nav-card-action:hover {
    background: #2C3E6B;
    color: #fff;
    border-color: #2C3E6B;
}

.nav-card-action-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
}

/* ============================================================
   6. 按钮
   ============================================================ */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-btn-primary {
    background: #2C3E6B;
    color: #fff;
    border-color: #2C3E6B;
}

.nav-btn-primary:hover {
    background: #1f2d50;
    border-color: #1f2d50;
    color: #fff;
}

.nav-btn-ghost {
    background: transparent;
    color: #495057;
    border-color: #ced4da;
}

.nav-btn-ghost:hover {
    border-color: #2C3E6B;
    color: #2C3E6B;
}

.nav-btn-lg {
    padding: 11px 24px;
    font-size: 14px;
}

.nav-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e1e5eb;
    background: #fff;
    color: #495057;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    margin-right: 4px;
    transition: all 0.15s;
}

.nav-btn-icon:hover {
    border-color: #2C3E6B;
    color: #2C3E6B;
}

.nav-btn-icon-danger:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* ============================================================
   7. 页面头
   ============================================================ */
.nav-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-page-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-page-subtitle {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

.nav-page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   8. 表单
   ============================================================ */
.nav-filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.nav-form {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 720px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-form-group {
    margin-bottom: 20px;
}

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

.nav-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.nav-form-label .required {
    color: #dc3545;
}

.nav-input {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}

.nav-input:focus {
    border-color: #2C3E6B;
    box-shadow: 0 0 0 3px rgba(44, 62, 107, 0.1);
}

.nav-input-lg {
    padding: 12px 16px;
    font-size: 15px;
}

.nav-textarea {
    resize: vertical;
    min-height: 80px;
}

.nav-form-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
}

.nav-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
}

.nav-form-checkbox input {
    cursor: pointer;
}

.nav-form-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
    margin-top: 8px;
}

/* ============================================================
   9. 表格
   ============================================================ */
.nav-table-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.nav-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.nav-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

.nav-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3f5;
    color: #1a1a2e;
    vertical-align: middle;
}

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

.nav-table-empty {
    text-align: center;
    color: #adb5bd;
    padding: 40px 20px !important;
}

.nav-table-empty i {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.nav-table-desc {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.nav-table-link {
    color: #2C3E6B;
    text-decoration: none;
    font-size: 12px;
}

.nav-table-link:hover {
    text-decoration: underline;
}

.nav-icon-letter-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #e7f1ff;
    color: #2C3E6B;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   10. 徽章
   ============================================================ */
.nav-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.nav-badge-success { background: #d4edda; color: #155724; }
.nav-badge-warning { background: #fff3cd; color: #856404; }
.nav-badge-danger  { background: #f8d7da; color: #721c24; }
.nav-badge-default { background: #e9ecef; color: #495057; }

/* ============================================================
   11. 提示
   ============================================================ */
.nav-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-alert-info {
    background: #e7f1ff;
    color: #2C3E6B;
    border: 1px solid #cfe0f7;
}

.nav-alert-danger {
    background: #fff5f5;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================================
   12. 空状态
   ============================================================ */
.nav-empty {
    text-align: center;
    padding: 50px 20px;
    color: #adb5bd;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #e1e5eb;
}

.nav-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    color: #ced4da;
}

.nav-empty p {
    margin: 6px 0;
    font-size: 14px;
}

.nav-empty-hint {
    font-size: 12px !important;
    color: #ced4da !important;
}

.nav-search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #adb5bd;
}

.nav-search-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* ============================================================
   13. 分页
   ============================================================ */
.nav-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.nav-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e1e5eb;
    background: #fff;
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
}

.nav-page-link:hover {
    border-color: #2C3E6B;
    color: #2C3E6B;
}

.nav-page-link.active {
    background: #2C3E6B;
    border-color: #2C3E6B;
    color: #fff;
}

/* ============================================================
   14. 响应式
   ============================================================ */
@media (max-width: 768px) {
    .web-nav-container { padding: 12px; }
    .nav-hero { padding: 24px 20px; }
    .nav-hero-title { font-size: 20px; }
    .nav-cards { grid-template-columns: 1fr; }
    .nav-form-row { grid-template-columns: 1fr; }
    .nav-form { padding: 20px; }
    .nav-hero-stats { gap: 16px; font-size: 12px; }
    .nav-table { font-size: 12px; }
    .nav-table th, .nav-table td { padding: 8px; }
    .nav-page-header { flex-direction: column; }
    .nav-page-actions { width: 100%; }
    .nav-filter-form { padding: 10px; }
}
/* ============================================================
   15. 弹窗
   ============================================================ */
.nav-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.nav-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}
.nav-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}
.nav-modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
}
.nav-modal-body { padding: 20px; }

/* ============================================================
   16. 审核列表
   ============================================================ */
.nav-audit-list { display: flex; flex-direction: column; gap: 12px; }

.nav-audit-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    transition: box-shadow 0.15s;
}
.nav-audit-item:hover { box-shadow: 0 4px 16px rgba(44,62,107,0.08); }

.nav-audit-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.nav-audit-icon img { width: 28px; height: 28px; object-fit: contain; }

.nav-audit-body { flex: 1; min-width: 0; }

.nav-audit-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}
.nav-audit-url { font-size: 12px; margin-bottom: 4px; }
.nav-audit-url a { color: #2C3E6B; text-decoration: none; }
.nav-audit-url a:hover { text-decoration: underline; }
.nav-audit-desc { font-size: 12px; color: #6c757d; margin-bottom: 6px; }

.nav-audit-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #adb5bd;
    flex-wrap: wrap;
}

.nav-audit-actions { display: flex; gap: 8px; flex-shrink: 0; }

.nav-btn-danger {
    color: #dc3545 !important;
    border-color: #f5c6cb !important;
}
.nav-btn-danger:hover {
    background: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

.nav-audit-modal-desc {
    font-size: 14px;
    color: #495057;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ============================================================
   17. 统计图表
   ============================================================ */
.nav-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.nav-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    border-left: 4px solid #2C3E6B;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-stat-number { font-size: 28px; font-weight: 700; color: #1a1a2e; }
.nav-stat-label { font-size: 13px; color: #6c757d; margin-top: 4px; }
.nav-stat-primary { border-left-color: #2C3E6B; }
.nav-stat-info { border-left-color: #17a2b8; }
.nav-stat-success { border-left-color: #28a745; }
.nav-stat-warning { border-left-color: #ffc107; }

.nav-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}
.nav-chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.nav-chart-bar {
    width: 60%;
    background: linear-gradient(180deg, #4a6a9e 0%, #2C3E6B 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.3s;
    min-height: 4px;
}
.nav-chart-value {
    font-size: 12px;
    color: #495057;
    font-weight: 600;
    margin-top: 6px;
}
.nav-chart-label {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 2px;
}

/* 排名徽章 */
.nav-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}
.nav-rank-1 { background: linear-gradient(135deg,#ffd700,#ffb300); }
.nav-rank-2 { background: linear-gradient(135deg,#c0c0c0,#a0a0a0); }
.nav-rank-3 { background: linear-gradient(135deg,#cd7f32,#b8692a); }

/* ============================================================
   18. Fieldset / 标签色块
   ============================================================ */
.nav-fieldset {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px 22px 22px;
    margin-bottom: 24px;
}
.nav-fieldset legend {
    font-size: 14px;
    font-weight: 600;
    color: #2C3E6B;
    padding: 0 8px;
}

.nav-tag-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}
/* ============================================================
   19. 游客提示
   ============================================================ */
.nav-guest-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 24px;
    margin-top: 20px;
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 12px;
    color: #495057;
    font-size: 14px;
    flex-wrap: wrap;
}
.nav-guest-tip i {
    color: #2C3E6B;
    font-size: 18px;
}
.nav-guest-tip .nav-btn {
    margin-left: 6px;
}
/* ============================================================
   20. 游客模式专用样式
   ============================================================ */

/* 游客模式的容器：去掉系统框架后，需要自己的外边距 */
.web-nav-guest {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

/* 游客登录入口（hero 右上角） */
.nav-guest-login {
    position: absolute;
    top: 24px;
    right: 28px;
}
.nav-guest-login .nav-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.nav-guest-login .nav-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* hero 区改为相对定位（用于放登录按钮） */
.nav-hero { position: relative; }

/* 游客页脚 */
.nav-guest-footer {
    text-align: center;
    color: #adb5bd;
    font-size: 12px;
    padding: 30px 0 20px;
    margin-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* 游客模式：卡片数量过多时横排更多 */
@media (min-width: 1200px) {
    .web-nav-guest .nav-cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ============================================================
   21. 游客提示（已登录页底部）
   ============================================================ */
.nav-guest-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 24px;
    margin-top: 20px;
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 12px;
    color: #495057;
    font-size: 14px;
    flex-wrap: wrap;
}
.nav-guest-tip i {
    color: #2C3E6B;
    font-size: 18px;
}
.nav-guest-tip .nav-btn {
    margin-left: 6px;
}
/* ============================================================
   26. 搜索高亮 + 快捷键提示
   ============================================================ */
.nav-mark {
    background: linear-gradient(180deg, transparent 60%, #ffe066 60%);
    color: inherit;
    padding: 0 1px;
    font-weight: 600;
    border-radius: 2px;
}

.nav-search-box::after {
    content: 'Ctrl K';
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #adb5bd;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-search-input:focus ~ .nav-search-hint,
.nav-search-box:focus-within::after {
    opacity: 0;
    transition: opacity 0.15s;
}
/* ============================================================
   27. 广告位
   ============================================================ */
.nav-ad-section {
    margin-bottom: 24px;
}
.nav-ad-section-top { margin-top: -8px; }
.nav-ad-section-bottom { margin-top: 32px; }

.nav-ad-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s;
}
.nav-ad-item:hover {
    box-shadow: 0 4px 16px rgba(44,62,107,0.1);
}

/* 图片广告 */
.nav-ad-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.nav-ad-image {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}
.nav-ad-placeholder {
    height: 90px;
    background: linear-gradient(135deg, #e7f1ff 0%, #d0e4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #2C3E6B;
    font-weight: 600;
}
.nav-ad-placeholder i { font-size: 22px; }

.nav-ad-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 22px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
    color: #fff;
}
.nav-ad-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}
.nav-ad-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

/* 优惠券广告 */
.nav-ad-coupon {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d0 100%);
    border-left: 4px solid #ffb300;
}
.nav-ad-coupon-brand {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #ffe4a1;
    font-size: 14px;
    font-weight: 700;
    color: #b8692a;
    overflow: hidden;
}
.nav-ad-coupon-brand img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.nav-ad-coupon-body { flex: 1; min-width: 0; }
.nav-ad-coupon-amount {
    font-size: 18px;
    font-weight: 700;
    color: #d9534f;
    margin-bottom: 2px;
}
.nav-ad-coupon-code {
    font-size: 12px;
    color: #6c757d;
}
.nav-ad-coupon-code code {
    background: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    color: #d9534f;
    font-weight: 600;
}
.nav-ad-coupon-expire {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 2px;
}
.nav-ad-coupon-action {
    font-size: 13px;
    color: #d9534f;
    font-weight: 600;
    white-space: nowrap;
}

/* 文本广告 */
.nav-ad-text {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f0f8ff;
    color: #2C3E6B;
    font-size: 14px;
}
.nav-ad-text i { font-size: 18px; color: #4a6a9e; }

/* HTML 广告 */
.nav-ad-html {
    padding: 16px 20px;
}

/* 移动端 */
@media (max-width: 768px) {
    .nav-ad-image { max-height: 80px; }
    .nav-ad-overlay { padding: 12px 16px; }
    .nav-ad-title { font-size: 14px; }
    .nav-ad-coupon { padding: 12px 14px; gap: 10px; }
    .nav-ad-coupon-brand { width: 40px; height: 40px; }
    .nav-ad-coupon-amount { font-size: 15px; }
    .nav-ad-coupon-action { font-size: 12px; }
}

/* ============================================================
   28. 广告管理后台徽章
   ============================================================ */
.nav-badge-info {
    background: #e7f1ff;
    color: #2C3E6B;
}