/* 基本样式重置 */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

/* 页面 Logo 样式 (移动到 top-section 内) */
/* .page-logo { ... } */ /* 旧的全局样式注释掉或删除 */

body {
    font-family: 'Noto Serif SC', serif; /* 使用谷歌字体 */
    position: relative; /* 为绝对定位的 logo 提供参照 */
    background-color: #f5e8c8; /* 怀旧米黄色 */
    color: #4a3b31; /* 复古深棕色文字 */
    line-height: 1.6;
    filter: sepia(0.2); /* 轻微的棕褐色滤镜 */
}

.container {
    max-width: 800px; /* 或者更适合移动端的宽度，如 100% 或 640px */
    margin: 0 auto;
    background-color: #fff9e6; /* 略微泛黄的纸张颜色 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 防止内容溢出 */
}

/* 顶部区域 */
.top-section {
    position: relative; /* 为内部绝对定位的 logo 提供参照 */
    padding: 30px 20px 20px; /* 增加顶部内边距 */
    padding-left: 90px; /* 为左侧 logo 留出空间 */
    background-color: rgba(224, 242, 247, 0.5); /* 示例：淡蓝色背景，可根据校徽蓝调整 */
    border-bottom: 1px solid #eee;
    text-align: center;
}

.top-section .page-logo {
    position: absolute;
    top: 20px; /* 调整垂直位置 */
    left: 20px; /* 调整水平位置 */
    width: 60px; /* 根据需要调整大小 */
    height: auto;
    z-index: 10; /* 确保在其他内容之上 */
}

.main-title {
    font-family: 'Noto Serif SC', cursive; /* 回退到备用书法风格字体 */
    font-size: 2.0em; /* 调整字号 */
    font-weight: bold;
    background: linear-gradient(to right, #e6b34a, #b88a44); /* 渐变金色 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.sub-title {
    font-family: 'Din Pro', sans-serif; /* 数字和英文部分使用Din Pro */
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

/* Banner轮播图 */
.banner .banner-image {
    position: absolute; /* 让图片重叠 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.8s ease-in-out; /* 添加淡入淡出效果 */
}

.banner .banner-image.active {
    opacity: 1; /* 当前显示的图片, JS会添加/移除这个class */
}
.banner {
    margin-bottom: 20px; /* 增加与下方内容的间距 */
    position: relative;
    overflow: hidden;
    width: 100%;
    /* max-height: 250px; */ /* 移除固定高度，使用宽高比 */
    aspect-ratio: 16 / 9; /* 设置容器宽高比为16:9 */
}



/* 中部核心区 */
.middle-section {
    padding: 15px 20px 25px; /* 调整内边距，减少顶部间距 */
}

.logo-map {
    text-align: center;
    margin-bottom: 10px; /* 减少与下方内容的间距 */
    min-height: 20px; /* 保留一点空间，避免完全塌陷 */
}

/* .logo-map .logo { */
/*    max-width: 80px; */
/*    opacity: 0.8; */
/*    filter: grayscale(30%); */
/*    display: block; */
/*    margin: 0 auto 15px; */
/* } */ /* 样式已移除，因为 logo 移动了 */

.logo-map .map-placeholder {
    font-style: italic;
    color: #888;
    /* 实际地图样式 */
}

.invitation-title {
    font-family: 'Noto Serif SC', cursive; /* 回退到备用书法风格字体 */
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: #b8860b; /* 烫金效果色 - 深金色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 轻微阴影增加立体感 */
}

.content {
    font-size: 1em;
}

.content p {
    margin-bottom: 1.2em; /* 段落间距 */
    /* text-indent: 2em; */ /* 移除全局首行缩进 */
    text-align: left; /* 默认左对齐 */
    line-height: 1.8;
}

.invitation-body-greeting {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.5em !important; /* 调整与正文间距 */
    text-align: left;
    text-indent: 0 !important; /* 问候语不缩进 */
}

.invitation-body {
    font-family: 'Noto Serif SC', serif; /* 回退到备用宋体 */
    font-size: 1.2em; /* 增大字号 */
    line-height: 1.9; /* 调整行高 */
    text-align: justify; /* 两端对齐，更显正式 */
    text-indent: 2em; /* 正文段落首行缩进 */
    margin-bottom: 1.5em !important;
}

.content hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 25px 0;
}

.section-title {
    font-family: '汉仪尚巍手书体', 'Your Calligraphy Font', cursive;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #005a9c; /* 校徽蓝 Pantone 2945C 对应的 HEX */
    color: #005a9c;
}

.schedule ul, .content ul {
    list-style: none;
    padding-left: 2em; /* 调整列表缩进 */
}

.schedule ul,
.content ul {
    list-style-type: disc; /* 使用默认圆点 */
    padding-left: 2em; /* 调整列表缩进 */
    margin-left: 1em; /* 增加左外边距，避免与标题太近 */
}

.schedule li,
.content li {
    margin-bottom: 8px;
    /* position: relative; */ /* 如果不需要自定义标记，可以移除 */
}

/* 移除之前自定义列表标记的样式 */
/* .schedule li::before, .content li::before { ... } */

.fee-details {
    font-size: 0.85em; /* 减小字号 */
    color: #666; /* 使用稍浅的颜色 */
}

.schedule li::before, .content li::before {
    content: "•"; /* 使用圆点作为列表标记 */
    color: #005a9c; /* 校徽蓝 */
    position: absolute;
    left: -1.5em;
    top: 0;
}

.schedule strong, .content strong {
    font-family: 'Din Pro', sans-serif; /* 强调的日期/数字使用Din Pro */
}

.important-note {
    color: #d9534f; /* 红色强调 */
    font-weight: bold;
}

.first-screen-info {
    background-color: #fffbe6; /* 淡黄色背景突出 */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    text-align: center;
}

.first-screen-info p {
    margin: 5px 0;
    text-indent: 0; /* 取消首行缩进 */
}

/* 底部区域 */
.bottom-section {
    max-width: 800px; /* 与 container 保持一致 */
    margin: 0 auto; /* 居中 */
    padding: 10px 20px; /* 将上边距从30px调整为10px */
    background: linear-gradient(to bottom, rgba(255, 100, 100, 0.8), rgba(200, 50, 50, 0.9)), url('images/silk_texture.png'); /* 渐变红色绸带纹理 - 需要绸带纹理图片 */
    background-size: cover;
    text-align: center;
    color: #fff;
    border-top: 1px solid #eee;
}

.countdown {
    font-family: 'Din Pro', sans-serif; /* 数字字体 */
    font-size: 2.8em;
    font-weight: bold;
    margin: 15px 0 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.countdown-days {
    font-family: 'Courier New', Courier, monospace; /* 使用等宽字体营造数码感 */
    background-color: #333; /* 深色背景 */
    color: #00ff00; /* 绿色数字，类似LED */
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #444;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); /* 轻微的发光效果 */
    font-weight: bold;
    margin: 0 5px; /* 与旁边的文字稍微隔开 */
}

.closing-text {
    font-family: 'Noto Serif SC', cursive; /* 回退到备用书法风格字体 */
    font-style: italic;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* 音频播放器样式 */
.audio-player {
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 垂直居中对齐项目 */
    /* justify-content: space-between; /* 不再需要强制两端对齐 */
    padding: 0; /* 移除内边距，让其与父容器对齐 */
    /* border-top: 1px solid #eee; */ /* 移除顶部边框 */
    /* background-color: #f9f9f9; */ /* 移除背景色 */
    margin-top: 20px; /* 保留与上方内容的间距 */
    flex-wrap: wrap; /* 允许换行，以防控件太宽 */
}

.audio-player .section-title {
    margin-bottom: 10px; /* 在标题和播放器之间添加一些间距 */
    text-align: left;
    border-left: 4px solid #005a9c;
    padding-left: 10px;
    font-size: 1.2em;
    flex-basis: 100%; /* 标题占据整行 */
    /* flex-grow: 1; */ /* 不再需要 */
    /* margin-right: 15px; */ /* 不再需要 */
}

.audio-player audio {
    display: none; /* 隐藏原生音频控件 */
    width: 100%; /* 让播放器控件宽度适应容器 */
    margin-top: 5px; /* 与标题的间距 */
}

/* 音乐可视化效果样式 */
.music-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    margin-top: 10px;
    background-color: rgba(0, 90, 156, 0.1);
    border-radius: 5px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-visualizer:hover {
    background-color: rgba(0, 90, 156, 0.2);
}

.music-visualizer.playing .bar {
    animation-play-state: running;
}

.music-visualizer:not(.playing) .bar {
    animation-play-state: paused;
    height: 10px;
}

.play-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 90, 156, 0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    pointer-events: none;
}

.music-visualizer .bar {
    width: 9px;
    background-color: #005a9c;
    border-radius: 3px;
    margin: 0 0.5px; /* 进一步缩小柱子间距，使整体更紧凑 */
    height: 20px;
    animation: sound-wave 1.2s infinite ease-in-out;
}

.music-visualizer .bar:nth-child(1) { animation-delay: 0.0s; }
.music-visualizer .bar:nth-child(2) { animation-delay: 0.2s; }
.music-visualizer .bar:nth-child(3) { animation-delay: 0.4s; }
.music-visualizer .bar:nth-child(4) { animation-delay: 0.6s; }
.music-visualizer .bar:nth-child(5) { animation-delay: 0.8s; }
.music-visualizer .bar:nth-child(6) { animation-delay: 1.0s; }
.music-visualizer .bar:nth-child(7) { animation-delay: 0.3s; }
.music-visualizer .bar:nth-child(8) { animation-delay: 0.5s; }
.music-visualizer .bar:nth-child(9) { animation-delay: 0.1s; }
.music-visualizer .bar:nth-child(10) { animation-delay: 0.3s; }
.music-visualizer .bar:nth-child(11) { animation-delay: 0.5s; }
.music-visualizer .bar:nth-child(12) { animation-delay: 0.7s; }
.music-visualizer .bar:nth-child(13) { animation-delay: 0.9s; }
.music-visualizer .bar:nth-child(14) { animation-delay: 1.1s; }
.music-visualizer .bar:nth-child(15) { animation-delay: 0.1s; }
.music-visualizer .bar:nth-child(16) { animation-delay: 0.5s; }
.music-visualizer .bar:nth-child(17) { animation-delay: 0.25s; }
.music-visualizer .bar:nth-child(18) { animation-delay: 0.7s; }
.music-visualizer .bar:nth-child(19) { animation-delay: 0.05s; }
.music-visualizer .bar:nth-child(20) { animation-delay: 0.9s; }
.music-visualizer .bar:nth-child(21) { animation-delay: 0.18s; }
.music-visualizer .bar:nth-child(22) { animation-delay: 0.65s; }
.music-visualizer .bar:nth-child(23) { animation-delay: 0.3s; }
.music-visualizer .bar:nth-child(24) { animation-delay: 0.85s; }

@keyframes sound-wave {
    0% { height: 20px; }
    50% { height: 65px; }
    100% { height: 20px; }
}

/* 移除自定义按钮的样式 */
/* .audio-player button { ... } */
/* .audio-player button:hover { ... } */
/* .audio-player .play-button::before { ... } */
/* .audio-player .pause-button::before { ... } */

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        width: 100%;
        box-shadow: none;
    }
    .top-section {
        padding: 15px 15px 15px 70px; /* 增加左内边距为标题腾出更多空间 */
    }
    .middle-section, .bottom-section {
        padding: 20px 15px;
    }
    .top-section .page-logo {
        width: 45px; /* 进一步缩小logo尺寸 */
        left: 10px;  /* 调整logo左边距 */
        top: 10px;   /* 调整logo上边距 */
    }
    .main-title {
        font-size: 0.2em; /* 手动缩小字号 */
    }
    .sub-title {
        font-size: 0.9em; /* Adjusted for mobile to prevent overlap */
    }
    .logo-map { /* Rule added for mobile */
        min-height: 5px; /* Reduced space above invitation title */
    }
    .invitation-title {
        font-size: 1.6em;
        margin-top: 10px; /* Adjusted space above */
    }
    .content {
        font-size: 0.95em;
    }
    .section-title {
        font-size: 1.1em;
    }
    .countdown {
        font-size: 2.2em;
    }
    .closing-text {
        font-size: 1.1em;
    }
    .logo-map .logo {
        max-width: 60px;
    }
    .schedule ul, .content ul {
        padding-left: 1.5em;
    }
    .schedule li::before, .content li::before {
        left: -1.2em;
    }
}

/* 字体引入 (如果使用在线字体) */
/* @import url('...'); */

/* 如果字体文件在本地，使用 @font-face */
/* @font-face {
    font-family: '汉仪尚巍手书体';
    src: url('fonts/HYShangWeiShouShuW.ttf') format('truetype'); /* 确保字体文件路径正确 */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: '方正清刻本悦宋';
    src: url('fonts/FZQKBYuesongS-R-GB.ttf') format('truetype'); /* 确保字体文件路径正确 */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Din Pro';
    src: url('fonts/DINPro-Medium.ttf') format('truetype'); 
    font-weight: normal; 
    font-style: normal;
} */

/*
@font-face {
    font-family: '汉仪尚巍手书体';
    src: url('fonts/HYShangWeiShouShuW.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: '方正清刻本悦宋';
    src: url('fonts/FZQingKeBenYueSongS-R-GB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Din Pro';
    src: url('fonts/DINPro-Medium.ttf') format('truetype'); 
    font-weight: normal; 
    font-style: normal;
}
*/