/*
 * Weguan Studio theme
 * A lightweight visual skin for the legacy table layout.
 */

:root {
    --wg-ink: #18333a;
    --wg-muted: #6f7d80;
    --wg-panel: rgba(255, 255, 255, 0.78);
    --wg-panel-strong: rgba(255, 255, 255, 0.92);
    --wg-line: rgba(181, 151, 86, 0.42);
    --wg-gold: #b99548;
    --wg-gold-2: #f3dfac;
    --wg-cyan: #6fe9f1;
    --wg-cyan-2: #b9fbff;
    --wg-blue: #123746;
    --wg-shadow: 0 18px 50px rgba(31, 58, 65, 0.18);
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--wg-ink) !important;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(133, 244, 255, 0.58), rgba(133, 244, 255, 0) 26%),
        radial-gradient(circle at 18% 18%, rgba(255, 233, 174, 0.62), rgba(255, 233, 174, 0) 28%),
        radial-gradient(circle at 92% 8%, rgba(82, 214, 225, 0.28), rgba(82, 214, 225, 0) 24%),
        linear-gradient(115deg, rgba(185, 149, 72, 0.13) 1px, transparent 1px),
        linear-gradient(25deg, rgba(93, 219, 226, 0.13) 1px, transparent 1px),
        linear-gradient(180deg, #f9faf7 0%, #edf2f0 55%, #e8ece9 100%) !important;
    background-size: auto, auto, auto, 72px 72px, 96px 96px, auto !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent 0 10%, rgba(185, 149, 72, 0.16) 10.2%, transparent 10.6% 38%, rgba(111, 233, 241, 0.17) 38.2%, transparent 38.7%),
        linear-gradient(0deg, transparent 0 30%, rgba(185, 149, 72, 0.12) 30.1%, transparent 30.5% 67%, rgba(111, 233, 241, 0.12) 67.2%, transparent 67.6%);
    opacity: 0.55;
    mix-blend-mode: multiply;
}

body::after {
    content: "";
    position: fixed;
    left: 50%;
    top: 84px;
    width: min(760px, 90vw);
    height: min(760px, 90vw);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
    border: 1px solid rgba(244, 223, 172, 0.6);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.88),
        0 0 90px rgba(111, 233, 241, 0.34),
        inset 0 0 42px rgba(255, 255, 255, 0.54);
    opacity: 0.55;
}

table,
td,
p,
label,
input,
textarea,
select,
button {
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif !important;
}

a {
    color: #1d6871 !important;
    text-decoration: none !important;
    transition: color .16s ease, text-shadow .16s ease, background .16s ease, border-color .16s ease;
}

a:hover {
    color: #b18431 !important;
    text-decoration: none !important;
    text-shadow: 0 0 12px rgba(111, 233, 241, 0.5);
}

#ta_z {
    border-spacing: 0 !important;
}

.tdtop {
    height: 74px !important;
    border-bottom: 1px solid rgba(185, 149, 72, 0.45) !important;
    background:
        linear-gradient(90deg, rgba(18, 55, 70, 0.95), rgba(32, 80, 90, 0.84) 48%, rgba(223, 193, 112, 0.72)),
        radial-gradient(circle at 48% 100%, rgba(111, 233, 241, 0.42), transparent 34%) !important;
    box-shadow: 0 14px 38px rgba(22, 51, 58, 0.22);
}

.ystop {
    position: relative;
    min-height: 62px;
    padding: 6px 20px !important;
    color: #fffdf4 !important;
    overflow: hidden;
}

.ystop::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 6px;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: url('/images/weguan-logo-circle.png?v=20260712-1') center center / contain no-repeat;
    box-shadow: 0 0 24px rgba(111, 233, 241, .55), 0 0 42px rgba(255, 248, 223, .26);
    filter: drop-shadow(0 6px 14px rgba(18, 55, 70, .22));
}

.ystop::after {
    content: "";
    position: absolute;
    right: 30px;
    top: 14px;
    width: 280px;
    height: 45px;
    background:
        linear-gradient(90deg, transparent, rgba(111, 233, 241, 0.32), transparent),
        repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 18px);
    opacity: 0.75;
}

.ystop h1 {
    margin: 5px 0 0 92px !important;
    color: #fff8df !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(111, 233, 241, 0.55), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ystop p {
    margin: 7px 0 0 94px !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

.ystop a {
    color: #fff8df !important;
    padding: 2px 6px;
    border-radius: 999px;
}

.ystop a:hover {
    color: #75f3ff !important;
    background: rgba(255, 255, 255, 0.12);
}

body > table > tbody > tr:nth-child(2) > td,
#ta_z > tbody > tr:nth-child(2) > td {
    padding: 10px 16px 14px !important;
}

td[style*="border:1px solid #000000"],
td[style*="border:1px solid #000"] {
    border: 1px solid var(--wg-line) !important;
    border-radius: 18px !important;
    overflow: hidden;
    background: var(--wg-panel) !important;
    box-shadow: var(--wg-shadow);
    backdrop-filter: blur(10px);
}

#ysmenu {
    height: 34px !important;
    width: 255px !important;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    background: transparent !important;
}

#ysmenu div,
.ysm0,
.ysm0x,
.ysm1 {
    box-sizing: border-box;
    height: 30px !important;
    min-width: 58px;
    margin: 0 !important;
    padding: 7px 8px 0 !important;
    border: 1px solid rgba(185, 149, 72, 0.42) !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(231, 240, 239, 0.72)) !important;
    color: #214850 !important;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.ysm1 {
    color: #fff8de !important;
    background: linear-gradient(180deg, #d8bd71, #ab7f2b 70%, #8b641f) !important;
    box-shadow: 0 -1px 20px rgba(111, 233, 241, 0.28), inset 0 1px 0 rgba(255,255,255,.62);
}

.ysm0x,
#ysmenu div:hover {
    color: #0b5a62 !important;
    background: linear-gradient(180deg, #ffffff, #e8fbfb) !important;
}

#ysmenu1,
.lynrc,
#dzx,
.yszdyq {
    border: 1px solid rgba(185, 149, 72, 0.38) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,250,248,.78)),
        radial-gradient(circle at 100% 0, rgba(111, 233, 241, .18), transparent 40%) !important;
    box-shadow: 0 14px 32px rgba(29, 66, 75, 0.13);
    backdrop-filter: blur(8px);
}

#ysmenu1 {
    border-radius: 0 14px 14px 14px;
    min-height: 127px !important;
    color: var(--wg-ink) !important;
}

#ysmenu1 p {
    margin: 6px 10px !important;
    line-height: 24px !important;
}

.lynrc {
    border-radius: 16px;
    padding: 8px !important;
    color: var(--wg-ink) !important;
}

.lynrc p {
    padding: 8px 8px 7px;
    margin: 6px 0 !important;
    border: 1px solid rgba(185, 149, 72, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.64) !important;
    box-shadow: inset 3px 0 0 rgba(111, 233, 241, 0.42);
}

.lynrc img {
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(111, 233, 241, 0.42);
}

.ta_wjq {
    height: 42px !important;
    color: #fff8de !important;
    background:
        linear-gradient(90deg, #123746, #1c6871 50%, #b99548),
        radial-gradient(circle at 46% 50%, rgba(111, 233, 241, .46), transparent 28%) !important;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.22);
}

.ta_wjq td {
    padding: 0 14px !important;
    color: #fff8de !important;
    font-weight: 700;
    letter-spacing: .04em;
}

.ta_wjq label,
.ta_wjq a {
    color: #fff08f !important;
}

#dzx {
    box-sizing: border-box;
    height: 100% !important;
    padding: 14px 16px 18px !important;
    border: 0 !important;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.85), rgba(241,248,247,.82)),
        radial-gradient(circle at 12% 0%, rgba(111, 233, 241, .18), transparent 30%),
        radial-gradient(circle at 85% 12%, rgba(245, 213, 142, .22), transparent 34%) !important;
}

#mainMenu {
    padding-top: 0 !important;
}

#menuList {
    margin: 0 !important;
    padding: 0 !important;
}

#menuList li {
    position: relative;
    min-height: 28px;
    margin: 4px 0 !important;
    padding: 6px 8px !important;
    list-style: none !important;
    border: 1px solid rgba(185, 149, 72, 0.20) !important;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 5px 16px rgba(31, 58, 65, 0.07);
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

#menuList li:hover {
    transform: translateY(-1px);
    border-color: rgba(111, 233, 241, 0.66) !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 10px 24px rgba(31, 58, 65, 0.12), 0 0 18px rgba(111, 233, 241, 0.18);
}

#menuList li ul li {
    margin: 4px 0 !important;
    border-left: 2px solid rgba(111, 233, 241, 0.45) !important;
}

#menuList li img {
    width: 22px !important;
    height: 22px !important;
    margin: 0 7px 0 1px !important;
    vertical-align: -6px;
    filter: drop-shadow(0 0 8px rgba(111, 233, 241, .42));
}

#menuList li table {
    margin-top: 8px !important;
    border: 1px solid rgba(185, 149, 72, 0.45) !important;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255,255,255,.8) !important;
    box-shadow: none !important;
}

#menuList li table td.g {
    background-color: #58d6a5 !important;
}

#menuList li table td.r {
    background-color: #dba05a !important;
}

.menu {
    margin-top: 7px !important;
    border-left: 2px solid rgba(111, 233, 241, 0.55) !important;
    padding-left: 12px !important;
}

#menuList li ul {
    margin-left: 26px !important;
}

#menuList font,
#mainMenu font,
#menuList li label {
    color: var(--wg-muted) !important;
}

a.ml,
a.mln,
a.wj,
a.lj {
    font-weight: 700;
}

.yyck,
.yybj,
.jaml {
    display: inline-block;
    margin-left: 8px !important;
    padding: 2px 8px;
    border-radius: 999px;
    color: #22626a !important;
    background: rgba(111, 233, 241, 0.15);
    border: 1px solid rgba(111, 233, 241, 0.28);
}

.yyck:hover,
.yybj:hover,
.jaml:hover {
    color: #8a651f !important;
    background: rgba(255, 238, 184, 0.54);
    border-color: rgba(185, 149, 72, 0.42);
}

.tx3,
.TX3,
#nr,
input[type="text"],
input[type="password"],
textarea,
select {
    box-sizing: border-box;
    min-height: 24px;
    border: 1px solid rgba(185, 149, 72, 0.45) !important;
    border-radius: 9px;
    color: var(--wg-ink) !important;
    background: rgba(255,255,255,0.88) !important;
    box-shadow: inset 0 1px 3px rgba(31, 58, 65, 0.08);
    outline: none;
}

#nr {
    width: 228px !important;
    height: 64px !important;
    padding: 7px !important;
    resize: vertical;
}

.tx3:focus,
.TX3:focus,
#nr:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(111, 233, 241, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(111, 233, 241, 0.18), inset 0 1px 3px rgba(31, 58, 65, 0.08);
}

.bt2,
.BT2,
.tjxx,
button,
input[type="button"],
input[type="submit"] {
    min-height: 28px !important;
    border: 1px solid rgba(116, 85, 30, 0.38) !important;
    border-radius: 999px !important;
    padding: 0 15px !important;
    color: #20383d !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    background:
        linear-gradient(180deg, #fff7dc 0%, #e8c96e 50%, #b68b35 100%) !important;
    box-shadow:
        0 8px 18px rgba(116, 85, 30, 0.18),
        0 0 18px rgba(111, 233, 241, 0.18),
        inset 0 1px 0 rgba(255,255,255,.76);
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.bt2:hover,
.BT2:hover,
.tjxx:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow:
        0 12px 24px rgba(116, 85, 30, 0.22),
        0 0 26px rgba(111, 233, 241, 0.34),
        inset 0 1px 0 rgba(255,255,255,.86);
}

#filesc2 {
    height: 50px !important;
    width: 220px !important;
    font-size: 18px !important;
    letter-spacing: .12em;
}

.wjlxxz {
    border: 1px dashed rgba(111, 233, 241, 0.65) !important;
    border-radius: 12px;
    background: rgba(111, 233, 241, 0.08);
}

.z_bt {
    color: #fff8df !important;
    background:
        linear-gradient(90deg, #123746, #1d6871 58%, #b99548) !important;
    border-radius: 12px 12px 0 0;
}

.z_bo,
.z_bo ul {
    background: rgba(255, 255, 255, 0.82) !important;
}

.ck {
    border: 1px solid rgba(185, 149, 72, 0.48) !important;
    border-radius: 18px !important;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(239,248,248,.88)) !important;
    box-shadow: 0 24px 70px rgba(15, 47, 56, 0.28), 0 0 35px rgba(111, 233, 241, 0.20) !important;
    backdrop-filter: blur(12px);
}

.ckbt {
    height: 34px !important;
    padding: 8px 12px 0 !important;
    color: #fff8df !important;
    font-weight: 700;
    background: linear-gradient(90deg, #123746, #1d6871 55%, #b99548) !important;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.22);
}

.abu {
    width: 24px !important;
    height: 24px;
    line-height: 22px;
    border-radius: 50%;
    color: #fff8df !important;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
}

.abu:hover {
    color: #123746 !important;
    background: var(--wg-cyan-2);
    font-size: 12px !important;
}

#ys_preview_mask > div {
    border-radius: 18px !important;
    border: 1px solid rgba(185, 149, 72, 0.48) !important;
    box-shadow: 0 24px 70px rgba(15, 47, 56, 0.28), 0 0 35px rgba(111, 233, 241, 0.20) !important;
}

#ys_preview_mask iframe,
#ys_preview_mask pre,
#ys_preview_mask img {
    margin-left: auto !important;
    margin-right: auto !important;
}

#sxts {
    margin: 12px 0 0 !important;
}

#sxts a {
    display: inline-block;
    padding: 5px 10px 5px 24px !important;
    border-radius: 999px;
    border: 1px solid rgba(111, 233, 241, 0.32);
    background-color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 900px) {
    body > table > tbody > tr:nth-child(2) > td,
    #ta_z > tbody > tr:nth-child(2) > td {
        padding: 10px !important;
    }
    .ystop::after {
        display: none;
    }
}

/* Compact fixes for the 255px legacy left sidebar. */
#ysmenu {
    gap: 2px !important;
    overflow: visible !important;
}

#ysmenu div,
#ysmenu .ysm0,
#ysmenu .ysm0x,
#ysmenu .ysm1 {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
}

#lynr {
    box-sizing: border-box;
}

#L_dh,
.ysdh {
    box-sizing: border-box;
    width: 100% !important;
    padding: 6px 2px 8px !important;
    text-align: center !important;
    line-height: 20px !important;
    white-space: normal !important;
}

#L_dh .bt2,
.ysdh .bt2 {
    min-width: 38px !important;
    min-height: 24px !important;
    height: 24px !important;
    margin: 2px 1px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    line-height: 22px !important;
}

.ys-folder-drag {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    align-items: center;
    justify-content: center;
    cursor: grab;
    border-radius: 50%;
    color: #075f68;
    background: rgba(111, 233, 241, .24);
    border: 1px solid rgba(111, 233, 241, .45);
    font-size: 12px;
    font-weight: 700;
    vertical-align: -3px;
}

.ys-folder-drag:active {
    cursor: grabbing;
}

.ys-folder-dragging {
    opacity: .55;
}
