* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 欢迎界面 */
#welcome {
    z-index: 2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transition: transform 1.5s ease-out;
    will-change: transform;
}

.welcome-content {
    text-align: center;
    z-index: 10;
}

.main-name {
    font-size: 5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: fadeInDown 2s ease-out;
}

.scroll-hint {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #aaa;
    animation: blink 2s infinite;
}

/* 内容部分 */
#content {
    padding: 50px 0;
    display: block;
    height: auto;
    min-height: 100vh;
    position: relative;
}

#content::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('pic3.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    will-change: transform;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    gap: 30px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-name {
    font-size: 2.5rem;
}

.clock-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    flex-shrink: 0;
}

.clock {
    font-size: 2.5rem;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    margin-bottom: 8px;
}

.clock-quote {
    font-size: 0.95rem;
    color: #eee;
    font-style: italic;
    white-space: nowrap;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(0, 255, 204, 0.5);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .main-name {
        font-size: 2.5rem;
    }

    .profile-header-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .clock-container {
        text-align: center;
        width: 100%;
    }

    .clock-quote {
        white-space: normal;
        max-width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .juzi-text {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .hobby-card {
        width: 100%;
    }
}

/* 滚动句子 */
.juzi-container {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.juzi-text {
    font-size: 1.5rem;
    font-family: "Microsoft YaHei", sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    transition: opacity 0.5s ease-in-out;
}

/* 简历与信息 */
.resume-section {
    margin-bottom: 60px;
}

.resume-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #fff;
    border-left: 4px solid #00ffcc;
    padding-left: 15px;
}

.lvli-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 2;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.lvli-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00ffcc, #0099ff);
}

.lvli-box p strong {
    color: #00ffcc;
    font-size: 1.1rem;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.lvli-box ul {
    list-style: none;
    padding-left: 20px;
    position: relative;
}

.lvli-box ul li {
    position: relative;
    padding-bottom: 15px;
    padding-left: 25px;
    color: #ddd;
    font-size: 1rem;
}

.lvli-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffcc;
}

.lvli-box ul li::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 25px;
    width: 1px;
    height: calc(100% - 20px);
    background: rgba(0, 255, 204, 0.3);
}

.lvli-box ul li:last-child::after {
    display: none;
}

.lvli-box p:last-child {
    padding-left: 25px;
    color: #fff;
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.icon {
    font-size: 2rem;
}

/* 爱好 */
.hobbies-section h3 {
    text-align: center;
    margin-bottom: 30px;
}

.hobbies-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 250px;
    transition: transform 0.3s;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hobby-card:hover {
    transform: translateY(-10px);
}

.hobby-card img {
    width: 64px;
    margin-bottom: 15px;
}

/* 留言板 */
.guestbook-section {
    margin-top: 60px;
}

.guestbook-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #fff;
    border-left: 4px solid #00ffcc;
    padding-left: 15px;
}

.guestbook-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.form-row {
    margin-bottom: 15px;
}

input.guestbook-input,
textarea.guestbook-input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.guestbook-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.guestbook-input:focus {
    border-color: rgba(0, 255, 204, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.15);
}

.guestbook-btn {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(0, 153, 255, 0.2));
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 12px;
    color: #00ffcc;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.guestbook-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.35), rgba(0, 153, 255, 0.35));
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.25);
    transform: translateY(-2px);
}

.guestbook-btn:active {
    transform: translateY(0);
}


@media (max-width: 768px) {
    .guestbook-form {
        padding: 20px;
    }
}

/* 动画 */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 隐藏与显示动画 */
.hidden {
    opacity: 0;
    transform: translateY(50px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-out;
}
