/* 启明科技 - 2003年复古风格 + 恐怖崩坏效果 */
/* ============================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

:root {
    --retro-blue: #000080;
    --retro-cyan: #00FFFF;
    --retro-green: #00FF00;
    --retro-gray: #C0C0C0;
    --retro-darkgray: #808080;
    --retro-white: #FFFFFF;
    --retro-black: #000000;
    --blood-red: #8B0000;
    --glitch-purple: #FF00FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局图片约束 - 防止溢出 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    color: #000;
    background: #FFFFFF;
    cursor: default;
    overflow-x: hidden;
}

/* 扫描线效果 - CRT显示器感觉 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

/* 复古链接样式 */
a {
    color: #0000EE;
    text-decoration: underline;
}

a:visited {
    color: #551A8B;
}

a:hover {
    color: #FF0000;
}

/* 复古按钮 */
.retro-btn {
    background: var(--retro-gray);
    border: 2px outset var(--retro-gray);
    padding: 2px 8px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
    color: #000;
}

.retro-btn:active {
    border-style: inset;
}

/* 复古窗口/面板 */
.retro-window {
    background: var(--retro-gray);
    border: 2px outset var(--retro-gray);
    margin: 10px;
}

.retro-window-title {
    background: linear-gradient(90deg, var(--retro-blue), #1084D0);
    color: white;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 12px;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.retro-window-content {
    padding: 10px;
}

/* 顶部横幅 */
.banner {
    background: linear-gradient(180deg, #000080 0%, #0000AA 50%, #000080 100%);
    color: #FFFF00;
    text-align: center;
    padding: 20px;
    border-bottom: 3px double #FFD700;
    position: relative;
}

.banner h1 {
    font-size: 36px;
    font-family: "宋体", SimSun, serif;
    text-shadow: 2px 2px 0 #000;
    animation: flicker 3s infinite;
}

.banner .subtitle {
    font-size: 14px;
    color: #00FFFF;
    margin-top: 5px;
    font-style: italic;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    52% { opacity: 0.8; }
    54% { opacity: 1; }
}

/* 导航栏 - 复古风格 */
.navbar {
    background: var(--retro-gray);
    border-bottom: 2px groove var(--retro-darkgray);
    padding: 5px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.navbar a {
    background: var(--retro-gray);
    border: 2px outset var(--retro-gray);
    padding: 2px 10px;
    text-decoration: none;
    color: #000;
    font-size: 12px;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.navbar a:hover {
    border-style: inset;
    background: #D0D0D0;
}

.navbar a.active {
    border-style: inset;
    background: #A0A0A0;
}

/* 主内容区 */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 60vh;
}

/* 两栏布局 */
.two-column {
    display: flex;
    gap: 20px;
}

.left-col {
    flex: 2;
}

.right-col {
    flex: 1;
}

/* 复古表格 */
.retro-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
    margin: 10px 0;
}

.retro-table th {
    background: var(--retro-blue);
    color: white;
    padding: 6px 10px;
    border: 1px solid #000;
    text-align: left;
    font-weight: bold;
}

.retro-table td {
    padding: 6px 10px;
    border: 1px solid #000;
    background: #FFF;
}

.retro-table tr:nth-child(even) td {
    background: #F0F0F0;
}

/* 访客留言/新闻条目 */
.news-item {
    border: 1px solid #999;
    margin: 10px 0;
    padding: 10px;
    background: #FFFFF0;
}

.news-item .date {
    color: #666;
    font-size: 12px;
    border-bottom: 1px dashed #999;
    padding-bottom: 3px;
    margin-bottom: 5px;
}

.news-item .title {
    font-weight: bold;
    color: var(--retro-blue);
    margin-bottom: 5px;
}

/* 页脚 */
.footer {
    background: var(--retro-gray);
    border-top: 2px groove var(--retro-darkgray);
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #333;
    margin-top: 30px;
}

.footer .counter {
    font-family: "Courier New", monospace;
    background: #000;
    color: #0F0;
    padding: 3px 10px;
    display: inline-block;
    margin: 5px 0;
    letter-spacing: 2px;
}

/* 闪烁文字 - 复古网页常用效果 */
.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to { visibility: hidden; }
}

/* 跑马灯 */
.marquee {
    background: #000;
    color: #0F0;
    padding: 5px;
    overflow: hidden;
    white-space: nowrap;
    font-family: "Courier New", monospace;
}

.marquee span {
    display: inline-block;
    animation: marquee 15s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================ */
/* 恐怖/崩坏效果 */
/* ============================================ */

/* Glitch文字效果 */
.glitch-text {
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: #FF00FF;
    animation: glitch-effect 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.glitch-text::after {
    color: #00FFFF;
    animation: glitch-effect 2s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(2deg); }
    20% { transform: skew(-1deg); }
    30% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

/* 屏幕撕裂效果 */
.screen-tear {
    position: relative;
}

.screen-tear::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50px,
        rgba(0, 0, 0, 0.1) 50px,
        rgba(0, 0, 0, 0.1) 52px,
        transparent 52px
    );
    animation: tear 8s infinite;
    pointer-events: none;
}

@keyframes tear {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 0 100px; }
}

/* 血迹效果 */
.blood-splatter {
    position: relative;
}

.blood-splatter::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 0, 0, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 0, 0, 0.2) 0%, transparent 35%),
        radial-gradient(ellipse at 40% 80%, rgba(139, 0, 0, 0.25) 0%, transparent 30%);
    pointer-events: none;
    z-index: 10;
}

/* 暗角效果 */
.vignette::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 9998;
}

/* 文字逐渐扭曲 */
.distort-text {
    transition: filter 0.3s;
}

.distort-text:hover {
    filter: blur(1px) contrast(1.5);
}

/* 隐藏文字 - 需要选中才能看到 */
.hidden-text {
    color: #FFF;
    background: #FFF;
    cursor: text;
}

.hidden-text::selection {
    background: #000;
    color: #F00;
}

/* 微小文字 - 隐藏线索 */
.tiny-text {
    font-size: 6px;
    color: #CCC;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* 反向文字 */
.reverse-text {
    direction: rtl;
    unicode-bidi: bidi-override;
}

/* 乱码闪烁文字 */
.corrupted-text {
    font-family: "Courier New", monospace;
    color: #0F0;
    background: #000;
    padding: 10px;
    overflow: hidden;
}

/* 图片晃动 */
.shake-img {
    transition: transform 0.1s;
}

.shake-img:hover {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2px, 1px) rotate(-1deg); }
    50% { transform: translate(1px, -1px) rotate(1deg); }
    75% { transform: translate(2px, 1px) rotate(-0.5deg); }
}

/* 恐怖渐变 - 页面逐渐变暗 */
.horror-fade {
    animation: horror-fade 10s forwards;
}

@keyframes horror-fade {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(0.6) saturate(0.7) hue-rotate(-10deg); }
}

/* 呼吸效果 - 仿佛页面在呼吸 */
.breathing {
    animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(0.9); }
}

/* 登录表单 */
.login-form {
    max-width: 300px;
    margin: 50px auto;
    text-align: center;
}

.login-form input {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
    border: 2px inset var(--retro-gray);
    font-family: "Courier New", monospace;
}

/* 警告框 */
.warning-box {
    border: 2px solid #FF0000;
    background: #FFE0E0;
    padding: 10px;
    margin: 10px 0;
    animation: warning-pulse 2s infinite;
}

@keyframes warning-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 0, 0, 0); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
}

/* 神秘符号 */
.occult-symbol {
    font-size: 24px;
    color: #8B0000;
    text-align: center;
    margin: 10px 0;
    animation: rotate-symbol 20s linear infinite;
    display: inline-block;
}

@keyframes rotate-symbol {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 老照片效果 */
.old-photo {
    filter: sepia(0.8) contrast(1.1) brightness(0.9);
    border: 3px solid #8B4513;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

/* 眼睛跟随效果占位 */
.watching-eyes {
    position: fixed;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 100;
    pointer-events: none;
}

/* 静态噪点 */
.static-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9997;
    animation: noise 0.5s steps(10) infinite;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

/* ============================================ */
/* 团队介绍页面样式 */
/* ============================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.team-member-card {
    border: 2px solid #999;
    background: #FFFFF0;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
}

.team-member-card:hover {
    border-color: #000080;
    background: #F0F0FF;
    transform: translateY(-2px);
    box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
}

.member-photo {
    width: 100%;
    height: 120px;
    border: 2px solid #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #FFF;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

.member-photo.photo-001 { background: linear-gradient(135deg, #4A90D9, #2C5AA0); }
.member-photo.photo-002 { background: linear-gradient(135deg, #E8A0BF, #C96B8E); }
.member-photo.photo-003 { background: linear-gradient(135deg, #6BBF59, #4A8F3D); }
.member-photo.photo-004 { background: linear-gradient(135deg, #F5A623, #D4870B); }
.member-photo.photo-005 { background: linear-gradient(135deg, #9013FE, #6C0BB8); }
.member-photo.photo-006 { background: linear-gradient(135deg, #50E3C2, #2CB3A0); }
.member-photo.photo-007 { 
    background: repeating-linear-gradient(
        45deg,
        #C0C0C0,
        #C0C0C0 10px,
        #A0A0A0 10px,
        #A0A0A0 20px
    );
    color: #333;
    text-shadow: none;
}
.member-photo.photo-008 { 
    background: #000;
    color: #F00;
    font-size: 24px;
}

.member-name {
    font-weight: bold;
    font-size: 14px;
    color: #000080;
    margin-bottom: 3px;
}

.member-name a {
    color: #000080;
    text-decoration: none;
}

.member-name a:hover {
    color: #FF0000;
    text-decoration: underline;
}

.member-position {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.member-id {
    font-size: 11px;
    color: #999;
    font-family: "Courier New", monospace;
}

/* ============================================ */
/* 员工个人页面样式 */
/* ============================================ */

.employee-profile {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.employee-photo-large {
    width: 180px;
    height: 220px;
    border: 3px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #FFF;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.employee-info {
    flex: 1;
}

.employee-info h2 {
    color: #000080;
    border-bottom: 2px solid #000080;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.employee-info .position {
    font-size: 16px;
    color: #8B0000;
    font-weight: bold;
    margin-bottom: 5px;
}

.employee-info .emp-id {
    font-family: "Courier New", monospace;
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.employee-section {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #999;
    background: #FFFFF0;
}

.employee-section h3 {
    color: #000080;
    font-size: 14px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #999;
    padding-bottom: 3px;
}

.employee-section p {
    line-height: 1.6;
    text-indent: 2em;
    margin-bottom: 8px;
}

.quote-box {
    border-left: 4px solid #8B0000;
    padding: 10px 15px;
    margin: 10px 0;
    background: #FFF0F0;
    font-style: italic;
    color: #333;
}

.quote-box::before {
    content: '"';
    font-size: 24px;
    color: #8B0000;
    margin-right: 5px;
}

/* 实验笔记样式 */
.lab-note {
    background: #FFFACD;
    border: 1px dashed #DAA520;
    padding: 15px;
    margin: 10px 0;
    font-family: "楷体", "KaiTi", serif;
    font-size: 14px;
    line-height: 1.8;
    position: relative;
}

.lab-note::before {
    content: "实验笔记";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #DAA520;
    color: #FFF;
    padding: 2px 8px;
    font-size: 11px;
    font-family: "宋体", SimSun, serif;
}

/* 待办事项列表 */
.todo-list {
    list-style: none;
    padding: 0;
}

.todo-list li {
    padding: 5px 5px 5px 25px;
    position: relative;
    border-bottom: 1px dotted #CCC;
    font-size: 13px;
}

.todo-list li::before {
    content: "☐";
    position: absolute;
    left: 5px;
    color: #666;
}

.todo-list li.done::before {
    content: "☑";
    color: #008000;
}

.todo-list li.done {
    text-decoration: line-through;
    color: #999;
}

/* 日记片段 */
.diary-entry {
    background: #FFFAF0;
    border: 1px solid #DEB887;
    padding: 15px;
    margin: 10px 0;
    font-family: "楷体", "KaiTi", serif;
    font-size: 14px;
    line-height: 1.8;
    color: #4A3728;
}

.diary-entry .diary-date {
    text-align: right;
    color: #8B7355;
    font-size: 12px;
    margin-top: 10px;
}

/* 涂黑/删除线效果 - 员工008 */
.redacted {
    background: #000;
    color: #000;
    user-select: none;
    padding: 0 3px;
}

.redacted:hover {
    background: #222;
    color: #222;
}

.strike-text {
    text-decoration: line-through;
    color: #999;
}

/* 陈博士页面 - 严重glitch效果 */
.employee-007-page {
    animation: page-glitch 0.5s infinite;
}

@keyframes page-glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

.glitch-char {
    display: inline-block;
    animation: char-flicker 0.1s infinite;
}

@keyframes char-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 解密文字区域 */
.decrypted-message {
    font-family: "Courier New", monospace;
    background: #000;
    color: #0F0;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #0F0;
    text-align: center;
    font-size: 18px;
    letter-spacing: 3px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 个人签名 */
.signature {
    text-align: right;
    font-style: italic;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #CCC;
}

/* 响应式 */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .employee-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .two-column {
        flex-direction: column;
    }
    
    .banner h1 {
        font-size: 24px;
    }
    
    .navbar {
        flex-direction: column;
    }
}
