/* ============================================================
   首页专属样式 —— 玫瑰奶油设计语言
   仅由 index.php 引入，覆盖 css/style.css 中的旧首页样式
   ============================================================ */

body {
    background: var(--cream, #fff9f6);
    color: var(--ink, #33272b);
    font-family: var(--font-sans, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif);
}

body::before,
body::after {
    display: none;
}

.home-page {
    display: block;
    overflow-x: clip;
}

.home-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- 通用区块标题 ---------------- */
.section {
    padding: 72px 0;
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 42px;
}

.section-kicker {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .28em;
    color: var(--rose);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.home-page .section-title {
    display: block;
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .01em;
    text-align: center;
}

.home-page .section-title i {
    display: none;
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.8;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    padding: 76px 0 64px;
    background:
        radial-gradient(900px 460px at 12% -10%, rgba(244, 183, 196, .38), transparent 62%),
        radial-gradient(760px 420px at 92% 8%, rgba(255, 226, 214, .55), transparent 60%),
        linear-gradient(180deg, #fff9f6 0%, #fdf3f2 100%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.hero-glow-a {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -60px;
    background: radial-gradient(circle, rgba(244, 183, 196, .32), transparent 70%);
}

.hero-glow-b {
    width: 340px;
    height: 340px;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(255, 214, 200, .4), transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    color: var(--rose-dark);
    font-size: .7rem;
    letter-spacing: .22em;
    font-weight: 600;
}

.hero-eyebrow i {
    font-size: .72rem;
}

.hero h1 {
    margin: 20px 0 18px;
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 4.6vw, 3.5rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .01em;
}

.hero h1 em {
    position: relative;
    font-style: normal;
    color: var(--rose);
    white-space: nowrap;
    isolation: isolate;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: .06em;
    height: .28em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(244, 183, 196, .75), rgba(255, 220, 210, .45));
    z-index: -1;
}

.hero-lead {
    margin: 0 0 22px;
    max-width: 520px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

/* 随机文字（打字机） */
.random-text {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 26px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .66);
    border: 1px dashed var(--line-strong);
    color: var(--rose-dark);
    font-size: .9rem;
    font-style: italic;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease, opacity .25s ease;
}

.random-text::before,
.random-text::after {
    display: none;
}

.random-text:hover {
    background: #fff;
    transform: translateY(-2px);
}

.random-text.fade-out {
    opacity: 0;
    transform: translateY(-6px);
}

.random-text.fade-in {
    animation: homeFadeUp .35s ease both;
}

#cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--rose);
    font-weight: 700;
    animation: homeBlink 1s steps(1) infinite;
}

@keyframes homeBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

/* 按钮 */
.home-page .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.home-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.home-page .btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.home-page .btn-primary {
    background: linear-gradient(135deg, var(--rose), #e7748c);
    color: #fff;
    box-shadow: 0 12px 26px rgba(217, 79, 106, .3);
}

.home-page .btn-primary:hover {
    color: #fff;
    box-shadow: 0 16px 32px rgba(217, 79, 106, .36);
}

.home-page .btn-ghost,
.home-page .btn-secondary,
.home-page .btn-tertiary {
    background: rgba(255, 255, 255, .72);
    border-color: var(--line-strong);
    color: var(--muted);
    box-shadow: none;
}

.home-page .btn-ghost:hover,
.home-page .btn-secondary:hover,
.home-page .btn-tertiary:hover {
    color: var(--rose-dark);
    background: #fff;
    border-color: var(--rose-soft);
}

.hero-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 20px 0 0;
    color: var(--faint);
    font-size: .78rem;
}

.hero-hint i {
    color: var(--rose-soft);
}

/* Hero 右侧信件卡 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.hero-letter {
    position: relative;
    width: min(360px, 100%);
    padding: 30px 30px 34px;
    background: linear-gradient(165deg, #fffdfb 0%, #fef6f3 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-card, 0 18px 44px rgba(140, 74, 90, .14));
    transform: rotate(-2.2deg);
    transition: transform .4s cubic-bezier(.2, .8, .3, 1);
}

.hero-letter::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    pointer-events: none;
}

.hero-visual:hover .hero-letter {
    transform: rotate(0deg) translateY(-4px);
}

.hero-letter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--faint);
    font-size: .72rem;
    letter-spacing: .16em;
    margin-bottom: 20px;
}

.hero-letter-top i {
    color: var(--rose-soft);
}

.hero-letter-body {
    margin: 0 0 22px;
    font-family: var(--font-serif);
    font-size: 1.06rem;
    line-height: 2;
    color: var(--ink);
}

.hero-letter-sign {
    font-size: .8rem;
    color: var(--muted);
    text-align: right;
}

.hero-letter-seal {
    position: absolute;
    right: 26px;
    bottom: -18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--rose), #e7748c);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 10px 22px rgba(217, 79, 106, .32);
}

.hero-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(140, 74, 90, .13);
    color: var(--muted);
    font-size: .74rem;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-chip i {
    color: var(--rose);
    font-size: .72rem;
}

.hero-chip-a {
    top: 4px;
    right: -6px;
    animation: homeFloat 5s ease-in-out infinite;
}

.hero-chip-b {
    bottom: 6px;
    left: -14px;
    animation: homeFloat 6.5s ease-in-out infinite reverse;
}

@keyframes homeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* ---------------- 公告栏 ---------------- */
.announcement-container {
    padding: 0;
    margin: 34px 0 0;
    background: transparent;
    animation: homeFadeUp .5s ease both;
}

.announcement-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--rose-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(140, 74, 90, .1));
    transition: box-shadow .25s ease, transform .25s ease;
}

.announcement-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card, 0 18px 44px rgba(140, 74, 90, .14));
}

.announcement-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush);
    color: var(--rose);
    font-size: 1rem;
    flex-shrink: 0;
    animation: none;
}

.announcement-details {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.announcement-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose);
    animation: homePulse 2s infinite;
}

.announcement-text {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
}

.announcement-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--faint);
    font-size: .76rem;
}

.announcement-date::before {
    content: '📅';
}

.announcement-close {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--faint);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: all .25s ease;
}

.announcement-close:hover {
    background: var(--blush);
    color: var(--rose-dark);
    border-color: var(--rose-soft);
    transform: rotate(90deg);
}

.announcement-container.hidden {
    display: none;
}

/* ---------------- 快速功能 ---------------- */
.quick-features-container {
    background: transparent;
    padding: 72px 0 64px;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    padding: 26px 24px 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(140, 74, 90, .05);
    text-decoration: none;
    color: inherit;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rose-soft), #f7d6cd);
    opacity: 0;
    transition: opacity .28s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--rose-soft);
    box-shadow: var(--shadow-card, 0 18px 44px rgba(140, 74, 90, .14));
    color: inherit;
    text-decoration: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush);
    color: var(--rose);
    font-size: 1.05rem;
    margin-bottom: 12px;
    transition: transform .3s ease, background .3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-2px) rotate(-4deg);
    background: #fbe1e7;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.feature-card p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .87rem;
    line-height: 1.75;
}

.feature-arrow {
    position: absolute;
    top: 26px;
    right: 22px;
    color: var(--rose-soft);
    font-size: .95rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .28s ease, transform .28s ease;
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------------- 统计 ---------------- */
.site-stats-container {
    background: linear-gradient(180deg, #fdf3f2 0%, #fff9f6 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 72px 0;
    margin: 0;
    backdrop-filter: none;
}

.site-stats-container::before,
.site-stats-container::after {
    display: none;
}

.stats-subtitle {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: static;
}

.stat-item {
    position: relative;
    padding: 24px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    text-align: left;
    cursor: default;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    overflow: hidden;
}

.stat-item::before {
    display: none;
}

.stat-item::after {
    display: none;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--rose-soft);
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(140, 74, 90, .1));
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush) !important;
    color: var(--rose) !important;
    font-size: .95rem;
    box-shadow: none;
}

.stat-icon::before {
    display: none;
}

.stat-item:hover .stat-icon {
    transform: none;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-family: var(--font-sans);
    letter-spacing: -.01em;
}

.stat-item:hover .stat-number {
    color: var(--rose-dark);
    transform: none;
}

.stat-label {
    font-size: .86rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.stat-description {
    font-size: .74rem;
    color: var(--faint);
    line-height: 1.6;
    max-width: none;
    margin: 0;
}

.stat-number {
    animation: countUp .7s ease-out both;
}

/* ---------------- 轮播图 ---------------- */
.carousel-section {
    padding: 72px 0 56px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-card, 0 18px 44px rgba(140, 74, 90, .14));
    border: 1px solid var(--line);
    background: var(--card);
}

.carousel {
    display: flex;
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    overflow: hidden;
    border-radius: 26px;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 26px;
    transition: transform .8s ease;
}

.carousel-slide:hover img {
    transform: scale(1.04);
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 64px 40px 34px;
    background: linear-gradient(180deg, rgba(51, 39, 43, 0) 0%, rgba(51, 39, 43, .62) 100%);
    color: #fff;
    text-align: left;
}

.carousel-caption h3 {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 700;
    text-shadow: none;
    animation: homeFadeUp .7s ease both;
}

.carousel-caption p {
    margin: 0;
    font-size: .92rem;
    opacity: .88;
    text-shadow: none;
    animation: homeFadeUp .7s ease .12s both;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 249, 246, .72);
    color: var(--rose-dark);
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .85;
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(51, 39, 43, .16);
    transition: all .25s ease;
}

.carousel-control:hover {
    background: #fff;
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}

.carousel-control.prev { left: 18px; }
.carousel-control.next { right: 18px; }

.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: none;
}

.indicator.active,
.indicator:hover {
    width: 22px;
    background: #fff;
    transform: none;
    box-shadow: none;
}

/* ---------------- 爱情箴言 ---------------- */
.love-quote-container {
    padding: 24px 0 64px;
    background: transparent;
}

.love-quote-content {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 46px 56px;
    background: linear-gradient(160deg, #fffdfb 0%, #fdf1f0 100%);
    border: 1px solid var(--line);
    border-radius: 26px;
    text-align: center;
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(140, 74, 90, .1));
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.love-quote-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card, 0 18px 44px rgba(140, 74, 90, .14));
}

.love-quote-content > i.fa-heart {
    display: none;
}

.quote-mark {
    display: block;
    color: var(--rose-soft);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.42rem);
    line-height: 1.95;
    color: var(--ink);
}

.quote-hint {
    display: inline-block;
    margin-top: 18px;
    font-size: .72rem;
    letter-spacing: .16em;
    color: var(--faint);
}

/* ---------------- 时间胶囊 + 天气 ---------------- */
.time-weather-container {
    padding: 72px 0 8px;
    background: transparent;
    border: none;
    margin: 0;
}

.time-weather-container::before {
    display: none;
}

.time-weather-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.time-capsule,
.weather-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px 26px 28px;
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(140, 74, 90, .1));
}

.time-capsule-header,
.weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.time-capsule-title,
.weather-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-capsule-title i,
.weather-title i {
    color: var(--rose);
    font-size: .95rem;
}

.time-capsule-dots {
    display: flex;
    gap: 6px;
}

.time-capsule-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: .8;
}

.dot.red { background: #efb0bb; }
.dot.yellow { background: #f3d4a4; }
.dot.green { background: #b7d8c6; }

.progress-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 18px;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.progress-label > span:first-child {
    color: var(--ink);
    font-weight: 600;
}

.progress-label > span:nth-child(2) {
    margin-left: auto;
    color: var(--rose-dark);
    font-weight: 700;
    font-size: .82rem;
}

.days-info {
    display: none;
}

.progress-bar {
    height: 7px;
    border-radius: 999px;
    background: var(--blush);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose-soft), var(--rose));
    transition: width .6s ease;
}

.progress-fill.week {
    background: linear-gradient(90deg, #f6c9c2, #df8a76);
}

.progress-fill.month {
    background: linear-gradient(90deg, #f0d2a8, #d9a866);
}

.progress-fill.year {
    background: linear-gradient(90deg, #e6b9c4, #cf7f96);
}

/* 天气 */
.weather-card {
    background: linear-gradient(165deg, #fffdfb 0%, #fdf4f1 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
}

.weather-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .82rem;
    color: var(--faint);
}

.precise-loc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--muted);
    font-size: .74rem;
    cursor: pointer;
    transition: all .25s ease;
}

.precise-loc-btn:hover {
    border-color: var(--rose-soft);
    color: var(--rose-dark);
    background: var(--blush);
}

.precise-loc-btn.locating {
    opacity: .6;
    pointer-events: none;
}

.weather-loc-tip {
    margin-bottom: 14px;
    padding: 10px 13px;
    border-radius: 12px;
    background: #fff8ec;
    border: 1px solid #f5e3c6;
    color: #a17a3f;
    font-size: .76rem;
    line-height: 1.7;
}

.weather-loc-tip.error {
    background: #fdf0f1;
    border-color: #f2d3d7;
    color: var(--rose-dark);
}

.loc-link {
    color: var(--rose-dark);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.weather-location {
    font-size: .85rem;
    color: var(--muted);
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0 4px;
}

.weather-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.weather-temp {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.weather-condition {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 18px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
}

.weather-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(253, 238, 241, .55);
    border-radius: 10px;
}

.weather-detail-label {
    font-size: .74rem;
    color: var(--faint);
}

.weather-detail-value {
    font-size: .8rem;
    color: var(--ink);
    font-weight: 600;
}

/* ---------------- 节日弹窗 ---------------- */
.new-year-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(51, 39, 43, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    animation: homeFadeIn .3s ease both;
}

.new-year-modal {
    position: relative;
    width: min(440px, 100%);
    margin: auto;
    padding: 38px 34px 34px;
    background: linear-gradient(165deg, #fffdfb 0%, #fdf1f0 100%);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(51, 39, 43, .35);
    text-align: center;
    animation: homeModalIn .35s cubic-bezier(.2, .8, .3, 1) both;
}

.new-year-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--faint);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: all .25s ease;
}

.new-year-close:hover {
    background: var(--blush);
    color: var(--rose-dark);
    transform: rotate(90deg);
}

.new-year-title {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--ink);
}

.year-display {
    margin: 6px 0 12px;
    font-family: var(--font-serif);
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--rose);
    line-height: 1.1;
}

.new-year-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .88rem;
}

.countdown-tip {
    margin-bottom: 12px;
    font-size: .76rem;
    letter-spacing: .12em;
    color: var(--faint);
}

.countdown-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}

.countdown-item {
    min-width: 58px;
    padding: 10px 6px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rose-dark);
    line-height: 1.1;
}

.countdown-label {
    margin-top: 3px;
    font-size: .66rem;
    color: var(--faint);
}

.countdown-separator {
    padding-top: 16px;
    color: var(--rose-soft);
    font-weight: 700;
}

.new-year-decoration {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.8;
}

.mid-autumn-moon {
    font-size: 3rem;
    line-height: 1;
    margin: 8px 0 10px;
}

.nd-flag {
    display: flex;
    justify-content: center;
    margin: 10px 0 12px;
}

.nd-flag-svg {
    width: 96px;
    height: 64px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(222, 41, 16, .22);
}

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

@keyframes homeModalIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 雪花 */
.full-page-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 0 6px rgba(244, 183, 196, .6);
    animation: homeSnowFall linear infinite;
}

@keyframes homeSnowFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: .2; }
}

/* 浮动爱心 */
.floating-heart {
    position: fixed;
    background: radial-gradient(circle, rgba(244, 183, 196, .7) 0%, rgba(253, 238, 241, .35) 70%);
    clip-path: path('M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z');
    opacity: .5;
    pointer-events: none;
    z-index: 1;
    animation: homeHeartFloat 20s ease-in-out infinite;
}

@keyframes homeHeartFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: .45; }
    25% { transform: translateY(-40px) rotate(30deg) scale(1.06); opacity: .6; }
    50% { transform: translateY(-80px) rotate(70deg) scale(1.12); opacity: .68; }
    75% { transform: translateY(-40px) rotate(110deg) scale(1.06); opacity: .6; }
}

/* ---------------- AI 聊天机器人 ---------------- */
.ai-chatbot {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    width: auto;
    height: auto;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .6);
    background: linear-gradient(145deg, var(--rose), #e7748c);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(217, 79, 106, .32);
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), box-shadow .3s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(217, 79, 106, .4);
}

.chatbot-window {
    position: fixed;
    bottom: 92px;
    right: 22px;
    width: 330px;
    max-width: calc(100vw - 40px);
    height: 420px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(51, 39, 43, .24);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.chatbot-window.show {
    display: flex;
    animation: homeModalIn .28s ease both;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: linear-gradient(135deg, var(--rose), #e7748c);
    color: #fff;
}

.chatbot-header h3 {
    margin: 0;
    font-size: .98rem;
    font-weight: 600;
}

.chatbot-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, .32);
}

.chatbot-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
}

.message {
    display: flex;
    margin-bottom: 12px;
    animation: homeFadeUp .28s ease both;
}

.user-message { justify-content: flex-end; }
.bot-message { justify-content: flex-start; }

.message-content {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .84rem;
    line-height: 1.65;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--rose), #e7748c);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: var(--blush);
    color: var(--ink);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
}

.typing { opacity: .65; }

.chatbot-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid var(--line);
    background: #fffaf8;
    overflow-x: auto;
    scrollbar-width: none;
}

.chatbot-chips::-webkit-scrollbar { display: none; }

.chat-chip {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--muted);
    font-size: .74rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}

.chat-chip:hover {
    background: var(--blush);
    border-color: var(--rose-soft);
    color: var(--rose-dark);
}

.chatbot-input {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffaf8;
    font-size: .84rem;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--rose-soft);
    box-shadow: 0 0 0 3px rgba(244, 183, 196, .25);
}

.send-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), #e7748c);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(217, 79, 106, .28);
    transition: transform .25s ease;
}

.send-btn:hover {
    transform: translateY(-2px);
}

.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 3px;
}

/* ---------------- 兼容 style.css 中的旧首页规则 ---------------- */
.home-page .hero {
    margin: 0;
    max-width: none;
    border-radius: 0;
    border: none;
    text-align: left;
    backdrop-filter: none;
}

.home-page .hero::before,
.home-page .hero::after {
    display: none;
}

.home-page .hero h1 {
    color: var(--ink);
    text-shadow: none;
}

.home-page .hero p {
    font-size: 1rem;
    color: var(--muted);
    text-shadow: none;
}

.home-page .hero .hero-lead {
    max-width: 520px;
    margin: 0 0 22px;
    font-size: 1rem;
}

.home-page .hero .random-text {
    display: inline-flex;
    margin: 0 0 26px;
    padding: 7px 16px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--rose-dark);
    opacity: 1;
    text-align: left;
    text-shadow: none;
    animation: none;
}

.home-page .hero .btn {
    font-size: .95rem;
}

.home-page .hero .btn::before {
    display: none;
}

.home-page .love-quote-container {
    margin: 0;
    overflow: visible;
}

.home-page .love-quote-content {
    display: block;
    gap: 0;
}

.home-page .quote-text {
    max-width: none;
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.42rem);
    font-style: normal;
    font-weight: 400;
    color: var(--ink);
    text-shadow: none;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: 2;
        justify-content: flex-start;
    }

    .hero-letter {
        transform: rotate(-1.2deg);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-weather-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-page .container {
        padding: 0 18px;
    }

    .hero {
        padding: 46px 0 44px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .hero-lead {
        font-size: .94rem;
    }

    .hero-chip {
        display: none;
    }

    .hero-letter {
        width: 100%;
        padding: 26px 24px 30px;
    }

    .section {
        padding: 52px 0;
    }

    .quick-features-container {
        padding: 52px 0 44px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 22px 20px 24px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-item {
        padding: 18px 16px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-caption {
        padding: 46px 22px 26px;
    }

    .carousel-control {
        width: 38px;
        height: 38px;
    }

    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }

    .love-quote-content {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .announcement-content {
        padding: 16px;
        gap: 12px;
    }

    .announcement-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .time-capsule,
    .weather-container {
        padding: 20px 18px;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }

    .new-year-modal {
        padding: 30px 20px 26px;
    }

    .countdown-item {
        min-width: 50px;
    }

    .chatbot-window {
        bottom: 84px;
        right: 14px;
        width: 300px;
        height: 380px;
    }

    .ai-chatbot {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .btn {
        width: 100%;
    }

    .random-text {
        font-size: .82rem;
    }

    .carousel-slide img {
        height: 240px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chatbot-window {
        right: 10px;
        bottom: 78px;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: min(460px, 66vh);
    }
}
