/* ============================================================
   地铁LCD屏幕播控管理系统 - 全局样式
   科技感 + 武汉地域轻量化装饰 + 方形按钮
   ============================================================ */
:root {
    --yc-bg: #0a0e1a;
    --yc-bg2: #0f1626;
    --yc-panel: #121b2e;
    --yc-panel2: #16203a;
    --yc-line: #1f2d4a;
    --yc-cyan: #00e5ff;
    --yc-blue: #1e90ff;
    --yc-purple: #6a5cff;
    --yc-text: #d6e2f5;
    --yc-text-dim: #7e8db0;
    --yc-success: #2ee6a8;
    --yc-warn: #ffb648;
    --yc-danger: #ff5a6e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, "Segoe UI", sans-serif;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(0,229,255,.08), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(106,92,255,.10), transparent 55%),
        linear-gradient(160deg, var(--yc-bg) 0%, var(--yc-bg2) 100%);
    color: var(--yc-text);
    min-height: 100vh;
    padding-bottom: 64px;
}

/* 武汉元素轻量装饰: 顶部黄鹤楼剪影线条 */
.yc-topbar {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(90deg, rgba(18,27,46,.95), rgba(15,22,38,.85));
    border-bottom: 1px solid var(--yc-line);
    box-shadow: 0 2px 18px rgba(0,229,255,.05);
    backdrop-filter: blur(6px);
}
.yc-topbar::after {
    /* 黄鹤楼简约剪影装饰 */
    content: "";
    position: absolute;
    right: 28px;
    top: 8px;
    width: 120px;
    height: 44px;
    opacity: .12;
    background:
        linear-gradient(90deg, transparent 46%, var(--yc-cyan) 46%, var(--yc-cyan) 54%, transparent 54%) bottom/100% 2px no-repeat,
        linear-gradient(90deg, transparent 30%, var(--yc-cyan) 30%, var(--yc-cyan) 70%, transparent 70%) bottom 6px/100% 2px no-repeat,
        conic-gradient(from 45deg at 50% 100%, var(--yc-cyan) 0 25%, transparent 0) 50% 0/16px 22px no-repeat,
        conic-gradient(from 135deg at 50% 100%, var(--yc-cyan) 0 25%, transparent 0) 50% 0/16px 22px no-repeat;
    pointer-events: none;
}
.yc-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}
.yc-logo .mark {
    width: 34px; height: 34px;
    border: 2px solid var(--yc-cyan);
    display: grid; place-items: center;
    color: var(--yc-cyan);
    font-size: 18px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(0,229,255,.4) inset, 0 0 8px rgba(0,229,255,.3);
}
.yc-logo .sub { color: var(--yc-text-dim); font-size: 12px; font-weight: 400; }
.yc-topbar .user {
    margin-left: auto;
    color: var(--yc-text-dim);
    font-size: 13px;
    display: flex; align-items: center; gap: 14px;
}

/* 布局 */
.yc-layout { display: flex; min-height: calc(100vh - 60px - 64px); }
.yc-side {
    width: 220px;
    flex: 0 0 220px;
    background: var(--yc-panel);
    border-right: 1px solid var(--yc-line);
    padding: 16px 12px;
}
.yc-side a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    color: var(--yc-text-dim);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 4px;
    border-left: 3px solid transparent;
    transition: .15s;
}
.yc-side a:hover { background: var(--yc-panel2); color: var(--yc-text); }
.yc-side a.active {
    background: linear-gradient(90deg, rgba(0,229,255,.12), transparent);
    color: var(--yc-cyan);
    border-left-color: var(--yc-cyan);
}
.yc-side .nav-ico { width: 18px; text-align: center; }
.yc-side .grp { color: var(--yc-text-dim); font-size: 11px; padding: 14px 14px 6px; letter-spacing: 1px; }

.yc-main { flex: 1; padding: 22px 26px; overflow: auto; }

/* 页面标题 */
.yc-page-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.yc-page-title h2 { font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.yc-page-title h2::before {
    content: ""; display: inline-block; width: 4px; height: 18px;
    background: linear-gradient(var(--yc-cyan), var(--yc-blue)); margin-right: 10px;
    vertical-align: -3px; border-radius: 2px;
}

/* 卡片 / 面板 */
.yc-card {
    background: var(--yc-panel);
    border: 1px solid var(--yc-line);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}
.yc-card h3 { font-size: 15px; margin-bottom: 14px; color: var(--yc-text); font-weight: 600; }

/* 方形按钮统一风格 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--yc-line);
    background: var(--yc-panel2);
    color: var(--yc-text);
    border-radius: 4px;       /* 方形象征, 仅微圆角 */
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: .15s;
    letter-spacing: .5px;
    min-width: 64px;
}
.btn:hover { border-color: var(--yc-cyan); color: var(--yc-cyan); box-shadow: 0 0 10px rgba(0,229,255,.2); }
.btn.primary { background: linear-gradient(135deg, var(--yc-blue), var(--yc-cyan)); color: #04121f; border-color: transparent; font-weight: 600; }
.btn.primary:hover { box-shadow: 0 0 16px rgba(0,229,255,.5); color: #04121f; }
.btn.success { border-color: var(--yc-success); color: var(--yc-success); }
.btn.warn { border-color: var(--yc-warn); color: var(--yc-warn); }
.btn.danger { border-color: var(--yc-danger); color: var(--yc-danger); }
.btn.sm { padding: 5px 10px; font-size: 12px; min-width: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 表单 */
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 13px; color: var(--yc-text-dim); margin-bottom: 6px; }
.fld input[type=text], .fld input[type=number], .fld input[type=password], .fld textarea, .fld select {
    width: 100%; padding: 9px 12px;
    background: var(--yc-bg2);
    border: 1px solid var(--yc-line);
    color: var(--yc-text);
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--yc-cyan); box-shadow: 0 0 8px rgba(0,229,255,.25); }
.fld textarea { resize: vertical; min-height: 80px; }
.fld .hint { font-size: 11px; color: var(--yc-text-dim); margin-top: 4px; }

/* 表格 */
table.yc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.yc-table th, table.yc-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--yc-line); }
table.yc-table th { color: var(--yc-text-dim); font-weight: 500; background: var(--yc-panel2); }
table.yc-table tr:hover td { background: rgba(0,229,255,.03); }
.table-wrap { overflow-x: auto; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; font-size: 11px; border-radius: 3px; border: 1px solid var(--yc-line); color: var(--yc-text-dim); }
.tag.ok { color: var(--yc-success); border-color: var(--yc-success); }
.tag.arch { color: var(--yc-warn); border-color: var(--yc-warn); }

/* 搜索栏 */
.yc-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.yc-toolbar .fld { margin-bottom: 0; }
.yc-toolbar .grow { flex: 1; min-width: 180px; }

/* 弹窗 */
.modal-mask {
    position: fixed; inset: 0; background: rgba(4,8,16,.7);
    display: none; align-items: center; justify-content: center; z-index: 100;
    backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.modal {
    width: 560px; max-width: 92vw; max-height: 86vh; overflow: auto;
    background: var(--yc-panel); border: 1px solid var(--yc-line);
    border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--yc-line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--yc-line); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { cursor: pointer; color: var(--yc-text-dim); font-size: 20px; line-height: 1; }
.close-x:hover { color: var(--yc-danger); }

/* 提示信息 */
.alert { padding: 11px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.alert.ok { color: var(--yc-success); border-color: var(--yc-success); background: rgba(46,230,168,.08); }
.alert.err { color: var(--yc-danger); border-color: var(--yc-danger); background: rgba(255,90,110,.08); }

/* 固定版权 */
.yc-footer {
    position: fixed; left: 0; right: 0; bottom: 0; height: 64px;
    background: linear-gradient(90deg, rgba(10,14,26,.96), rgba(15,22,38,.96));
    border-top: 1px solid var(--yc-line);
    display: flex; align-items: center; justify-content: center;
    padding: 0 16px; text-align: center;
    font-size: 12px; color: var(--yc-text-dim); letter-spacing: .3px;
    z-index: 50;
}
.yc-footer b { color: var(--yc-cyan); font-weight: 600; }

/* 网格 */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* 素材缩略 */
.thumb {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border: 1px solid var(--yc-line); border-radius: 4px; background: #000;
}
.thumb-box { position: relative; }
.thumb-box .type-badge {
    position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 2px 6px;
    background: rgba(0,0,0,.6); border-radius: 3px; color: var(--yc-cyan);
}

/* 武汉元素水印 (轻量, 不干扰) */
.wuhan-mark {
    position: fixed; right: 18px; bottom: 74px; width: 90px; height: 90px;
    opacity: .06; pointer-events: none; z-index: 1;
    background:
        radial-gradient(circle at 50% 60%, var(--yc-cyan) 0 3px, transparent 4px),
        conic-gradient(from 45deg at 50% 30%, var(--yc-cyan) 0 25%, transparent 0) 50% 0/20px 30px no-repeat;
}

/* 响应式 */
@media (max-width: 900px) {
    .yc-side { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
