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

body {
    background-color: #e5e5e5;
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(240, 240, 240, 0.85), rgba(240, 240, 240, 0.85)),
        url('images/bg.png');
    background-size: 12px 12px, cover, cover;
    background-position: 0 0, center, center;
    background-attachment: fixed;
    color: #1a1a1a;
    font-family: 'Courier Prime', 'Noto Sans SC', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 10px;
}

.archive-card {
    width: 100%;
    max-width: 1000px;
    background-color: rgba(250, 250, 250, 0.96);
    border: 1px solid #cccccc;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.connecting-line {
    position: absolute;
    top: 300px;
    left: 0;
    width: 100%;
    height: calc(100% - 400px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================= 浅灰白 Hero 个人名牌 ================= */
.hero-section {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}

.sidebar-ascii {
    width: 160px;
    background-color: #f0f0f0;
    border-right: 1px solid #e0e0e0;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.ascii-art {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #111111;
    line-height: 1.1;
    white-space: pre;
}

.sidebar-stamp {
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: #666666;
    border: 1px solid #cccccc;
    padding: 2px 6px;
    writing-mode: vertical-rl;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-banner-img {
    position: relative;
    width: 100%;
    height: 240px;
    background: #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.hero-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
}

.img-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #ffffff;
    color: #000000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border: 1px solid #cccccc;
}

.bio-box {
    padding: 20px 25px;
    background: #ffffff;
}

.main-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #111111;
}

.subtitle {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 12px;
}

.bio-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 15px;
}

.contact-strip {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    background: #f4f4f4;
    padding: 6px 12px;
    border-left: 3px solid #111111;
    color: #111111;
}

/* ================= 点击作品后出现的全宽作品预览 ================= */
.preview-hero-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(235, 235, 235, 0.98);
    border-top: 1px solid #d0d0d0;
    border-bottom: 2px solid #000000;
    transition:
        max-height 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease,
        padding 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 20;
}

.preview-hero-container.active {
    max-height: 850px;
    opacity: 1;
    padding: 14px 0 16px;
}

.preview-window {
    width: 100%;
    margin: 0;
    background: #ffffff;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.preview-topline,
.preview-bottomline {
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background-color: #dddddd;
    background-image: repeating-linear-gradient(
        0deg,
        #000000 0px,
        #000000 1px,
        transparent 1px,
        transparent 3px
    );
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    color: #000000;
    border-bottom: 1px solid #000000;
}

.preview-bottomline {
    border-top: 1px solid #000000;
    border-bottom: none;
    color: #666666;
    font-weight: normal;
}

.preview-close {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid #000000;
    background: #dddddd;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 12px;
    cursor: pointer;
}

.preview-close:hover {
    background: #000000;
    color: #ffffff;
}

/* 左图 + 右栏：横向撑满浏览器 */
.preview-body {
    width: 100%;
    display: flex;
    min-height: 500px;
    background: #ffffff;
}

/* 左侧主视觉 */
.preview-left {
    flex: 0 0 72%;
    min-width: 0;
    min-height: 500px;
    background: #111111;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid #000000;
}

.preview-left img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
    filter: grayscale(100%) contrast(108%);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.preview-left img:hover {
    filter: grayscale(0%) contrast(108%);
}

.pv-img-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 3px 7px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
}

/* 右侧缩略图 + 底部文字 */
.preview-right {
    flex: 1;
    min-width: 0;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fafafa;
    padding: 14px;
}

.pv-thumbs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 325px;
    overflow-y: auto;
    padding-right: 3px;
}

.pv-thumbs-list::-webkit-scrollbar {
    width: 8px;
}

.pv-thumbs-list::-webkit-scrollbar-track {
    background: #eeeeee;
    border-left: 1px solid #000000;
}

.pv-thumbs-list::-webkit-scrollbar-thumb {
    background: #bbbbbb;
    border: 1px solid #000000;
}

.pv-thumb {
    width: 100%;
    height: 82px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #000000;
    background: #111111;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pv-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.58;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.pv-thumb span {
    position: absolute;
    left: 5px;
    bottom: 4px;
    padding: 1px 4px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    font-family: 'VT323', monospace;
    font-size: 0.68rem;
}

.pv-thumb:hover img,
.pv-thumb.active img {
    filter: grayscale(0%);
    opacity: 1;
}

.pv-thumb.active {
    box-shadow: 3px 3px 0 #000000;
    transform: translate(-1px, -1px);
}

/* 说明固定在右栏底部 */
.pv-details-box {
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px dashed #aaaaaa;
}

.pv-tag {
    display: block;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #666666;
    margin-bottom: 5px;
}

.pv-details-box h3 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.08rem;
    line-height: 1.35;
    color: #000000;
    margin: 0 0 8px;
}

.pv-details-box p {
    font-family: 'Courier Prime', 'Noto Sans SC', monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #444444;
    margin: 0;
}

/* 让展开预览不受 archive-card 原有宽度限制 */
.archive-card {
    overflow: visible;
}

/* ================= 经典 Classic Mac/Win 复古 Note Pad 窗口 ================= */
.divider-cross {
    background-color: #f0f0f0;
    color: #888888;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    text-align: center;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
}

.path-container {
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    gap: 70px;
    position: relative;
    z-index: 2;
}

.category-node {
    width: 85%;
}

.node-right { margin-left: auto; }
.node-left { margin-right: auto; }

.notepad-window {
    background: #dddddd;
    border: 2px solid #000000;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* 标题栏：经典水平细线条纹 */
.window-titlebar {
    background-color: #dddddd;
    background-image: repeating-linear-gradient(
        0deg,
        #000000 0px,
        #000000 1px,
        transparent 1px,
        transparent 3px
    );
    height: 24px;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    cursor: pointer;
    user-select: none;
}

.win-btn-left {
    width: 14px;
    height: 14px;
    background: #dddddd;
    border: 1px solid #000000;
}

.window-title {
    background: #dddddd;
    padding: 0 10px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    color: #000000;
}

.win-btn-group {
    display: flex;
    gap: 4px;
}

.win-btn-zoom, .win-btn-close {
    width: 14px;
    height: 14px;
    background: #dddddd;
    border: 1px solid #000000;
    position: relative;
    cursor: pointer;
}

.win-btn-zoom::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px; width: 6px; height: 6px;
    border: 1px solid #000;
}

.win-btn-close::after {
    content: '■';
    font-size: 8px;
    position: absolute;
    top: -2px; left: 2px;
}

/* 主体容器与滚动条布局 */
.notepad-body {
    display: flex;
    background: #ffffff;
    border-bottom: 2px solid #000000;
}

.node-content {
    flex: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), padding 0.6s ease;
    background: #ffffff;
}

.category-node.active .node-content {
    max-height: 1500px;
    padding: 18px;
}

/* 右侧复古系统滚动条 */
.notepad-scrollbar {
    width: 20px;
    background: #eeeeee;
    border-left: 2px solid #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scroll-btn {
    height: 18px;
    background: #dddddd;
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    user-select: none;
}

.scroll-track {
    flex: 1;
    background-image: repeating-linear-gradient(
        45deg,
        #cccccc 0px,
        #cccccc 1px,
        #ffffff 1px,
        #ffffff 4px
    );
}

/* 作品列项 */
.vertical-works-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-row {
    display: flex;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #000000;
    padding: 10px;
    box-shadow: 2px 2px 0px #cccccc;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.work-row:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.work-img {
    width: 170px;
    height: 110px;
    flex-shrink: 0;
    border: 1px solid #000000;
    overflow: hidden;
    background: #e5e5e5;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.work-row:hover .work-img img {
    filter: grayscale(0%);
}

.work-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-tag {
    font-size: 0.7rem;
    color: #666666;
    margin-bottom: 4px;
}

.work-desc h3 {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 6px;
}

.work-desc p {
    font-size: 0.8rem;
    color: #444444;
    line-height: 1.4;
}

/* 点击提示：不改变原有卡片结构，只增加轻微交互提示 */
.work-row {
    position: relative;
}

.work-row::after {
    content: 'OPEN / VIEW';
    position: absolute;
    right: 8px;
    top: 7px;
    padding: 1px 4px;
    border: 1px solid #000000;
    background: #ffffff;
    font-family: 'VT323', monospace;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.work-row:hover::after {
    opacity: 1;
}

/* 底部与左下角卷角效果 */
.notepad-footer {
    height: 18px;
    background: #dddddd;
    position: relative;
}

.page-fold {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent #000000 transparent;
}

.page-fold::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 14px 14px;
    border-color: transparent transparent #ffffff transparent;
}

/* 浮动便签片 */
.floating-fragment {
    background: #f2efe9;
    color: #111111;
    padding: 10px 16px;
    font-size: 0.75rem;
    width: fit-content;
    border: 1px solid #d8d4cb;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.08);
}

.frag-left {
    margin-left: 8%;
    transform: rotate(-2deg);
}

.dot-symbol {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
}

/* 底栏 */
.soundwave-bar {
    text-align: center;
    padding: 30px 20px;
    background: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.wave-lines {
    font-family: 'VT323', monospace;
    color: #a0a0a0;
    letter-spacing: -2px;
    font-size: 1.2rem;
    overflow: hidden;
    white-space: nowrap;
}

.soundwave-bar p {
    font-style: italic;
    font-size: 0.8rem;
    color: #666666;
    margin-top: 8px;
}

.archive-footer {
    background-color: #e5e5e5;
    border-top: 1px solid #cccccc;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666666;
    font-family: 'VT323', monospace;
}

@media (max-width: 768px) {
    .hero-section { flex-direction: column; }
    .sidebar-ascii {
        width: 100%; border-right: none;
        border-bottom: 1px solid #e0e0e0; flex-direction: row;
    }
    .sidebar-stamp { writing-mode: horizontal-tb; }
    .preview-hero-container.active {
        padding: 8px 0 10px;
    }

    .preview-body {
        flex-direction: column;
        min-height: auto;
    }

    .preview-left {
        flex: none;
        width: 100%;
        min-height: 330px;
        border-right: none;
        border-bottom: 1px solid #000;
    }

    .preview-left img {
        height: 330px;
    }

    .preview-right {
        min-height: auto;
        padding: 10px;
    }

    .pv-thumbs-list {
        flex-direction: row;
        max-height: 82px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .pv-thumb {
        width: 100px;
        height: 70px;
    }

    .pv-details-box {
        margin-top: 12px;
    }
    .category-node { width: 100%; }
    .work-row { flex-direction: column; }
    .work-img { width: 100%; height: 140px; }
    .connecting-line { display: none; }
}