/* ===== 基础 ===== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
        "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #fff;
}

/* ===== 背景 ===== */
#bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-layer.active {
    opacity: 1;
}

/* 暗色渐变遮罩 */
#bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.25) 35%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(0, 0, 0, 0.25) 65%,
            rgba(0, 0, 0, 0.55) 100%);
}

/* ===== 内容布局 ===== */
.container.content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(4vh);
    padding: 1rem;
}

/* ===== Logo ===== */
.logo {
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

.logo img {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

/* ===== 标题（幼圆 / 扁平） ===== */
h1 {
    margin: 0;
    font-family: "M PLUS Rounded 1c", "Zen Maru Gothic", sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

h1 small {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    opacity: 0.65;
}

/* ===== Quotes ===== */
.quotes {
    margin-top: 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.quotes p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    line-height: 2;
    white-space: nowrap;
}

/* 荧光笔主体（真正的背景层） */
.quotes .highlight {
    position: relative;
    display: inline-block;
    padding: 0.3em 0.6em;
    z-index: 1;
}

/* 荧光笔效果 */
.quotes .highlight::before {
    content: "";
    position: absolute;
    inset: 50% -0.5em auto -0.3em;
    height: 1.35em;
    transform: translateY(-50%) rotate(-0.35deg);

    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 0.18em;
    z-index: -1;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

/* 爱心 */
.quotes .heart {
    opacity: 0.6;
    margin: 0 0.35em;
    white-space: nowrap;
}

/* ===== 移动端 ===== */
@media (max-width: 600px) {
    .quotes p {
        white-space: normal;
        text-align: center;
    }
}