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

:root {
    --text-primary: #e6d7ff;
    --text-heading: #f5e9ff;
    --text-secondary: #c9b0e8;
    --text-muted: #c0afd6;
    --border-color: #6b4b93;
    --panel-background: rgba(43, 21, 73, 0.7);
    --accent-color: #b28fce;
    --glow: 0 0 10px rgba(200, 160, 255, 0.7),
        0 0 20px rgba(180, 140, 255, 0.5),
        0 0 30px rgba(160, 120, 255, 0.3);
}

html {
    overflow-x: hidden;
}

body {
    color: var(--text-primary);
    font-family: 'Noto Serif SC', "Yu Mincho", "DFKuoTaiPei W4", serif;
    line-height: 1.4;
    padding: 20px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background-attachment: fixed;
    background-image: linear-gradient(135deg, rgba(26, 10, 42, 0.45), rgba(45, 27, 78, 0.45)),
        url('/assets/images/bg.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.container {
    width: min(100%, 980px);
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    text-align: center;
    margin: 30px 0;
    position: relative;
    width: 100%;
}

.main-title h1 {
    font-size: 2.8rem;
    color: #f5e9ff;
    text-shadow: var(--glow);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: normal;
}

.main-title::before,
.main-title::after {
    content: "◆";
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0 15px;
    position: relative;
    top: -5px;
}

.title {
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--text-heading);
    text-shadow: var(--glow);
    margin-top: auto;
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-shadow: var(--glow);
    margin-top: 10px;
    text-align: center;
}

.main-layout {
    width: min(100%, 980px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 20px 0;
    transform: none;
    transform-origin: unset;
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    width: 100%;
    padding: 20px;
    border-top: 1px solid #5a3e7c;
}
