:root {
    --bg: #0f1115;
    --card: #171a21;
    --card-border: #232833;
    --text: #e8eaf0;
    --muted: #9aa3b2;
    --accent: #4ea1ff;
    --accent-2: #7c5cff;
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, .12), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(78, 161, 255, .10), transparent 60%);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 24px;
    text-align: center;
}

.hero {
    margin-bottom: 36px;
}

.avatar {
    font-size: 110px;
    line-height: 1;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(78, 161, 255, .25));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: clamp(28px, 6vw, 42px);
    margin: 20px 0 8px;
    letter-spacing: .5px;
}

.subtitle {
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    color: var(--muted);
    margin-top: 6px;
    font-size: 15px;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin: 20px 0;
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(78, 161, 255, .45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

.card h2 {
    font-size: 19px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 14px;
}

.card h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(var(--accent), var(--accent-2));
}

.project-list {
    list-style: none;
}

.project-list li {
    padding: 6px 0;
}

.project-list li::before {
    content: "▸ ";
    color: var(--accent);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: rgba(78, 161, 255, .12);
    border: 1px solid rgba(78, 161, 255, .28);
    color: #cfe4ff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13.5px;
}

/* ---- 匿名留言板 ---- */
.board {
    text-align: left;
}

.board-tip {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.msg-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-form input,
.msg-form textarea {
    background: #10131a;
    color: var(--text);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease;
}

.msg-form input:focus,
.msg-form textarea:focus {
    border-color: var(--accent);
}

.msg-form button {
    align-self: flex-end;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 9px 22px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s ease, transform .1s ease;
}

.msg-form button:hover {
    opacity: .9;
}

.msg-form button:active {
    transform: scale(.97);
}

.msg-form button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.msg-status {
    min-height: 22px;
    font-size: 14px;
    margin-top: 10px;
}

.msg-status.ok {
    color: #7ee2a8;
}

.msg-status.err {
    color: #ff7b7b;
}

.msg-list {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-item {
    background: #10131a;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 14px;
}

.msg-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12.5px;
    margin-bottom: 5px;
}

.msg-nick {
    color: var(--accent);
    font-weight: 600;
}

.msg-body {
    font-size: 14.5px;
    white-space: pre-wrap;
    word-break: break-word;
}

.empty {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 18px 0;
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 28px 16px 40px;
}

@media (max-width: 560px) {
    .container {
        padding: 32px 14px 16px;
    }

    .card {
        padding: 20px;
    }

    .avatar {
        font-size: 84px;
    }
}
