/* ==========================================================================
   Yang & Xinjie - 跨国双城空间风格样式 (Warm Morandi & Vintage Paper)
   专为女孩设计的细腻质感、手写衬线、温暖纸笺美学
   ========================================================================== */

/* --- CSS 变量与设计系统 --- */
:root {
    --bg-surface: #f7f3ec;
    --bg-paper: #faf7f2;
    --bg-card: #fffdfa;
    --border-color: #dfd5c7;
    --border-light: #ece5da;
    
    --text-main: #2b2826;
    --text-muted: #736b63;
    --text-light: #9a9187;
    
    --color-rose: #c97a7e;
    --color-rose-light: #f5ebeb;
    --color-rose-dark: #9c3d41;
    --color-terracotta: #bd6b56;
    --color-gold: #c5a059;
    --color-sage: #7a8f82;
    --color-sky: #5b7fa3;
    
    --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", Georgia, serif;
    --font-cursive: "Ma Shan Zheng", cursive;
    --font-en-cursive: "Caveat", cursive;
    --font-garamond: "Cormorant Garamond", serif;
    
    --shadow-sm: 0 2px 8px rgba(70, 50, 40, 0.04);
    --shadow-md: 0 8px 24px rgba(70, 50, 40, 0.06);
    --shadow-lg: 0 16px 40px rgba(50, 35, 25, 0.09);
    --shadow-paper: 0 12px 35px rgba(60, 45, 35, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 全局重置 --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-surface);
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
        repeating-linear-gradient(45deg, rgba(120, 100, 80, 0.015) 0px, rgba(120, 100, 80, 0.015) 2px, transparent 2px, transparent 8px);
    color: var(--text-main);
    font-family: var(--font-serif);
    min-height: 100vh;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 纸质微颗粒感 */
.paper-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 8px 8px;
    z-index: 1;
}

.ambient-glow {
    position: fixed;
    top: -10vw;
    right: -10vw;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 183, 183, 0.25) 0%, rgba(247, 243, 236, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- 顶部导航栏 --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(50, 40, 30, 0.03);
}

.header-container {
    width: 95%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo-names {
    font-family: var(--font-cursive);
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-names .logo-vi {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: normal;
}

body.lang-vi .logo-names .logo-vi {
    font-family: var(--font-serif);
    font-size: 22px;
    font-style: normal;
    color: var(--text-main);
    letter-spacing: 1.5px;
}

.logo-heart {
    color: var(--color-rose);
    font-family: var(--font-en-cursive);
    font-size: 26px;
    animation: pulseHeart 2s infinite ease-in-out;
}

@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); color: var(--color-rose-dark); }
}

.logo-subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-family: var(--font-serif);
}

/* 导航链接 */
.nav-links {
    display: flex;
    gap: 6px;
    background: rgba(236, 229, 218, 0.5);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.nav-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.6);
}

.nav-btn.active {
    background: #ffffff;
    color: var(--color-rose-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(70, 50, 40, 0.08);
}

.badge-count {
    background: var(--color-rose);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.3;
}

/* 黑胶音乐小组件 */
.vinyl-player-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-paper);
    border: 1px solid var(--border-color);
    padding: 6px 14px 6px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.vinyl-player-widget:hover {
    border-color: var(--color-rose);
    box-shadow: 0 4px 12px rgba(201, 122, 126, 0.15);
}

.vinyl-disc-wrap {
    position: relative;
    width: 32px;
    height: 32px;
}

.vinyl-disc {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, #222 25%, #333 40%, #111 60%, #444 80%, #1a1a1a 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s;
}

.vinyl-disc.spinning {
    animation: spinDisc 3s linear infinite;
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-center {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-rose);
    color: #fff;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-tonearm {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 14px;
    height: 3px;
    background: #888;
    transform-origin: right center;
    transform: rotate(35deg);
    transition: transform 0.4s ease;
}

.vinyl-disc.spinning + .vinyl-tonearm {
    transform: rotate(0deg);
}

.vinyl-info {
    display: flex;
    flex-direction: column;
}

.vinyl-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.vinyl-status {
    font-size: 10px;
    color: var(--text-light);
    font-family: var(--font-en-cursive);
}

.vinyl-btn-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vinyl-toggle-btn {
    border: none;
    background: var(--color-rose-light);
    color: var(--color-rose-dark);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.vinyl-toggle-btn:hover {
    background: var(--color-rose);
    color: #fff;
}

.vinyl-next-btn {
    border: none;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.vinyl-next-btn:hover {
    background: var(--color-rose-light);
    color: var(--color-rose-dark);
}

.settings-trigger-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.settings-trigger-btn:hover {
    background: #fff;
    border-color: var(--color-rose);
    transform: rotate(45deg);
}

/* --- 语言切换器与中越双语排版系统 --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch-group {
    display: inline-flex;
    align-items: center;
    background: rgba(236, 229, 218, 0.7);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-family: var(--font-serif);
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.lang-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    background: #ffffff;
    color: var(--color-rose-dark);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(70, 50, 40, 0.1);
}

/* --- 中越双语视觉排版系统 (Refined Bilingual Typography & Layout System) --- */
.vi-sub {
    font-family: "Noto Serif", Georgia, serif;
    font-style: italic;
    color: #6d645a;
    font-weight: 400;
}

.zh-text {
    font-family: var(--font-serif);
}

/* 模式切换全局显示规则 */
body.lang-zh .vi-sub,
body.lang-zh .vi-only {
    display: none !important;
}

body.lang-vi .zh-text,
body.lang-vi .zh-only {
    display: none !important;
}

/* 双语同行通用规则：默认块级优雅换行与字体缩放 */
body.lang-bilingual .vi-sub {
    display: block;
    font-size: 0.86em;
    line-height: 1.45;
    margin-top: 2px;
}

/* 1. 导航与按钮体系内的双语文本组排版 */
.btn-text-group {
    display: inline-flex;
    flex-direction: column;
    text-align: inherit;
    line-height: 1.25;
}

body.lang-bilingual .btn-text-group .vi-sub {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
    opacity: 0.9;
    font-weight: 400;
}

body.lang-bilingual .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
}

body.lang-bilingual .submit-btn,
body.lang-bilingual .cancel-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
    padding: 6px 18px;
}

body.lang-bilingual .submit-btn .vi-sub,
body.lang-bilingual .cancel-btn .vi-sub {
    display: block;
    font-size: 10.5px;
    margin-top: 1px;
    opacity: 0.9;
    font-weight: 400;
}

body.lang-bilingual .nav-text-group {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

body.lang-bilingual .nav-btn {
    padding: 6px 14px;
}

body.lang-bilingual .nav-text-group .vi-sub {
    font-size: 10px;
    margin-top: 1px;
    opacity: 0.85;
}

/* 2. 标题与引言区块双语排版 */
body.lang-bilingual .section-heading .vi-sub {
    font-size: 0.58em;
    margin-top: 4px;
    letter-spacing: 0.5px;
    font-weight: 400;
    color: var(--text-muted);
}

body.lang-bilingual .section-desc .vi-sub {
    font-size: 0.9em;
    margin-top: 4px;
    line-height: 1.5;
}

body.lang-bilingual .radar-title .vi-sub {
    font-size: 0.55em;
    margin-top: 6px;
    letter-spacing: 0.5px;
    color: #635b52;
    font-weight: 400;
    line-height: 1.35;
}

body.lang-bilingual .radar-quote.vi-sub {
    margin-top: 6px;
    font-size: 13.5px;
    color: #5c544b;
}

/* 3. 标签与徽章内双语排版 (保持徽章配色与圆角) */
body.lang-bilingual .section-tag .vi-sub {
    color: inherit;
    font-size: 9.5px;
    letter-spacing: 1px;
    margin-top: 2px;
    text-transform: uppercase;
    font-style: normal;
}

body.lang-bilingual .itinerary-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    padding: 3px 8px;
    vertical-align: middle;
}

body.lang-bilingual .itinerary-badge .vi-sub {
    font-size: 9.5px;
    color: #ffffff;
    margin-top: 1px;
    font-style: normal;
}

body.lang-bilingual .itinerary-main {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

body.lang-bilingual .itinerary-main .vi-sub {
    display: block;
    font-size: 12.5px;
    color: #6d645a;
    margin-top: 2px;
    margin-left: 0;
    font-weight: 400;
}

body.lang-bilingual .itinerary-countdown {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    padding: 3px 10px;
}

body.lang-bilingual .itinerary-countdown .vi-sub {
    font-size: 10.5px;
    margin-top: 1px;
    font-weight: 400;
}

body.lang-bilingual .itinerary-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
}

/* 4. 双城卡片与越洋连接线排版 */
.city-badge-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-name-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.city-name-vi {
    font-size: 12px;
    color: #6d645a;
    margin-top: 1px;
}

.city-character {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 12px;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

.char-role {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-rose-dark);
}

.char-role .vi-sub {
    font-size: 11px;
    margin-top: 1px;
    font-weight: 400;
}

.char-status-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.3;
}

.char-status-wrap .vi-sub {
    font-size: 11px;
    margin-top: 1px;
    text-align: right;
    color: #6d645a;
}

.city-mood-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-paper);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 18px;
}

.mood-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.mood-label-vi {
    font-size: 11.5px;
    color: #6d645a;
    margin-top: 1px;
    margin-bottom: 4px;
}

.mood-sub-vi {
    font-size: 11px;
    color: #7d746a;
    margin-top: 1px;
}

.tz-diff-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.tz-diff-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

.tz-diff-group .vi-sub {
    font-size: 11px;
    margin-top: 1px;
    color: #6d645a;
}

/* 5. 恋爱计数器与倒计时打码区双语排版 */
.counter-label {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

#meetupLabel {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.25;
}

#meetupLabel .vi-sub {
    font-size: 11px;
    margin-top: 1px;
}

.mask-indicator-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    padding: 2px 7px;
    margin-left: 0;
}

.mask-indicator-badge .vi-sub {
    font-size: 9.5px;
    margin-top: 1px;
    font-style: normal;
}

.edit-link {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.25;
    margin-left: 0;
}

.edit-link .vi-sub {
    font-size: 10px;
    margin-top: 1px;
}

.counter-value {
    display: flex;
    align-items: baseline;
    font-family: var(--font-en-cursive);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-rose-dark);
    line-height: 1.1;
}

.counter-unit {
    display: inline-flex;
    flex-direction: column;
    vertical-align: baseline;
    font-size: 15px;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-main);
    margin-left: 6px;
    line-height: 1.15;
}

.counter-unit .vi-sub {
    font-size: 11px;
    color: #6d645a;
    margin-top: 1px;
}

.digit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-paper);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    min-width: 46px;
}

.d-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10.5px;
    line-height: 1;
    color: var(--text-muted);
}

.d-label .vi-sub {
    display: inline !important;
    font-size: 9px;
    margin-top: 0 !important;
}

.mask-secret-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
}

.mask-secret-text .vi-sub {
    font-size: 10.5px;
    margin-top: 1px;
    font-weight: 400;
}

body.lang-bilingual .counter-detail .vi-sub {
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.4;
}

/* 6. 心愿清单筛选胶囊双语排版 */
body.lang-bilingual .filter-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    padding: 5px 14px;
}

body.lang-bilingual .filter-btn .vi-sub {
    font-size: 10px;
    margin-top: 1px;
    opacity: 0.85;
}

/* 7. 表单弹窗中的双语标签排版 */
.form-group label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group label .vi-sub {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 0;
}

/* 8. 便签发布者单选框双语排版 */
.radio-custom {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.25;
    padding: 5px 14px;
}

.radio-custom .vi-sub {
    font-size: 10.5px;
    margin-top: 1px;
    font-weight: 400;
}

.picker-label {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 12px;
    color: var(--text-muted);
}

.picker-label .vi-sub {
    font-size: 10px;
    margin-top: 1px;
}

/* 9. 页脚双语排版 */
body.lang-bilingual .footer-quote .vi-sub {
    margin-top: 4px;
    font-size: 13px;
}

body.lang-bilingual .footer-bottom .vi-sub {
    margin-top: 3px;
    font-size: 11.5px;
}

/* --- 主体容器与 Tab 切换 --- */
.main-content {
    width: 95%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 28px 20px 64px 20px;
    position: relative;
    z-index: 2;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 通用区块头 */
.section-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
}

.section-tag {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--color-rose);
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 6px;
}

.section-heading {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 1px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   TAB 1: 双城记雷达与情侣仪表盘
   ========================================================================== */
.dual-city-radar {
    background: var(--bg-paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-paper);
    padding: 42px 48px 38px 48px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.radar-header {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 36px auto;
}

.radar-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.radar-quote {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-serif);
    line-height: 1.8;
}

/* 航迹预告横幅 (亚美尼亚之行) */
.itinerary-banner {
    background: linear-gradient(135deg, #fff9f6 0%, #fdf5f0 100%);
    border: 1px solid #f0d5ce;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(189, 107, 86, 0.08);
    position: relative;
    overflow: hidden;
}

.itinerary-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-terracotta);
}

.itinerary-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: bouncePlane 2s infinite ease-in-out;
}

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

.itinerary-content {
    flex-grow: 1;
}

.itinerary-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.itinerary-badge {
    background: var(--color-terracotta);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}

.itinerary-main {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.itinerary-countdown {
    background: #fde8e8;
    color: var(--color-rose-dark);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #f8c9c9;
}

.itinerary-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.itinerary-toggle-btn {
    border: 1px solid var(--color-rose);
    background: #ffffff;
    color: var(--color-rose-dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(201, 122, 126, 0.15);
}

.itinerary-toggle-btn:hover {
    background: var(--color-rose);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 122, 126, 0.25);
}

.romantic-sparkle-btn {
    background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
    border: 1px solid rgba(201, 122, 126, 0.5);
    box-shadow: 0 2px 8px rgba(201, 122, 126, 0.18);
    position: relative;
    user-select: none;
    outline: none;
}

.romantic-sparkle-btn:hover {
    background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-terracotta) 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(201, 122, 126, 0.35);
}

.romantic-sparkle-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 浮动浪漫文字微提示 (Sparkle Toast) */
.sparkle-toast {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    font-size: 13px;
    font-weight: 600;
    color: #bd6b56;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 122, 126, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(201, 122, 126, 0.22);
    animation: toastFloatUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    white-space: nowrap;
}

@keyframes toastFloatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 4px) scale(0.88);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -10px) scale(1.04);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, -36px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -58px) scale(0.94);
    }
}

/* 双城卡片网格 */
.city-cards-grid {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 36px;
}

.city-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.city-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.city-badge .flag {
    font-size: 24px;
}

.city-badge .city-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 1px;
}

.tz-pill {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.city-clock {
    margin-bottom: 20px;
}

.clock-time {
    font-family: var(--font-en-cursive);
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-main);
    letter-spacing: 2px;
}

.clock-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.city-mood-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-paper);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 18px;
}

.mood-icon {
    font-size: 24px;
}

.mood-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.mood-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.city-character {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

.char-role {
    font-weight: 600;
    color: var(--color-rose-dark);
}

.char-status {
    color: var(--text-light);
}

/* 中间越洋脉冲航线 */
.ocean-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.connector-line-wrap {
    width: 100%;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flight-track {
    width: 100%;
    height: 2px;
    border-bottom: 2px dashed var(--color-rose);
    position: relative;
}

.flight-plane {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: var(--color-rose-dark);
    filter: drop-shadow(0 2px 6px rgba(201, 122, 126, 0.4));
    animation: flyAcross 6s infinite ease-in-out;
}

@keyframes flyAcross {
    0% { left: 10%; transform: translate(-50%, -50%) rotate(0deg); }
    50% { left: 90%; transform: translate(-50%, -50%) rotate(0deg); }
    51% { left: 90%; transform: translate(-50%, -50%) rotate(180deg); }
    100% { left: 10%; transform: translate(-50%, -50%) rotate(180deg); }
}

.distance-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

.distance-km {
    font-family: var(--font-en-cursive);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-rose-dark);
}

.distance-pill .unit {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.tz-diff-pill {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.connector-hint {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* 恋爱仪式感计数器卡片 */
.counters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.counter-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.counter-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-rose);
}

.counter-icon {
    font-size: 38px;
    background: var(--color-rose-light);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.counter-body {
    flex-grow: 1;
}

.counter-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.counter-value {
    font-family: var(--font-en-cursive);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-rose-dark);
    line-height: 1.1;
}

.countdown-dash-val {
    font-family: var(--font-en-cursive), var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    color: var(--color-rose-dark);
    letter-spacing: 6px;
    line-height: 1.1;
    margin: 2px 0;
    user-select: none;
}

.counter-unit {
    font-size: 16px;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-main);
}

.counter-detail {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.mask-indicator-badge {
    background: #fde8e8;
    color: var(--color-rose-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid #f8c9c9;
    margin-left: 6px;
    display: inline-block;
}

.countdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 6px 0;
}

.countdown-digits {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.countdown-digits.is-masked {
    filter: blur(8px);
    opacity: 0.35;
    user-select: none;
    pointer-events: none;
}

.secret-mask-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.94);
    border: 1px dashed var(--color-rose);
    box-shadow: 0 4px 16px rgba(201, 122, 126, 0.22);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    z-index: 3;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.countdown-wrapper.unmasked .secret-mask-card {
    display: none;
}

.countdown-wrapper.unmasked .countdown-digits.is-masked {
    filter: none;
    opacity: 1;
    pointer-events: auto;
}

.mask-lock-icon {
    font-size: 14px;
}

.mask-secret-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-rose-dark);
    font-family: var(--font-serif);
}

.peek-secret-btn {
    border: none;
    background: var(--color-rose-light);
    color: var(--color-rose-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition-smooth);
}

.peek-secret-btn:hover {
    background: var(--color-rose);
    color: #fff;
    transform: scale(1.1);
}

.secret-date-badge {
    background: #fdf6f5;
    border: 1px dashed var(--color-rose);
    color: var(--color-rose-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.digit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-paper);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    min-width: 44px;
}

.digit-box span:first-child {
    font-family: var(--font-en-cursive);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.d-label {
    font-size: 10px;
    color: var(--text-muted);
}

.digit-colon {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-rose);
}

.edit-link {
    font-size: 11px;
    color: var(--color-rose);
    cursor: pointer;
    text-decoration: underline;
    margin-left: 6px;
}

/* 首页快捷小入口 */
.home-quick-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.quick-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.quick-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.q-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.text-link-btn {
    border: none;
    background: transparent;
    color: var(--color-rose-dark);
    font-size: 12px;
    font-family: var(--font-serif);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.text-link-btn:hover {
    text-decoration: underline;
    transform: translateX(2px);
}

/* ==========================================================================
   TAB 2: 时光书简 (HTML日记与信件库)
   ========================================================================== */
.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.letter-envelope-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 26px 24px 26px;
    box-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.letter-envelope-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, #a84448 0px, #a84448 15px, #faf7f2 15px, #faf7f2 22px, #385f8c 22px, #385f8c 37px, #faf7f2 37px, #faf7f2 44px);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.letter-envelope-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-rose);
}

.envelope-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.envelope-date {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.envelope-stamp {
    width: 38px;
    height: 46px;
    border: 1px dashed var(--color-rose);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-rose-light);
    color: var(--color-rose-dark);
    font-size: 10px;
}

.stamp-icon {
    font-size: 14px;
}

.envelope-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.envelope-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.envelope-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.envelope-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-light);
    padding-top: 14px;
}

.envelope-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.env-tag {
    font-size: 11px;
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.read-letter-btn {
    border: none;
    background: transparent;
    color: var(--color-rose-dark);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   TAB 3: 100 件心愿清单 (Bucket List)
   ========================================================================== */
.bucket-progress-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.progress-info {
    margin-bottom: 20px;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.progress-stat {
    color: var(--color-rose-dark);
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e8e0d5;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-rose) 0%, var(--color-terracotta) 100%);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.bucket-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-family: var(--font-serif);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--color-rose);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--color-rose);
    color: #fff;
    border-color: var(--color-rose);
}

.bucket-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.bucket-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.bucket-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bucket-item-card.completed {
    background: #faf8f5;
    opacity: 0.85;
}

.bucket-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition-smooth);
    font-size: 12px;
    color: transparent;
}

.bucket-item-card.completed .bucket-checkbox {
    background: var(--color-rose);
    border-color: var(--color-rose);
    color: #fff;
}

.bucket-body {
    flex-grow: 1;
}

.bucket-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
}

.bucket-item-card.completed .bucket-title {
    text-decoration: line-through;
    color: var(--text-light);
}

.bucket-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 6px;
}

.bucket-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-light);
}

/* ==========================================================================
   TAB 4: 拍立得画廊 (Polaroid Memories)
   ========================================================================== */
.polaroid-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 36px 28px;
    padding: 20px 0;
}

.polaroid-card {
    background: #ffffff;
    border: 1px solid #e0d8cc;
    border-radius: 4px;
    padding: 14px 14px 22px 14px;
    box-shadow: 0 10px 25px rgba(50, 40, 30, 0.08);
    position: relative;
    transition: var(--transition-smooth);
    transform: rotate(var(--rot, 0deg));
    cursor: pointer;
}

.polaroid-del-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(40, 30, 25, 0.65);
    color: #ffffff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 5;
}

.polaroid-card:hover .polaroid-del-btn {
    display: flex;
}

.polaroid-del-btn:hover {
    background: var(--color-rose-dark);
    transform: scale(1.15);
}

.polaroid-card::after {
    /* 和纸胶带效果 */
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 22px;
    background: rgba(224, 210, 195, 0.7);
    border: 1px dashed rgba(180, 160, 140, 0.5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 16px 36px rgba(50, 40, 30, 0.15);
    z-index: 10;
}

.polaroid-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ece5da;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #e8e2d8;
}

.polaroid-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-caption {
    font-family: var(--font-cursive);
    font-size: 20px;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.polaroid-sub {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    font-family: var(--font-serif);
}

/* ==========================================================================
   TAB 5: 异地床头小纸条 (Love Notes & Post-it)
   ========================================================================== */
.new-note-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.note-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.author-toggle {
    display: flex;
    gap: 12px;
}

.radio-label {
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.radio-custom {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.radio-label input:checked + .radio-custom {
    background: var(--color-rose-light);
    border-color: var(--color-rose);
    color: var(--color-rose-dark);
    font-weight: 600;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.picker-label {
    font-size: 12px;
    color: var(--text-muted);
}

.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.color-dot input {
    display: none;
}

.color-dot span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
}

.color-dot.pink span { background: #ffe4e6; }
.color-dot.yellow span { background: #fef08a; }
.color-dot.green span { background: #dcfce7; }
.color-dot.lavender span { background: #ede9fe; }

.color-dot input:checked + span {
    border-color: var(--text-main);
    transform: scale(1.15);
}

.note-input-wrap {
    display: flex;
    gap: 12px;
}

.note-input-wrap textarea {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--text-main);
    resize: vertical;
    min-height: 70px;
}

.note-input-wrap textarea:focus {
    outline: none;
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(201, 122, 126, 0.15);
}

.submit-note-btn {
    border: none;
    background: var(--color-rose-dark);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 14px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.submit-note-btn:hover {
    background: #873337;
    transform: translateY(-2px);
}

/* 便签贴板网格 */
.notes-pinboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.sticky-note {
    padding: 22px 20px 18px 20px;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(70, 50, 40, 0.08);
    position: relative;
    transform: rotate(var(--rot, 0deg));
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.sticky-note::before {
    /* 图钉 */
    content: "📌";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
}

.sticky-note.pink { background: #ffebeb; border: 1px solid #f2cfcf; }
.sticky-note.yellow { background: #fef9c3; border: 1px solid #f3e887; }
.sticky-note.green { background: #eafaf1; border: 1px solid #c9ebd7; }
.sticky-note.lavender { background: #f3effe; border: 1px solid #ddd2fa; }

.sticky-note:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 14px 28px rgba(70, 50, 40, 0.12);
    z-index: 5;
}

.note-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.note-author {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-time {
    color: var(--text-light);
}

.note-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 16px;
    flex-grow: 1;
    white-space: pre-wrap;
}

.note-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(0,0,0,0.08);
    padding-top: 10px;
}

.note-city {
    font-size: 11px;
    color: var(--text-muted);
}

.note-heart-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-rose-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s;
}

.note-heart-btn:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   按钮体系与通用样式
   ========================================================================== */
.primary-btn {
    border: none;
    background: var(--color-rose-dark);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-family: var(--font-serif);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(156, 61, 65, 0.2);
}

.primary-btn:hover {
    background: #802f33;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(156, 61, 65, 0.3);
}

/* 底部 */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-paper);
    padding: 36px 24px;
    text-align: center;
    margin-top: 40px;
}

.footer-quote {
    font-family: var(--font-cursive);
    font-size: 22px;
    color: var(--color-rose-dark);
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.footer-bottom {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-sep {
    color: var(--border-color);
}

/* ==========================================================================
   弹窗与信件阅读器 (MODALS & READER)
   ========================================================================== */
/* 1. 全屏沙箱信件阅读器 */
.reader-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 25, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.reader-modal-overlay.active {
    display: flex;
}

.reader-modal-container {
    width: 95%;
    max-width: 1480px;
    height: 92vh;
    background: #faf7f2;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.reader-top-bar {
    background: #f4eee4;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reader-letter-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reader-wax-icon {
    font-size: 24px;
}

.reader-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.reader-modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.reader-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reader-btn {
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: var(--font-serif);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reader-btn:hover {
    background: var(--bg-surface);
    border-color: var(--color-rose);
}

.reader-close-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.reader-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

.reader-iframe-frame {
    flex-grow: 1;
    width: 100%;
    height: calc(100% - 60px);
    background: #e8e2d8;
}

.reader-iframe-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 2. 通用表单弹窗 */
.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 25, 20, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-modal-overlay.active {
    display: flex;
}

.form-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 30px;
}

.form-modal-card.small-card {
    max-width: 600px;
}

.form-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-color);
}

.m-title-wrap h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.m-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-close-btn {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.sub-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-serif);
    color: var(--text-muted);
    cursor: pointer;
}

.sub-tab-btn.active {
    background: var(--color-rose-light);
    color: var(--color-rose-dark);
    font-weight: 600;
}

.modal-form-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.textarea-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sample-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    font-size: 11px;
    font-family: var(--font-serif);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-rose-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--text-main);
    background: var(--bg-paper);
}

.form-group textarea.code-textarea {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
    background: #252830;
    color: #e6e6e6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(201, 122, 126, 0.15);
}

.file-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    background: var(--bg-paper);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-drop-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-icon {
    font-size: 32px;
}

.file-prompt {
    font-size: 13px;
    color: var(--text-muted);
}

.selected-filename {
    font-size: 12px;
    color: var(--color-rose-dark);
    font-weight: 600;
}

.form-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.cancel-btn {
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.submit-btn {
    border: none;
    background: var(--color-rose-dark);
    color: #fff;
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background: #802f33;
}

/* 漂浮爱心画布 */
.heart-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* 拍立得大图预览弹窗 (Lightbox) */
.lightbox-container {
    max-width: 720px;
    width: 90%;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

.lightbox-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted);
}

.lightbox-img-wrap {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #e0d8cc;
    max-height: 68vh;
    display: flex;
    justify-content: center;
    background: #f5f0e8;
}

#lightboxImg {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.lightbox-title {
    font-family: var(--font-cursive);
    font-size: 26px;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.lightbox-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.lightbox-caption {
    font-size: 14px;
    color: var(--text-main);
    text-align: center;
    line-height: 1.8;
    font-style: italic;
    max-width: 580px;
}

.logo-girl-vi {
    font-size: 16px;
    margin-left: 2px;
}

/* ==========================================================================
   移动端全局体验与响应式规则 (Comprehensive Mobile & Responsive System)
   ========================================================================== */

/* 防止移动端横向抖动与溢出，优化触摸高亮反馈 */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* --- 1. 中屏幕笔记本与平板适配 (<= 1180px) --- */
@media (max-width: 1180px) {
    .site-header .header-container {
        flex-wrap: wrap;
        padding: 12px 18px;
        gap: 12px;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 6px;
        gap: 6px;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .nav-btn {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .vinyl-player-widget {
        margin-left: auto;
    }
}

@media (max-width: 960px) {
    .city-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ocean-connector {
        padding: 12px 0;
    }
    
    .counters-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .home-quick-sections {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* --- 2. 手机端通用适配 (<= 680px: iPhone, Galaxy, Pixel 等) --- */
@media (max-width: 680px) {
    .main-content {
        padding: 14px 10px 48px 10px;
    }
    
    /* 顶栏与交互组件紧凑化 */
    .site-header .header-container {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .logo-names {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .logo-names .vi-sub {
        font-size: 14px !important;
    }
    
    .logo-subtitle {
        font-size: 10px;
        letter-spacing: 0.8px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    /* 移动端隐藏唱片文字信息，仅保留旋转黑胶碟片与播放按钮，极大节省横向空间 */
    .vinyl-info {
        display: none !important;
    }
    
    .vinyl-player-widget {
        padding: 4px 8px 4px 6px;
        gap: 6px;
    }
    
    .vinyl-disc-wrap {
        width: 28px;
        height: 28px;
    }
    
    .vinyl-disc {
        width: 28px;
        height: 28px;
    }
    
    .vinyl-toggle-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .lang-switch-group {
        padding: 2px;
        gap: 2px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
        gap: 3px;
    }
    
    .settings-trigger-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .nav-links {
        padding: 3px 4px;
        gap: 4px;
    }
    
    .nav-btn {
        padding: 6px 11px;
        font-size: 12px;
        gap: 4px;
    }
    
    .badge-count {
        font-size: 9px;
        padding: 1px 4px;
    }

    /* 英雄雷达与航迹卡片 */
    .dual-city-radar {
        padding: 20px 14px 18px 14px;
        border-radius: 14px;
        margin-bottom: 22px;
    }
    
    .radar-header {
        margin-bottom: 18px;
    }
    
    .radar-title {
        font-size: 20px;
        line-height: 1.35;
        margin-bottom: 8px;
    }
    
    body.lang-bilingual .radar-title .vi-sub {
        font-size: 13px;
        margin-top: 4px;
    }
    
    .radar-quote-box {
        padding: 10px 12px;
    }
    
    .radar-quote {
        font-size: 13px;
        line-height: 1.6;
    }
    
    body.lang-bilingual .radar-quote.vi-sub {
        font-size: 12px;
    }

    /* 航迹预告横幅移动端优化 */
    .itinerary-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 14px;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .itinerary-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .itinerary-main {
        font-size: 14px;
        line-height: 1.45;
    }
    
    .itinerary-countdown {
        font-size: 11.5px;
    }
    
    .itinerary-sub {
        font-size: 11.5px;
        line-height: 1.5;
    }
    
    .itinerary-toggle-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 10px 14px;
        font-size: 13px;
        box-sizing: border-box;
    }

    /* 城市卡片移动端优化 */
    .city-card {
        padding: 18px 14px;
        border-radius: 12px;
    }
    
    .city-badge .city-name {
        font-size: 16px;
    }
    
    .clock-time {
        font-size: 38px;
        letter-spacing: 1px;
    }
    
    .clock-date {
        font-size: 12px;
    }
    
    .city-mood-box {
        padding: 10px 12px;
        gap: 10px;
        margin-bottom: 14px;
    }
    
    .mood-icon {
        font-size: 20px;
    }
    
    .mood-label {
        font-size: 12.5px;
    }
    
    .mood-sub {
        font-size: 11px;
    }

    /* 跨洋连接线垂直自适应 */
    .connector-line-wrap {
        height: 38px;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .distance-pill {
        padding: 4px 14px;
        margin-top: 4px;
    }
    
    .distance-km {
        font-size: 20px;
    }
    
    .tz-diff-pill {
        font-size: 11.5px;
        margin-top: 4px;
    }
    
    .connector-hint {
        font-size: 10.5px;
        margin-top: 2px;
    }

    /* 恋爱计数器与倒计时卡片 - 防溢出设计 */
    .counters-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .counter-card {
        padding: 16px 14px;
        gap: 14px;
        align-items: flex-start;
    }
    
    .counter-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        flex-shrink: 0;
    }
    
    .counter-body {
        flex-grow: 1;
        min-width: 0; /* 关键：防止 flex 子元素在小屏幕上溢出 */
        width: calc(100% - 58px);
    }
    
    .counter-value {
        font-size: 34px;
    }
    
    .counter-unit {
        font-size: 14px;
    }
    
    .counter-detail {
        font-size: 11.5px;
        line-height: 1.45;
    }
    
    .countdown-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 8px 0;
    }
    
    .countdown-digits {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 2px;
    }
    
    .digit-box {
        min-width: 0;
        flex: 1 1 0;
        padding: 4px 2px;
        text-align: center;
    }
    
    .digit-box span:first-child {
        font-size: 20px;
    }
    
    .d-label {
        font-size: 9px;
    }
    
    .digit-colon {
        font-size: 16px;
        padding: 0 1px;
    }
    
    .secret-mask-card {
        width: calc(100% - 6px);
        max-width: 100%;
        padding: 6px 10px;
        gap: 6px;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .mask-secret-text {
        font-size: 11px;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
    }
    
    .peek-secret-btn {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }
    
    .secret-date-badge {
        font-size: 11px;
        display: inline-block;
        padding: 2px 6px;
        word-break: break-word;
    }

    /* 各板块标题与操作栏适配 */
    .section-intro {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    
    .section-heading {
        font-size: 20px;
        line-height: 1.3;
    }
    
    body.lang-bilingual .section-heading .vi-sub {
        font-size: 13px;
    }
    
    .section-desc {
        font-size: 13px;
    }
    
    .intro-actions .primary-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
        font-size: 14px;
        min-height: 44px;
        box-sizing: border-box;
    }
    
    .home-quick-sections {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .quick-card {
        padding: 16px 14px;
    }

    /* 时光书简 */
    .letters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .letter-envelope-card {
        padding: 20px 16px;
    }
    
    .envelope-title {
        font-size: 18px;
    }
    
    .envelope-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .read-letter-btn {
        width: 100%;
        justify-content: flex-end;
        padding-top: 4px;
        font-size: 13px;
    }

    /* 心愿清单 (水平滑块分类与轻量卡片) */
    .bucket-progress-card {
        padding: 16px 14px;
        margin-bottom: 20px;
    }
    
    .progress-title {
        font-size: 14px;
    }
    
    .bucket-filters {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .bucket-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        flex-shrink: 0;
        padding: 7px 12px;
        font-size: 12px;
        min-height: 38px;
    }
    
    .bucket-items-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .bucket-item-card {
        padding: 14px 12px;
        gap: 12px;
        min-height: 48px;
        align-items: center;
    }
    
    .bucket-checkbox {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    
    .bucket-title {
        font-size: 14px;
        line-height: 1.45;
    }
    
    .bucket-note {
        font-size: 11.5px;
    }

    /* 拍立得画廊 (消除大幅倾斜，按钮常态触控友好) */
    .polaroid-board {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 12px 0;
    }
    
    .polaroid-card {
        padding: 12px 12px 20px 12px;
        transform: none !important;
    }
    
    .polaroid-del-btn {
        display: flex !important;
        opacity: 0.85;
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    /* 床头小纸条 (垂直表单堆叠与全宽提交) */
    .new-note-card {
        padding: 16px 14px;
        margin-bottom: 24px;
    }
    
    .note-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .author-toggle {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .radio-label {
        flex: 1;
    }
    
    .radio-custom {
        display: block;
        text-align: center;
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .color-picker-group {
        justify-content: flex-start;
    }
    
    .note-input-wrap {
        flex-direction: column;
        gap: 10px;
    }
    
    .note-input-wrap textarea {
        min-height: 80px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .submit-note-btn {
        width: 100%;
        height: 44px;
        justify-content: center;
        font-size: 14px;
        box-sizing: border-box;
    }
    
    .notes-pinboard {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sticky-note {
        transform: none !important;
        padding: 18px 16px;
    }

    /* 弹窗体验：类似移动端原生 Sheet 底部滑出，按钮触控区 >= 44px */
    .form-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    
    .form-modal-card {
        padding: 20px 16px;
        width: 100%;
        max-height: 88vh;
        border-radius: 18px 18px 10px 10px;
        box-sizing: border-box;
    }
    
    .form-modal-head {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    
    .m-title-wrap h3 {
        font-size: 17px;
        line-height: 1.35;
    }
    
    .modal-close-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-sub-tabs {
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 8px;
        margin-bottom: 14px;
    }
    
    .sub-tab-btn {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .form-row.two-cols {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group label {
        font-size: 12.5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
        min-height: 42px;
        box-sizing: border-box;
    }
    
    .form-group textarea {
        min-height: 90px;
    }
    
    .form-modal-foot {
        flex-direction: column-reverse;
        gap: 8px;
        margin-top: 14px;
        padding-top: 12px;
    }
    
    .form-modal-foot button {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    /* 独立 HTML 日记全屏阅读器在手机端的无缝浸润体验 */
    .reader-modal-overlay {
        padding: 0;
    }
    
    .reader-modal-container {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }
    
    .reader-top-bar {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .reader-letter-info {
        gap: 8px;
        min-width: 0;
        flex: 1;
    }
    
    .reader-modal-title {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }
    
    .reader-modal-subtitle {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }
    
    .reader-actions {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .reader-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .reader-close-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .reader-iframe-frame {
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        -webkit-overflow-scrolling: touch;
    }

    /* 拍立得 Lightbox 弹窗适配 */
    .lightbox-container {
        width: 92% !important;
        padding: 16px 12px !important;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
        box-sizing: border-box;
    }
    
    #lightboxImg {
        max-height: 48vh !important;
    }
    
    #lightboxTitle {
        font-size: 20px !important;
    }
    
    #lightboxCaption {
        font-size: 13px !important;
        padding: 0 4px;
    }

    /* 底部版权与诗意寄语 */
    .site-footer {
        padding: 28px 14px;
    }
    
    .footer-quote {
        font-size: 13px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .footer-sep {
        display: none;
    }
}

/* --- 3. 极窄屏手机精细微调 (<= 440px: iPhone SE, 小屏 Android) --- */
@media (max-width: 440px) {
    .logo-names {
        font-size: 17px;
    }
    
    .logo-names .vi-sub {
        font-size: 12px !important;
    }
    
    .lang-btn {
        padding: 3px 5px;
        font-size: 10.5px;
    }
    
    .lang-btn span:first-child {
        font-size: 11px;
    }
    
    .nav-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    body.lang-bilingual .nav-text-group .vi-sub {
        font-size: 9px;
    }
    
    .counter-card {
        padding: 14px 10px;
        gap: 10px;
    }
    
    .counter-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .counter-body {
        width: calc(100% - 48px);
    }
    
    .counter-value {
        font-size: 30px;
    }
    
    .digit-box span:first-child {
        font-size: 17px;
    }
    
    .digit-colon {
        font-size: 13px;
    }
    
    .mask-indicator-badge {
        font-size: 10px;
        padding: 1px 5px;
    }
}

/* ==========================================================================
   TAB 1: 爱情足迹与心动里程碑时间轴 (Milestones Timeline)
   ========================================================================== */

.timeline-section {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 122, 95, 0.2);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 10px 30px rgba(92, 59, 42, 0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px dashed rgba(224, 122, 95, 0.25);
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.tl-heading {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--wine);
    margin: 8px 0 6px 0;
    font-weight: 700;
}

.tl-subtitle {
    font-size: 13.5px;
    color: #78716c;
    line-height: 1.5;
    margin: 0;
}

.add-milestone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe5ec 100%);
    color: var(--wine);
    border: 1.5px solid rgba(224, 122, 95, 0.35);
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(224, 122, 95, 0.12);
    white-space: nowrap;
    flex-shrink: 0;
}

.add-milestone-btn:hover {
    background: linear-gradient(135deg, #ffd7e2 0%, #fec5d5 100%);
    border-color: var(--pink-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 122, 95, 0.2);
}

/* Timeline River & Nodes */
.milestone-timeline {
    position: relative;
    padding-left: 28px;
}

.milestone-timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 15px;
    bottom: 25px;
    width: 2px;
    background: linear-gradient(to bottom, #f28482 0%, #e07a5f 40%, #d4a373 80%, #81b29a 100%);
    border-radius: 2px;
}

.milestone-node {
    position: relative;
    margin-bottom: 28px;
    padding-left: 36px;
    transition: all 0.25s ease;
}

.milestone-node:last-child {
    margin-bottom: 8px;
}

.milestone-marker {
    position: absolute;
    left: -1px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--pink-main, #f28482);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(224, 122, 95, 0.25);
    z-index: 2;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.milestone-node:hover .milestone-marker {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(224, 122, 95, 0.4);
}

.milestone-node.is-secret .milestone-marker {
    border-color: #e5989b;
    background: #fff5f5;
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 152, 155, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(229, 152, 155, 0); }
}

/* Card */
.milestone-card {
    background: #ffffff;
    border: 1px solid rgba(224, 122, 95, 0.15);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 4px 16px rgba(92, 59, 42, 0.04);
    transition: all 0.25s ease;
    position: relative;
}

.milestone-node:hover .milestone-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(92, 59, 42, 0.08);
    border-color: rgba(224, 122, 95, 0.35);
}

.ms-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.ms-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ms-date-badge {
    font-family: var(--font-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--wine, #8b404b);
    background: #ffe5ec;
    padding: 3px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.ms-tag-badge {
    font-size: 11.5px;
    color: #e07a5f;
    background: rgba(224, 122, 95, 0.08);
    padding: 2.5px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.ms-loc-badge {
    font-size: 11.5px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2.5px 8px;
    border-radius: 6px;
}

.ms-delete-btn {
    background: transparent;
    border: none;
    color: #c4b5fd;
    cursor: pointer;
    font-size: 13px;
    opacity: 0.4;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.milestone-node:hover .ms-delete-btn {
    opacity: 0.8;
}

.ms-delete-btn:hover {
    color: #ef4444;
    opacity: 1;
    background: #fee2e2;
}

.ms-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--wine-dark, #54232c);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ms-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

/* Mobile & Tablet Responsive for Milestones */
@media (max-width: 768px) {
    .timeline-section {
        padding: 20px 16px;
        margin-top: 24px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 22px;
    }
    
    .tl-heading {
        font-size: 18.5px;
    }
    
    .add-milestone-btn {
        width: 100%;
        justify-content: center;
    }
    
    .milestone-timeline {
        padding-left: 14px;
    }
    
    .milestone-timeline::before {
        left: 8px;
    }
    
    .milestone-node {
        padding-left: 28px;
        margin-bottom: 22px;
    }
    
    .milestone-marker {
        left: -6px;
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .milestone-card {
        padding: 14px 16px;
    }
    
    .ms-title {
        font-size: 15.5px;
    }
    
    .ms-desc {
        font-size: 13px;
    }
}

/* ==========================================================================
   TAB 1: 双城实时天气与温差/穿衣贴心叮嘱 (Dual City Weather & Care Bar)
   ========================================================================== */

.city-weather-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 245, 247, 0.75);
    border: 1px solid rgba(224, 122, 95, 0.18);
    border-radius: 12px;
    padding: 6px 14px;
    margin: 10px 0 12px 0;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(224, 122, 95, 0.04);
}

.city-card:hover .city-weather-badge {
    background: rgba(255, 240, 243, 0.95);
    border-color: rgba(224, 122, 95, 0.3);
}

.city-weather-badge .weather-icon {
    font-size: 17px;
    line-height: 1;
}

.city-weather-badge .weather-temp {
    font-family: var(--font-serif);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--wine, #8b404b);
    letter-spacing: 0.5px;
}

.city-weather-badge .weather-cond {
    font-size: 12.5px;
    color: #57534e;
    font-weight: 500;
}

.city-weather-badge .weather-humidity {
    font-size: 11.5px;
    color: #78716c;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5px 6px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Weather Care Bar */
.weather-care-bar {
    margin: 18px 0 24px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 247, 0.88) 100%);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(224, 122, 95, 0.22);
    border-radius: 18px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 20px rgba(92, 59, 42, 0.05);
    transition: all 0.3s ease;
}

.weather-care-bar:hover {
    border-color: rgba(224, 122, 95, 0.4);
    box-shadow: 0 8px 25px rgba(92, 59, 42, 0.08);
}

.weather-care-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.care-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffe5ec 0%, #ffcad4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(224, 122, 95, 0.15);
}

.care-diff-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--wine, #8b404b);
    line-height: 1.3;
}

.care-diff-title strong {
    font-size: 16.5px;
    color: #e07a5f;
    font-family: var(--font-serif);
}

.care-diff-sub {
    font-size: 11.5px;
    color: #78716c;
    margin-top: 2px;
}

.weather-care-divider {
    width: 1px;
    height: 38px;
    background: rgba(224, 122, 95, 0.2);
    flex-shrink: 0;
}

.weather-care-body {
    flex: 1;
    min-width: 0;
}

.care-tip-lead {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--wine, #8b404b);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.care-tip-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #44403c;
}

/* Mobile Responsive for Weather & Care Bar */
@media (max-width: 768px) {
    .city-weather-badge {
        padding: 5px 10px;
        font-size: 12px;
        gap: 6px;
    }
    
    .city-weather-badge .weather-temp {
        font-size: 14px;
    }
    
    .weather-care-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
        margin: 14px 0 20px 0;
    }
    
    .weather-care-divider {
        width: 100%;
        height: 1px;
    }
    
    .care-icon-badge {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }
    
    .care-tip-text {
        font-size: 13px;
    }
}

/* ==========================================================================
   PWA: 手机桌面原生 App 化与添加到主屏幕指引
   ========================================================================== */

.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe5ec 100%);
    border: 1.5px solid rgba(224, 122, 95, 0.35);
    border-radius: 20px;
    padding: 6px 12px;
    color: var(--wine, #8b404b);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(224, 122, 95, 0.1);
    white-space: nowrap;
}

.pwa-install-btn:hover {
    background: linear-gradient(135deg, #ffd7e2 0%, #fec5d5 100%);
    border-color: var(--pink-main);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.2);
}

.pwa-install-btn .pwa-icon {
    font-size: 14px;
    line-height: 1;
}

.pwa-install-btn .pwa-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.pwa-install-btn .pwa-text-group .vi-sub {
    font-size: 9.5px;
    opacity: 0.85;
}

/* PWA Modal Details */
.pwa-card {
    max-width: 500px;
}

.pwa-app-preview {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwa-preview-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(224, 122, 95, 0.25);
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.pwa-action-install-btn {
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e07a5f 0%, #d45d79 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(224, 122, 95, 0.35);
    transition: all 0.25s ease;
}

.pwa-action-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.45);
}

.pwa-step-card {
    background: #ffffff;
    border: 1px solid rgba(224, 122, 95, 0.18);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(92, 59, 42, 0.03);
}

.pwa-step-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(224, 122, 95, 0.18);
}

.pwa-platform-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--wine, #8b404b);
    background: #ffe5ec;
    padding: 3px 10px;
    border-radius: 8px;
}

.pwa-platform-sub {
    font-size: 11.5px;
    color: #78716c;
}

.pwa-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.pwa-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pwa-steps-list .step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f28482, #e07a5f);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 6px rgba(224, 122, 95, 0.3);
}

.pwa-steps-list .step-content {
    font-size: 13.5px;
    line-height: 1.5;
    color: #44403c;
    flex: 1;
}

.pwa-kbd {
    display: inline-block;
    background: #fdf2f4;
    color: var(--wine, #8b404b);
    border: 1px solid rgba(224, 122, 95, 0.3);
    border-radius: 5px;
    padding: 1px 7px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@media (max-width: 680px) {
    .pwa-install-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .pwa-install-btn .pwa-text-group .vi-sub {
        display: none;
    }
    
    .pwa-preview-icon {
        width: 44px;
        height: 44px;
    }
    
    .pwa-step-card {
        padding: 12px 14px;
    }
    
    .pwa-steps-list .step-content {
        font-size: 12.5px;
    }
}

