:root {
    --color-primary: #C77DFF;
    --color-secondary: #7C3AED;
    --color-accent: #FFC8DD;
    --color-blue: #818CF8;
    --color-blue-light: #A5B4FC;
    --color-pink: #FFB5C5;
    --color-light: #FDF4FF;
    --color-bg-start: #FFFFFF;
    --color-bg-mid: #F5F3FF;
    --color-bg-end: #EEF2FF;

    /* 文字颜色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-body: #555555;
    --text-muted: #888888;
    --text-faint: #AAAAAA;

    /* 表面与背景 */
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --surface-solid: rgba(255, 255, 255, 0.9);
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-bg-solid: rgba(255, 255, 255, 0.95);
    --mobile-menu-bg: rgba(255, 255, 255, 0.95);
    --hero-glow: rgba(255, 255, 255, 0.5);
    --star-color: #FFFFFF;
}

/* 深色模式 */
html[data-theme="dark"] {
    --color-bg-start: #0E0A1F;
    --color-bg-mid: #171031;
    --color-bg-end: #12142E;
    --text-primary: #ECE7FA;
    --text-secondary: #B7ADCF;
    --text-body: #B7ADCF;
    --text-muted: #8B82AC;
    --text-faint: #6E6591;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --surface-solid: rgba(255, 255, 255, 0.07);
    --navbar-bg: rgba(16, 12, 33, 0.85);
    --navbar-bg-solid: rgba(16, 12, 33, 0.95);
    --mobile-menu-bg: rgba(16, 12, 33, 0.97);
    --hero-glow: rgba(199, 125, 255, 0.14);
    --star-color: #E9E4F5;
}

html[data-theme="dark"] .about {
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.06), rgba(129, 140, 248, 0.06));
}

html[data-theme="dark"] footer {
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.07), rgba(129, 140, 248, 0.07));
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-mid) 50%, var(--color-bg-end) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(199, 125, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    border-radius: 4px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(199, 125, 255, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    position: relative;
}

.logo {
    flex-shrink: 0;
    min-width: 150px;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.mobile-bilibili-btn {
    display: none;
}

.mobile-bilibili-btn a::after {
    display: none !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 150px;
    justify-content: flex-end;
}

.nav-right .bilibili-btn::after {
    display: none !important;
}

.bilibili-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: white !important;
    text-decoration: none !important;
}

.bilibili-btn::after {
    display: none !important;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* 语言切换下拉（zh-CN / zh-TW） */
.lang-switch {
    position: relative;
    flex-shrink: 0;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 2px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.88em;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle .icon {
    width: 0.9em;
    height: 0.9em;
    transition: transform 0.3s ease;
}

.lang-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.lang-switch.open .lang-toggle {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.lang-switch.open .lang-toggle .icon {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 165px;
    padding: 6px;
    background: var(--surface-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-blue-light);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease;
    z-index: 100;
}

.lang-switch.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.lang-menu a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    color: #fff;
}

.lang-menu a.current {
    color: var(--color-primary);
    font-weight: 600;
    pointer-events: none;
}

.bilibili-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199, 125, 255, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* 深浅色模式切换按钮 */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 125, 255, 0.3);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(199, 125, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, var(--hero-glow) 0%, transparent 70%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 1;
    padding: 0 40px;
    max-width: 1400px;
    width: 100%;
}

.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right {
    flex: 1;
    text-align: left;
}

.logo-large img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    animation: float 6s ease-in-out infinite;
}

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

.tagline {
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 400;
    margin-bottom: 15px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 0 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.btn-primary {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(199, 125, 255, 0.5);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(199, 125, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    transform: translateY(-5px) scale(1.1);
    color: white;
    box-shadow: 0 10px 30px rgba(199, 125, 255, 0.4);
}

.floating-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--star-color);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 { top: 20%; left: 15%; animation-delay: 0s; }
.star-2 { top: 40%; left: 85%; animation-delay: 0.5s; }
.star-3 { top: 60%; left: 25%; animation-delay: 1s; }
.star-4 { top: 80%; left: 70%; animation-delay: 1.5s; }
.star-5 { top: 30%; left: 50%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.section-header {
    text-align: center;
    padding: 60px 20px 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.members {
    padding: 40px 20px 80px;
}

.members-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: block;
}

.member-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 35px;
    padding-right: 45px;
    display: flex;
    align-items: stretch;
    gap: 35px;
    min-height: 280px;
    transition: all 0.3s ease;
    border: 1px solid rgba(199, 125, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
    justify-content: space-between;
    max-width: 540px;
    justify-self: center;
    width: 100%;
}

.members-grid-inner--full .member-card {
    max-width: none;
}

.member-card:hover {
    transform: translateY(-5px);
    background: var(--surface-strong);
    border-color: rgba(199, 125, 255, 0.5);
    box-shadow: 0 15px 40px rgba(199, 125, 255, 0.15);
}

.member-avatar {
    position: relative;
    width: 180px;
    height: 220px;
    flex-shrink: 0;
    overflow: visible;
    margin-right: -25px;
    margin-top: -25px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    min-height: 180px;
}

.member-info-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-links-wrap {
    margin-top: auto;
}

.member-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 125, 255, 0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.member-card h3 {
    color: var(--text-primary);
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
}

.member-tag {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 0;
}

.member-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
    max-width: 420px;
    flex: 1;
}

.member-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.link-btn {
    height: 42px;
    padding: 0 22px;
    border-radius: 25px;
    background: rgba(199, 125, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 8px 25px rgba(199, 125, 255, 0.3);
}

.about {
    padding: 40px 20px 80px;
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.02), rgba(129, 140, 248, 0.02));
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.story-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(199, 125, 255, 0.15);
}

.story-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.2), rgba(129, 140, 248, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--color-primary);
}

.story-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.story-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid rgba(199, 125, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background: rgba(199, 125, 255, 0.1);
    border-color: rgba(199, 125, 255, 0.5);
    color: var(--color-primary);
}

.events {
    padding: 40px 20px 80px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.event-card {
    background: var(--surface-solid);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(199, 125, 255, 0.15);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(199, 125, 255, 0.15);
}

.event-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-info {
    padding: 25px;
}

.event-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.event-tag.event-ongoing {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
    color: #4ADE80;
}

.event-tag.event-past {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.1));
    color: #94A3B8;
}

.event-info h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.event-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

footer {
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.03), rgba(129, 140, 248, 0.03));
    border-top: 1px solid rgba(199, 125, 255, 0.15);
    padding: 50px 20px 30px;
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(199, 125, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    transform: scale(1.1);
    color: white;
}

.copyright {
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* 内联 SVG 图标（替代 Font Awesome 字体，减小加载体积） */
svg.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentColor;
    vertical-align: -0.125em;
    overflow: hidden;
}

svg.icon-spin {
    animation: icon-spin 2s linear infinite;
}

@keyframes icon-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面主体内容入场渐显：导航栏固定不动，仅内容区自下而上浮现（纯 CSS 实现） */
/* 首页区块入场（原速） */
.hero,
.members,
.about {
    animation: page-rise 0.6s ease-out backwards;
}

.hero { animation-delay: 0.1s; }
.members { animation-delay: 0.2s; }
.about { animation-delay: 0.3s; }

/* 子页面主内容入场（提速一倍） */
.about-main,
.joinus-main,
.members-page,
.profile-page {
    animation: page-rise 0.3s ease-out backwards;
    animation-delay: 0.1s;
}

footer {
    animation: page-rise 0.6s ease-out backwards;
    animation-delay: 0.5s;
}

/* 子页面页脚随子页节奏提速 */
.about-main + footer,
.joinus-main + footer,
.members-page + footer,
.profile-page ~ footer {
    animation-duration: 0.3s;
    animation-delay: 0.25s;
}

@keyframes page-rise {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .members,
    .about,
    .about-main,
    .joinus-main,
    .members-page,
    .profile-page,
    footer {
        animation: none;
    }
}

/* 成员分页样式 */
.members-container {
    position: relative;
}

.members-page-group {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.members-page-group:not(.active) {
    display: none;
}

.members-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 成员分页控制 */
.members-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(199, 125, 255, 0.3);
    background: var(--surface);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(199, 125, 255, 0.1);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-dots {
    display: flex;
    gap: 8px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(199, 125, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.pagination-dot:hover {
    background: rgba(199, 125, 255, 0.6);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        transform: none;
        width: 100%;
        flex-direction: column;
        background: var(--mobile-menu-bg);
        backdrop-filter: blur(20px);
        padding: 30px 0;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-right .bilibili-btn {
        display: none;
    }

    .mobile-bilibili-btn {
        display: block;
        margin-top: 20px;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }

    .hero-left {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-right {
        text-align: center;
        width: 100%;
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .logo-large {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .tagline {
        font-size: 1.8rem;
    }

    .description {
        font-size: 1rem;
        margin: 0 auto 30px;
    }

    .logo-large img {
        max-width: 80%;
        max-height: 300px;
    }

    .members-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .members-grid-inner {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
    }

    .member-avatar {
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .member-info {
        align-items: center;
        min-height: auto;
    }

    .member-desc {
        max-width: 100%;
    }

    .member-links {
        justify-content: center;
    }
}

/* 移动端菜单操作区：深浅色切换 + 语言切换 */
.mobile-controls {
    display: none;
}

@media (max-width: 768px) {
    .nav-right .theme-toggle,
    .nav-right .lang-switch {
        display: none;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 26px;
        margin-top: 22px;
        padding-top: 22px;
        width: 100%;
        border-top: 1px solid rgba(199, 125, 255, 0.2);
    }

    .mobile-controls .theme-toggle {
        width: 38px;
        height: 38px;
        background: rgba(199, 125, 255, 0.12);
    }

    .mobile-controls .lang-switch .lang-menu {
        top: calc(100% + 8px);
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
    }

    .mobile-controls .lang-switch.open .lang-menu {
        transform: translateX(-50%) translateY(0);
    }

    .mobile-controls .lang-menu a::after {
        display: none;
    }
}