/* ======================================
   新增：温柔加载过渡动画
   ====================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdfaf6;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 1s ease-out;
}

.loading-spot {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 168, 0.8) 0%, rgba(212, 168, 168, 0.1) 70%, transparent 100%);
    animation: spotSpread 3s ease-in-out forwards;
    transform: scale(0);
}

@keyframes spotSpread {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ======================================
   全局基础样式（延续站点风格）
   ====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #fdfaf6;
    background-image: radial-gradient(rgba(212, 168, 168, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(212, 168, 168, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    color: #6d5b5b;
    line-height: 1.8;
    overflow-x: hidden;
    padding-top: 90px;
    opacity: 0;
    animation: pageFadeIn 1.5s ease-in-out forwards;
    padding-bottom: 60px;
    position: relative;
}

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

/* 阅读进度条（延续风格） */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #d4a8a8, #c89898, #b88888, #c89898, #d4a8a8);
    background-size: 200% 100%;
    animation: progressGradient 3s ease infinite;
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: 0 2px 12px rgba(212, 168, 168, 0.3);
}

@keyframes progressGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ======================================
   两侧填充装饰（延续风格）
   ====================================== */
.side-decoration {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.side-left {
    left: 0;
    background: linear-gradient(to right, rgba(212, 168, 168, 0.2), transparent);
}

.side-right {
    right: 0;
    background: linear-gradient(to left, rgba(212, 168, 168, 0.2), transparent);
}

.decoration-petal {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50% 0;
    background: #d4a8a8;
    transform: rotate(45deg);
    animation: petalFloatVertical linear infinite;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(212, 168, 168, 0.4);
}

.side-left .decoration-petal:nth-child(1) {
    top: 10%;
    left: 30px;
    animation-duration: 20s;
    animation-delay: 0s;
}

.side-left .decoration-petal:nth-child(2) {
    top: 25%;
    left: 60px;
    animation-duration: 25s;
    animation-delay: 5s;
}

.side-left .decoration-petal:nth-child(3) {
    top: 40%;
    left: 20px;
    animation-duration: 18s;
    animation-delay: 2s;
}

.side-left .decoration-petal:nth-child(4) {
    top: 55%;
    left: 70px;
    animation-duration: 22s;
    animation-delay: 8s;
}

.side-left .decoration-petal:nth-child(5) {
    top: 70%;
    left: 40px;
    animation-duration: 19s;
    animation-delay: 4s;
}

.side-left .decoration-petal:nth-child(6) {
    top: 85%;
    left: 50px;
    animation-duration: 24s;
    animation-delay: 10s;
}

.side-right .decoration-petal:nth-child(1) {
    top: 10%;
    right: 30px;
    animation-duration: 19s;
    animation-delay: 1s;
}

.side-right .decoration-petal:nth-child(2) {
    top: 25%;
    right: 60px;
    animation-duration: 23s;
    animation-delay: 6s;
}

.side-right .decoration-petal:nth-child(3) {
    top: 40%;
    right: 20px;
    animation-duration: 21s;
    animation-delay: 3s;
}

.side-right .decoration-petal:nth-child(4) {
    top: 55%;
    right: 70px;
    animation-duration: 24s;
    animation-delay: 9s;
}

.side-right .decoration-petal:nth-child(5) {
    top: 70%;
    right: 40px;
    animation-duration: 20s;
    animation-delay: 5s;
}

.side-right .decoration-petal:nth-child(6) {
    top: 85%;
    right: 50px;
    animation-duration: 22s;
    animation-delay: 11s;
}

@keyframes petalFloatVertical {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: rotate(45deg) scale(1.1);
    }
    50% {
        transform: rotate(45deg) translate(0, 75px) scale(1.05);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translate(0, 150px) scale(0.9);
        opacity: 0;
    }
}

.decoration-text {
    position: absolute;
    writing-mode: vertical-rl;
    font-size: 16px;
    color: #d4a8a8;
    opacity: 0.8;
    letter-spacing: 12px;
    font-style: italic;
    font-weight: 500;
    top: 50%;
    transform: translateY(-50%);
    text-shadow: 0 1px 3px rgba(212, 168, 168, 0.4);
    animation: textBreath 4s ease-in-out infinite;
    background: linear-gradient(180deg, #d4a8a8, #b88888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes textBreath {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }
}

.side-left .decoration-text {
    left: 40px;
    content: "温柔寄语 治愈时光";
}

.side-right .decoration-text {
    right: 40px;
    content: "每一句 都予你温暖";
}

/* ======================================
   导航栏样式（完全复用）
   ====================================== */
.nav {
    width: 80%;
    max-width: 1000px;
    padding: 8px 2.5%;
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(212, 168, 168, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(212, 168, 168, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #d4a8a8, #f3e0e0, #d4a8a8);
    border-radius: 62px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(1px);
}

.nav:hover::after {
    opacity: 1;
}

.nav.scroll {
    width: 60%;
    max-width: 700px;
    padding: 6px 2.5%;
    top: 8px;
    box-shadow: 0 10px 40px rgba(212, 168, 168, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(212, 168, 168, 0.15);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.5s ease;
}

.nav.scroll .author-info {
    gap: 5px;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(212, 168, 168, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-avatar::after {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, #d4a8a8, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: avatarRotate 8s linear infinite;
}

@keyframes avatarRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.nav-avatar:hover::after {
    opacity: 1;
}

.nav.scroll .nav-avatar {
    width: 32px;
    height: 32px;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05);
}

.author-info:hover .nav-avatar {
    transform: rotate(5deg) scale(1.08);
}

.logo {
    font-size: 18px;
    color: #d4a8a8;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 1px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    background: linear-gradient(90deg, #d4a8a8, #b88888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav.scroll .logo {
    font-size: 15px;
    letter-spacing: 0.6px;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a8a8, #b88888);
    box-shadow: 0 1px 3px rgba(212, 168, 168, 0.6);
    transition: width 0.4s ease;
}

.author-info:hover .logo::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
}

.nav-item {
    margin-left: 22px;
    text-decoration: none;
    color: #8a7a7a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 0;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav.scroll .nav-item {
    margin-left: 16px;
    font-size: 12px;
}

.nav-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4a8a8, #b88888);
    border-radius: 1px;
    box-shadow: 0 1px 4px rgba(212, 168, 168, 0.5);
    transition: width 0.4s ease;
}

.nav-item:hover {
    color: #d4a8a8;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(212, 168, 168, 0.2);
}

.nav-item:hover::before {
    width: 80%;
}

.nav-item.active {
    color: #d4a8a8;
    text-shadow: 0 2px 4px rgba(212, 168, 168, 0.2);
}

.nav-item.active::before {
    width: 80%;
}

/* ======================================
   新增：情绪日记轻交互模块
   ====================================== */
.mood-container {
    max-width: 950px;
    margin: 0 auto 40px auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
}

.mood-header {
    text-align: center;
    font-size: 18px;
    color: #a89696;
    margin-bottom: 20px;
    font-style: italic;
}

.mood-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    color: #6d5b5b;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* 不同情绪配色 */
.mood-btn.happy {
    background-color: #f9e9b8;
    color: #8a7a58;
}

.mood-btn.tired {
    background-color: #e9d8d8;
    color: #8a7a7a;
}

.mood-btn.confused {
    background-color: #e9d8e8;
    color: #8a7a88;
}

.mood-btn.warm {
    background-color: #f9d8c8;
    color: #8a7a68;
}

/* 情绪按钮动画 */
.mood-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mood-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.mood-btn:hover::after {
    transform: translateX(100%);
}

.mood-btn.active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mood-btn.active::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.8), rgba(212, 168, 168, 0.3));
    z-index: -1;
    animation: moodGlow 2s ease-in-out infinite alternate;
}

@keyframes moodGlow {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

/* 情绪插画容器 */
.mood-illustration {
    text-align: center;
    margin: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-illustration i {
    font-size: 48px;
    color: #d4a8a8;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.mood-illustration i.show {
    opacity: 1;
    transform: scale(1);
}

/* ======================================
   寄语页面核心样式（新增+优化）
   ====================================== */
.quote-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
}

/* 寄语头部 */
.quote-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    /*background: linear-gradient(120deg, #f9e9e9 0%, #f3e0e0 100%);*/
    /*border-radius: 28px;*/
    position: relative;
    /*overflow: hidden;*/
    /*box-shadow: 0 10px 40px rgba(212, 168, 168, 0.12),*/
    /*inset 0 1px 0 rgba(255, 255, 255, 0.9),*/
    /*inset 0 -1px 0 rgba(212, 168, 168, 0.1);*/
    animation: headerFloat 6s ease-in-out infinite;
    /*border: 1px solid rgba(255, 255, 255, 0.7);*/
}

@keyframes headerFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.01);
    }
}

.quote-header::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.quote-header::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(212, 168, 168, 0.08);
    border-radius: 50%;
    z-index: 0;
    animation: circleFloat 10s ease-in-out infinite;
}

@keyframes circleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10px, 10px) scale(1.1);
    }
}

.quote-title {
    font-size: 36px;
    color: #7d6a6a;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-shadow: 0 4px 12px rgba(212, 168, 168, 0.15);
    animation: titleBounce 3s ease-in-out infinite;
    background: linear-gradient(180deg, #7d6a6a, #5d4a4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes titleBounce {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 0 4px 12px rgba(212, 168, 168, 0.15);
    }
    50% {
        transform: translateY(-5px);
        text-shadow: 0 6px 18px rgba(212, 168, 168, 0.25);
    }
}

.quote-desc {
    font-size: 17px;
    color: #a89696;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    padding: 0 20px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 今日寄语卡片（核心组件） */
.daily-quote-card {
    /*background: rgba(255, 255, 255, 0.98);*/
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 60px 40px;
    /*box-shadow: 0 15px 50px rgba(212, 168, 168, 0.1),*/
    /*inset 0 1px 0 rgba(255, 255, 255, 0.9),*/
    /*inset 0 -1px 0 rgba(212, 168, 168, 0.1);*/
    margin-bottom: 60px;
    /*border: 1px solid rgba(255, 255, 255, 0.8);*/
    position: relative;
    overflow: hidden;
    text-align: center;
    /*animation: cardBreath 8s ease-in-out infinite;*/
}

@keyframes cardBreath {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 15px 50px rgba(212, 168, 168, 0.1);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 20px 60px rgba(212, 168, 168, 0.15);
    }
}

/* 卡片装饰 */
.daily-quote-card::before {
    content: "“";
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 180px;
    color: rgba(212, 168, 168, 0.08);
    font-family: serif;
    z-index: 0;
}

.daily-quote-card::after {
    content: "”";
    position: absolute;
    bottom: -60px;
    right: 20px;
    font-size: 180px;
    color: rgba(212, 168, 168, 0.08);
    font-family: serif;
    z-index: 0;
    transform: rotate(180deg);
}

.quote-meta {
    font-size: 14px;
    color: #b8a8a8;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* ======================================
   新增：手写体样式 + 文字轻触反馈
   ====================================== */
.quote-content {
    font-size: 24px;
    color: #7d6a6a;
    line-height: 2.2;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 0 20px;
    transition: all 0.8s ease;
    /* 手写体基础样式 */
    position: relative;
    display: inline-block;
    background: transparent;
}

/* 三种手写字体 */
.font-style1 {
    font-family: 'Ma Shan Zheng', cursive;
    transform: rotate(-1deg);
}

.font-style2 {
    font-family: 'ZCOOL KuaiLe', cursive;
    transform: rotate(0.5deg);
}

.font-style3 {
    font-family: 'Hannotate SC', sans-serif;
    transform: rotate(1deg);
}

/* 文字轻触反馈 - 手写笔划过高亮 + 纸张褶皱 */
.quote-content:hover, .quote-item-content:hover {
    color: #d4a8a8;
    text-shadow: 0 2px 8px rgba(212, 168, 168, 0.15);
}

.quote-content::after, .quote-item-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(212, 168, 168, 0.1);
    border-radius: 2px;
    z-index: -1;
    transition: width 0.5s ease;
}

.quote-content:hover::after, .quote-item-content:hover::after {
    width: 100%;
}

/* 纸张轻微褶皱动效 */
.quote-content::before, .quote-item-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 168, 168, 0.03) 0%, transparent 5%),
    radial-gradient(circle at 90% 80%, rgba(212, 168, 168, 0.03) 0%, transparent 5%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
}

.quote-content:hover::before, .quote-item-content:hover::before {
    opacity: 1;
    animation: paperWrinkle 0.5s ease-in-out;
}

@keyframes paperWrinkle {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.005) translateY(-0.5px);
    }
    100% {
        transform: scale(1);
    }
}

/* ======================================
   新增：温柔小事每日推荐
   ====================================== */
.gentle-tip {
    font-size: 15px;
    color: #a89696;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    font-style: italic;
    padding: 10px 20px;
    background: rgba(212, 168, 168, 0.05);
    border-radius: 20px;
    display: inline-block;
}

.quote-author {
    font-size: 18px;
    color: #a89696;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.quote-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.quote-btn {
    padding: 12px 30px;
    border-radius: 35px;
    border: 1px solid rgba(212, 168, 168, 0.3);
    background: transparent;
    color: #8a7a7a;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.quote-btn.primary {
    background: linear-gradient(90deg, #d4a8a8, #c89898);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(212, 168, 168, 0.25);
}

.quote-btn.primary:hover {
    background: linear-gradient(90deg, #c89898, #b88888);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 168, 168, 0.35);
}

.quote-btn:hover:not(.primary) {
    border-color: #d4a8a8;
    color: #d4a8a8;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 168, 168, 0.15);
}

.quote-btn:active {
    transform: translateY(-1px);
}

/* 寄语列表 */
.quote-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.quote-item {
    /*background: rgba(255, 255, 255, 0.95);*/
    backdrop-filter: blur(20px);
    border-radius: 22px;
    padding: 35px 25px;
    /*box-shadow: 0 8px 30px rgba(212, 168, 168, 0.08),*/
    /*inset 0 1px 0 rgba(255, 255, 255, 0.9);*/
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    /*border: 1px solid rgba(255, 255, 255, 0.7);*/
    cursor: pointer;
}

.quote-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 168, 0.08), transparent);
    transition: all 1s ease;
}

.quote-item:hover::before {
    left: 100%;
}

.quote-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 168, 168, 0.15);
    border-left: 4px solid #d4a8a8;
}

.quote-item-content {
    font-size: 16px;
    color: #6d5b5b;
    line-height: 1.9;
    margin-bottom: 15px;
    padding-left: 8px;
    border-left: 3px solid rgba(212, 168, 168, 0.15);
    position: relative;
    z-index: 1;
}

.quote-item-author {
    font-size: 14px;
    color: #a89696;
    font-style: italic;
    text-align: right;
}

/* 标签筛选 */
.quote-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    /*background: rgba(255, 255, 255, 0.9);*/
    border-radius: 20px;
    /*box-shadow: 0 8px 30px rgba(212, 168, 168, 0.08);*/
}

.tag-btn {
    padding: 8px 22px;
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 168, 0.25);
    background: transparent;
    color: #8a7a7a;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tag-btn.active {
    background: linear-gradient(90deg, #d4a8a8, #c89898);
    color: white;
    border-color: #d4a8a8;
    box-shadow: 0 4px 12px rgba(212, 168, 168, 0.2);
}

.tag-btn:hover:not(.active) {
    border-color: #d4a8a8;
    color: #d4a8a8;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(212, 168, 168, 0.1);
}

/* ======================================
   新增：时光胶囊弹窗样式
   ====================================== */
.capsule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 250, 246, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.capsule-modal.show {
    opacity: 1;
    pointer-events: all;
}

.capsule-content {
    background: #fdfaf6;
    border-radius: 24px;
    padding: 40px 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 50px rgba(212, 168, 168, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* 纸质感 + 毛边效果 */
    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='%23d4a8a8' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    position: relative;
}

.capsule-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    border: 1px solid rgba(212, 168, 168, 0.1);
    pointer-events: none;
}

.capsule-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 24px;
    color: #7d6a6a;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #d4a8a8, #b88888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.capsule-desc {
    font-size: 16px;
    color: #a89696;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.time-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.time-option {
    padding: 12px 20px;
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 168, 0.3);
    background: transparent;
    color: #8a7a7a;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-option:hover {
    border-color: #d4a8a8;
    background: rgba(212, 168, 168, 0.05);
    color: #d4a8a8;
}

.time-option.active {
    background: linear-gradient(90deg, #d4a8a8, #c89898);
    color: white;
    border-color: #d4a8a8;
}

.capsule-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.capsule-btn {
    padding: 10px 25px;
    border-radius: 20px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.capsule-btn.cancel {
    background: transparent;
    border: 1px solid rgba(212, 168, 168, 0.3);
    color: #8a7a7a;
}

.capsule-btn.cancel:hover {
    border-color: #d4a8a8;
    color: #d4a8a8;
}

.capsule-btn.confirm {
    background: linear-gradient(90deg, #d4a8a8, #c89898);
    color: white;
}

.capsule-btn.confirm:hover {
    background: linear-gradient(90deg, #c89898, #b88888);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 168, 168, 0.2);
}

/* ======================================
   新增：用户温柔集UGC模块
   ====================================== */
.user-quote-container {
    max-width: 950px;
    margin: 60px auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
}

.user-quote-header {
    text-align: center;
    font-size: 28px;
    color: #7d6a6a;
    margin-bottom: 30px;
    background: linear-gradient(180deg, #7d6a6a, #5d4a4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-quote-input-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(212, 168, 168, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* 信纸质感 */
    background-image: linear-gradient(90deg, rgba(212, 168, 168, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(212, 168, 168, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    margin-bottom: 40px;
}

/* 新增：昵称输入框样式（浅粉棕+手写体+柔和交互） */
.nickname-input-group {
    margin-bottom: 20px;
}

.nickname-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(212, 168, 168, 0.3);
    background: transparent;
    font-size: 16px;
    color: #6d5b5b;
    padding: 10px 15px;
    outline: none;
    font-family: 'Ma Shan Zheng', cursive; /* 沿用手写体 */
    transition: all 0.3s ease;
    border-radius: 12px;
}

.nickname-input::placeholder {
    color: #b8a8a8;
    font-style: italic;
}

.nickname-input:focus {
    border-color: #d4a8a8;
    background: rgba(212, 168, 168, 0.05);
    box-shadow: 0 2px 8px rgba(212, 168, 168, 0.1);
}

.user-quote-input {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-size: 16px;
    color: #6d5b5b;
    line-height: 1.8;
    padding: 15px;
    min-height: 120px;
    outline: none;
    font-family: 'Ma Shan Zheng', cursive;
}

.user-quote-input::placeholder {
    color: #b8a8a8;
    font-style: italic;
}

.input-counter {
    text-align: right;
    font-size: 14px;
    color: #b8a8a8;
    margin-top: 10px;
}

.user-quote-submit {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(90deg, #d4a8a8, #c89898);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Ma Shan Zheng', cursive;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #c89898, #b88888);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 168, 168, 0.25);
}

.user-quote-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.user-quote-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(212, 168, 168, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-family: 'Ma Shan Zheng', cursive;
}

.user-quote-content {
    font-size: 18px;
    color: #6d5b5b;
    line-height: 1.8;
    margin-bottom: 15px;
    transform: rotate(-0.5deg);
}

.user-quote-author {
    font-size: 14px;
    color: #a89696;
    text-align: right;
    font-style: italic;
}

/* ======================================
   通用组件（复用+优化）
   ====================================== */
/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 168, 168, 0.4);
    color: #d4a8a8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(212, 168, 168, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    font-size: 22px;
}

.back-to-top::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, #d4a8a8, transparent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: btnRotate 8s linear infinite;
    filter: blur(1px);
}

@keyframes btnRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.back-to-top:hover::after {
    opacity: 1;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: all;
    animation: backToTopShow 0.5s ease-out forwards;
}

@keyframes backToTopShow {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    70% {
        transform: scale(1.15) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(212, 168, 168, 0.1);
    color: #c89898;
    box-shadow: 0 12px 30px rgba(212, 168, 168, 0.25);
}

/* 悬浮提示 */
.floating-card {
    position: fixed;
    left: 20px;
    bottom: 20px;
    top: auto;
    transform: none;
    z-index: 998;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 168, 168, 0.4);
    border-radius: 18px;
    padding: 20px 15px;
    width: 160px;
    box-shadow: 0 8px 30px rgba(212, 168, 168, 0.15);
    text-align: center;
    animation: floatCardCycle 10s ease-in-out infinite 1.8s;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatCardCycle {
    0% {
        opacity: 0;
        transform: translateX(-30px) translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-5px) translateY(5px);
    }
    100% {
        opacity: 0;
        transform: translateX(-10px) translateY(10px);
    }
}

.floating-card:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(212, 168, 168, 0.25);
    border-color: rgba(212, 168, 168, 0.6);
    animation-play-state: paused;
}

.floating-card .card-icon {
    font-size: 26px;
    color: #d4a8a8;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.8s ease-in-out infinite;
    background: linear-gradient(180deg, #d4a8a8, #b88888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes breathRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(8deg);
    }
}

.floating-card:hover .card-icon {
    animation: breathRotate 2.5s ease-in-out infinite;
}

.floating-card .card-text {
    font-size: 14px;
    color: #8c7676;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.floating-card .card-subtext {
    font-size: 12px;
    color: #a89696;
    margin-top: 8px;
    display: block;
    font-style: italic;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 50px 20px;
    color: #b8a8a8;
    font-size: 15px;
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 8%;
    padding-right: 8%;
    z-index: 2;
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    line-height: 2;
}

.footer p {
    transition: color 0.4s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.footer:hover p {
    color: #d4a8a8;
    text-shadow: 0 2px 4px rgba(212, 168, 168, 0.15);
}

.footer p:first-child {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ======================================
   移动端适配（新增功能适配）
   ====================================== */
@media (max-width: 1200px) {
    .side-decoration {
        display: none;
    }
}

@media (max-width: 992px) {
    .floating-card {
        display: none;
    }

    .quote-container {
        max-width: 850px;
        padding: 0 5%;
    }

    .quote-header {
        padding: 35px 15px;
    }

    .quote-title {
        font-size: 32px;
    }

    .daily-quote-card {
        padding: 50px 30px;
    }

    .quote-content {
        font-size: 22px;
    }

    /* 情绪按钮适配 */
    .mood-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* UGC模块适配 */
    .user-quote-input-area {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 75px;
        background-size: 40px 40px;
    }

    .nav {
        width: 85%;
        padding: 6px 2%;
    }

    .nav.scroll {
        width: 70%;
    }

    .nav-item {
        margin-left: 18px;
        font-size: 13px;
    }

    .nav.scroll .nav-item {
        margin-left: 14px;
        font-size: 11px;
    }

    .quote-container {
        max-width: 100%;
    }

    .quote-title {
        font-size: 28px;
    }

    .daily-quote-card {
        padding: 40px 20px;
    }

    .quote-content {
        font-size: 20px;
        padding: 0 10px;
    }

    .quote-actions {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .quote-btn {
        width: 100%;
        justify-content: center;
    }

    .quote-list {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    /* 情绪按钮适配 */
    .mood-buttons {
        gap: 15px;
    }

    .mood-btn {
        padding: 10px 15px;
    }

    /* 时光胶囊弹窗适配 */
    .capsule-content {
        padding: 30px 20px;
    }

    /* UGC模块适配 */
    .user-quote-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav {
        width: 90%;
        padding: 5px 2%;
    }

    .nav-avatar {
        width: 32px;
        height: 32px;
    }

    .nav.scroll .nav-avatar {
        width: 28px;
        height: 28px;
    }

    .logo {
        font-size: 16px;
    }

    .nav.scroll .logo {
        font-size: 14px;
    }

    .nav-item {
        margin-left: 14px;
        font-size: 12px;
    }

    .nav.scroll .nav-item {
        margin-left: 10px;
        font-size: 11px;
    }

    .quote-title {
        font-size: 24px;
    }

    .daily-quote-card {
        padding: 30px 15px;
    }

    .quote-content {
        font-size: 18px;
        line-height: 2;
    }

    .quote-tags {
        gap: 10px;
        padding: 15px;
    }

    .tag-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    /* 情绪按钮适配 */
    .mood-buttons {
        flex-direction: column;
        align-items: center;
    }

    .mood-btn {
        width: 80%;
        justify-content: center;
    }

    /* 时光胶囊弹窗适配 */
    .time-option {
        font-size: 14px;
        padding: 10px 15px;
    }

    .capsule-buttons {
        flex-direction: column;
    }

    .capsule-btn {
        width: 100%;
    }
}

/* 左侧竖中 · 时光胶囊悬浮 独立样式 + 呼吸动画 */
.vertical-capsule-float {
    position: fixed;
    left: 140px; /* 在侧边装饰文字右侧 */
    top: 50%;
    transform: translateY(-50%);
    z-index: 997;

    /* 竖排布局 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-radius: 30px;
    border: 1px solid rgba(212, 168, 168, 0.25);
    box-shadow: 0 6px 20px rgba(212, 168, 168, 0.1);
    cursor: pointer;

    /* 呼吸动画 */
    animation: capsuleBreath 4s ease-in-out infinite;
    transition: all 0.4s ease;
}

/* 呼吸律动 */
@keyframes capsuleBreath {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 6px 20px rgba(212, 168, 168, 0.1);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 10px 30px rgba(212, 168, 168, 0.18);
    }
}

.vertical-capsule-float:hover {
    border-color: rgba(212, 168, 168, 0.45);
}

.v-capsule-icon {
    font-size: 22px;
    color: #d4a8a8;
    position: relative;
}

/* 小锁角标 */
.v-capsule-icon.has-lock::after {
    content: "\f023";
    font-family: FontAwesome;
    position: absolute;
    right: -6px;
    bottom: -4px;
    font-size: 10px;
    color: #b88888;
    background: #fff;
    border-radius: 50%;
}

.v-capsule-text {
    text-align: center;
}

.v-main {
    font-size: 13px;
    color: #7d6a6a;
}

.v-sub {
    font-size: 11px;
    color: #b8a8a8;
    margin-top: 3px;
}

/* 三种状态配色 */
.vertical-capsule-float.empty {
    border-color: rgba(180, 180, 180, 0.25);
}

.vertical-capsule-float.locked {
    /*background: rgba(255, 250, 250, 0.95);*/
    border-color: rgba(212, 168, 168, 0.35);
}

.vertical-capsule-float.ready {
    /*background: rgba(212, 168, 168, 0.08);*/
    border-color: rgba(212, 168, 168, 0.6);
}

/* 移动端自动隐藏 */
@media (max-width: 1200px) {
    .vertical-capsule-float {
        display: none;
    }
}


