* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000066;
    --secondary: #2ecc71;
    --accent: #CCFFFF;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 动态渐变背景 */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 背景粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) translateX(1000px) rotate(720deg);
        opacity: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航样式 */
nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: fixed;
}

nav.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 20px;
    color: var(--secondary);
}

.logo-img {
    width: 40px;
    margin-right: 0;
}

.logo span {
    margin-left: 45px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 90%;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
}

.nav-links img {
    width: 24px;
    height: 24px;
    display: block;
}

.nav-links a::after {
    content: attr(data-name);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.nav-links a:hover::after {
    opacity: 1;
}

.nav-links a:active {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    transition: transform 0.1s, background 0.1s;
}

/* 封面区域 */
.cover {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cover h1 {
    font-size: 4rem;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.cover p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.3s both;
}

.cover .btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    animation: fadeIn 1s ease 0.6s both;
    margin-top: 200px;
}

.cover .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-down i {
    font-size: 2rem;
    color: white;
}

/* 内容区域通用样式 */
section {
    padding: 100px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
    backdrop-filter: blur(5px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    color: #555;
    max-width: 700px;
    margin: 20px auto 0;
}

/* 班级成员区域 - 列表布局 */
.members {
    background: transparent;
    background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.member-row {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid var(--primary);
}

.member-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.member-row.active {
    background: rgba(240, 249, 255, 0.95);
    border-left: 4px solid var(--accent);
}

.member-summary {
    display: flex;
    align-items: center;
    padding: 20px;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.member-basic-info {
    flex-grow: 1;
}

.member-basic-info h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.member-basic-info p {
    color: #555;
    font-size: 0.95rem;
}

.member-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.member-row.active .member-toggle {
    transform: rotate(180deg);
    color: var(--accent);
}

/* 成员详细信息 */
.member-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: rgba(255, 255, 255, 0.7);
}

.member-row.active .member-detail {
    max-height: 1500px;
    padding: 0 20px 30px;
}

.detail-container {
    display: flex;
    gap: 30px;
    padding-top: 20px;
}

.detail-photo {
    flex: 0 0 160px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(45deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
}

.detail-info {
    flex-grow: 1;
}

.detail-info h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.member-quote {
    font-style: italic;
    color: var(--primary);
    padding: 10px 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.member-bio {
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    position: relative;
}

#input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -10;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    /*  color: white;*/
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--accent);
}

.social-img {
    width: 40px;
    height: 40px;
}

/* 老师寄语区域 */
.sendwords {
    background: transparent;
    background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
}

.sendwords-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sendword-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sendword-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.sendword-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sendword-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.sendword-details h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sendword-subject {
    color: var(--primary);
    font-weight: 500;
}

.sendword-message {
    line-height: 1.8;
    color: #444;
    flex-grow: 1;
}

/* 照片墙区域 */
.gallery {
    background: transparent;
    background-image: linear-gradient(to top, lightgrey 0%, lightgrey 1%, #e0e0e0 26%, #efefef 48%, #d9d9d9 75%, #bcbcbc 100%);
}

.gallery-grid {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* 留言墙区域 */
.messages {
    background: transparent;
}

.messages h2 {
    text-align: center;
}

.message-form {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: white;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.message-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.message-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.message-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-info .date {
    color: #666;
    font-size: 0.85rem;
}

.message-content {
    line-height: 1.7;
    color: #444;
}

/* 封底区域 */
.footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    min-height: inherit;
}

.footer-content {
    max-width: 60%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    margin-top: 40px;
}

.footer h3 {
    font-size: 2.2rem;
    margin-bottom: 10rem;
}

.footer p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.signature-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.signature {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 50px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.copyright {
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.alink {
    color: white;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/*返回顶部*/
.backToTop {
    height: 50px;
    width: 50px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 24px;
    border: none;
    outline: none;
    background-color: #111111;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: all ease-in 0.3s;
}

.backToTop:hover {
    background-color: #fff;
    color: #111111;
    border: 2px solid #111111;
    font-size: 30px;
}

/* 页面切换动画 */
.page-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.page-fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/*更新*/
.status-bar {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px 5px;
    border-radius: 25px;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.status-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    min-height: 24px;
}

.update-btn {
    background: linear-gradient(to right, #663300, #CC0000);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.0rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
}

.update-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #2a9d8f, #21867a);
}

.update-btn:active {
    transform: translateY(1px);
}

.update-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(to bottom right, #1d3557, #457b9d);
    border-radius: 15px;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    animation: modalAppear 0.5s ease;
    transition: opacity 0.5s ease;
}

@keyframes modalAppear {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header i {
    font-size: 4rem;
    color: #f1c40f;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 2rem;
    color: #f1c40f;
}

.version-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 5px 0;
}

.version-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    flex: 1;
}

.version-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.version-number {
    font-size: 1.3rem;
    font-weight: bold;
}

.version-arrow {
    font-size: 2rem;
    color: #f1c40f;
    font-weight: bold;
    margin: 0 10px;
}

.current-version .version-number {
    color: #e74c3c;
}

.latest-version .version-number {
    color: #2ecc71;
}

.update-notes {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.update-notes h3 {
    margin-bottom: 10px;
    color: #f1c40f;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.view-details-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.update-details {
    transition: all 0.3s ease;
}

.modal-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
}

.update-now {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.update-now:hover {
    background: linear-gradient(to right, #27ae60, #219653);
    transform: translateY(-2px);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* From Uiverse.io by JaydipPrajapati1910 */
/*版本显示*/
.version-button {
    position: relative;
    overflow: hidden;
    border: 1px solid #336600;
    color: #ffffff;
    display: inline-block;
    font-size: 14px;
    line-height: 15px;
    padding: 18px 30px 17px;
    text-decoration: none;
    cursor: pointer;
    background: #000033;
    font-weight: 800;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    border-radius: 25px;
    margin: 0 0 20px 0;
}

.version-button span:first-child {
    position: relative;
    transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 10;
}

.version-button span:last-child {
    display: block;
    position: absolute;
    bottom: 0;
    transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 100;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translateY(225%) translateX(-50%);
    height: 14px;
    line-height: 13px;
}

.version-button:after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333333;
    transform-origin: bottom center;
    transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
    transform: skewY(9.3deg) scaleY(0);
    z-index: 50;
}

.version-button:hover:after {
    transform-origin: bottom center;
    transform: skewY(9.3deg) scaleY(2);
}

.version-button:hover span:last-child {
    transform: translateX(-50%) translateY(-50%);
    opacity: 1;
    transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}

/*复制功能*/
.copy-container {
    margin: 20px 0;
}

.copy-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: translateY(-3px);
    background: var(--accent);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 10px 0;
    }

    .cover h1 {
        font-size: 3rem;
    }

    .cover p {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        columns: 1;
    }

    .message-wall {
        grid-template-columns: 1fr;
    }

    .detail-container {
        flex-direction: column;
    }

    .detail-photo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* 画廊响应式布局 */
@media (max-width: 1024px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 1;
    }
}


/* 内容分行控制 - 响应式布局 */
@media (max-width: 768px) {

    /* 成员详细信息改为垂直排列 */
    .detail-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* 调整图片尺寸 */
    .detail-photo {
        flex: none;
        width: 140px;
        height: 180px;
        font-size: 4rem;
    }

    /* 确保详细信息文字居中 */
    .detail-info {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 500px) {

    /* 进一步调整图片尺寸 */
    .detail-photo {
        width: 120px;
        height: 160px;
        font-size: 3.5rem;
    }
}

/* 文本字号响应式调整 */
@media (max-width: 768px) {

    /* 封面标题和副标题 */
    .cover h1 {
        font-size: 2.5rem;
    }

    .cover p {
        font-size: 1.2rem;
    }

    /* 章节标题 */
    .section-header h2 {
        font-size: 2rem;
    }

    /* 成员信息 */
    .member-basic-info h3 {
        font-size: 1.2rem;
    }

    .member-basic-info p {
        font-size: 0.9rem;
    }

    /* 菜单文字 */
    .nav-links a {
        font-size: 1.1rem;
    }

    /* 词云图标题 */
    #messages .section-header h2 {
        font-size: 1.8rem;
    }

}

@media (max-width: 500px) {

    /* 封面标题和副标题 */
    .cover h1 {
        font-size: 2rem;
    }

    .cover p {
        font-size: 1rem;
    }

    /* 章节标题 */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* 成员信息 */
    .member-basic-info h3 {
        font-size: 1.1rem;
    }

    .member-basic-info p {
        font-size: 0.85rem;
    }

    /*  */
    .gallery-caption {
        font-size: 0.7rem;
    }

    /* 导航文字 */
    .logo span {
        font-size: 1.2rem;
        margin-left: 5px;
    }

    /* 页脚 */
    .footer-content h2 {
        font-size: 2.2rem;
    }

    .footer-content h3 {
        font-size: 1.6rem;
    }

    .footer p {
        font-size: 1rem;
    }

}

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 10px;
}


/* 响应式菜单样式 */
@media (max-width: 680px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        /* width: 80%;
        max-width: 300px; */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
        border-radius: 0 0 12px 0;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
        justify-content: center;
        max-width: 100px;
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links a {
        display: block;
        padding: 10px 15px;
        border-radius: 8px;
        transition: all 0.3s;
    }

    .nav-links a:hover {
        background: var(--accent);
        color: var(--primary);
    }

    .nav-links a::after {
        display: none;
    }
}


@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 90%;
    }

    .version-comparison {
        flex-direction: column;
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }
}