/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 14px;
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}
ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    vertical-align: middle;
}
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
input, textarea {
    font-family: inherit;
    outline: none;
}

/* 全局特效层 */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    transition: opacity .8s ease;
}
.noise.active {
    opacity: .07;
}
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,.03) 0,
        rgba(0,0,0,.03) 1px,
        transparent 1px,
        transparent 3px
    );
    transition: opacity 1s ease;
}
.scanline.active {
    opacity: 1;
}
body.glitch {
    animation: glitch-body .25s infinite alternate;
    filter: contrast(1.1) saturate(.9);
}
@keyframes glitch-body {
    0% { transform: translate(0, 0); }
    25% { transform: translate(1px, -1px); }
    50% { transform: translate(-1px, 0); }
    75% { transform: translate(0, 1px); }
    100% { transform: translate(1px, -1px); }
}

/* Jump Scare 全屏 */
.jumpscare {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.jumpscare.active {
    display: flex;
    animation: jumpscare-shake .15s infinite;
}
@keyframes jumpscare-shake {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(3px,-3px) scale(1.05); }
    100% { transform: translate(-3px,3px) scale(1); }
}
.jumpscare img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.3) brightness(.9);
}

/* 顶部栏 */
.top-bar {
    width: 100%;
    height: 36px;
    background: #f0f2f5;
    border-bottom: 1px solid #e4e7ed;
    font-size: 12px;
    color: #666;
}
.top-bar-inner {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left span {
    margin-right: 24px;
    display: inline-block;
}
.top-bar-right span {
    color: #666;
    margin-left: 18px;
    transition: color .2s;
    cursor: pointer;
}
.top-bar-right span:hover {
    color: #1976d2;
}

/* 头部 */
.header {
    width: 100%;
    height: 100px;
    background: #fff;
    border-bottom: 3px solid #1976d2;
}
.header-inner {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}
.logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    position: relative;
    box-shadow: 0 2px 10px rgba(25,118,210,.2);
}
.logo::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,.35);
    border-radius: 50%;
}
.hospital-name h1 {
    font-size: 24px;
    color: #1976d2;
    font-weight: 600;
    letter-spacing: 1.5px;
}
.hospital-name p {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}
.search-area {
    display: flex;
    align-items: center;
    gap: 0;
}
.search-input {
    width: 280px;
    height: 38px;
    border: 1px solid #dcdfe6;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0 15px;
    font-size: 14px;
    transition: border-color .3s;
}
.search-input:focus {
    border-color: #1976d2;
}
.search-btn {
    width: 72px;
    height: 38px;
    background: #1976d2;
    color: #fff;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    transition: background .3s;
}
.search-btn:hover {
    background: #1565c0;
}
.qr-code {
    text-align: center;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    position: relative;
}
.qr-code-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 4px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.qr-code-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主导航 */
.nav-bar {
    width: 100%;
    height: 50px;
    background: #1976d2;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.nav-inner {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
}
.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .3s;
    position: relative;
    user-select: none;
}
.nav-item:hover,
.nav-item.active {
    background: #1565c0;
}
.nav-item.hidden-nav {
    display: none;
    background: #c62828;
    animation: nav-flicker 3s infinite;
}
.nav-item.hidden-nav.show {
    display: flex;
}
@keyframes nav-flicker {
    0%,88%,100% { opacity: 1; }
    90% { opacity: 0; }
    92% { opacity: 1; }
    94% { opacity: .2; }
    96% { opacity: 1; }
}

/* 轮播图 */
.banner {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
}
.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.banner-slide.active {
    opacity: 1;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 50%, transparent 70%);
    display: flex;
    align-items: center;
}
.banner-text {
    width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    color: #fff;
}
.banner-text h2 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 10px;
    margin-bottom: 18px;
    text-shadow: 2px 2px 10px rgba(0,0,0,.6);
}
.banner-text p {
    font-size: 20px;
    letter-spacing: 4px;
    text-shadow: 1px 1px 6px rgba(0,0,0,.5);
}
.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .4s;
}
.banner-dot.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}
.banner-ghost {
    position: absolute;
    right: 18%;
    bottom: 22%;
    width: 90px;
    height: 190px;
    background: radial-gradient(ellipse, rgba(255,255,255,.18), transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
}
.banner-ghost.show {
    opacity: 1;
}

/* 快捷入口 */
.quick-entry {
    width: 1200px;
    margin: -35px auto 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    padding: 28px 0;
    display: flex;
    position: relative;
    z-index: 20;
}
.entry-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease;
}
.entry-item:hover {
    transform: translateY(-6px);
}
.entry-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 24px;
    transition: all .3s ease;
}
.entry-item:hover .entry-icon {
    background: #1976d2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(25,118,210,.3);
}
.entry-text {
    font-size: 14px;
    color: #333;
}

/* 通用页面结构 */
.page-content {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    gap: 30px;
}
.page-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    min-height: 600px;
}
.page-sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* 通用标题 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 10px;
}
.section-title h3 {
    font-size: 20px;
    color: #1976d2;
    font-weight: 600;
}
.section-title .more {
    font-size: 13px;
    color: #999;
    transition: color .2s;
    cursor: pointer;
}
.section-title .more:hover {
    color: #1976d2;
}
.block-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 4px solid #1976d2;
    font-weight: 500;
}

/* 新闻列表 */
.news-list {
    list-style: none;
}
.news-item {
    padding: 16px 0;
    border-bottom: 1px dashed #e0e0e0;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-item:hover {
    padding-left: 12px;
    background: #f5f9ff;
}
.news-item:hover .news-title {
    color: #1976d2;
}
.news-title {
    font-size: 15px;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-date {
    font-size: 13px;
    color: #999;
    margin-left: 20px;
    flex-shrink: 0;
}
.news-item.abnormal:hover .news-title {
    color: #c62828;
}

.intro-block p {
    font-size: 15px;
    color: #666;
    line-height: 2;
    margin-bottom: 16px;
    text-indent: 2em;
}

/* 侧边栏 */
.sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.sidebar-title {
    font-size: 17px;
    color: #1976d2;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}
.schedule-list {
    font-size: 14px;
}
.schedule-list li {
    padding: 9px 0;
    border-bottom: 1px dotted #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.schedule-list li:last-child {
    border-bottom: none;
}
.schedule-name {
    color: #333;
}
.schedule-time {
    color: #999;
    font-size: 13px;
}
.schedule-list li.highlight .schedule-name {
    color: #c62828;
    font-weight: 500;
}
.quick-link li {
    padding: 10px 0;
    border-bottom: 1px dotted #eee;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all .2s;
}
.quick-link li:hover {
    color: #1976d2;
    padding-left: 5px;
}
.quick-link li:last-child {
    border-bottom: none;
}

/* 底部 */
.footer {
    width: 100%;
    background: #2c3e50;
    color: #bdc3c7;
    padding: 45px 0 20px;
    margin-top: 40px;
}
.footer-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #34495e;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}
.footer-col p {
    font-size: 13px;
    line-height: 2.1;
    margin-bottom: 6px;
    cursor: pointer;
    transition: color .2s;
}
.footer-col p:hover {
    color: #fff;
}
.footer-bottom {
    width: 1200px;
    margin: 22px auto 0;
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 2;
}
.footer-bottom a {
    color: #7f8c8d;
    text-decoration: none;
    margin: 0 12px;
}

/* 密码弹窗 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.65);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.modal-mask.active {
    opacity: 1;
    pointer-events: all;
}
.pwd-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.92);
    background: #fff;
    border-radius: 12px;
    padding: 40px 50px;
    z-index: 9999;
    box-shadow: 0 15px 50px rgba(0,0,0,.3);
    opacity: 0;
    pointer-events: none;
    transition: all .35s ease;
    width: 420px;
}
.pwd-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}
.pwd-modal h4 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 500;
    text-align: center;
}
.pwd-modal input {
    width: 100%;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 18px;
    font-size: 16px;
    margin-bottom: 18px;
    transition: border-color .3s;
    letter-spacing: 2px;
}
.pwd-modal input:focus {
    border-color: #1976d2;
}
.pwd-modal button {
    width: 100%;
    height: 48px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background .3s;
}
.pwd-modal button:hover {
    background: #1565c0;
}
.pwd-modal .error-tip {
    color: #c62828;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    display: none;
}
.pwd-modal .pwd-hint {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 15px;
}
.pwd-modal .close-tip {
    font-size: 12px;
    color: #bbb;
    text-align: center;
    margin-top: 10px;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}
