/* ===== 全局 ===== */
body {
    margin: 0;
    background: #000;
    color: white;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body:not(.surprise-page) .side-nav {
    display: none;
}

body:not(.surprise-page) .title {
    padding-left: 40px;
}

/* ===== LOGO ===== */
.logo {
    position: fixed;
    top: 20px;
    left: 40px;
    z-index: 100;

    display: flex;
    align-items: baseline;
    gap: 6px;

    text-decoration: none;
    color: white;

    transition: color 0.3s ease, transform 0.3s ease;
}

.logo:visited {
    color: white;
}

.logo:hover {
    color: #DD304E;
    transform: translateX(6px);
}

/* LOGO文字 */
.logo-main {
    font-weight: 1000;
    font-size: 30px;
    letter-spacing: 1px;
    transform: skewX(-8deg);
    transition: color 0.3s ease;
}

.logo-sub {
    font-weight: 500;
    font-size: 25px;
    transform: skewX(-8deg);
    transition: color 0.3s ease;
}

/* Surprise layout */
.surprise-page .logo {
    flex-wrap:wrap;
    align-items: flex-start;
}

.surprise-page .logo-sub {
    width: 100%;
    margin-top: -6px;
}

/* ===== PLUS（关键同步版）===== */
.plus-box {
    width: 14px;
    height: 14px;
    position: relative;
    display: inline-block;
    margin-left: -5px;
    margin-right: 10px;
    margin-top: 15px;

    transform: translateY(-3px) scale(1.5);

    color: inherit; /* ⭐核心 */
    transition: color 0.3s ease; /* ⭐关键同步 */
}

/* 横竖线 */
.plus-box::before,
.plus-box::after {
    content: "";
    position: absolute;
    background: currentColor; /* ⭐统一颜色系统 */
    transition: background 0.3s ease;
}

/* 横 */
.plus-box::before {
    width: 100%;
    height: 4px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* 竖 */
.plus-box::after {
    height: 100%;
    width: 4px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* ===== 分割线 ===== */
.divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.15);

    position: fixed;
    top: 70px;
    left: 0;
    z-index: 50;
}

/* ===== 左侧导航 ===== */
.side-nav {
    position: fixed !important;
    left: 0;
    top: 0;

    width: 150px;
    height: 100vh;

    background: #0a0a0a;

    display: flex;
    flex-direction: column;

    padding: 120px 30px 30px;

    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 10;

}

/* divider inside nav */
.divider2 {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: -10px 0 40px 0;
}

/* ===== nav ===== */
.nav-item {
    font-size: 22px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: white;
    transform: translateX(6px);
}

.nav-item.active {
    color: #DD304E;
}

/* 箭头 */
.arrow {
    opacity: 0;
    transform: translateX(-6px);
    transition: 0.2s;
}

.nav-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 首页 ===== */
.container {
    height: 60vh;
    position: relative;
}

.title {
    width: 100%;
    padding-left: 240px;
    margin-top: 120px;
}

.title h1 {
    font-weight: 400;
    font-size: 22px;
    color: rgba(255,255,255,0.85);
    margin-left: 200px;
    margin-top: 150px;
}

/* ===== 按钮 ===== */
.buttons {
    position: absolute;
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.option {
    font-size: 32px;
    font-weight: 500;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 20px;

    color: white;
    text-decoration: none;

    transition: all 0.3s ease;
}

.option:hover {
    color: #DD304E;
    transform: translateX(6px);
}

/* ===== 首页动画 ===== */
.to-surprise .buttons {
    left: 40px;
    transform: translateY(-50%);
    gap: 25px;
    transition: all 0.8s ease;
}

.to-surprise .option {
    opacity: 0;
    transition: 0.5s;
}

.to-surprise #surpriseBtn {
    opacity: 1;
    font-size: 28px;
    color: #DD304E;
}

.to-surprise .title {
    opacity: 0;
    transition: 0.4s;
}

/* ===== Surprise 页面 ===== */
.surprise-page {
    height: 100vh;

}

.surprise-header {
    margin-top: 60px;
    padding-left: 240px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.surprise-header p {
    margin-top: -15px;
    font-size: 20px;
    opacity: 0.7;
}

/* 评论区域 */

.comments-area {

    display: flex;
    flex-wrap: wrap;

    gap: 0px 0px;

    width: calc(100% - 240px);
    margin-left: 300px;
    margin-top: 40px;
}

.comments-area {
    height: 100%
}
.comment:nth-child(n+11) {
    display: none;
}


/* ===== 评论卡片 ===== */
.comment {
    display: inline-block; /* ⭐关键 */
    width: 80%;
    margin-bottom: 25px;

    padding: 0.8em 1em;
    font-size: clamp(15px, 1vw, 22px);

    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;

    backdrop-filter: blur(6px);

    transition: all 0.3s ease;

    break-inside: avoid; /* ⭐防止断裂 */

    animation: fadeIn 1s ease forwards;
}


/* ===== 尺寸变化（核心：不规则）===== */
.comment:nth-child(2n) {
    transform: rotate(-1deg);
    opacity: 0.8;
}

.comment:nth-child(3n) {
    transform: rotate(1deg);
}

.comment:nth-child(5n) {
    transform: rotate(-2deg);
}


/* ===== hover ===== */
.comment:hover {
    transform: scale(1.08) rotate(0deg) !important;
    background: rgba(221,48,78,0.2);
    border: 1px solid #DD304E;
    opacity: 1;
}


/* ===== 动画 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== 弹窗背景 ===== */
.popup {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    background: rgba(0,0,0,0.7);

    justify-content: center;
    align-items: center;

    z-index: 999;
}

/* ===== 弹窗内容 ===== */
.popup-content {
    width: 500px;
    max-width: 90%;

    background: #111;
    border-radius: 16px;
    overflow: hidden;

    position: relative;

    animation: popUp 0.3s ease;
}

/* 图片 */
.popup-content img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}





/* 文字 */
.popup-text {
    padding: 20px;
}

.popup-text h2 {
    margin: 0 0 10px;
}

.popup-text p {
    font-size: 12px;
    opacity: 0.8;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;

    font-size: 28px;
    cursor: pointer;
}

/* 动画 */
@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


