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

:root {
    --wine: #8B4560;
    --pink: #FF6B8A;
    --black: #000000;
    --gray: #666666;
    --light-gray: #999999;
    --white: #FFFFFF;
    --bg-soft: #FFF8FA;
    --shadow-sm: 0 2px 8px rgba(139, 69, 96, 0.08);
    --shadow-md: 0 4px 16px rgba(139, 69, 96, 0.12);
    --shadow-lg: 0 8px 32px rgba(139, 69, 96, 0.16);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, serif;
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

button:active {
    transform: scale(0.9);
    transition: transform 0.1s;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 加载页 ========== */
.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loading-page.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-photo-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: breathe 2s ease-in-out infinite;
}

.loading-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes breathe {
    0%, 100% { opacity: 0.6; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); }
}

.loading-text {
    margin-top: 24px;
    font-size: 16px;
    color: var(--light-gray);
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ========== 访客授权页 ========== */
.auth-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdf6f0 0%, #f8e8ee 50%, #f0e4f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.auth-page.hidden {
    display: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px;
    width: calc(100% - 48px);
    max-width: 360px;
    box-shadow: 0 8px 40px rgba(139, 69, 96, 0.12);
    text-align: center;
}

.auth-deco svg {
    width: 120px;
    height: 36px;
    margin: 0 auto 8px;
}

.auth-deco-bottom {
    margin-top: 20px;
}

.auth-title {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: var(--wine);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-group i {
    position: absolute;
    left: 16px;
    color: #bbb;
    font-size: 14px;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 1px solid rgba(139, 69, 96, 0.12);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--black);
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: border-color 0.3s;
}

.auth-input-group input:focus {
    border-color: var(--wine);
}

.auth-btn {
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wine), var(--pink));
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.auth-btn:active {
    transform: scale(0.97);
}

/* ========== 音乐按钮 ========== */
.music-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(139, 69, 96, 0.18), 0 0 0 1px rgba(139, 69, 96, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.music-btn:active {
    transform: scale(0.92) !important;
}

.music-disc {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #2a2a2a, #444, #2a2a2a, #3a3a3a, #2a2a2a);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}

.disc-groove {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px, transparent 2px,
        rgba(255,255,255,0.06) 2px, rgba(255,255,255,0.06) 3px
    );
}

.disc-center {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine), var(--pink));
    position: relative;
    z-index: 1;
    box-shadow: 0 0 4px rgba(139, 69, 96, 0.5);
}

.music-btn.playing .music-disc {
    animation: discSpin 3s linear infinite;
}

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

.music-bars {
    position: absolute;
    bottom: 5px;
    right: 4px;
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.music-btn.playing .music-bars {
    opacity: 1;
}

.music-bars .bar {
    width: 2.5px;
    border-radius: 1px;
    background: linear-gradient(to top, var(--wine), var(--pink));
}

.music-bars .bar:nth-child(1) { height: 6px; }
.music-bars .bar:nth-child(2) { height: 10px; }
.music-bars .bar:nth-child(3) { height: 8px; }
.music-bars .bar:nth-child(4) { height: 12px; }

.music-btn.playing .music-bars .bar:nth-child(1) {
    animation: musicBar 0.45s ease-in-out infinite alternate;
}
.music-btn.playing .music-bars .bar:nth-child(2) {
    animation: musicBar 0.55s ease-in-out infinite alternate 0.1s;
}
.music-btn.playing .music-bars .bar:nth-child(3) {
    animation: musicBar 0.4s ease-in-out infinite alternate 0.2s;
}
.music-btn.playing .music-bars .bar:nth-child(4) {
    animation: musicBar 0.5s ease-in-out infinite alternate 0.05s;
}

@keyframes musicBar {
    0% { height: 3px; }
    100% { height: 14px; }
}

.music-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(var(--pink), var(--wine), var(--pink), transparent, var(--pink));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.music-btn.playing::before {
    opacity: 1;
    animation: borderGlow 3s linear infinite;
}

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

/* ========== 主内容 ========== */
.main-content {
    display: none;
}

.main-content.visible {
    display: block;
}

.section-block {
    padding: 60px 24px;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--wine);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 4px;
}

/* ========== 封面页 ========== */
.cover-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 40px 24px;
    text-align: center;
}

.cover-top {
    margin-bottom: 24px;
}

.cover-slogan {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 3px;
}

.cover-subtitle {
    font-size: 15px;
    color: var(--black);
    font-weight: 600;
    letter-spacing: 2px;
}

.cover-names-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 340px;
    margin: 16px auto;
}

.cover-name-left {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.cover-date-right {
    font-size: 15px;
    font-weight: 500;
    color: var(--wine);
}

.cover-question {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* 黑胶唱片 */
.vinyl-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
}

.vinyl-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,138,0.12) 0%, rgba(139,69,96,0.06) 40%, transparent 70%);
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.vinyl-record {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle,
        #1a1a1a 0%, #1a1a1a 28%,
        #333 28.5%, #222 29%,
        #333 29.5%, #222 30%,
        #333 34%, #222 34.5%,
        #333 38%, #222 38.5%,
        #333 42%, #222 42.5%,
        #333 46%, #222 46.5%,
        #333 49%, #222 49.5%,
        #333 49.8%, #1a1a1a 50%
    );
    position: relative;
    animation: vinylSpin 8s linear infinite;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

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

.vinyl-grooves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 3px,
        rgba(255,255,255,0.03) 3px,
        rgba(255,255,255,0.03) 4px
    );
    z-index: 1;
}

.vinyl-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    border: 3px solid #333;
}

.vinyl-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vinyl-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #555;
    z-index: 3;
    border: 2px solid #777;
}

/* SVG 花环装饰 */
.vinyl-floral-wreath {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%);
    z-index: 6;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(139, 69, 96, 0.15));
    animation: wreathFloat 6s ease-in-out infinite;
}

@keyframes wreathFloat {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(3deg); }
}

/* 弧形环绕文字 */
.vinyl-text-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    transform: translate(-50%, -50%);
    z-index: 7;
    pointer-events: none;
    animation: textSvgFloat 8s ease-in-out infinite;
}

@keyframes textSvgFloat {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(-2deg); }
}

.vinyl-arc-text {
    letter-spacing: 3px;
}

/* 粒子光点系统 */
.vinyl-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
}

/* 金色粒子 */
.p1  { width:4px; height:4px; background:radial-gradient(circle,#FFD700,transparent); top:8%;  left:30%; animation-delay:0s; animation-duration:3.5s; }
.p3  { width:3px; height:3px; background:radial-gradient(circle,#FFD700,transparent); top:25%; right:8%; animation-delay:0.8s; animation-duration:4.2s; }
.p5  { width:5px; height:5px; background:radial-gradient(circle,#FFD700,transparent); bottom:15%; right:20%; animation-delay:1.5s; animation-duration:3.8s; }
.p7  { width:3px; height:3px; background:radial-gradient(circle,#FFD700,transparent); bottom:8%;  left:35%; animation-delay:2.2s; animation-duration:4.5s; }
.p9  { width:4px; height:4px; background:radial-gradient(circle,#FFD700,transparent); top:35%; left:6%; animation-delay:3s; animation-duration:3.6s; }
.p11 { width:3px; height:3px; background:radial-gradient(circle,#FFD700,transparent); top:60%; left:10%; animation-delay:1.2s; animation-duration:4s; }

/* 粉色粒子 */
.p2  { width:3px; height:3px; background:radial-gradient(circle,#FFB6C8,transparent); top:12%; right:25%; animation-delay:0.5s; animation-duration:4s; }
.p4  { width:4px; height:4px; background:radial-gradient(circle,#FFB6C8,transparent); top:40%; right:5%; animation-delay:1.2s; animation-duration:3.5s; }
.p6  { width:3px; height:3px; background:radial-gradient(circle,#FFB6C8,transparent); bottom:25%; left:8%; animation-delay:2s; animation-duration:4.3s; }
.p8  { width:4px; height:4px; background:radial-gradient(circle,#FFB6C8,transparent); top:15%; left:15%; animation-delay:0.3s; animation-duration:3.9s; }
.p10 { width:3px; height:3px; background:radial-gradient(circle,#FFB6C8,transparent); bottom:30%; right:10%; animation-delay:2.8s; animation-duration:4.1s; }
.p12 { width:5px; height:5px; background:radial-gradient(circle,#FFB6C8,transparent); top:50%; right:12%; animation-delay:1.8s; animation-duration:3.7s; }

@keyframes particleFloat {
    0%   { transform: translate(0, 0) scale(0.5); opacity: 0; }
    20%  { opacity: 1; }
    50%  { transform: translate(8px, -12px) scale(1); opacity: 0.8; }
    80%  { opacity: 0.6; }
    100% { transform: translate(-5px, 6px) scale(0.3); opacity: 0; }
}

.scroll-hint {
    margin-top: 20px;
    animation: bounceDown 2s ease-in-out infinite;
    color: var(--light-gray);
    font-size: 20px;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ========== 新人介绍页 ========== */
.couple-page {
    background: var(--bg-soft);
}

.couple-frames {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 40px;
}

.couple-frame {
    flex: 1;
    max-width: 160px;
    text-align: center;
}

.arch-frame {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 80px 80px 12px 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
    border: 3px solid var(--white);
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.couple-role {
    font-size: 12px;
    color: var(--light-gray);
    letter-spacing: 4px;
    margin-bottom: 4px;
}

.couple-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--wine);
}

.couple-greeting {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    margin-bottom: 40px;
}

.greeting-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 20px;
}

.couple-greeting h3 {
    font-size: 18px;
    color: var(--wine);
    margin-bottom: 12px;
    font-weight: 600;
}

.couple-greeting p {
    font-size: 14px;
    color: var(--gray);
    line-height: 2;
}

.couple-love-text {
    text-align: center;
    padding: 0 12px;
}

.love-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 12px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.divider-icon {
    color: var(--pink);
    font-size: 14px;
}

.love-quote {
    font-size: 15px;
    color: var(--wine);
    line-height: 2;
    font-style: italic;
    margin-bottom: 12px;
}

.love-quote-sub {
    font-size: 13px;
    color: var(--gray);
}

/* ========== 相恋故事页 ========== */
.story-page {
    background: var(--white);
}

.story-header {
    text-align: center;
    margin-bottom: 40px;
}

.story-title {
    font-family: 'Great Vibes', cursive;
    font-size: 40px;
    color: var(--wine);
    margin-bottom: 4px;
}

.story-subtitle {
    font-size: 14px;
    color: var(--gray);
    letter-spacing: 4px;
}

.story-quote-wrapper {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 32px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.quote-mark {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: var(--pink);
    line-height: 1;
    opacity: 0.6;
}

.quote-mark-end {
    text-align: right;
}

.story-quote {
    font-size: 15px;
    color: var(--wine);
    line-height: 2;
    text-align: center;
    padding: 8px 0;
}

.story-photo {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.story-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.story-timeline {
    position: relative;
    padding-left: 28px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--pink), var(--wine));
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 16px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pink);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--pink);
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--wine);
    display: block;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

/* ========== 相册页 ========== */
.album-page {
    background: var(--white);
}

.album-desc {
    text-align: center;
    font-size: 13px;
    color: var(--light-gray);
    margin-top: -20px;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.album-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.album-grid-1 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.album-grid-1 .shape-circle {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.album-grid-1 .shape-rect {
    grid-column: 2;
    grid-row: 1;
}

.album-grid-1 .shape-rect.wide {
    grid-column: 1 / -1;
    grid-row: 2;
}

.album-grid-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.album-grid-2 .shape-arch {
    grid-column: 1;
    grid-row: 1;
}

.album-grid-2 .shape-heart-container {
    grid-column: 2;
    grid-row: 1;
}

.album-grid-2 .shape-rect {
    grid-column: 1 / -1;
    grid-row: 2;
}

.album-grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.album-grid-3 .shape-rect.wide {
    grid-column: 1 / -1;
    grid-row: 1;
}

.album-grid-3 .shape-circle.small {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
}

.album-grid-3 .shape-rect {
    grid-column: 2;
    grid-row: 2;
}

.album-grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.album-grid-4 .shape-rect:first-child {
    grid-column: 1;
    grid-row: 1;
}

.album-grid-4 .shape-rect:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.album-grid-4 .shape-rect.wide {
    grid-column: 1 / -1;
    grid-row: 2;
}

.album-item {
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.album-item:active img {
    transform: scale(1.05);
}

/* 圆形 */
.shape-circle {
    border-radius: 50%;
    aspect-ratio: 1;
    max-width: 160px;
}

.shape-circle.small {
    max-width: 120px;
}

/* 圆角矩形 */
.shape-rect {
    border-radius: 16px;
    aspect-ratio: 4/3;
}

.shape-rect.wide {
    aspect-ratio: 16/9;
}

/* 拱形 */
.shape-arch {
    border-radius: 50% 50% 16px 16px;
    aspect-ratio: 3/4;
}

/* 心形 */
.shape-heart-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-shape {
    width: 140px;
    height: 140px;
    position: relative;
    overflow: hidden;
    clip-path: path('M70 25 C70 0, 120 0, 120 40 C120 80, 70 110, 70 130 C70 110, 20 80, 20 40 C20 0, 70 0, 70 25 Z');
}

.heart-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-quote {
    text-align: center;
    font-size: 14px;
    color: var(--wine);
    line-height: 2;
    font-style: italic;
    padding: 0 12px;
}

/* ========== 爱情密语页 ========== */
.whisper-page {
    background: linear-gradient(170deg, #FFF8FA 0%, #FFF0F3 40%, #FFF5F0 100%);
    position: relative;
    overflow: hidden;
}

.whisper-frame {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 0;
}

.whisper-deco-top,
.whisper-deco-bottom {
    width: 180px;
    margin: 0 auto 12px;
    display: block;
}

.whisper-deco-bottom {
    margin: 12px auto 0;
}

.whisper-title {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    color: var(--wine);
    margin-bottom: 4px;
}

.whisper-subtitle {
    font-size: 16px;
    color: var(--wine);
    letter-spacing: 6px;
    margin-bottom: 28px;
    font-weight: 300;
}

.whisper-photo {
    position: relative;
    max-width: 340px;
    margin: 0 auto 28px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(139, 69, 96, 0.18), 0 0 0 1px rgba(139, 69, 96, 0.06);
}

.whisper-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.whisper-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(139, 69, 96, 0.08) 100%);
    pointer-events: none;
}

.whisper-poem {
    padding: 0 20px;
    margin-bottom: 24px;
}

.poem-line {
    font-size: 15px;
    color: var(--wine);
    line-height: 2.4;
    opacity: 0;
    transform: translateY(16px);
    animation: poemReveal 0.8s ease forwards;
}

.poem-line-1 { animation-delay: 0.2s; }
.poem-line-2 { animation-delay: 0.5s; }
.poem-line-3 { animation-delay: 0.8s; }
.poem-line-4 { animation-delay: 1.1s; }

@keyframes poemReveal {
    to { opacity: 0.9; transform: translateY(0); }
}

.whisper-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.whisper-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pink);
    opacity: 0.5;
}

.whisper-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.whisper-heart-icon {
    color: var(--pink);
    font-size: 10px;
    opacity: 0.6;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.whisper-promise {
    padding: 0 32px;
}

.promise-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    color: var(--wine);
    line-height: 2.2;
    font-weight: 400;
    letter-spacing: 1px;
}

/* 飘落花瓣 */
.whisper-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(ellipse, #FFB6C8, #FF6B8A);
    border-radius: 50% 0 50% 50%;
    opacity: 0;
    animation: petalFall linear infinite;
}

.petal-1 { left: 10%; animation-duration: 6s; animation-delay: 0s; width: 8px; height: 8px; }
.petal-2 { left: 25%; animation-duration: 7s; animation-delay: 1s; width: 12px; height: 12px; }
.petal-3 { left: 45%; animation-duration: 5.5s; animation-delay: 2.5s; width: 9px; height: 9px; }
.petal-4 { left: 65%; animation-duration: 6.5s; animation-delay: 0.5s; width: 11px; height: 11px; }
.petal-5 { left: 80%; animation-duration: 7.5s; animation-delay: 3s; width: 8px; height: 8px; }
.petal-6 { left: 90%; animation-duration: 6s; animation-delay: 1.8s; width: 10px; height: 10px; }

@keyframes petalFall {
    0%   { top: -5%; opacity: 0; transform: rotate(0deg) translateX(0); }
    10%  { opacity: 0.7; }
    50%  { transform: rotate(180deg) translateX(30px); }
    90%  { opacity: 0.5; }
    100% { top: 105%; opacity: 0; transform: rotate(360deg) translateX(-20px); }
}

/* ========== 倒计时页 ========== */
.countdown-page {
    background: var(--bg-soft);
}

.countdown-photo {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.countdown-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.countdown-card {
    background: linear-gradient(135deg, var(--wine), #6B3450);
    border-radius: 12px;
    padding: 16px 12px;
    min-width: 64px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.countdown-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.countdown-colon {
    font-size: 24px;
    font-weight: 700;
    color: var(--wine);
}

.countdown-message {
    text-align: center;
    font-size: 16px;
    color: var(--wine);
    font-weight: 600;
    margin-bottom: 24px;
    min-height: 24px;
}

.countdown-feeling {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.feeling-quote {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    color: var(--pink);
    opacity: 0.5;
    line-height: 1;
}

.feeling-quote-end {
    text-align: right;
}

.countdown-feeling p {
    font-size: 14px;
    color: var(--gray);
    line-height: 2.2;
    text-align: center;
    padding: 8px 0;
}

/* ========== 婚礼地址页 ========== */
.venue-page {
    background: var(--white);
}

.venue-info-card {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.venue-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(139, 69, 96, 0.08);
}

.venue-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.venue-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.venue-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.venue-label {
    font-size: 12px;
    color: var(--light-gray);
}

.venue-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.venue-sub {
    font-size: 13px;
    color: var(--gray);
}

.venue-map {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
}

.map-placeholder i {
    font-size: 40px;
    margin-bottom: 8px;
}

.map-placeholder p {
    font-size: 14px;
}

.nav-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--wine), var(--pink));
    color: var(--white);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: opacity 0.2s;
}

.nav-btn:active {
    opacity: 0.9;
}

.venue-tips {
    background: #FFF8E1;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #FFE082;
}

.venue-tips h3 {
    font-size: 16px;
    color: #F57F17;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.venue-tips ul {
    list-style: none;
}

.venue-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.venue-tips li:last-child {
    margin-bottom: 0;
}

.venue-tips li i {
    color: #4CAF50;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ========== 报名回执页 ========== */
.rsvp-page {
    background: var(--bg-soft);
}

.rsvp-contact {
    text-align: center;
    margin-bottom: 32px;
}

.rsvp-contact-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
}

.rsvp-contact-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.groom-contact {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: var(--white);
}

.bride-contact {
    background: linear-gradient(135deg, var(--pink), #FF8A9E);
    color: var(--white);
}

.contact-btn:active {
    transform: scale(0.95);
}

.rsvp-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.rsvp-form-wrapper h3 {
    font-size: 16px;
    color: var(--wine);
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--black);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group label i {
    color: var(--wine);
    font-size: 14px;
}

.required {
    color: #F44336;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--black);
    background: #FAFAFA;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.1);
    background: var(--white);
}

.form-group textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--wine), var(--pink));
    color: var(--white);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    letter-spacing: 2px;
}

.submit-btn:active {
    opacity: 0.9;
}

.rsvp-closing {
    text-align: center;
    padding: 0 12px;
}

.closing-deco {
    font-size: 32px;
    margin-bottom: 16px;
}

.closing-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 2;
}

.closing-names {
    font-size: 16px;
    color: var(--wine);
    font-weight: 600;
    margin-top: 12px;
    letter-spacing: 4px;
}

/* ========== 底部工具栏 ========== */
.toolbar-spacer {
    height: 80px;
}

.bottom-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 14px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid rgba(139, 69, 96, 0.06);
    z-index: 999;
    box-shadow: 0 -2px 24px rgba(139, 69, 96, 0.08);
}

.toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: transparent;
    border: none;
    outline: none;
    border-radius: 16px;
    position: relative;
    min-width: 60px;
    transition: all 0.3s ease;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.toolbar-btn:active,
.toolbar-btn:focus {
    transform: scale(0.92);
    outline: none;
    box-shadow: none;
}

.toolbar-btn:hover,
.toolbar-btn.active-btn {
    background: rgba(139, 69, 96, 0.06);
}

.toolbar-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.toolbar-icon i {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.toolbar-btn:hover .toolbar-icon,
.toolbar-btn.active-btn .toolbar-icon {
    transform: translateY(-2px);
}

.toolbar-btn:hover .toolbar-icon i,
.toolbar-btn.active-btn .toolbar-icon i {
    color: var(--wine);
}

.toolbar-label {
    font-size: 10px;
    color: #9CA3AF;
    white-space: nowrap;
    transition: color 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.toolbar-btn:hover .toolbar-label,
.toolbar-btn.active-btn .toolbar-label {
    color: var(--wine);
}

.like-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: linear-gradient(135deg, var(--pink), #FF8A9E);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 107, 138, 0.3);
}

/* ========== 弹窗样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
}

.modal-header h3 {
    font-size: 16px;
    color: var(--wine);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F5F5;
    font-size: 20px;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 16px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 永结同心弹窗 */
.lock-modal {
    max-width: 320px;
}

.lock-content {
    padding: 40px 24px;
    text-align: center;
}

.lock-animation {
    margin-bottom: 24px;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-heart {
    font-size: 40px;
    color: #E91E63;
    animation: heartPulse 1.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.lock-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.ring {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 3px solid #8B5CF6;
    border-radius: 50%;
}

.ring-left {
    left: 2px;
    transform: translateY(-50%);
    animation: ringPulse 2s ease-in-out infinite;
}

.ring-right {
    right: 2px;
    transform: translateY(-50%);
    animation: ringPulse 2s ease-in-out infinite 0.5s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(0.9); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

.lock-content h3 {
    font-size: 22px;
    color: var(--wine);
    margin-bottom: 12px;
}

.lock-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.lock-names {
    font-size: 18px;
    color: var(--pink) !important;
    font-weight: 600;
}

/* ========== 弹幕系统 ========== */
.barrage-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 150px;
    pointer-events: none;
    z-index: 900;
    overflow: hidden;
}

.barrage-item {
    position: absolute;
    white-space: nowrap;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(139, 69, 96, 0.12);
    animation: barrageFly linear forwards;
    pointer-events: none;
    font-family: 'Noto Serif SC', serif;
}

.barrage-item .barrage-heart {
    color: var(--pink);
    font-size: 12px;
    margin-right: 6px;
}

@keyframes barrageFly {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}

/* 弹幕输入条 */
.barrage-input-bar {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 448px;
    display: flex;
    gap: 8px;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(10px);
}

.barrage-input-bar.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.barrage-input-bar input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    color: var(--black);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(139, 69, 96, 0.15);
    outline: none;
}

.barrage-input-bar input:focus {
    box-shadow: 0 4px 20px rgba(139, 69, 96, 0.25);
}

.send-barrage-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--wine), var(--pink));
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(139, 69, 96, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.send-barrage-btn:active {
    transform: scale(0.9);
}

/* 成功弹窗 */
.success-modal {
    max-width: 300px;
    text-align: center;
    padding: 40px 24px;
}

.success-icon {
    font-size: 56px;
    color: #4CAF50;
    margin-bottom: 16px;
}

.success-modal h3 {
    font-size: 20px;
    color: var(--wine);
    margin-bottom: 8px;
}

.success-modal p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

.success-close-btn {
    padding: 10px 40px;
    background: linear-gradient(135deg, var(--wine), var(--pink));
    color: var(--white);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
}

/* ========== 烟火画布 ========== */
.fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3000;
    display: none;
}

.fireworks-canvas.active {
    display: block;
}

/* ========== 入场动画 ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式适配 ========== */
@media (min-width: 500px) {
    .main-content {
        max-width: 480px;
        margin: 0 auto;
    }

    .bottom-toolbar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 360px) {
    .vinyl-wrapper {
        width: 240px;
        height: 240px;
    }

    .vinyl-record {
        width: 240px;
        height: 240px;
    }

    .vinyl-photo {
        width: 100px;
        height: 100px;
    }

    .vinyl-floral-wreath {
        width: 310px;
        height: 310px;
    }

    .vinyl-text-svg {
        width: 320px;
        height: 320px;
    }

    .vinyl-particles {
        width: 310px;
        height: 310px;
    }

    .vinyl-wrapper::before {
        width: 260px;
        height: 260px;
    }

    .cover-slogan {
        font-size: 28px;
    }

    .countdown-card {
        min-width: 52px;
        padding: 12px 8px;
    }

    .countdown-num {
        font-size: 22px;
    }

    .couple-frames {
        gap: 16px;
    }

    .toolbar-btn {
        padding: 6px 10px;
        min-width: 48px;
    }

    .contact-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
