/* 导入手写风格字体 */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&family=Caveat&family=Kalam:wght@300;400&display=swap');

/* 二维码虚线边框脉动动画 */
@keyframes pulse-border {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.03); }
    100% { opacity: 0.3; transform: scale(1); }
}

/* 二维码闪光效果动画 */
@keyframes shimmer {
    0% {
        transform: translateY(100%) translateX(100%) rotate(30deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100%) translateX(-100%) rotate(30deg);
        opacity: 0.7;
    }
}

/* 二维码心形动画 */
@keyframes float-qr-heart {
    0% { transform: rotate(15deg) scale(1); }
    100% { transform: rotate(20deg) scale(1.1); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Comic Sans MS", "Mochiy Pop One", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #FFD1DD, #FFEEF5, #FFF6E5);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    overflow: hidden;
    position: relative;
    color: #6A3535;
}

/* 更丰富的渐变流动背景效果 */
body {
    background: 
        linear-gradient(135deg, #FFD1DD, #FFEEF5, #FFF6E5, #FFE6EE, #FFDFD3, #FFD1DD);
    background-size: 600% 600%;
    animation: gradientFlow 25s ease infinite alternate;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 25%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 75%; }
    100% { background-position: 0% 50%; }
}

/* 更丰富的背景效果 */
body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><path d="M30,20 Q40,5 50,20 T70,20" stroke="%23FF8FA3" fill="none" stroke-width="2"/><path d="M20,40 L30,50 L20,60" stroke="%23FF8FA3" fill="none" stroke-width="2"/><path d="M80,40 L70,50 L80,60" stroke="%23FF8FA3" fill="none" stroke-width="2"/><circle cx="50" cy="70" r="5" fill="%23FF8FA3"/></svg>');
    background-size: 200px 200px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: floatingPattern 60s infinite linear;
}

@keyframes floatingPattern {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 182, 193, 0.4), transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(255, 228, 225, 0.3), transparent 40%),
        radial-gradient(circle at 20% 70%, rgba(255, 218, 185, 0.3), transparent 30%);
    z-index: -1;
    animation: background-glow 15s infinite alternate ease-in-out, 
               background-flow 30s infinite linear;
}

@keyframes background-glow {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes background-flow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 20%; }
    100% { background-position: 0% 0%; }
}

/* 增强背景的动态光辉效果 */
.dynamic-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 30%, rgba(255, 192, 203, 0.4), transparent 35%),
        radial-gradient(circle at 90% 40%, rgba(255, 228, 225, 0.4), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 248, 220, 0.3), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(255, 218, 185, 0.3), transparent 35%);
    background-size: 200% 200%;
    opacity: 0.7;
    animation: glow-shift 20s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes glow-shift {
    0% { background-position: 0% 0%; background-size: 200% 200%; }
    50% { background-position: 100% 100%; background-size: 250% 250%; }
    100% { background-position: 0% 0%; background-size: 200% 200%; }
}

/* 添加漂浮温暖光点效果 */
.glow-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.glow-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    filter: blur(3px);
    pointer-events: none;
    animation: float-glow var(--duration, 15s) infinite linear;
}

.glow-particle:nth-child(1) {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 25%;
    --duration: 20s;
    background: radial-gradient(circle at center, rgba(255, 182, 193, 0.5), rgba(255, 182, 193, 0));
}

.glow-particle:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 60%;
    left: 70%;
    --duration: 25s;
    background: radial-gradient(circle at center, rgba(255, 228, 196, 0.5), rgba(255, 228, 196, 0));
}

.glow-particle:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 75%;
    left: 30%;
    --duration: 22s;
    background: radial-gradient(circle at center, rgba(255, 218, 185, 0.5), rgba(255, 218, 185, 0));
}

.glow-particle:nth-child(4) {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 75%;
    --duration: 18s;
    background: radial-gradient(circle at center, rgba(255, 204, 204, 0.5), rgba(255, 204, 204, 0));
}

/* 增加更多光点 */
.glow-particle:nth-child(5) {
    width: 80px;
    height: 80px;
    top: 45%;
    left: 15%;
    --duration: 30s;
    background: radial-gradient(circle at center, rgba(255, 240, 245, 0.5), rgba(255, 240, 245, 0));
    filter: blur(5px);
}

.glow-particle:nth-child(6) {
    width: 55px;
    height: 55px;
    top: 85%;
    left: 60%;
    --duration: 28s;
    background: radial-gradient(circle at center, rgba(255, 250, 205, 0.5), rgba(255, 250, 205, 0));
    filter: blur(4px);
}

@keyframes float-glow {
    0% { transform: translate(0, 0); opacity: 0.5; }
    25% { transform: translate(50px, -30px); opacity: 0.7; }
    50% { transform: translate(100px, 0); opacity: 0.5; }
    75% { transform: translate(50px, 30px); opacity: 0.7; }
    100% { transform: translate(0, 0); opacity: 0.5; }
}

/* 飘浮的气泡效果 */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    box-shadow: 0 2px 5px rgba(255, 143, 163, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.5);
    animation: float-bubble var(--duration, 20s) infinite ease-in-out;
    opacity: var(--opacity, 0.3);
    z-index: -1;
    pointer-events: none;
}

.bubble-1 {
    --size: 60px;
    width: var(--size);
    height: var(--size);
    top: 10%;
    left: 10%;
    --duration: 15s;
    --opacity: 0.2;
}

.bubble-2 {
    --size: 90px;
    width: var(--size);
    height: var(--size);
    top: 65%;
    left: 15%;
    --duration: 18s;
    --opacity: 0.15;
}

.bubble-3 {
    --size: 40px;
    width: var(--size);
    height: var(--size);
    top: 30%;
    right: 15%;
    --duration: 12s;
    --opacity: 0.2;
}

.bubble-4 {
    --size: 70px;
    width: var(--size);
    height: var(--size);
    bottom: 15%;
    right: 10%;
    --duration: 20s;
    --opacity: 0.15;
}

@keyframes float-bubble {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(10px) translateX(15px); }
    75% { transform: translateY(15px) translateX(-10px); }
}

.container {
    max-width: 480px;
    width: 90%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(230, 111, 134, 0.2), 
                0 4px 8px rgba(230, 111, 134, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    text-align: center;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    border: 2px dashed rgba(230, 111, 134, 0.6);
    backdrop-filter: blur(5px);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: container-float 6s infinite ease-in-out;
}

@keyframes container-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.container:hover {
    box-shadow: 0 15px 35px rgba(230, 111, 134, 0.25), 
                0 8px 15px rgba(230, 111, 134, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

/* 手绘边框效果 */
.container::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid rgba(230, 111, 134, 0.2);
    border-radius: 25px;
    z-index: -1;
}

/* 花朵装饰元素 */
.flower-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
    filter: drop-shadow(0 2px 3px rgba(136, 51, 68, 0.2));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.flower-decoration:hover {
    opacity: 1;
    filter: drop-shadow(0 3px 5px rgba(136, 51, 68, 0.3));
}

.flower-top-left {
    top: -25px;
    left: -25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,15 C60,25 70,15 75,5 C70,25 80,35 95,35 C75,35 65,45 65,65 C65,45 55,35 35,35 C55,35 60,25 50,15" fill="%23FF8FA3" stroke="%23883344" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.flower-bottom-right {
    bottom: -30px;
    right: -30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,15 C60,25 70,15 75,5 C70,25 80,35 95,35 C75,35 65,45 65,65 C65,45 55,35 35,35 C55,35 60,25 50,15" fill="%23FF8FA3" stroke="%23883344" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(135deg);
}

.flower-top-right {
    top: -20px;
    right: 30%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="%23FFB6C1" stroke="%23883344" stroke-width="2"/><circle cx="50" cy="50" r="15" fill="%23FF8FA3" stroke="%23883344" stroke-width="2"/><path d="M50,20 L50,10 M50,90 L50,80 M20,50 L10,50 M90,50 L80,50 M74,74 L81,81 M26,74 L19,81 M74,26 L81,19 M26,26 L19,19" stroke="%23883344" stroke-width="3" stroke-linecap="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: scale(0.7);
}

/* 新增装饰花朵 */
.flower-bottom-center {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scale(0.6) rotate(30deg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 C60,35 75,35 80,20 C75,35 80,50 95,45 C80,50 75,65 80,80 C75,65 60,65 50,80 C40,65 25,65 20,80 C25,65 20,50 5,45 C20,50 25,35 20,20 C25,35 40,35 50,20" fill="%23FF8FA3" stroke="%23883344" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.heart-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,80 C90,50 90,10 50,40 C10,10 10,50 50,80 Z" fill="%23FF8FA3" stroke="%23883344" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.7;
    filter: drop-shadow(0 2px 3px rgba(136, 51, 68, 0.1));
}

.heart-1 {
    top: 20px;
    right: 10px;
    transform: rotate(15deg) scale(0.7);
}

.heart-2 {
    bottom: 30px;
    left: 15px;
    transform: rotate(-10deg) scale(0.6);
}

.heart-3 {
    top: 50%;
    right: 15px;
    transform: rotate(5deg) scale(0.5);
}

/* 新增心形 */
.heart-4 {
    top: 15%;
    left: 25px;
    transform: rotate(-15deg) scale(0.6);
}

.heart-5 {
    bottom: 20%;
    right: 25px;
    transform: rotate(10deg) scale(0.5);
}

/* 标题风格 */
h1 {
    font-size: 28px;
    font-weight: 700;
    color: #883344;
    margin: 0 0 16px;
    letter-spacing: -0.2px;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(136, 51, 68, 0.1);
}

h1::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0,5 Q10,2 20,5 T40,5 T60,5 T80,5 T100,5" fill="none" stroke="%23FF8FA3" stroke-width="2" /></svg>');
    background-size: 100% 100%;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #FFF8F8;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    box-shadow: 0 6px 15px rgba(230, 111, 134, 0.15), 
                0 0 0 2px rgba(255, 255, 255, 0.8) inset;
    border: 2px solid rgba(230, 111, 134, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(230, 111, 134, 0.2), 
                0 0 0 2px rgba(255, 255, 255, 0.9) inset;
}

.logo::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 60%);
}

/* NFU Logo图片样式 */
.nfu-logo-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(136, 51, 68, 0.2));
}

.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 10;
    text-decoration: none;
}

.logo a:hover .nfu-logo-img {
    transform: scale(1.1);
}

.logo-img-home {
    width: 90%;
    height: auto;
}

.logo-img {
    width: 90px;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-container {
    position: relative;
    margin: 0 auto 15px;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

/* Logo容器居中 */
.logo-container.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #FFF8F8;
    box-shadow: 0 6px 15px rgba(230, 111, 134, 0.15),
                0 0 0 2px rgba(255, 255, 255, 0.8) inset;
    border: 2px solid rgba(230, 111, 134, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container.centered:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(230, 111, 134, 0.2),
                0 0 0 2px rgba(255, 255, 255, 0.9) inset;
}

.logo-container.centered::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 60%);
    pointer-events: none;
}

.logo-container.centered .logo-img {
    width: 85%;
    height: 85%;
    margin: 0;
    object-fit: cover;
    border-radius: 50%;
}

p {
    font-size: 16px;
    color: #755;
    line-height: 1.6;
    margin-bottom: 8px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, #FF8FA3, #E66F86);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 6px 12px rgba(230, 111, 134, 0.2);
    margin: 24px 0 8px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.button::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="20" cy="20" r="3" fill="white" opacity="0.3"/><circle cx="40" cy="80" r="3" fill="white" opacity="0.3"/><circle cx="65" cy="30" r="3" fill="white" opacity="0.3"/><circle cx="85" cy="65" r="3" fill="white" opacity="0.3"/></svg>');
    background-size: 100px 100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 111, 134, 0.3);
}

.button:hover::before {
    opacity: 1;
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(230, 111, 134, 0.2);
}

.button-text, .button-icon {
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.button-icon {
    margin-left: 6px;
    opacity: 0.7;
    transform: translateX(0);
}

.button:hover .button-icon {
    opacity: 1;
    transform: translateX(4px);
}

.back-button {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    font-size: 18px;
    color: #E66F86;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    z-index: 5;
}

.back-icon, .back-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.back-icon {
    margin-right: 4px;
    opacity: 0.8;
}

.back-button:hover {
    color: #FF8FA3;
}

.back-button:hover .back-icon {
    opacity: 1;
    transform: translateX(-4px);
}

#home, #learnMorePage {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#learnMorePage {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    padding-top: 50px;
}

.hidden {
    display: none;
}

.description-container {
    padding: 15px 0;
    position: relative;
    margin: 0 auto 25px;
    max-width: 85%;
}

.description-container::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0,5 Q10,3 20,5 T40,7 T60,3 T80,5 T100,3" fill="none" stroke="%23FF8FA3" stroke-width="2" stroke-dasharray="2 2" /></svg>');
    background-size: 100% 100%;
}

.contact-section {
    margin-top: 25px;
    padding-top: 15px;
    position: relative;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 1px;
    background-color: rgba(230, 111, 134, 0.2);
}

.contact {
    font-weight: 600;
    margin-bottom: 10px;
    color: #883344;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.contact::after {
    content: "♥";
    position: absolute;
    top: 0;
    right: -20px;
    color: #FF8FA3;
    font-size: 16px;
}

/* 二维码部分样式 */
.qrcode-section {
    text-align: center;
    margin: 30px auto 35px;
    padding: 20px 20px 30px;
    background: rgba(255, 248, 248, 0.7);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(230, 111, 134, 0.08);
    position: relative;
    overflow: visible;
    border: none;
    max-width: 90%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.qrcode-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 111, 134, 0.15);
}

.qrcode-section p {
    font-size: 17px;
    color: #755;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    z-index: 5;
    font-family: 'Caveat', cursive;
    letter-spacing: 0.5px;
}

.qrcode-container {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: visible; /* 确保虚线框可见 */
    padding: 10px;
    background: white;
    box-shadow: 0 6px 15px rgba(230, 111, 134, 0.15);
    border: 1px solid rgba(230, 111, 134, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    margin-top: 10px;
    will-change: transform;
}

/* 虚线框样式 */
.qrcode-container::before {
    content: "";
    position: absolute;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    top: -20px;
    left: -20px;
    border: 3px dashed #FF8FA3; /* 加粗边框 */
    border-radius: 25px;
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
    animation: pulse-border 3s infinite ease-in-out;
    transition: transform 0.4s ease;
    will-change: transform, opacity;
}

.qrcode-container:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(230, 111, 134, 0.2);
}

.qrcode-container:hover::before {
    border-color: #ff7a93;
    opacity: 0.9;
}

.qrcode-img {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    transition: transform 0.4s ease;
    will-change: transform;
    display: block;
}

.qrcode-container:hover .qrcode-img {
    transform: scale(1.02);
}

/* 闪光效果 */
.qrcode-shimmer {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 250%;
    height: 250%;
    background: linear-gradient(
        315deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 6s infinite linear;
    transform: rotate(30deg);
    pointer-events: none;
    will-change: transform;
    z-index: 2;
}

/* 二维码心形装饰 */
.qr-heart {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,80 C90,50 90,10 50,40 C10,10 10,50 50,80 Z" fill="%23FF8FA3" stroke="%23883344" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.8;
    transform: rotate(15deg);
    filter: drop-shadow(0 2px 3px rgba(136, 51, 68, 0.2));
    animation: float-qr-heart 3s infinite alternate ease-in-out;
    will-change: transform;
    z-index: 3;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .qrcode-img {
        width: 140px;
        height: 140px;
    }
    
    .qrcode-container::before {
        width: calc(100% + 30px);
        height: calc(100% + 30px);
        top: -15px;
        left: -15px;
        border-width: 2px;
    }
    
    .qr-heart {
        width: 20px;
        height: 20px;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.footer {
    font-size: 12px;
    color: #999;
    margin-top: 30px;
}

.beian {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.beian:hover {
    color: #E66F86;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.delay {
    transition-delay: 0.3s;
}

.delay-more {
    transition-delay: 0.6s;
}

/* 飘动的爱心 */
.flying-heart {
    position: fixed;
    z-index: 100;
    width: 30px;
    height: 30px;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,80 C90,50 90,10 50,40 C10,10 10,50 50,80 Z" fill="%23FF8FA3" stroke="%23883344" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: float-heart 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes float-heart {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1) rotate(20deg);
        opacity: 0;
    }
}

/* 叶子装饰 */
.leaf-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,80 Q60,40 90,20 Q60,60 20,80 Z" fill="%23AEDD81" stroke="%23558833" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.leaf-decoration:hover {
    opacity: 0.8;
    transform: rotate(5deg) scale(1.1);
}

.leaf-bottom-left {
    bottom: 10px;
    left: 20px;
    transform: rotate(120deg) scale(0.8);
}

/* 新增叶子 */
.leaf-top-right {
    top: 20px;
    right: 40px;
    transform: rotate(-30deg) scale(0.7);
    opacity: 0.4;
}

/* 日程表图标样式 */
.schedule-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="20" width="80" height="70" fill="%23FFF" stroke="%23FF8FA3" stroke-width="3" rx="5" /><rect x="10" y="20" width="80" height="15" fill="%23FF8FA3" stroke="%23FF8FA3" stroke-width="0" rx="5" /><circle cx="25" cy="13" r="3" fill="%23FF8FA3" /><circle cx="75" cy="13" r="3" fill="%23FF8FA3" /><line x1="25" y1="13" x2="25" y2="27" stroke="%23FF8FA3" stroke-width="3" /><line x1="75" y1="13" x2="75" y2="27" stroke="%23FF8FA3" stroke-width="3" /><line x1="20" y1="50" x2="80" y2="50" stroke="%23FF8FA3" stroke-width="1" stroke-dasharray="2 2" /><line x1="20" y1="65" x2="80" y2="65" stroke="%23FF8FA3" stroke-width="1" stroke-dasharray="2 2" /><line x1="35" y1="35" x2="35" y2="80" stroke="%23FF8FA3" stroke-width="1" stroke-dasharray="2 2" /><line x1="50" y1="35" x2="50" y2="80" stroke="%23FF8FA3" stroke-width="1" stroke-dasharray="2 2" /><line x1="65" y1="35" x2="65" y2="80" stroke="%23FF8FA3" stroke-width="1" stroke-dasharray="2 2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 2px 3px rgba(230, 111, 134, 0.15));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.schedule-icon:hover {
    opacity: 1;
    transform: rotate(5deg) scale(1.1);
}

.schedule-icon-1 {
    top: -10px;
    right: -10px;
    transform: rotate(15deg) scale(0.8);
}

.schedule-icon-2 {
    bottom: 40px;
    left: -15px;
    transform: rotate(-10deg) scale(0.7);
}

/* 新增彩虹效果 */
.rainbow {
    position: absolute;
    width: 70px;
    height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><path d="M0,50 C30,0 70,0 100,50" stroke="%23FFB6C1" stroke-width="8" fill="none" stroke-linecap="round"/><path d="M15,50 C40,15 60,15 85,50" stroke="%23FFCDD2" stroke-width="6" fill="none" stroke-linecap="round"/><path d="M30,50 C45,30 55,30 70,50" stroke="%23FFEBEE" stroke-width="4" fill="none" stroke-linecap="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.rainbow-top-left {
    top: 10px;
    left: 10px;
    transform: rotate(180deg) scale(0.7);
}

.rainbow-bottom-right {
    bottom: 10px;
    right: 10px;
    transform: scale(0.6);
}

/* 新增星星装饰 */
.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 L61,40 L93,40 L67,60 L77,90 L50,70 L23,90 L33,60 L7,40 L39,40 L50,10" fill="%23FFEB3B" stroke="%23FFA000" stroke-width="2" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(255, 160, 0, 0.3));
    animation: twinkle 3s infinite alternate ease-in-out;
}

@keyframes twinkle {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1.2); }
}

.star-1 {
    top: 15px;
    left: 40px;
    animation-delay: 0s;
}

.star-2 {
    bottom: 20px;
    right: 30px;
    animation-delay: 0.5s;
}

.star-3 {
    top: 25%;
    right: 15px;
    animation-delay: 1s;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .container {
        padding: 30px 25px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .button {
        padding: 10px 20px;
    }
    
    .qrcode-img {
        width: 140px;
        height: 140px;
    }
    
    .flower-decoration, .heart-decoration {
        transform: scale(0.8);
    }
    
    .leaf-decoration, .schedule-icon {
        display: none;
    }
    
    .logo {
        width: 90px;
        height: 90px;
    }
    
    .logo-container.centered {
        width: 100px;
        height: 100px;
    }
    
    #learnMorePage {
        padding-top: 40px;
    }
    
    .bubble {
        display: none;
    }
}

/* 粒子效果 */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: 200;
    opacity: 0.8;
}

.particle.heart {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,80 C90,50 90,10 50,40 C10,10 10,50 50,80 Z" fill="%23FF8FA3" stroke="%23883344" stroke-width="1" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent !important;
}

.particle.star {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 L61,40 L93,40 L67,60 L77,90 L50,70 L23,90 L33,60 L7,40 L39,40 L50,10" fill="%23FFEB3B" stroke="%23FFA000" stroke-width="1" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent !important;
}

.particle.circle {
    border-radius: 50%;
}

/* 弹窗样式优化 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #fffdf9;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffb6c1' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 255, 0.9));
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 182, 193, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 182, 193, 0.3);
    z-index: 10000;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #ffb6c1, #ffc8d9);
    color: white;
    position: relative;
    text-align: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.modal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.modal-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.modal-title h2 {
    margin: 0;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.close-modal:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.modal-body {
    padding: 25px 30px;
    color: #444;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-family: 'Kalam', 'Caveat', cursive, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.7;
    background-color: #fffdf9;
}

.modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.modal-section {
    position: relative;
    padding: 0 5px 8px;
    margin-bottom: 25px;
    animation: fade-slide-up 0.5s forwards;
    opacity: 0;
    background-image: repeating-linear-gradient(
        transparent 0px, 
        transparent 27px, 
        rgba(255, 182, 193, 0.15) 28px
    );
    background-size: 100% 28px;
    line-height: 28px;
}

.modal-section h3 {
    color: #ff7a93;
    font-size: 22px;
    margin: 0 0 14px 0;
    padding: 0;
    display: inline-block;
    position: relative;
    font-family: 'Caveat', cursive;
    letter-spacing: 1.2px;
    line-height: 28px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0 10px;
    z-index: 5;
    text-shadow: 1px 1px 1px rgba(255, 122, 147, 0.2);
}

.modal-section h3:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ffb6c1, transparent);
    bottom: 0px;
    left: 0;
}

.modal-section p {
    margin: 0 0 28px 0;
    padding: 0;
    font-size: 17px;
    line-height: 28px;
    position: relative;
    z-index: 5;
}

.modal-section a {
    position: relative;
    color: #ff7a93;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 1px dotted rgba(255, 122, 147, 0.3);
}

.modal-section a:hover {
    color: #ff5a7a;
    border-bottom: 1px dotted rgba(255, 90, 122, 0.7);
}

.modal-quote {
    background-color: rgba(255, 248, 248, 0.8);
    border-left: 3px solid #ffb6c1;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #666;
    position: relative;
    font-family: 'Nanum Pen Script', cursive;
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 1px;
    background-image: none;
}

.modal-quote:before {
    content: '❝';
    font-size: 30px;
    color: rgba(255, 182, 193, 0.3);
    position: absolute;
    top: 5px;
    left: 10px;
}

.modal-quote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.modal-footer {
    text-align: center;
    font-style: italic;
    color: #888;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 182, 193, 0.2);
    margin-top: 20px;
    font-family: 'Nanum Pen Script', cursive;
    font-size: 18px;
    background-image: none;
}

/* 为联系方式部分应用特殊样式 */
.modal-section:nth-child(4) {
    background-image: none;
    background-color: rgba(255, 245, 255, 0.5);
    border-radius: 10px;
    padding: 15px;
    border: 1px dashed rgba(255, 182, 193, 0.3);
}

.modal-section:nth-child(4) p {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* 添加一些漂浮的装饰元素 */
.modal-body:before {
    content: '✨';
    position: absolute;
    font-size: 20px;
    color: rgba(255, 182, 193, 0.5);
    top: 40px;
    right: 30px;
    animation: float 3s ease-in-out infinite;
}

.modal-body:after {
    content: '💫';
    position: absolute;
    font-size: 20px;
    color: rgba(255, 182, 193, 0.5);
    bottom: 40px;
    left: 30px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 15px 20px;
        max-height: 70vh;
    }
    
    .modal-title {
        flex-direction: column;
        gap: 10px;
    }
}
/* 隐藏所有滚动条但保留滚动功能 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* Firefox */
html, body, .modal-body {
    scrollbar-width: none;
}

/* IE和Edge */
* {
    -ms-overflow-style: none;
}

/* 添加弹窗内容的进入动画 */
@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-section {
    animation: fade-slide-up 0.5s forwards;
    opacity: 0;
}

.modal-section:nth-child(1) {
    animation-delay: 0.1s;
}

.modal-section:nth-child(2) {
    animation-delay: 0.2s;
}

.modal-section:nth-child(3) {
    animation-delay: 0.3s;
}

.modal-section:nth-child(4) {
    animation-delay: 0.4s;
}

.modal-section:nth-child(5) {
    animation-delay: 0.5s;
}

/* 给弹窗添加更多装饰 */
.modal:before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.15), transparent 70%);
    top: 10%;
    right: 10%;
    z-index: 0;
    animation: float-glow 15s infinite alternate ease-in-out;
}

.modal:after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 228, 225, 0.1), transparent 70%);
    bottom: 10%;
    left: 15%;
    z-index: 0;
    animation: float-glow 20s infinite alternate-reverse ease-in-out;
}

/* 弹窗波纹效果 */
.modal-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.3);
    transform: scale(0);
    pointer-events: none;
    z-index: 10001;
}

/* 弹窗专用粒子 */
.modal-particle {
    position: fixed;
    z-index: 10002;
    pointer-events: none;
}

.modal-particle.heart {
    filter: drop-shadow(0 0 3px rgba(255, 182, 193, 0.5));
}

.modal-particle.star {
    filter: drop-shadow(0 0 3px rgba(255, 235, 59, 0.5));
}

.modal-particle.circle {
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 5px rgba(255, 182, 193, 0.5);
}
