body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    overflow: hidden;
}

/* 封面 */
#cover {
    position: absolute;
    width: 100%;
    height: 100vh;
    background: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("mywebbg.png");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    cursor: pointer;
    transition: 1s;
}

#cover h1 {
    font-size: 50px;
}

/* 主页面 */
#main {
    display: none;
    height: 100vh;
    background: linear-gradient(135deg, #fdfbfb, #ebedee);
}

/* 顶部 */
.header {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
}

.clock {
    font-weight: bold;
}

/* 布局 */
.layout {
    display: flex;
    flex: 1;
    height: 85%;
}

/* 左侧 */
.sidebar {
    width: 220px;
    padding: 20px;
}

.sidebar button {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
}

.sidebar button:hover {
    background: #ff9a9e;
    color: white;
}

/* 卡片 */
.container {
    display: flex;
    flex: 1;
    margin: 10px;
}

.panel {
    background-size: cover;
    background-position: center;
    height: 70vh;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    flex: 0.5;
    margin: 10px;
    position: relative;
    transition: all 0.6s ease;
}

.panel h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0;
}

.panel.active {
    flex: 5;
}

.panel.active h3 {
    opacity: 1;
}

.content-box {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    opacity: 0;
}

.panel.active .content-box {
    opacity: 1;
}

/* 全屏 */
.fullscreen {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.full-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 60%;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}


/* ===== SPA页面 ===== */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: none;
    z-index: 1000;
    overflow-y: auto;
    padding: 40px;
    box-sizing: border-box;
}

/* ===== 简历布局 ===== */
.resume {
    max-width: 800px;
    margin: auto;
}

.resume h1 {
    margin-bottom: 10px;
}

.resume-section {
    margin-top: 30px;
}

/* ===== 论坛布局 ===== */
.thread-list {
    margin-top: 20px;
}

.thread {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.thread:hover {
    background: #f5f5f5;
}

.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 40px;
    box-sizing: border-box;
}