/* ========== 首页专属样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #FAF7F2;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(255, 240, 220, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(210, 235, 230, 0.3) 0%, transparent 60%);
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%;
    color: #2E3A3C;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 1s ease;
}
/* 主题变量（新增卡片背景变量） */
body[data-theme="wave"] {
    background-color: #FAF7F2;
    --message-bg: rgba(255,255,245,0.4);
    --text-primary: #2E3A3C;
    --text-secondary: #4A5A5C;
    --card-bg: rgba(255,255,245,0.7);
    --card-border: rgba(255,255,255,0.7);
}
body[data-theme="rain"] {
    background-color: #E8F0F5;
    --message-bg: rgba(230,240,245,0.5);
    --text-primary: #2E3A3C;
    --text-secondary: #4A5A5C;
    --card-bg: rgba(230,245,250,0.7);
    --card-border: rgba(255,255,255,0.7);
}
body[data-theme="forest"] {
    background-color: #E3F0E3;
    --message-bg: rgba(220,240,220,0.5);
    --text-primary: #2E3A3C;
    --text-secondary: #4A5A5C;
    --card-bg: rgba(220,240,220,0.7);
    --card-border: rgba(255,255,255,0.7);
}
body[data-theme="star"] {
    background-color: #1E2A36;
    --message-bg: rgba(40,50,65,0.6);
    --text-primary: #E0E7EF;
    --text-secondary: #B0C0CC;
    --card-bg: rgba(40,50,65,0.8);
    --card-border: rgba(220,230,240,0.2);
}
body[data-theme="arctic"] {
    background-color: #D9E9F2;
    --message-bg: rgba(210,230,240,0.5);
    --text-primary: #2E3A3C;
    --text-secondary: #4A5A5C;
    --card-bg: rgba(210,235,245,0.7);
    --card-border: rgba(255,255,255,0.7);
}
body[data-theme="sun"] {
    background-color: #FDF3E0;
    --message-bg: rgba(250,240,220,0.5);
    --text-primary: #2E3A3C;
    --text-secondary: #4A5A5C;
    --card-bg: rgba(255,245,220,0.7);
    --card-border: rgba(255,255,255,0.7);
}

/* 应用文字变量 */
body, .hero .subhead, .intro-card p, .card-content p, .testimonial-text, .personal-note, .footer {
    color: var(--text-primary, #2E3A3C);
}
.hero-greeting, .trust-badge, .section-sub, .testimonial-footer, .island-message {
    color: var(--text-secondary, #4A5A5C);
}

/* ========== 主题动效层 ========== */
.theme-effects { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.wave-effect, .rain-effect, .forest-effect, .star-effect, .shooting-star, .arctic-effect, .snow-flake, .sun-effect { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
body[data-theme="wave"] .wave-effect { display: block; }
body[data-theme="rain"] .rain-effect { display: block; }
body[data-theme="forest"] .forest-effect { display: block; }
body[data-theme="star"] .star-effect { display: block; }
body[data-theme="star"] .shooting-star { display: block; }
body[data-theme="arctic"] .arctic-effect { display: block; }
body[data-theme="arctic"] .snow-flake { display: block; }
body[data-theme="sun"] .sun-effect { display: block; }

/* 海浪波浪 */
.wave-effect .wave-line {
    position: absolute; bottom: 0; left: 0; width: 200%; height: 18px;
    background: linear-gradient(180deg, rgba(173, 216, 230, 0.25) 0%, rgba(100, 150, 180, 0.2) 100%);
    border-radius: 40% 40% 0 0; animation: waveMove 8s infinite linear;
}
.wave-effect .wave-line:nth-child(2) {
    bottom: 8px; height: 14px; opacity: 0.4;
    animation: waveMove 6s infinite reverse linear;
    background: linear-gradient(180deg, rgba(130, 190, 210, 0.3) 0%, transparent);
}
@keyframes waveMove { 0% { transform: translateX(0) scaleX(1); } 50% { transform: translateX(-25%) scaleX(0.98); } 100% { transform: translateX(-50%) scaleX(1); } }

/* 雨幕效果 */
.rain-effect .rain-line {
    position: absolute; width: 1px; height: 20px; background: rgba(140, 170, 190, 0.2);
    transform: rotate(10deg); animation: rainBreath 5s infinite alternate ease-in-out;
}
@keyframes rainBreath { 0% { opacity: 0.1; } 100% { opacity: 0.5; } }

/* 森林光斑 */
.forest-effect .forest-spot {
    position: absolute; width: 20px; height: 20px; background: rgba(100, 120, 70, 0.15);
    border-radius: 70% 30% 60% 40%; filter: blur(4px);
    animation: forestFloat 12s infinite alternate ease-in-out;
}
@keyframes forestFloat { 0% { transform: scale(0.8) rotate(0deg); opacity: 0.2; } 100% { transform: scale(1.2) rotate(10deg); opacity: 0.5; } }

/* 冰晶悬浮 */
.snow-flake .ice-crystal {
    position: absolute; width: 6px; height: 6px; background: rgba(255, 255, 255, 0.6);
    border-radius: 30% 70% 50% 50%; filter: blur(1px);
    animation: iceTwinkle 10s infinite alternate ease-in-out;
}
.snow-flake .ice-crystal::after {
    content: ''; position: absolute; width: 2px; height: 2px; background: white;
    border-radius: 50%; top: 2px; left: 2px; opacity: 0.8;
}
@keyframes iceTwinkle { 0% { transform: rotate(0deg) scale(0.8); opacity: 0.3; } 100% { transform: rotate(30deg) scale(1.2); opacity: 0.8; } }

/* 星空闪烁 */
.star-effect .star {
    position: absolute; width: 2px; height: 2px; background: white;
    border-radius: 50%; box-shadow: 0 0 8px rgba(255, 255, 200, 0.8);
    animation: twinkle 4s infinite alternate;
}
.star-effect .star:nth-child(even) { animation-duration: 3s; width: 3px; height: 3px; }
@keyframes twinkle { 0% { opacity: 0.2; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }

/* 流星 */
.shooting-star .meteor {
    position: absolute; width: 80px; height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 240, 0.9), rgba(255, 255, 255, 0.1));
    border-radius: 2px; transform: rotate(25deg); filter: blur(1px);
    animation: shoot 12s infinite ease-out; opacity: 0;
}
.shooting-star .meteor:nth-child(2) { animation-delay: 5s; width: 60px; top: 20%; }
.shooting-star .meteor:nth-child(3) { animation-delay: 9s; width: 100px; top: 70%; }
@keyframes shoot {
    0% { transform: translate(120vw, -10vh) rotate(25deg); opacity: 0; }
    5% { opacity: 1; }
    15% { transform: translate(30vw, 30vh) rotate(25deg); opacity: 0.8; }
    25% { opacity: 0; transform: translate(-20vw, 70vh) rotate(25deg); }
    100% { opacity: 0; }
}

.arctic-effect { background: radial-gradient(ellipse at 30% 20%, rgba(180, 220, 240, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 40%, rgba(150, 210, 230, 0.1) 0%, transparent 60%); }
.sun-effect { background: radial-gradient(circle at 70% 20%, rgba(255, 220, 150, 0.2) 0%, transparent 40%); }

/* ========== 容器 ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 10; }

/* ========== 导航（响应式优化） ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 20px;
    position: relative;
    flex-wrap: nowrap; /* 防止换行 */
    gap: 16px;
}
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9BB0A0, transparent);
    opacity: 0.2;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
}
.logo-icon {
    width: 2.4rem;
    height: 2.4rem;
    opacity: 0.8;
}
.logo a {
    font-size: 1.8rem;
    font-weight: 500;
    color: #9BB0A0;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0; /* 防止被压缩 */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}
.hamburger span {
    width: 25px;
    height: 2px;
    background: #2E3A3C;
    margin: 3px 0;
    transition: 0.3s;
}
body[data-theme="star"] .hamburger span { background: #E0E7EF; }

.nav-links {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap; /* 强制不换行 */
    align-items: center;
}
@media (max-width: 1000px) {
    .nav-links {
        gap: 20px; /* 缩小间隙 */
    }
}
.nav-links a {
    color: #2E3A3C;
    text-decoration: none;
    font-weight: 400;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
    opacity: 0.8;
    font-size: 1rem;
    white-space: nowrap; /* 防止文字换行 */
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #C97C5D;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}
.nav-links a:hover {
    opacity: 1;
    color: #9BB0A0;
}
.nav-links a:hover::after {
    opacity: 1;
}
.nav-links a.active {
    opacity: 1;
    color: #9BB0A0;
    font-weight: 500;
}
.nav-links a.active::after {
    opacity: 1;
    background: #9BB0A0;
}
body[data-theme="star"] .nav-links a { color: #E0E7EF; }

/* 登录按钮美化 */
#loginBtn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,245,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(155,176,160,0.4);
    border-radius: 40px;
    font-weight: 500;
    color: #2E3A3C;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    font-size: 0.95rem;
}
#loginBtn:hover {
    background: #9BB0A0;
    color: white;
    border-color: #9BB0A0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155,176,160,0.3);
}
body[data-theme="star"] #loginBtn {
    color: #E0E7EF;
    background: rgba(40,50,65,0.6);
    border-color: rgba(224,231,239,0.3);
}
body[data-theme="star"] #loginBtn:hover {
    background: #9BB0A0;
    color: white;
    border-color: #9BB0A0;
}

/* 用户信息区域（始终显示） */
.nav-user {
    display: flex;
    align-items: center;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg); /* 使用卡片背景变量保持统一 */
    backdrop-filter: blur(4px);
    padding: 4px 12px 4px 6px;
    border-radius: 40px;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #9BB0A0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 2px solid rgba(155,176,160,0.3);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.user-nickname-mbti {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.user-nickname {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1E2A2C;
    white-space: nowrap;
}
body[data-theme="star"] .user-nickname { color: #E0E7EF; }
.user-mbti {
    font-size: 0.65rem;
    background: rgba(201,124,93,0.15);
    color: #C97C5D;
    padding: 2px 8px;
    border-radius: 30px;
    display: inline-block;
    width: fit-content;
    font-weight: 500;
}
.user-title-exp {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.user-title {
    font-size: 0.7rem;
    background: rgba(201,124,93,0.1);
    color: #C97C5D;
    padding: 2px 8px;
    border-radius: 30px;
}
.user-exp {
    font-size: 0.6rem;
    color: #6F8F8A;
    white-space: nowrap;
}
.user-signout {
    color: #C97C5D;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 6px;
}
.user-signout:hover { opacity: 1; }

.notification-icon {
    position: relative;
    cursor: pointer;
    color: #4A5A5C;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}
body[data-theme="star"] .notification-icon { color: #E0E7EF; }
.notification-icon:hover { color: #C97C5D; }
.notification-dot {
    display: none;
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #C97C5D;
    border-radius: 50%;
    border: 1px solid white;
}

/* ========== Hero 区域 ========== */
.hero {
    text-align: center; padding: 40px 0 40px; position: relative;
    background: transparent;
    border-radius: 0 0 80px 80px;
}
.hero-illustration {
    width: 240px; height: 160px; margin: 0 auto 20px; opacity: 0.9; position: relative; z-index: 2;
}
.hero-illustration-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hero h1 {
    font-family: 'Playfair Display', serif; font-weight: 500; font-size: 4rem;
    letter-spacing: 2px; color: #9BB0A0; margin-bottom: 8px; line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.03);
    position: relative; z-index: 2;
}
.hero .subhead {
    font-size: 1.2rem; max-width: 550px; margin: 0 auto 16px; font-weight: 300;
    background: rgba(255,255,245,0.4); backdrop-filter: blur(2px); padding: 6px 16px;
    border-radius: 40px; display: inline-block; border: 1px solid rgba(201,124,93,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.hero .hero-greeting {
    font-size: 1rem; background: rgba(255,255,245,0.7);
    backdrop-filter: blur(4px); padding: 6px 20px; border-radius: 40px;
    display: block; width: fit-content; margin: 10px auto 24px;
    border: 1px solid rgba(201,124,93,0.3); box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}
.cta-group { display: flex; gap: clamp(12px, 2vw, 20px); justify-content: center; flex-wrap: wrap; }

/* 按钮 */
.cta-button, .secondary-button {
    border: none; border-radius: 40px; padding: 12px 32px; font-size: 1rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s ease; text-decoration: none; display: inline-block;
}
.cta-button { background-color: #9BB0A0; color: white; box-shadow: 0 4px 12px rgba(155,176,160,0.2); }
.cta-button:hover { background-color: #C96A4D; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,106,77,0.3); }
.secondary-button { background: transparent; border: 1px solid #9BB0A0; color: #9BB0A0; }
.secondary-button:hover { background: rgba(155,176,160,0.1); border-color: #C96A4D; color: #C96A4D; transform: translateY(-2px); }

/* ========== 简介卡片 ========== */
.intro-grid { 
    display: flex; 
    gap: clamp(12px, 2vw, 20px); 
    justify-content: center; 
    margin: 40px 0 20px; 
    flex-wrap: wrap; 
}
.intro-card {
    background: var(--card-bg); 
    backdrop-filter: blur(4px); 
    padding: 18px 24px;
    border-radius: 50px; 
    border: 1px solid var(--card-border);
    box-shadow: 0 6px 16px rgba(0,0,0,0.03), inset 0 1px 2px rgba(255,255,255,0.8);
    transition: transform 0.2s, box-shadow 0.2s; 
    display: flex; 
    align-items: center; 
    gap: 12px;
    cursor: pointer;
}
.intro-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.08); 
    border-color: rgba(155,176,160,0.5);
}
.intro-card .intro-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    transition: transform 0.2s;
}
.intro-card:hover .intro-icon {
    transform: scale(1.05);
}
.intro-card .card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.intro-card .card-text .main {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1E2A2C;
}
body[data-theme="star"] .intro-card .card-text .main { color: #E0E7EF; }
.intro-card .card-text .sub {
    font-size: 0.8rem;
    color: #6F8F8A;
}
.intro-card i.fa-arrow-right {
    font-size: 0.9rem;
    color: #C97C5D;
    opacity: 0.6;
    transition: transform 0.2s;
}
.intro-card:hover i.fa-arrow-right {
    transform: translateX(4px);
    opacity: 1;
}

/* 信任徽章 */
.trust-badge {
    text-align: center; font-size: 0.9rem; margin: 10px auto 40px;
    background: rgba(255,255,245,0.6); backdrop-filter: blur(4px); padding: 8px 28px;
    border-radius: 40px; display: inline-block; border: 1px solid rgba(155,176,160,0.2);
}

/* ========== 探索卡片 ========== */
.section-title {
    font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 400;
    color: #9BB0A0; margin: 60px 0 10px; text-align: center; position: relative;
}
.section-title::after {
    content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 2px;
    background: repeating-linear-gradient(90deg, #C97C5D 0px, #C97C5D 6px, transparent 6px, transparent 12px);
    opacity: 0.4; border-radius: 1px;
}
.section-sub { text-align: center; font-size: 1.1rem; margin-bottom: 30px; font-style: italic; }
.explore-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: clamp(12px, 2vw, 28px); 
    margin: 40px 0; 
}
.explore-card {
    background: var(--card-bg); 
    backdrop-filter: blur(4px); 
    border-radius: 36px;
    overflow: hidden; 
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.05), inset 0 1px 2px rgba(255,255,255,0.8);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; 
    display: flex; 
    flex-direction: column;
}
.explore-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15); 
    border-color: rgba(155,176,160,0.6);
}
.card-image { 
    height: 160px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(4px);
}
/* 为每个卡片设置不同的极淡底色（保留原有特色） */
.explore-card:nth-child(1) .card-image { background: rgba(175, 210, 200, 0.2); }
.explore-card:nth-child(2) .card-image { background: rgba(190, 175, 210, 0.2); }
.explore-card:nth-child(3) .card-image { background: rgba(230, 200, 170, 0.2); }
.explore-card:nth-child(4) .card-image { background: rgba(170, 210, 210, 0.2); }
.explore-card:nth-child(5) .card-image { background: rgba(210, 170, 180, 0.2); }
.explore-card:nth-child(6) .card-image { background: rgba(220, 190, 140, 0.2); }
.explore-card:nth-child(7) .card-image { background: rgba(190, 175, 210, 0.2); }
.explore-card:nth-child(8) .card-image { background: rgba(230, 200, 170, 0.2); }
.explore-card:nth-child(9) .card-image { background: rgba(170, 210, 210, 0.2); }

.card-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}
.explore-card:hover .card-icon {
    transform: scale(1.05) rotate(2deg);
}
.card-content { 
    padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px) clamp(20px, 2.5vw, 26px); 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}
.card-content h3 { 
    font-size: 1.5rem; 
    font-weight: 500; 
    color: #1E2A2C; 
    margin-bottom: 8px; 
}
body[data-theme="star"] .card-content h3 { color: #E0E7EF; }
.card-content p { 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
    flex: 1; 
    line-height: 1.5; 
    opacity: 0.9;
}
.card-link {
    background: rgba(155,176,160,0.15); 
    color: inherit; 
    text-decoration: none; 
    font-weight: 500;
    padding: 10px 18px; 
    border-radius: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    width: 100%; 
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid rgba(155,176,160,0.3); 
    margin-top: 8px;
}
.card-link i { 
    font-size: 0.9rem; 
    transition: transform 0.2s; 
    color: #C96A4D; 
}
.card-link:hover { 
    background: #9BB0A0; 
    color: white; 
    border-color: #9BB0A0; 
}
.card-link:hover i { 
    transform: translateX(4px); 
    color: white; 
}

/* 树洞大卡片（背景也使用卡片变量，但保留渐变质感？为统一先使用纯色） */
.treehole-promo {
    background: var(--card-bg);
    border-radius: 48px; 
    padding: clamp(20px, 3vw, 36px) clamp(24px, 4vw, 44px); 
    margin: 40px 0;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: clamp(16px, 3vw, 30px);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(4px); 
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.8);
}
.treehole-promo h3 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2rem; 
    font-weight: 400; 
    color: #1E2A2C; 
    margin-bottom: 8px; 
    display: flex;
    align-items: center;
}
.treehole-promo p { font-size: 1rem; }
.treehole-btn { background: #9BB0A0; color: white; border: none; border-radius: 40px; padding: 14px 40px; font-size: 1rem; text-decoration: none; transition: 0.2s; }
.treehole-btn:hover { background: #C96A4D; transform: translateY(-2px); }

/* 随机岛民留言 */
.island-message {
    text-align: center; margin: 30px 0 10px; padding: 12px 20px;
    background: var(--message-bg, rgba(255,255,245,0.4)); backdrop-filter: blur(4px);
    border-radius: 60px; display: inline-block; width: auto; margin-left: auto; margin-right: auto;
    border: 1px solid rgba(255,255,255,0.6); font-size: 0.95rem;
}
.island-message i { color: #C97C5D; margin-right: 8px; font-size: 1rem; opacity: 0.7; }
.message-text { font-style: italic; }

/* 岛屿回声（留言板） */
.testimonial-section {
    background: var(--card-bg); 
    backdrop-filter: blur(4px); 
    border-radius: 48px;
    padding: 32px; 
    margin: 40px 0; 
    border: 1px solid var(--card-border);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.8);
}
.testimonial-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.tab-btn {
    cursor: pointer;
    padding: 6px 20px;
    border-radius: 30px;
    background: rgba(255,255,245,0.6);
    border: 1px solid rgba(155,176,160,0.3);
    transition: all 0.2s;
}
.tab-btn.active {
    background: #9BB0A0;
    color: white;
    border-color: #9BB0A0;
}
.testimonial-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: clamp(12px, 2vw, 24px); 
}
.testimonial-card {
    background: var(--card-bg); 
    backdrop-filter: blur(4px); 
    border-radius: 32px;
    padding: 24px; 
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02), inset 0 1px 2px rgba(255,255,255,0.8);
    position: relative; 
    transition: transform 0.2s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card::before {
    content: '“'; font-family: 'Playfair Display', serif; font-size: 3rem;
    background: linear-gradient(145deg, #9BB0A0, #C97C5D); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; opacity: 0.3; position: absolute; top: -5px; left: 15px;
}
.testimonial-text { margin-bottom: 20px; padding-left: 8px; font-style: italic; font-size: 0.95rem; }
.testimonial-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; border-top: 1px dashed rgba(155,176,160,0.3); padding-top: 12px; }
.testimonial-like { display: flex; align-items: center; gap: 6px; cursor: pointer; transition: color 0.2s; }
.testimonial-like:hover { color: #C96A4D; }
.testimonial-like i { transition: transform 0.2s; }
.testimonial-like:active i { animation: likePop 0.3s ease; }
@keyframes likePop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* 发布框美化 */
.post-message-box {
    margin-bottom: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.post-message-box textarea {
    width: 60%;
    padding: 14px 20px;
    border: 1px solid #dac2ab;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: #fff9f0;
    transition: 0.2s;
    color: #3a322c;
    resize: vertical;
    min-height: 80px;
}
.post-message-box textarea:focus {
    outline: none;
    border-color: #c9a787;
    box-shadow: 0 0 0 3px rgba(190, 150, 120, 0.2);
}
.post-message-box .secondary-button {
    background: #9BB0A0;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    align-self: center;
}
.post-message-box .secondary-button:hover {
    background: #C97C5D;
    transform: translateY(-2px);
}

/* 个人语 */
.personal-note { text-align: center; margin: 40px 0 40px; padding: 24px; font-family: 'Playfair Display', serif; font-style: italic; border-top: 1px solid rgba(155,176,160,0.2); border-bottom: 1px solid rgba(155,176,160,0.2); }
.personal-note p { max-width: 600px; margin: 6px auto; font-size: 1rem; }
.personal-note p:first-child { font-size: 1.2rem; color: #9BB0A0; }

/* ========== 底部 ========== */
.footer { padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; border-top: 1px solid rgba(155,176,160,0.2); }
.footer-links { display: flex; gap: clamp(16px, 3vw, 30px); flex-wrap: wrap; justify-content: center; }
.footer-links a { text-decoration: none; font-size: 0.9rem; transition: color 0.2s; opacity: 0.8; }
.footer-links a:hover { color: #C97C5D; opacity: 1; }
.footer-copyright { font-size: 0.85rem; opacity: 0.7; }
.support { display: flex; align-items: center; gap: 16px; background: rgba(255,255,245,0.6); padding: 6px 20px 6px 28px; border-radius: 60px; border: 1px solid rgba(255,255,255,0.6); }
.support img { height: 100px; border-radius: 8px; transition: transform 0.2s ease, box-shadow 0.2s; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.05); transform-origin: top right; z-index: 1; }
/* 移除悬停放大，改为模态框展示大图，因此注释掉原有缩放 */
/* .support img:hover { transform: scale(2); z-index: 10; box-shadow: 0 8px 20px rgba(0,0,0,0.1); } */

/* ========== 音效控制 ========== */
.sound-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.sound-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,245,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
    color: #9BB0A0;
}
.sound-button:hover {
    transform: scale(1.1);
    background: white;
    color: #C97C5D;
}
.sound-panel {
    background: rgba(255,255,245,0.95);
    backdrop-filter: blur(16px);
    border-radius: 40px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    width: 260px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.sound-panel.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sound-guide { text-align: center; font-size: 0.9rem; color: #9BB0A0; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed rgba(155,176,160,0.3); }
.sound-option { padding: 8px 0; }
.sound-option > div { display: flex; justify-content: space-between; align-items: center; }
.sound-label { display: flex; flex-direction: column; }
.sound-label span:first-child { font-weight: 500; }
.sound-desc { font-size: 0.7rem; color: #4A5A5C; }
.sound-play {
    background: none;
    border: 1px solid #9BB0A0;
    border-radius: 30px;
    padding: 4px 16px;
    font-size: 0.8rem;
    color: #9BB0A0;
    cursor: pointer;
    transition: 0.2s;
}
.sound-play.playing { background: #9BB0A0; color: white; }
.sound-play:hover { background: #C97C5D; border-color: #C97C5D; color: white; }

/* ========== 响应式优化 ========== */
@media (max-width: 1000px) { 
    .explore-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 800px) {
    .hero h1 { font-size: 3rem; }
    .intro-grid { flex-direction: column; align-items: center; }
    .navbar { flex-direction: row; flex-wrap: wrap; }
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255,255,245,0.95);
        backdrop-filter: blur(8px);
        padding: 16px 12px;
        border-radius: 24px;
        margin-top: 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        gap: 6px;
    }
    .nav-links.show { display: flex; }
    .nav-links a { 
        width: 100%; 
        text-align: left;
        padding: 8px 16px;
        color: #2E3A3C;
        font-weight: 500;
        border-radius: 40px;
        transition: background 0.2s;
    }
    .nav-links a:hover {
        background: rgba(155,176,160,0.1);
    }
    .nav-links a.active {
        background: rgba(155,176,160,0.15);
        color: #9BB0A0;
    }

    /* 登录按钮在移动端保持按钮样式 */
    #loginBtn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }

    /* 用户信息区域在移动端简化：隐藏 MBTI、经验值和退出图标 */
    .user-mbti,
    .user-exp,
    .user-signout {
        display: none;
    }
    .user-nickname-mbti {
        flex-wrap: nowrap;
    }
    .user-title-exp {
        margin-left: 4px;
    }

    .cta-group { flex-direction: column; align-items: center; }
    .cta-button, .secondary-button { width: 100%; text-align: center; }
    .explore-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px; 
        margin: 30px 0; 
    }
    .card-icon {
        width: 60px;
        height: 60px;
    }
    .testimonial-grid { grid-template-columns: 1fr; }
    .post-message-box textarea {
        width: 100%;
    }
    .footer-links { gap: 20px; }
    .sound-control { 
        bottom: 20px; 
        right: 20px; 
        align-items: flex-end; 
    }
    .sound-button { 
        width: 44px; 
        height: 44px; 
        font-size: 1.2rem; 
        background: rgba(255,255,245,0.95); 
    }
    .sound-panel { 
        position: absolute; 
        bottom: 60px; 
        right: 0; 
        transform: translateY(-10px); 
        width: 260px; 
        max-width: 90vw; 
    }
    .sound-panel.show { transform: translateY(0); }

    /* 内容板块紧凑化 */
    .explore-grid {
        gap: 12px;
    }
    .explore-card .card-image {
        height: 100px;
    }
    .explore-card .card-content {
        padding: 12px 12px 16px;
    }
    .explore-card h3 {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    .explore-card p {
        font-size: 0.8rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .card-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .treehole-promo {
        padding: 20px 24px;
        margin: 30px 0;
    }
    .treehole-promo h3 {
        font-size: 1.5rem;
    }
    .treehole-promo p {
        font-size: 0.9rem;
    }
    .treehole-btn {
        padding: 10px 28px;
        font-size: 0.9rem;
    }
    .testimonial-section {
        padding: 20px 16px;
    }
    .testimonial-card {
        padding: 16px;
    }
    .testimonial-text {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .personal-note {
        padding: 16px;
        margin: 30px 0;
    }
    .personal-note p {
        font-size: 0.9rem;
    }
    .support {
        padding: 4px 16px 4px 20px;
    }
    .support img {
        height: 70px;
    }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 2.4rem; } 
    .section-title { font-size: 2rem; } 
    .explore-grid { grid-template-columns: 1fr; }

    /* 用户信息微调 */
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    .user-nickname {
        font-size: 0.8rem;
    }
    .user-title {
        font-size: 0.6rem;
        padding: 1px 6px;
    }
    .notification-icon {
        font-size: 1rem;
    }

    .intro-card {
        padding: 12px 16px;
    }
    .intro-icon {
        width: 28px;
        height: 28px;
    }

    .explore-card .card-image {
        height: 90px;
    }
    .card-icon {
        width: 50px;
        height: 50px;
    }
}
@media (max-width: 480px) {
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    .user-nickname {
        font-size: 0.75rem;
    }
    .user-title {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
}