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

:root {
    --ink: #202124;
    --muted: #68707a;
    --paper: rgba(255, 255, 255, 0.9);
    --paper-strong: #ffffff;
    --line: rgba(32, 33, 36, 0.12);
    --teal: #0f766e;
    --rose: #d9466f;
    --gold: #d89b2b;
    --shadow: 0 20px 60px rgba(16, 24, 40, 0.16);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.7;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.82)),
        url("image/h1.jpg") center / cover fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.site-hero {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background:
        linear-gradient(110deg, rgba(15, 118, 110, 0.86), rgba(217, 70, 111, 0.55)),
        url("image/h1.jpg") center / cover;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.brand {
    flex: 0 0 auto;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    list-style: none;
}

.site-nav a:not(.brand) {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 6px 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.site-nav a:not(.brand):hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.hero-content {
    max-width: 760px;
    padding: 80px 56px;
    color: #fff;
}

.eyebrow,
.section-kicker {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-content h1 {
    margin-top: 10px;
    font-size: clamp(42px, 8vw, 84px);
    line-height: 1.06;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button,
button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
button:hover {
    transform: translateY(-2px);
}

.button.primary,
.auth-form button,
.editor-card button {
    color: #fff;
    background: var(--teal);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.button.ghost,
.switch-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.14);
}

main {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card,
.music-card,
.blog-panel,
.auth-form,
.editor-card,
.post {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(10px);
}

.feature-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.feature-card span {
    color: var(--rose);
    font-weight: 900;
}

.feature-card h2 {
    margin-top: 16px;
    font-size: 24px;
}

.feature-card p {
    margin-top: 10px;
    color: var(--muted);
}

.feature-card a {
    width: fit-content;
    margin-top: auto;
    color: var(--teal);
    font-weight: 800;
}

.music-card {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px);
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.music-card h2,
.section-heading h2 {
    font-size: 30px;
}

.music-card audio {
    width: 100%;
}

.blog-panel {
    padding: 28px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 22px;
}

.section-heading p:last-child {
    color: var(--muted);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.auth-form,
.editor-card {
    padding: 20px;
    background: var(--paper-strong);
}

#register-form {
    display: none;
}

.auth-form h3,
.editor-card h3,
#posts-list h3 {
    margin-bottom: 14px;
}

input,
textarea {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    background: #fbfbfc;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.auth-form button,
.editor-card button {
    width: 100%;
    margin-top: 14px;
}

.switch-button {
    color: var(--teal);
    border-color: rgba(15, 118, 110, 0.18);
    background: rgba(15, 118, 110, 0.08);
}

.blog-content {
    display: grid;
    gap: 22px;
}

#posts {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.post {
    padding: 18px;
    background: #fff;
}

.post h4 {
    color: var(--teal);
    font-size: 20px;
}

.post p {
    margin: 8px 0;
    color: var(--ink);
}

.post small {
    color: var(--muted);
}

.side-photo {
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 20;
    width: 136px;
    transform: translateY(-50%);
}

.side-photo img {
    width: 100%;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.floating-return {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 86px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.floating-return img {
    width: 100%;
    height: 54px;
    object-fit: cover;
}

.floating-return span {
    display: block;
    padding: 4px 0 6px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
}

footer {
    margin-top: 28px;
    padding: 24px;
    color: rgba(32, 33, 36, 0.72);
    text-align: center;
}

@media (max-width: 1180px) {
    .side-photo {
        display: none;
    }
}

@media (max-width: 820px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 10px;
    }

    .site-hero {
        min-height: auto;
    }

    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav ul {
        justify-content: flex-start;
    }

    .hero-content {
        padding: 56px 24px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .intro-grid,
    .music-card,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .music-card,
    .blog-panel {
        padding: 20px;
    }

    .floating-return {
        width: 72px;
    }
}
