:root {
    --primary-pink: #FFC0CB;
    --dark-pink: #FF69B4;
    --soft-pink: #FFE4E1;
    --bg-blue: #E0F7FA;
    --text-color: #5D4037;
    --white: #FFFFFF;
}

body {
    margin: 0;
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; /* 手写风格字体 */
    background-color: var(--soft-pink);
    color: var(--text-color);
    overflow-x: hidden;
}

/* 顶部导航 */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-pink);
    border-radius: 0 0 20px 20px;
    box-sizing: border-box;
}

/* 导航链接基本样式 */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px; /* 更圆润 */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Q弹动画 */
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

/* 导航链接 Hover & Active 状态 */
.nav-link:hover, .nav-link.active {
    background-color: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--dark-pink);
    text-decoration: none;
}

.nav-link.active {
    background-color: var(--dark-pink); /* 激活状态更深一点 */
    box-shadow: 0 4px 0 #C71585;
}

/* Logo图片样式 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo {
    height: 40px;
    width: auto;
}

/* 调整Logo大小 */
.hand-drawn-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-pink);
    text-shadow: 2px 2px 0px #FFF, 4px 4px 0px var(--primary-pink);
    transform: rotate(-3deg);
    font-family: 'Comic Sans MS', cursive;
    border: 3px dashed var(--primary-pink);
    padding: 0.2rem 0.8rem;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* 手绘边框效果 */
}

/* 页面通用头部 (Feature, About, Contact 等页面使用) */
.page-header {
    background: linear-gradient(180deg, var(--bg-blue) 0%, var(--soft-pink) 100%);
    padding: 120px 2rem 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-content {
    padding-top: 40px;
    padding-bottom: 80px;
    background-color: var(--soft-pink);
    min-height: 50vh;
}

.page-content.features-section {
    background-color: #FFF; /* 特色页面背景保持白色以便展示卡片 */
}

/* 导航激活状态 - 移除重复定义 */
/* .nav-link.active 已在上面合并定义 */



.hand-drawn-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-pink);
    text-shadow: 2px 2px 0px #FFF, 4px 4px 0px var(--primary-pink);
    transform: rotate(-3deg);
    font-family: 'Comic Sans MS', cursive;
    border: 3px dashed var(--primary-pink);
    padding: 0.2rem 1rem;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* 手绘边框效果 */
}

/* 下载区域 */
.download-area {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.download-btn-wrapper {
    text-decoration: none;
}

.primary-dl {
    background-color: var(--dark-pink);
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
}

.secondary-dl {
    background-color: #AED581;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    box-shadow: 0 6px 0 #7CB342, 0 10px 10px rgba(0,0,0,0.1);
}

.secondary-dl:active {
    box-shadow: 0 0 0 #7CB342, 0 0 0 rgba(0,0,0,0);
}

.note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* 装饰图标：闪光与花朵 (纯CSS) */
.sparkle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #FFF;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: spin 3s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

.flower-icon-small {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #FFF 20%, transparent 20%),
                radial-gradient(circle at 50% 0, #FFF 20%, transparent 20%),
                radial-gradient(circle at 100% 50%, #FFF 20%, transparent 20%),
                radial-gradient(circle at 50% 100%, #FFF 20%, transparent 20%),
                radial-gradient(circle at 0 50%, #FFF 20%, transparent 20%);
    background-size: 100% 100%;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Hero 区域 */
.hero-section {
    position: relative;
    min-height: 100vh; /* 改为最小高度，适应内容 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-blue) 0%, var(--soft-pink) 100%);
    padding-top: 100px; /* 增加顶部 padding */
    padding-bottom: 50px;
}

/* ... (省略中间未修改代码) ... */

/* 视频展示区域 */
.video-showcase-section {
    padding: 60px 2rem;
    background-color: var(--soft-pink);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.video-card {
    background: #FFF;
    padding: 1.5rem;
    border-radius: 20px;
    position: relative;
    text-align: center;
}

/* 粉色电视机边框 */
.pink-tv-frame {
    border: 8px solid var(--dark-pink);
    border-radius: 30px;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
}

.tv-antenna {
    position: absolute;
    width: 6px;
    height: 40px;
    background: var(--dark-pink);
    top: -35px;
    border-radius: 5px;
}

.tv-antenna.left { left: 40px; transform: rotate(-20deg); }
.tv-antenna.right { right: 40px; transform: rotate(20deg); }

/* 音乐盒边框 */
.music-box-frame {
    border: 8px dashed #AED581;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
}

.video-wrapper {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--text-color);
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.hand-drawn-subtitle {
    font-family: 'Comic Sans MS', cursive;
    color: var(--dark-pink);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 为什么选择我们 (日记本风格) */
.about-section {
    padding: 80px 2rem;
    background-color: #FFFAF0; /* 暖白纸色 */
    display: flex;
    justify-content: center;
}

.paper-bg {
    background: #FFF;
    width: 100%;
    max-width: 800px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    background-image: linear-gradient(#E1F5FE 1px, transparent 1px);
    background-size: 100% 2rem; /* 信纸横线 */
    line-height: 2rem;
    transform: rotate(-1deg);
}

.tape-decoration {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: rgba(255, 255, 255, 0.4);
    border-left: 2px solid rgba(0,0,0,0.1);
    border-right: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateX(-50%) rotate(2deg);
}

.hand-writing-title {
    text-align: center;
    font-family: 'Comic Sans MS', cursive;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-decoration: underline wavy var(--primary-pink);
}

.diary-content p {
    font-size: 1.1rem;
    margin-bottom: 0; /* 配合信纸行高 */
}

.signature {
    text-align: right;
    margin-top: 2rem;
    font-family: cursive;
    font-weight: bold;
    color: var(--dark-pink);
}

/* Footer 更新 */
.site-footer {
    padding-bottom: 2rem;
}

.footer-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.qr-code-area {
    text-align: center;
    background: #FFF;
    padding: 1rem;
    border-radius: 10px;
    transform: rotate(-2deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

.qr-img {
    width: 120px;
    height: 120px;
}

.text-info {
    color: #FFF;
}

.text-info a {
    color: #FFF;
    text-decoration: underline;
}

.police-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.copyright {
    margin-top: 3rem;
    border-top: 1px dashed rgba(255,255,255,0.5);
    padding-top: 1rem;
}


.sky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sun {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 40px #FFD700;
    animation: sun-pulse 4s infinite alternate;
}

@keyframes sun-pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

.cloud {
    position: absolute;
    background: #FFF;
    border-radius: 50px;
    opacity: 0.9;
}

.cloud::after, .cloud::before {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 120px; height: 40px; top: 15%; left: 10%;
    animation: float 20s infinite linear;
}
.cloud-1::after { width: 50px; height: 50px; top: -25px; left: 20px; }
.cloud-1::before { width: 40px; height: 40px; top: -15px; left: 60px; }

.cloud-2 {
    width: 100px; height: 35px; top: 25%; left: 70%;
    animation: float 25s infinite linear reverse;
}
.cloud-2::after { width: 45px; height: 45px; top: -20px; left: 15px; }

@keyframes float {
    from { transform: translateX(-50px); }
    to { transform: translateX(50px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
}

.doodle-title {
    font-size: 3.5rem;
    color: var(--dark-pink);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 #FFF;
    font-weight: 900;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.jelly-btn {
    background-color: var(--dark-pink);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 0 #C71585, 0 10px 10px rgba(0,0,0,0.1);
    transition: all 0.1s;
    font-family: inherit;
}

.jelly-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #C71585, 0 0 0 rgba(0,0,0,0);
}

.jelly-btn:hover {
    animation: jelly 0.5s;
}

@keyframes jelly {
    0%, 100% { transform: scale(1, 1); }
    25% { transform: scale(0.9, 1.1); }
    50% { transform: scale(1.1, 0.9); }
    75% { transform: scale(0.95, 1.05); }
}

/* 纯 CSS 绘制的小猫 */
.cute-mascot {
    position: absolute;
    bottom: 50px;
    right: 10%;
    z-index: 5;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.cute-mascot:hover {
    transform: scale(0.9) rotate(5deg);
}

.cat {
    position: relative;
    width: 200px;
    height: 180px;
    background: #FFF;
    border-radius: 100px 100px 80px 80px;
    border: 4px solid var(--text-color);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
}

.ears {
    position: absolute;
    top: -30px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid #FFF;
    z-index: -1;
}

.ears::after {
    content: '';
    position: absolute;
    top: 15px;
    left: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid var(--primary-pink);
}

.left-ear { left: 20px; transform: rotate(-15deg); }
.right-ear { right: 20px; transform: rotate(15deg); }

/* 耳朵边框补丁 - 使用伪元素模拟手绘描边 */
.left-ear::before {
    content: '';
    position: absolute;
    top: 0; left: -25px;
    width: 0; height: 0;
    border-left: 27px solid transparent;
    border-right: 27px solid transparent;
    border-bottom: 54px solid var(--text-color);
    z-index: -2;
}
.right-ear::before {
    content: '';
    position: absolute;
    top: 0; left: -25px;
    width: 0; height: 0;
    border-left: 27px solid transparent;
    border-right: 27px solid transparent;
    border-bottom: 54px solid var(--text-color);
    z-index: -2;
}

.face {
    position: relative;
    top: 60px;
    text-align: center;
}

.eyes {
    position: absolute;
    width: 20px;
    height: 25px;
    background: var(--text-color);
    border-radius: 50%;
    top: 0;
    animation: blink 4s infinite;
}

.eyes::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background: #FFF;
    border-radius: 50%;
}

.left-eye { left: 50px; }
.right-eye { right: 50px; }

@keyframes blink {
    0%, 96%, 100% { transform: scaleY(1); }
    98% { transform: scaleY(0.1); }
}

.nose {
    position: absolute;
    width: 14px;
    height: 10px;
    background: var(--dark-pink);
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    left: 93px;
    top: 25px;
}

.mouth {
    position: absolute;
    width: 30px;
    height: 15px;
    border-bottom: 3px solid var(--text-color);
    border-radius: 0 0 15px 15px;
    left: 85px;
    top: 30px;
}

.cheeks {
    position: absolute;
    width: 30px;
    height: 20px;
    background: var(--primary-pink);
    opacity: 0.4;
    border-radius: 50%;
    top: 35px;
}

.left-cheek { left: 20px; }
.right-cheek { right: 20px; }

.paws {
    position: absolute;
    bottom: -15px;
    width: 100%;
}

.paw {
    width: 40px;
    height: 30px;
    background: #FFF;
    border: 4px solid var(--text-color);
    border-radius: 20px 20px 10px 10px;
    position: absolute;
    bottom: 0;
}

.left-paw { left: 40px; transform: rotate(-10deg); }
.right-paw { right: 40px; transform: rotate(10deg); }


/* 特色区域 */
.features-section {
    padding: 80px 2rem;
    background-color: #FFF;
    text-align: center;
    position: relative;
}

.section-divider {
    position: absolute;
    width: 100%;
    height: 50px;
    background-size: 50px 50px;
    background-repeat: repeat-x;
}

.wave-top {
    top: -25px;
    left: 0;
    background: radial-gradient(circle at 25px 25px, #FFF 26px, transparent 27px);
    transform: rotate(180deg);
}

.section-title {
    color: var(--dark-pink);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 10px;
    background: var(--bg-blue);
    position: absolute;
    bottom: 5px;
    left: 0;
    z-index: -1;
    border-radius: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-blue);
    padding: 2rem;
    border-radius: 30px;
    border: 4px dashed var(--primary-pink);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-img-icon {
    max-height: 80px;
    max-width: 100%;
    filter: hue-rotate(290deg) saturate(0.8) brightness(1.2); /* 将紫色素材调色为粉色/暖色调 */
}

/* 底部区域 */
.site-footer {
    background: var(--dark-pink);
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}

.wave-bottom {
    top: -25px;
    left: 0;
    background: radial-gradient(circle at 25px 25px, var(--dark-pink) 26px, transparent 27px);
}

.footer-content p {
    font-size: 1.2rem;
}

.footer-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

/* 二维码区域 */
.qr-code-area {
    text-align: center;
    background: #FFF;
    padding: 1.5rem;
    border-radius: 10px;
    transform: rotate(-2deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

.hand-drawn-qr-placeholder {
    width: 120px;
    height: 120px;
    background-color: var(--soft-pink);
    margin: 0 auto 0.5rem;
    position: relative;
    border: 3px dashed var(--dark-pink);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-pattern {
    width: 80px;
    height: 80px;
    background-image: 
        linear-gradient(45deg, var(--dark-pink) 25%, transparent 25%), 
        linear-gradient(-45deg, var(--dark-pink) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, var(--dark-pink) 75%), 
        linear-gradient(-45deg, transparent 75%, var(--dark-pink) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
}

.qr-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #FFF;
    border: 3px solid var(--text-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-decoration::after {
    content: 'T9';
    font-weight: bold;
    color: var(--dark-pink);
    font-family: 'Comic Sans MS', cursive;
}

.text-info {
    color: #FFF;
}

.text-info a {
    color: #FFF;
    text-decoration: underline;
}

.police-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.copyright {
    margin-top: 3rem;
    border-top: 1px dashed rgba(255,255,255,0.5);
    padding-top: 1rem;
}
