/* 全局重置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #ede7f6 100%);
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 动态背景 */
.emoji-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.emoji {
    position: absolute;
    font-size: 24px;
    opacity: 0.2;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

/* 容器布局 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 100px;
}

/* 标题区域 */
header {
    text-align: center;
    padding: 40px 0 30px; /* 增加上下间距 */
}

header {
    padding: 50px 0 30px; 
}

h1 {
    /* 引入更有艺术感的衬线字体 */
    font-family: 'Noto Serif SC', "STSong", "Songti SC", serif;
    font-size: clamp(1.8rem, 5vw, 2.25rem); 
    
    background: linear-gradient(to bottom, #4527a0, #7b1fa2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    margin-bottom: 4px; /* 缩小间距，让主副标题更紧凑 */
    font-weight: 600; 
    letter-spacing: 0.15em; 
    text-indent: 0.15em; 
    -webkit-font-smoothing: antialiased;
}

.subtitle {
    color: #9575cd;
    font-size: 0.85rem; 
    letter-spacing: 0.35em; /* 稍微收紧一点，避免手机端太散 */
    text-indent: 0.35em;
    font-weight: 300;
    opacity: 0.8;
    position: relative;
    display: inline-block; /* 为了让横线更精准 */
}

/* 副标题下方的艺术横线 */
.subtitle::after {
    content: "";
    display: block;
    width: 30px;
    height: 1.5px; /* 稍微加厚一点，增加质感 */
    background: #b39ddb;
    margin: 8px auto 0; /* 缩小与文字的距离 */
    opacity: 0.6;
}

/* --- 专门针对手机端的艺术微调 --- */
@media (max-width: 600px) {
    h1 {
        font-size: 1.9rem; /* 手机端稍微大一点点，更有视觉冲击 */
        letter-spacing: 0.1em; /* 手机屏幕窄，字间距要收紧才好看 */
        font-weight: 700; /* 手机端屏幕像素密度高，加粗一点才不显“虚” */
    }
    
    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    .subtitle::after {
        width: 40px; /* 手机端横线加长，更有支撑感 */
        height: 2px; /* 手机端横线必须加厚，否则像坏掉的像素点 */
        opacity: 0.8;
        margin-top: 6px;
    }
}

/* 海报适配核心：3:4 比例 */
.poster-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.poster-card {
    background: rgba(255, 255, 255, 0.4);
    padding: 12px;
    border-radius: 28px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.image-frame {
    width: 100%;
    aspect-ratio: 3 / 4; 
    overflow: hidden;
    border-radius: 20px;
    background: #f0f0f0;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.caption {
    text-align: center;
    margin: 20px 0 10px;
    color: #512da8;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 留言板样式 */
.message-board {
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(94, 53, 177, 0.05);
}

.board-header h3 {
    margin-top: 0;
    color: #4527a0;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.input-area textarea {
    width: 100%;
    height: 120px;
    border: 1px solid rgba(149, 117, 205, 0.2);
    border-radius: 18px;
    padding: 18px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.9);
    resize: none;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.input-area textarea:focus {
    border-color: #7e57c2;
    box-shadow: 0 0 0 4px rgba(126, 87, 194, 0.1);
}

#sendBtn {
    margin-top: 15px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(94, 53, 177, 0.2);
    transition: transform 0.2s;
}

#sendBtn:active {
    transform: scale(0.98);
}

.comment-list {
    margin-top: 30px;
}

.comment-item {
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    font-size: 17px;
    color: #444;
    border-left: 5px solid #b39ddb;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 悬浮按钮 */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 100;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating {
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

/* 手机端微调 */
@media (max-width: 600px) {
    header { padding: 40px 0 20px; }
    .container { padding: 10px 12px 80px; }
    .message-board { padding: 20px; }
}
/* --- 问卷调查区域：修正版 --- */
.survey-section {
    margin: 60px 0; /* 增加上下间距，让页面更透气 */
    text-align: center;
}

.survey-card {
    /* 更加通透的磨砂质感 */
    background: rgba(255, 255, 255, 0.4); 
    padding: 40px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(94, 53, 177, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.survey-card h3 {
    margin: 0 0 10px 0;
    color: #4527a0;
    font-size: 1.5rem;
    font-weight: 700;
}

.survey-card p {
    color: #5e35b1;
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.survey-btn {
    display: inline-block;
    padding: 16px 50px;
    /* 更加鲜亮的紫色渐变，确保在浅色背景下醒目 */
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff !important; /* 强制白色 */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 增加回弹效果 */
}

/* 交互效果 */
.survey-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
    filter: brightness(1.1);
}

.survey-btn:active {
    transform: translateY(-2px) scale(0.98);
}