/* ============================================
   数字展馆页面样式
   行业专业标准 - 博物馆/数字展厅设计语言
   ============================================ */

.dm-page {
    position: relative;
    width: 100%;
    height: 100%;
    background: #F5EDE0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'PingFang SC', -apple-system, 'Noto Serif SC', serif;
    color: #2A1F18;
}

/* 状态栏与标题栏颜色完全一致（无任何色差） */
.dm-page .status-bar {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    padding-top: 8px !important;
    height: 44px !important;
    background: #AE100D !important;
    background-image: none !important;
    color: #FFF !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    z-index: 101;
    box-sizing: border-box !important;
}

.dm-page .status-bar::before,
.dm-page .status-bar::after {
    display: none !important;
}

/* ========== 顶部标题栏 ========== */
.dm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    background: #AE100D;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.dm-back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.dm-back-btn i {
    font-weight: 300;
}

.dm-topbar-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Noto Serif SC', 'PingFang SC', serif;
    margin: 0;
}

.dm-topbar-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    opacity: 0;
}

/* ========== 主内容区 ========== */
.dm-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: #F5EDE0;
}

/* ========== Hero 区 ========== */
.dm-hero {
    position: relative;
    padding: 40px 24px 36px;
    background: linear-gradient(135deg, #2A0A0A 0%, #5C0E0E 45%, #8B0A0A 100%);
    color: #F5EDE0;
    overflow: hidden;
    border-bottom: 3px solid #C9A24F;
}

/* 暗纹背景 */
.dm-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(201, 162, 79, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(174, 16, 13, 0.35) 0%, transparent 60%);
    pointer-events: none;
}

/* 几何暗纹 */
.dm-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 49%, rgba(201, 162, 79, 0.06) 49%, rgba(201, 162, 79, 0.06) 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(201, 162, 79, 0.06) 49%, rgba(201, 162, 79, 0.06) 51%, transparent 51%);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}

.dm-hero-inner {
    position: relative;
    z-index: 2;
}

/* 眉标 */
.dm-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 10px;
    letter-spacing: 3px;
    color: #C9A24F;
    font-weight: 500;
}

.dm-hero-eyebrow-line {
    width: 28px;
    height: 1px;
    background: #C9A24F;
}

.dm-hero-eyebrow-text {
    text-transform: uppercase;
}

/* 标题 */
.dm-hero-title {
    font-family: 'Noto Serif SC', 'PingFang SC', serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 4px;
    color: #FFFFFF;
    margin: 0 0 18px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 副标题 */
.dm-hero-subtitle {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(245, 237, 224, 0.85);
    margin: 0 0 28px;
    max-width: 320px;
    letter-spacing: 0.5px;
}

/* 数据统计 */
.dm-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(201, 162, 79, 0.3);
    border-bottom: 1px solid rgba(201, 162, 79, 0.3);
    padding: 16px 0;
    margin-top: 8px;
}

.dm-stat {
    text-align: center;
    border-right: 1px solid rgba(201, 162, 79, 0.2);
    padding: 0 4px;
}

.dm-stat:last-child {
    border-right: none;
}

.dm-stat-value {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 700;
    color: #C9A24F;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.dm-stat-label {
    font-size: 10px;
    color: rgba(245, 237, 224, 0.65);
    letter-spacing: 1.5px;
}

/* 四角装饰 */
.dm-hero-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid #C9A24F;
    z-index: 2;
}

.dm-hero-corner-tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.dm-hero-corner-tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.dm-hero-corner-bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

.dm-hero-corner-br {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* ========== 状态提示条 ========== */
.dm-status-banner {
    margin: 20px 16px 0;
    padding: 18px 18px;
    background: #FFFFFF;
    border: 1px solid #E5DCC8;
    border-left: 3px solid #AE100D;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(42, 31, 24, 0.04);
}

.dm-status-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(174, 16, 13, 0.08);
    color: #AE100D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-status-icon svg {
    width: 22px;
    height: 22px;
}

.dm-status-text {
    flex: 1;
    min-width: 0;
}

.dm-status-title {
    font-size: 15px;
    font-weight: 600;
    color: #2A1F18;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.dm-status-desc {
    font-size: 12px;
    line-height: 1.6;
    color: #7A6A5A;
    margin: 0;
}

/* ========== 通用 section ========== */
.dm-section {
    padding: 32px 16px 24px;
}

.dm-section-head {
    margin-bottom: 22px;
    border-bottom: 1px solid #D9CDB5;
    padding-bottom: 14px;
    position: relative;
}

.dm-section-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: #AE100D;
}

.dm-section-num {
    font-size: 11px;
    color: #AE100D;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
}

.dm-section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 700;
    color: #2A1F18;
    margin: 0 0 4px;
    letter-spacing: 2px;
}

.dm-section-sub {
    font-size: 10px;
    color: #8A7A6A;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

/* ========== 展厅网格 ========== */
.dm-halls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dm-hall-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5DCC8;
    padding: 18px 14px 14px;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.dm-hall-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #AE100D 0%, #C9A24F 100%);
}

.dm-hall-no {
    position: absolute;
    top: 8px;
    right: 12px;
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: 700;
    color: rgba(174, 16, 13, 0.08);
    line-height: 1;
    letter-spacing: 1px;
}

.dm-hall-icon {
    width: 36px;
    height: 36px;
    color: #AE100D;
    margin-bottom: 10px;
}

.dm-hall-icon svg {
    width: 100%;
    height: 100%;
}

.dm-hall-body {
    margin-bottom: 12px;
}

.dm-hall-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    font-weight: 700;
    color: #2A1F18;
    margin: 0 0 2px;
    letter-spacing: 1px;
}

.dm-hall-en {
    font-size: 10px;
    color: #8A7A6A;
    letter-spacing: 1.5px;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.dm-hall-desc {
    font-size: 11px;
    line-height: 1.55;
    color: #5A4A3A;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dm-hall-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #E5DCC8;
    font-size: 10px;
}

.dm-hall-count {
    color: #8A7A6A;
    letter-spacing: 0.5px;
}

.dm-hall-tag {
    color: #AE100D;
    background: rgba(174, 16, 13, 0.08);
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========== Footer ========== */
.dm-footer {
    padding: 28px 16px 40px;
    text-align: center;
}

.dm-footer-divider {
    width: 40px;
    height: 1px;
    background: #C9A24F;
    margin: 0 auto 14px;
}

.dm-footer-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 13px;
    color: #8A7A6A;
    letter-spacing: 6px;
    margin: 0 0 6px;
}

.dm-footer-copy {
    font-size: 10px;
    color: #A99A8A;
    letter-spacing: 1px;
    margin: 0;
}
