* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft Yahei", "Segoe UI", sans-serif;
    background: #0b1028;
    color: #e6f1ff;
    line-height: 1.8;
    overflow-x: hidden;
}

/* 星空画布 */
#starry-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0b1028 0%, #121a44 45%, #1a2560 100%);
}

/* 鼠标光圈 */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 160, 255, 0.25), rgba(90, 160, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: background 0.3s ease;
}

/* 导航栏 */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(11, 16, 40, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(120, 180, 255, 0.15);
    padding: 18px 0;
    transition: all 0.35s ease;
}

header.nav-shrink {
    padding: 10px 0;
    background: rgba(11, 16, 40, 0.82);
    box-shadow: 0 4px 20px rgba(70, 130, 255, 0.25);
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, #7ad7ff, #b388ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links a {
    color: #cfe4ff;
    text-decoration: none;
    font-size: 16px;
    margin-left: 24px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #7ad7ff;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7ad7ff, #b388ff);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 主体 */
.main {
    padding: 60px 0;
}

/* 玻璃卡片 */
.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(160, 200, 255, 0.18);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(20, 40, 90, 0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(122, 215, 255, 0.45);
    box-shadow: 0 16px 40px rgba(70, 130, 255, 0.35);
}

h1 {
    font-size: 38px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #ffffff, #7ad7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 24px;
    margin: 28px 0 14px;
    padding-left: 14px;
    border-left: 5px solid #7ad7ff;
    color: #d6ebff;
}

p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #cfe4ff;
}

ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 10px;
    color: #cfe4ff;
}

/* 头像区域 */
.profile {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #7ad7ff;
    box-shadow: 0 0 25px rgba(122, 215, 255, 0.6);
    background: linear-gradient(135deg, #2a3aa0, #6a5acd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #fff;
    flex-shrink: 0;
}

/* 技能条 */
.skill-item {
    margin-bottom: 16px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #d6ebff;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #7ad7ff, #b388ff);
    border-radius: 10px;
    width: 0;
    transition: width 1.4s ease;
}

/* 表单 */
.form-item {
    margin: 22px 0;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #d6ebff;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(160, 200, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #7ad7ff;
    background: rgba(122, 215, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(122, 215, 255, 0.18);
}

textarea {
    height: 170px;
    resize: vertical;
}

button {
    background: linear-gradient(90deg, #2a6dff, #7ad7ff);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

button:hover {
    transform: translateY(-4px);
    filter: brightness(1.15);
    box-shadow: 0 10px 25px rgba(122, 215, 255, 0.45);
}

button:active {
    transform: translateY(0);
}

/* 留言项 */
.message-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(160, 200, 255, 0.2);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 14px;
    border-left: 5px solid #7ad7ff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.message-item:hover {
    transform: translateX(6px);
    background: rgba(122, 215, 255, 0.1);
}

.msg-name {
    font-weight: bold;
    color: #7ad7ff;
    font-size: 17px;
}

.msg-time {
    font-size: 13px;
    color: #8ea9d6;
    margin-bottom: 8px;
}

.msg-text {
    color: #e6f1ff;
}

.msg-delete {
    background: rgba(255, 90, 120, 0.15);
    color: #ff9bb0;
    border: 1px solid rgba(255, 120, 140, 0.3);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.msg-delete:hover {
    background: rgba(255, 90, 120, 0.32);
    transform: scale(1.05);
}

/* 页脚 */
footer {
    margin-top: 60px;
    padding: 28px 0;
    text-align: center;
    color: #8ea9d6;
    background: rgba(11, 16, 40, 0.45);
    border-top: 1px solid rgba(120, 180, 255, 0.15);
}

/* 滚动提示 */
.scroll-tip {
    text-align: center;
    color: #8ea9d6;
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: 2px;
}

/* 响应式 */
@media (max-width: 768px) {
    h1 {
        font-size: 30px;
    }

    .card {
        padding: 28px;
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .nav-links a {
        margin-left: 14px;
        font-size: 15px;
    }
}
