
      :root {
        
        --bg-e6: #f2efde;
        --text-olive: #8c917b;
        --btn-orange: #d6724b;
        --line-color: #8c917b;
        --shadow-light: rgba(140, 145, 123, 0.15);

        
        --bg-r2: #fcfaf2;
        --olive-crisp: #6d735b;
        --text-main: #5a5f4d;
        --text-light: #8e9282;
        --card-bg: #f2f0e4;
        --border-crisp: 1.5px solid rgba(109, 115, 91, 0.15);

        
        --bg-settings: #f5f6f8;
        --pill-bg: #ffecec;
        --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

        
        --accent-green: #95bba5;
        --accent-yellow: #f7e8a7;

        
        --error-container: #fe8b70;
        --on-primary: #fff6f1;
        --surface-dim: #e5e2db;
        --surface-container-high: #f1ede8;
        --primary-fixed-dim: #e2d1c4;
        --error: #a54731;
        --secondary-fixed: #ffdcc0;
        --on-secondary-fixed-variant: #854f12;
        --on-primary-container: #5b5045;
        --on-secondary-container: #794507;
        --tertiary: #476785;
        --on-primary-fixed-variant: #66594e;
        --tertiary-dim: #3b5b79;
        --surface: #fffbff;
        --primary-dim: #5c5046;
        --primary-fixed: #f1dfd1;
        --secondary: #8f571b;
        --surface-bright: #fffbff;
        --on-secondary-fixed: #603400;
        --surface-container-highest: #ebe8e2;
        --on-primary-fixed: #483d33;
        --error-dim: #5c1202;
        --inverse-surface: #0e0e0d;
        --inverse-on-surface: #9f9c9a;
        --outline: #82807b;
        --primary: #695c51;
        --on-tertiary-fixed: #183b57;
        --on-secondary: #ffffff;
        --inverse-primary: #fdebdc;
        --surface-container-lowest: #ffffff;
        --surface-container: #f7f3ee;
        --on-background: #393834;
        --tertiary-fixed-dim: #accdef;
        --outline-variant: #bcb9b3;
        --surface-container-low: #fdf9f5;
        --secondary-dim: #814b0f;
        --on-error-container: #742410;
        --secondary-fixed-dim: #ffca9c;
        --tertiary-fixed: #badbfe;
        --on-tertiary: #ffffff;
        --background: #fffbff;
        --on-surface: #393834;
        --secondary-container: #ffdcc0;
        --on-tertiary-container: #2d4e6a;
        --on-surface-variant: #666460;
        --tertiary-container: #badbfe;
        --on-tertiary-fixed-variant: #375774;
        --on-error: #ffffff;
        --surface-tint: #695c51;
        --primary-container: #f1dfd1;
        --surface-variant: #ebe8e2;
      }

      
      .t10-queue-container {
        padding: 24px 20px;
        animation: fadeIn 0.8s ease-out;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-width: 480px;
        margin: 0 auto;
      }
      .t10-info-card {
        background: #fbf9f4;
        border-radius: 24px;
        padding: 35px 20px; 
        border: 1px solid rgba(149, 187, 165, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
        margin-bottom: 24px;
        text-align: center;
      }
      .t10-number-big {
        font-size: 72px; 
        font-family: "Fredoka", serif;
        color: var(--accent-green);
        margin: 15px 0;
        font-weight: bold;
      }
      .t10-doctor-tag {
        display: inline-block;
        background: var(--accent-yellow);
        padding: 6px 18px; 
        border-radius: 12px;
        font-size: 16px;
        color: #8c8271;
      }
      .t10-list-title {
        font-size: 18px; 
        font-weight: 600;
        margin-bottom: 15px;
        padding-left: 5px;
        border-left: 4px solid var(--accent-green);
      }
      .t10-patient-table {
        width: 100%;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        font-size: 15px; 
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
      }
      .t10-row {
        display: grid;
        grid-template-columns: 70px 1fr 1fr; 
        padding: 16px 15px; 
        border-bottom: 1px solid #f8f8f8;
        align-items: center;
      }
      .t10-row-head {
        background: #f4f7f5;
        color: #95bba5;
        font-weight: bold;
      }
      
      .t10-loading-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 60vh;
      }
      .t10-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid var(--accent-green);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
      }

      
      .t10-conflict-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
      }
      .t10-conflict-modal {
        background: #fdfcf8;
        border-radius: 24px;
        width: 100%;
        max-width: 320px;
        padding: 25px;
        text-align: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      .t10-conflict-text {
        font-size: 15px;
        color: #5a5f4d;
        line-height: 1.6;
        margin-bottom: 20px;
      }
      .t10-conflict-btns {
        display: flex;
        gap: 12px;
      }
      .t10-cbtn {
        flex: 1;
        padding: 12px;
        border-radius: 12px;
        border: none;
        font-size: 14px;
        cursor: pointer;
        transition: opacity 0.2s;
      }
      .t10-cbtn-primary {
        background: var(--accent-green);
        color: white;
      }
      .t10-cbtn-secondary {
        background: #eee;
        color: #666;
      }
      .t10-timer-bar {
        height: 3px;
        background: var(--accent-green);
        margin-top: 15px;
        width: 100%;
        transform-origin: left;
        border-radius: 2px;
      }
      @keyframes timerShrink {
        from {
          transform: scaleX(1);
        }
        to {
          transform: scaleX(0);
        }
      }

      @keyframes pulse {
        0% {
          transform: scale(1);
          opacity: 0.3;
        }
        50% {
          transform: scale(1.1);
          opacity: 0.5;
        }
        100% {
          transform: scale(1);
          opacity: 0.3;
        }
      }

      @keyframes loading {
        0% {
          transform: translateX(-100%);
        }
        50% {
          transform: translateX(150%);
        }
        100% {
          transform: translateX(-100%);
        }
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
      }

      body {
        background-color: var(--bg-e6);
        font-family: "Quicksand", "Noto Sans SC", sans-serif;
        overflow: hidden;
      }

      
      .viewport {
        width: 100vw;
        height: 100vh;
        position: relative;
        display: flex;
        justify-content: center;
      }
      .master-scroller {
        width: 100%;
        max-width: 430px;
        height: 100vh;
        transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        will-change: transform;
      }
      .page {
        width: 100%;
        height: 100vh;
        padding: 20px 30px;
        position: relative;
        flex-shrink: 0;
        overflow: hidden;
      }

      
      .page-e6 {
        background: linear-gradient(180deg, #f7f5e8 0%, var(--bg-e6) 100%);
        display: flex;
        flex-direction: column;
      }
      .e6-header {
        display: flex;
        justify-content: flex-end;
        padding-top: 10px;
        z-index: 10;
        font-size: 24px;
        color: var(--text-olive);
        cursor: pointer;
      }
      .time-display-e6 {
        font-size: 110px;
        font-weight: 500;
        letter-spacing: -4px;
        color: var(--text-olive);
        text-align: center;
        padding-top: 25px;
      }
      .lunar-text {
        font-size: 20px;
        color: var(--text-olive);
        text-align: center;
        opacity: 0.9;
      }
      .stage-container {
        position: absolute;
        bottom: 50px;
        left: 30px;
        right: 30px;
        max-width: 280px;
        margin: 0 auto;
        height: 190px;
        display: flex;
        justify-content: center;
        align-items: center;
        animation: float 4s infinite ease-in-out;
      }
      .upload-placeholder {
        width: 100%;
        height: 100%;
        border: 3px dashed var(--line-color);
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.5);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        overflow: hidden;
        z-index: 5;
      }
      .upload-placeholder.no-border {
        border: none;
        background: transparent;
      }
      .media-content {
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: none;
      }
      .scroll-hint {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: var(--text-olive);
        opacity: 0.5;
        animation: bounce 2s infinite;
      }

      
      .page-r2 {
        background-color: var(--bg-r2);
        display: flex;
        flex-direction: column;
        padding: 16px 24px;
        box-sizing: border-box;
      }
      .header-r2 {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: 32px;
        margin-bottom: 16px;
      }
      .battery-container {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: var(--olive-crisp);
      }
      .battery-icon {
        width: 26px;
        height: 13px;
        border: 1.5px solid var(--olive-crisp);
        border-radius: 3px;
        position: relative;
        padding: 1px;
      }
      .battery-icon::after {
        content: "";
        position: absolute;
        right: -4px;
        top: 3px;
        width: 3px;
        height: 4px;
        background: var(--olive-crisp);
      }
      .battery-level {
        height: 100%;
        background: var(--olive-crisp);
      }
      .fold-card {
        background: var(--card-bg);
        border-radius: 24px;
        padding: 16px 20px;
        margin-bottom: 16px;
        border: var(--border-crisp);
        cursor: pointer;
      }
      .icon-matrix {
        display: grid;
        grid-template-columns: repeat(
          4,
          minmax(0, 1fr)
        ); 
        gap: 18px 10px; 
        margin-bottom: 8px;
        padding: 0 5px; 
      }
      .icon-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        cursor: pointer;
      }
      .icon-box {
        width: 48px; 
        height: 48px;
        border-radius: 16px; 
        background: #fff;
        border: var(--border-crisp);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin: 0 auto; 
      }
      .icon-box::before {
        content: "";
        position: absolute;
        inset: 3px; 
        border-radius: 12px; 
        background: currentColor;
        opacity: 0.25;
      }
      .icon-label {
        font-size: 11px; 
        color: var(--text-main);
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60px; 
      }
      .ai-capsule {
        height: 44px;
        background: #fff;
        border-radius: 27px;
        border: var(--border-crisp);
        display: flex;
        align-items: center;
        padding: 0 20px;
        justify-content: space-between;
        margin-top: auto;
      }

      /* ===== 鸢小手机 多页桌面与常驻 Dock 样式 ===== */
      .desktop-pagination-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 6px 0 10px 0;
        user-select: none;
      }

      .pagination-dot {
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
      }

      .pagination-dot:hover {
        transform: scale(1.15);
      }

      .dock-bar-container {
        margin-top: auto;
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-sizing: border-box;
      }

      .dock-bar-container .icon-item {
        gap: 4px;
      }

      .dock-bar-container .icon-box {
        width: 44px;
        height: 44px;
        border-radius: 14px;
      }

      .dock-bar-container .icon-label {
        font-size: 10px;
        max-width: 50px;
      }

      .icon-item-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        opacity: 0.35;
        transition: opacity 0.2s ease;
      }

      .icon-item-placeholder:hover {
        opacity: 0.6;
      }

      .placeholder-box {
        border: 1.5px dashed var(--olive-crisp, #6d735b) !important;
        background: rgba(255, 255, 255, 0.3) !important;
        box-shadow: none !important;
      }

      .page-extension-header {
        animation: fadeIn 0.3s ease;
      }

      /* ===== 桌面图标 & Dock 自由拖拽交互样式 ===== */
      .icon-item {
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), opacity 0.18s ease;
      }

      .icon-item.is-drag-armed {
        transform: scale(1.08);
        filter: drop-shadow(0 6px 14px rgba(109, 115, 91, 0.35));
      }

      .icon-item.is-drag-source {
        opacity: 0.25;
        transform: scale(0.9);
      }

      .icon-item.is-drop-target .icon-box {
        outline: 2px dashed var(--olive-crisp, #6d735b);
        outline-offset: 3px;
        transform: scale(1.08);
        transition: transform 0.15s ease;
      }

      .dock-bar-container {
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
      }

      .dock-bar-container.is-dock-drop-active {
        border-color: rgba(109, 115, 91, 0.65) !important;
        box-shadow: 0 6px 24px rgba(109, 115, 91, 0.22) !important;
        transform: scale(1.02);
      }

      .floating-drag-ghost {
        position: fixed;
        z-index: 999999;
        pointer-events: none;
        transform: translate(-50%, -55%) scale(1.12);
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.24));
      }

      .edge-flip-indicator {
        position: absolute;
        top: 64px;
        bottom: 90px;
        width: 26px;
        pointer-events: none;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--olive-crisp, #6d735b);
        font-size: 16px;
        font-weight: bold;
        animation: fadeIn 0.18s ease;
      }

      .edge-flip-indicator.left {
        left: 0;
        background: linear-gradient(90deg, rgba(109, 115, 91, 0.22), transparent);
        border-radius: 0 16px 16px 0;
      }

      .edge-flip-indicator.right {
        right: 0;
        background: linear-gradient(270deg, rgba(109, 115, 91, 0.22), transparent);
        border-radius: 16px 0 0 16px;
      }

      
      .settings-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-settings);
        z-index: 200;
        transform: translateY(100%);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .settings-overlay.open {
        transform: translateY(0);
      }
      .settings-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: var(--bg-settings);
        position: sticky;
        top: 0;
        z-index: 10;
      }
      .settings-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: #666;
      }
      .settings-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: #2d2d2d;
      }
      .settings-content {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 20px;
      }
      .user-card {
        background: #fff;
        margin: 16px;
        padding: 24px 20px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
      }
      .avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: linear-gradient(135deg, #fae1e1 0%, #ffd9d9 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 14px;
      }
      .badge-pill {
        background: var(--pill-bg);
        color: #ff8e8e;
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 12px;
        margin-top: 5px;
        font-weight: 600;
        display: inline-block;
      }
      .setting-list {
        background: #fff;
        margin: 0 16px 20px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
      }
      .setting-list:last-of-type {
        margin-bottom: 40px;
      }
      .list-item {
        display: flex;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid #f5f5f5;
        cursor: pointer;
        min-height: 56px;
      }
      .list-item:last-child {
        border-bottom: none;
      }
      .item-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        flex-shrink: 0;
      }
      .item-text {
        flex: 1;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
      }
      .group-label {
        padding: 0 24px;
        margin: 12px 0 8px;
        font-size: 14px;
        color: #c7d9f4;
        font-weight: 500;
        position: sticky;
        top: 56px;
        background-color: var(--bg-settings);
        z-index: 5;
      }

      
      .weather-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f7f7f2;
        z-index: 200;
        transform: translateY(100%);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        font-family: "PingFang SC", "Noto Sans SC", sans-serif;
        color: #7d8271;
      }

      .weather-overlay.open {
        transform: translateY(0);
      }

      .weather-container {
        width: 100%;
        max-width: 450px;
        padding: 30px 20px;
      }

      
      @keyframes breathe {
        0%,
        100% {
          transform: scale(1);
          opacity: 1;
        }
        50% {
          transform: scale(0.96);
          opacity: 0.8;
        }
      }

      .animate-breathe {
        animation: breathe 2s ease-in-out infinite;
      }

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

      
      .weather-top-nav {
        display: flex;
        justify-content: space-around;
        margin-bottom: 40px;
      }

      .loc-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        flex: 1;
      }

      .icon-box {
        width: 85px;
        height: 85px;
        background: #ffffff;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
      }

      .loc-text {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 1px;
        color: #7d8271;
      }

      .weather-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
        justify-items: center;
        align-items: center;
      }

      
      .circle-mod {
        width: 32vw;
        height: 32vw;
        max-width: 140px;
        max-height: 140px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
      }

      .circle-val {
        font-size: 40px;
        font-weight: 700;
      }

      
      .rect-card {
        width: 40vw;
        max-width: 170px;
        aspect-ratio: 1 / 0.85;
        background: rgba(255, 248, 248, 0.45);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 18px;
        padding: 18px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
      }

      .card-label {
        font-size: 12px;
        font-weight: 500;
        opacity: 1;
        align-self: flex-start;
      }

      .card-val {
        font-size: 22px;
        font-weight: 700;
      }

      .weather-svg-icon {
        width: 32px;
        height: 32px;
      }

      
      .weather-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: #f7f7f2;
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .weather-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: #7d8271;
      }

      .weather-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: #7d8271;
      }

      
      @keyframes float {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-8px);
        }
      }
      @keyframes bounce {
        0%,
        20%,
        50%,
        80%,
        100% {
          transform: translateX(-50%) translateY(0);
        }
        40% {
          transform: translateX(-50%) translateY(-10px);
        }
      }

      
      @media (max-width: 380px) {
        .icon-matrix {
          gap: 20px 8px; 
        }

        .icon-box {
          width: 44px;
          height: 44px;
          border-radius: 14px;
        }

        .icon-box::before {
          inset: 2px;
          border-radius: 10px;
        }

        .icon-label {
          font-size: 10px;
          max-width: 50px;
        }
      }

      
      @media (min-width: 400px) {
        .icon-matrix {
          gap: 25px 18px; 
        }

        .icon-box {
          width: 52px;
          height: 52px;
        }
      }

      
      .floating-ball {
        position: fixed;
        bottom: 60px;
        right: -40px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 8px 32px rgba(140, 145, 123, 0.15);
        color: var(--text-main);
        z-index: 999;
        transition: all 0.3s ease;
      }

      .floating-ball.expanded {
        right: 30px;
      }

      .floating-ball:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 40px rgba(140, 145, 123, 0.25);
        background: rgba(255, 255, 255, 0.3);
      }

      .floating-ball:active {
        transform: scale(0.95);
      }

      
      .floating-ball::before {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(
          45deg,
          rgba(255, 255, 255, 0.6),
          rgba(255, 255, 255, 0.2),
          rgba(255, 255, 255, 0.4)
        );
        border-radius: 50%;
        z-index: -1;
        filter: blur(10px);
        opacity: 0.5;
      }

      .floating-ball::after {
        content: "";
        position: absolute;
        top: 10px;
        left: 10px;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        filter: blur(5px);
        opacity: 0.7;
      }

      
      .floating-image {
        width: 120px;
        height: 160px;
        display: none;
        align-items: center;
        justify-content: center;
        animation: popIn 0.3s ease-out;
      }

      .floating-image.show {
        display: flex;
      }

      
      .arc-buttons-container {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 997;
        animation: popIn 0.3s ease-out;
      }

      .arc-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        color: white;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }

      .arc-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
      }

      
      .arc-button.functional {
        background: #9c89b8;
      }

      .arc-button.qa {
        background: #f0a6ca;
      }

      .arc-button.chat {
        background: #b8bedd;
      }

      
      .floating-input-container {
        position: fixed;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 998;
        animation: popIn 0.3s ease-out;
      }

      .floating-input {
        flex: 1;
        height: 36px;
        padding: 0 12px;
        border: 1px solid #e0e0e0;
        border-radius: 18px;
        background: #f8f6f0;
        font-size: 12px;
        color: #5a5f4d;
        outline: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      }

      .floating-input:focus {
        border-color: #b8bedd;
        box-shadow: 0 2px 12px rgba(184, 190, 221, 0.2);
      }

      .send-button {
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: #b8bedd;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      }

      .send-button:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(184, 190, 221, 0.2);
      }

      .send-icon {
        width: 16px;
        height: 16px;
        fill: white;
      }

      .floating-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
      }

      @keyframes popIn {
        0% {
          transform: scale(0);
          opacity: 0;
        }
        80% {
          transform: scale(1.1);
          opacity: 1;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }

      
      .font-serif {
        font-family: "Newsreader", serif;
      }
      .shelf-gradient {
        background: linear-gradient(
          180deg,
          rgba(255, 220, 192, 0) 0%,
          rgba(255, 220, 192, 0.4) 100%
        );
      }
      .book-card {
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        perspective: 1000px;
      }
      .book-card:hover {
        transform: translateY(-12px) rotateY(-8deg) rotateX(4deg);
      }
      
      .material-symbols-outlined {
        font-family: "Material Symbols Outlined";
        font-style: normal;
        font-weight: normal;
        font-size: 24px;
        display: inline-block;
        line-height: 1;
        text-transform: none;
        letter-spacing: normal;
        word-wrap: normal;
        white-space: nowrap;
        direction: ltr;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        font-variation-settings:
          "FILL" 0,
          "wght" 400,
          "GRAD" 0,
          "opsz" 24;
      }

      @keyframes slide-up {
        0% {
          transform: translateY(100%);
          opacity: 0;
        }
        100% {
          transform: translateY(0);
          opacity: 1;
        }
      }

      .animate-slide-up {
        animation: slide-up 0.3s ease-out forwards;
      }

      
      .calendar-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        z-index: 200;
        transform: translateY(100%);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        font-family:
          -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
          sans-serif;
        color: #333;
      }

      .calendar-overlay.open {
        transform: translateY(0);
      }

      .calendar-container {
        width: 100%;
        max-width: 450px;
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
      }

      
      .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 0 5px;
      }

      .calendar-title-group h1 {
        font-size: 2.5rem;
        display: inline-block;
        margin-right: 10px;
      }

      .calendar-title-group .year-select {
        font-size: 1.8rem;
        font-weight: bold;
        color: #333;
        cursor: pointer;
      }

      .calendar-title-group .year-select::after {
        content: " ▼";
        font-size: 0.8rem;
        vertical-align: middle;
      }

      .calendar-lunar-year {
        font-size: 1.1rem;
        color: #666666;
        margin-top: 5px;
        font-weight: 500;
      }

      .calendar-avatar {
        width: 45px;
        height: 45px;
        background: #ffd93d;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #fff;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
      }

      
      .calendar-card {
        background: #fff;
        border-radius: 20px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
        padding: 20px;
        margin-bottom: 30px;
      }

      .calendar-week-header {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        margin-bottom: 15px;
        color: #666666;
        font-weight: bold;
        font-size: 0.9rem;
      }

      .calendar-days-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
      }

      .calendar-day {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 12px;
        position: relative;
        cursor: pointer;
        transition: all 0.2s;
      }

      .calendar-day:active {
        background: rgba(0, 0, 0, 0.05);
      }

      
      .calendar-day.range-blue {
        background: linear-gradient(135deg, #b4c7e7, #c9d6f0);
        color: white;
        border-radius: 8px;
      }

      .calendar-day.range-orange {
        background: #e8c3a2;
        color: white;
        border-radius: 8px;
      }

      .calendar-day.circle-today {
        background: #f5989d;
        color: white;
        border-radius: 50%;
      }

      .calendar-day.circle-purple {
        background: #d4c2e1;
        color: white;
        border-radius: 50%;
      }

      .calendar-day.circle-blue {
        background: #7da8f3;
        color: white;
        border-radius: 50%;
      }

      .calendar-hint-text {
        text-align: right;
        font-size: 12px;
        color: #bbb;
        margin-top: 15px;
      }

      
      .calendar-tabs {
        display: flex;
        justify-content: space-around;
        margin-bottom: 25px;
      }

      .calendar-tab-item {
        font-size: 1.2rem;
        color: #666666;
        padding: 8px 15px;
        border-radius: 10px;
        position: relative;
        font-weight: bold;
      }

      .calendar-tab-item.active {
        color: #333;
        background-color: #f2c4ce;
        box-shadow: 0 4px 6px rgba(242, 196, 206, 0.4);
      }

      .calendar-tab-item.active::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 10%;
        width: 80%;
        height: 3px;
        background: #f2c4ce;
        filter: blur(2px);
      }

      
      .calendar-task-card {
        background: white;
        border-radius: 18px;
        padding: 18px;
        margin-bottom: 20px;
        border: 0.5px solid #eee;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
        display: flex;
        gap: 15px;
        animation: fadeIn 0.5s ease;
      }

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

      .calendar-task-icon-box {
        flex-shrink: 0;
      }

      .calendar-task-content {
        flex-grow: 1;
      }

      .calendar-task-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 5px;
      }

      .calendar-task-title {
        font-size: 16px;
        font-weight: bold;
      }

      .calendar-task-subtitle {
        font-size: 14px;
        color: #999;
        margin-bottom: 10px;
      }

      .calendar-time-tag {
        background: #e8edf9;
        color: #7d98d1;
        padding: 2px 8px;
      }

      
      .decoction-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-e6);
        z-index: 200;
        transform: translateY(100%);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
      }

      .decoction-overlay.open {
        transform: translateY(0);
      }

      .decoction-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: var(--accent-green);
        color: white;
        position: sticky;
        top: 0;
        z-index: 10;
      }

      .decoction-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: white;
      }

      .decoction-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: white;
      }

      .decoction-container {
        flex: 1;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      
      .decoction-danmaku {
        height: 40px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
      }

      .danmaku-item {
        white-space: nowrap;
        font-size: 14px;
        color: var(--text-main);
        animation: danmakuAppear 0.5s ease-in-out;
      }

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

      
      .decoction-timer {
        text-align: center;
      }

      .decoction-timer h2 {
        font-size: 18px;
        color: var(--text-main);
        margin-bottom: 10px;
      }

      .timer-display {
        font-size: 36px;
        font-weight: bold;
        color: var(--accent-green);
      }

      
      .decoction-main {
        flex: 1;
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: center;
      }

      .decoction-side {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
      }

      
      .decoction-stove {
        width: 150px;
        height: 150px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
      }

      .stove-circle {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: linear-gradient(135deg, #d6724b, #e8afaf);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
      }

      .stove-fire {
        width: 40px;
        height: 60px;
        background: linear-gradient(180deg, #f7e8a7, #f7d7d7);
        border-radius: 50% 50% 20% 20%;
        position: absolute;
        bottom: -10px;
        animation: fireBlink 1s ease-in-out infinite;
      }

      @keyframes fireBlink {
        0%,
        100% {
          transform: scale(1);
          opacity: 0.8;
        }
        50% {
          transform: scale(1.1);
          opacity: 1;
        }
      }

      .stove-pot {
        width: 80px;
        height: 60px;
        background: linear-gradient(135deg, #95bba5, #8cafa0);
        border-radius: 10px 10px 20px 20px;
        position: absolute;
        bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .stove-pot::before {
        content: "";
        width: 60px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
      }

      
      .fire-controls {
        display: flex;
        gap: 10px;
      }

      .fire-btn {
        padding: 10px 20px;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
      }

      .fire-btn.increase {
        background: var(--accent-yellow);
        color: var(--text-main);
      }

      .fire-btn.decrease {
        background: var(--accent-green);
        color: white;
      }

      .fire-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      
      .progress-container {
        width: 100%;
        max-width: 200px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 5px;
        overflow: hidden;
      }

      .progress-bar {
        width: 100%;
        height: 100%;
        position: relative;
      }

      .progress-fill {
        height: 100%;
        background: linear-gradient(
          90deg,
          var(--accent-green),
          var(--accent-yellow)
        );
        transition: width 1s linear;
      }

      
      .fire-hint {
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 20px;
        font-size: 14px;
        color: var(--text-main);
        font-weight: 500;
        animation: hintAppear 0.3s ease-in-out;
      }

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

      
      @keyframes moleAppear {
        from {
          transform: translateX(-50%) translateY(100%);
          opacity: 0;
        }
        to {
          transform: translateX(-50%) translateY(0);
          opacity: 1;
        }
      }

      
      @keyframes molePop {
        from {
          transform: translateY(100%);
          opacity: 0;
        }
        to {
          transform: translateY(0);
          opacity: 1;
        }
      }

      
      @keyframes hammerHit {
        0% {
          transform: translate(-50%, -50%) rotate(0deg);
        }
        50% {
          transform: translate(-50%, -50%) rotate(-45deg);
        }
        100% {
          transform: translate(-50%, -50%) rotate(0deg);
        }
      }

      
      .decoction-failed {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.95);
        border-radius: 24px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }

      .decoction-failed h2 {
        font-size: 20px;
        color: #d6724b;
        margin-bottom: 20px;
      }

      .restart-btn {
        padding: 12px 30px;
        background: var(--accent-green);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
      }

      .restart-btn:hover {
        opacity: 0.9;
      }

      
      .decoction-success {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.95);
        border-radius: 24px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }

      .decoction-success h2 {
        font-size: 20px;
        color: var(--accent-green);
        margin-bottom: 20px;
      }

      
      .decoction-nav-bottom {
        display: flex;
        gap: 20px;
        margin-top: auto;
      }

      .nav-btn {
        flex: 1;
        padding: 15px;
        border: none;
        border-radius: 16px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
      }

      .nav-btn.my {
        background: var(--accent-green);
        color: white;
      }

      .nav-btn.others {
        background: rgba(255, 255, 255, 0.8);
        color: var(--text-main);
        border: 1px solid var(--accent-green);
      }

      
      @media (max-width: 400px) {
        .decoction-main {
          flex-direction: column;
        }

        .decoction-side {
          width: 100%;
        }

        .decoction-stove {
          width: 120px;
          height: 120px;
        }

        .stove-circle {
          width: 100px;
          height: 100px;
        }

        .stove-pot {
          width: 60px;
          height: 45px;
        }

        .stove-fire {
          width: 30px;
          height: 45px;
        }

        .timer-display {
          font-size: 28px;
        }
      }

      .calendar-task-desc {
        font-size: 12px;
        color: #888;
        line-height: 1.6;
        margin-top: 10px;
      }

      .calendar-status-badge {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #7fc7a1;
        font-size: 12px;
        margin-top: 10px;
        font-weight: bold;
      }

      
      .calendar-flower-icon {
        width: 50px;
        height: 50px;
      }

      .calendar-cat-footer {
        display: flex;
        gap: 5px;
        margin-top: 10px;
        justify-content: flex-end;
      }

      .calendar-cat-head {
        width: 30px;
        height: 30px;
      }

      
      .calendar-color-picker {
        background: white;
        border-radius: 18px;
        padding: 20px;
        margin-bottom: 20px;
        border: 0.5px solid #eee;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
      }

      .calendar-color-picker-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
      }

      .calendar-color-picker-header h3 {
        margin: 0;
        font-size: 1.2rem;
        color: #333;
      }

      .calendar-color-picker-header button {
        background: #f2c4ce;
        border: none;
        padding: 8px 16px;
        border-radius: 10px;
        font-size: 0.9rem;
        color: #333;
        cursor: pointer;
        transition: all 0.2s;
      }

      .calendar-color-picker-header button:hover {
        background: #e8a9b3;
      }

      .calendar-color-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
      }

      .calendar-color-option {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s;
        border: 2px solid transparent;
      }

      .calendar-color-option:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }

      .calendar-color-option span {
        font-size: 0.8rem;
        color: #333;
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
      }

      
      .calendar-task-wrapper {
        position: relative;
        margin-bottom: 20px;
        overflow: hidden;
        border-radius: 18px;
        display: flex;
        align-items: stretch;
      }

      .calendar-task-wrapper .calendar-task-card {
        margin-bottom: 0;
        box-sizing: border-box;
      }

      
      .calendar-task-actions {
        display: flex;
        width: 160px;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 0;
      }

      .calendar-task-btn {
        width: 80px;
        height: 100%;
        border: none;
        color: white;
        font-size: 0.9rem;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s;
      }

      .calendar-task-btn.edit-btn {
        background-color: #b4c7e7;
      }

      .calendar-task-btn.edit-btn:hover {
        background-color: #9bb8db;
      }

      .calendar-task-btn.delete-btn {
        background-color: #f2c4ce;
      }

      .calendar-task-btn.delete-btn:hover {
        background-color: #e8a9b3;
      }

      
      .calendar-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: blur(3px) !important;
        -webkit-backdrop-filter: blur(3px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 99999 !important;
        padding: 16px;
        box-sizing: border-box;
      }

      .calendar-modal-content {
        background-color: #ffffff;
        border-radius: 20px;
        padding: 22px;
        width: 100%;
        max-width: 360px;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        animation: modalFadeIn 0.25s ease;
        position: relative;
        z-index: 100000;
      }

      @keyframes modalFadeIn {
        from {
          opacity: 0;
          transform: translateY(-20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .calendar-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
      }

      .calendar-modal-header h3 {
        margin: 0;
        font-size: 1.3rem;
        color: #333;
      }

      .calendar-modal-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s;
      }

      .calendar-modal-close:hover {
        background-color: #f0f0f0;
      }

      .calendar-form-group {
        margin-bottom: 16px;
      }

      .calendar-form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: #333;
        font-weight: bold;
      }

      .calendar-form-group input,
      .calendar-form-group textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 1rem;
        transition: border-color 0.2s;
      }

      .calendar-form-group input:focus,
      .calendar-form-group textarea:focus {
        outline: none;
        border-color: #f2c4ce;
      }

      .calendar-form-group textarea {
        resize: vertical;
        min-height: 80px;
      }

      .calendar-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 24px;
      }

      .calendar-btn {
        padding: 10px 20px;
        border: none;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s;
      }

      .calendar-btn.cancel-btn {
        background-color: #f0f0f0;
        color: #333;
      }

      .calendar-btn.cancel-btn:hover {
        background-color: #e0e0e0;
      }

      .calendar-btn.save-btn {
        background-color: #b4c7e7;
        color: white;
      }

      .calendar-btn.save-btn:hover {
        background-color: #9bb8db;
      }

      .calendar-btn.delete-btn {
        background-color: #f2c4ce;
        color: white;
      }

      .calendar-btn.delete-btn:hover {
        background-color: #e8a9b3;
      }

      
      .calendar-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: #ffffff;
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .calendar-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: #666666;
      }

      .calendar-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: #666666;
      }

      
      .music-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #646364 0%, #bcb0ff 100%);
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: "PingFang SC", "STHeiti", "Microsoft YaHei", sans-serif;
        color: #ffffff;
      }

      .music-overlay.open {
        transform: translateY(0);
      }

      
      .music-overlay .app-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        position: relative;
      }

      .music-overlay .lyrics-section {
        height: 45vh;
        padding: 1.5rem;
        display: flex;
        justify-content: center;
      }

      
      .farm-overlay {
        position: absolute;
        inset: 0;
        z-index: 900;
        background: #b5d36b; 
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        font-family: "Noto Sans SC", sans-serif;
      }

      .soil-container {
        margin-top: 60px;
        background: #e3dbc3;
        padding: 20px;
        border-radius: 40px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
      }

      .soil-patch {
        width: 100px;
        height: 100px;
        background: url("https://image2url.com/r2/default/images/1774952212117-ea9651b6-d1fa-4943-895b-c246c45cad53.png");
        background-size: cover;
        border-radius: 18px;
        position: relative;
        
        box-shadow:
          0 4px 0 #6d422a,
          inset 2px 2px 10px rgba(0, 0, 0, 0.3),
          2px 2px 5px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        overflow: visible;
      }

      .soil-patch::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 18px;
        background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.2'/%3E%3C/svg%3E");
        pointer-events: none;
      }

      .farm-footer {
        position: absolute;
        bottom: 50px;
        display: flex;
        gap: 20px;
      }

      .farm-btn {
        width: 100px;
        height: 100px;
        background: #e3dbc3;
        border-radius: 35px;
        border: 3px solid #a0c9ff; 
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
      }

      .farm-btn:active {
        transform: scale(0.9);
      }

      
      .item-drawer {
        position: absolute;
        bottom: -350px;
        width: 100%;
        height: 300px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        padding: 20px;
        transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1000;
      }

      .item-drawer.open {
        transform: translateY(-350px);
      }

      .drawer-tab {
        display: inline-block;
        padding: 8px 20px;
        border-radius: 15px;
        margin-right: 10px;
        background: #f0e8d4;
        color: #5a5f4d;
        font-weight: bold;
        cursor: pointer;
      }

      .drawer-tab.active {
        background: #89a89a;
        color: #fff;
      }

      .item-grid {
        display: flex;
        gap: 20px;
        margin-top: 20px;
      }

      .farm-item-card {
        width: 80px;
        height: 80px;
        background: #fff;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        touch-action: none;
        cursor: pointer;
        user-select: none;
      }

      .planted-seed {
        width: 60px;
        height: 60px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: seedPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }

      @keyframes seedPop {
        0% {
          transform: translate(-50%, -50%) scale(0);
        }
        100% {
          transform: translate(-50%, -50%) scale(1);
        }
      }

      @keyframes shovelAnimation {
        0% {
          transform: rotate(0deg);
        }
        25% {
          transform: rotate(15deg);
        }
        50% {
          transform: rotate(-15deg);
        }
        75% {
          transform: rotate(15deg);
        }
        100% {
          transform: rotate(0deg);
        }
      }

      .shovel-animation {
        animation: shovelAnimation 0.3s ease-in-out;
      }

      .music-overlay .lyrics-section {
        height: 45vh;
        padding: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
      }

      .music-overlay .lyrics-card {
        width: 100%;
        height: 100%;
        background: rgba(229, 225, 244, 0.8);
        border-radius: 1.2rem;
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(251, 200, 255, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 2rem 1rem;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.05);
      }

      .music-overlay .lyric-line {
        font-size: 1.1rem;
        margin: 0.6rem 0;
        opacity: 0.4;
        transition: all 0.4s ease;
        text-align: center;
      }

      .music-overlay .lyric-line.active {
        opacity: 1;
        font-weight: bold;
        transform: scale(1.1);
      }

      .music-overlay .status-indicators {
        position: absolute;
        bottom: -0.8rem;
        width: 90%;
        display: flex;
        justify-content: space-between;
        padding: 0 1rem;
        z-index: 10;
      }

      .music-overlay .capsule {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(15px);
        padding: 0.6rem 1.4rem;
        border-radius: 2rem;
        font-size: 1rem;
        font-weight: bold;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .music-overlay .capsule.online::before {
        content: "";
        width: 6px;
        height: 6px;
        background: #e0ced6;
        border-radius: 50%;
        animation: capsuleBreathe 2s infinite;
      }

      .music-overlay .viz-section {
        height: 30vh;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }

      .music-overlay #waveCanvas {
        width: 100%;
        height: 80px;
      }

      .music-overlay .playlist-arc {
        position: absolute;
        bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 1.2rem;
      }

      .music-overlay .song-dot {
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0.5;
        transition: all 0.3s;
      }

      .music-overlay .dot {
        width: 2.2rem;
        height: 2.2rem;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        margin-bottom: 0.4rem;
        border: 2px solid rgba(255, 255, 255, 0.1);
      }

      .music-overlay .song-dot.active {
        opacity: 1;
        transform: translateY(-5px);
      }

      .music-overlay .song-dot.active .dot {
        transform: scale(1.2);
        background: #e0ced6;
        box-shadow: 0 0 15px rgba(224, 206, 214, 0.5);
      }

      .music-overlay .song-name-small {
        font-size: 0.7rem;
        font-weight: 300;
      }

      .music-overlay .controls-section {
        height: 25vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: radial-gradient(
          circle at top,
          rgba(165, 148, 206, 0.15) 0%,
          transparent 70%
        );
        border-radius: 40% 40% 0 0 / 20% 20% 0 0;
        padding-bottom: 1rem;
      }

      .music-overlay .current-song-title {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 1.5rem;
        letter-spacing: 2px;
      }

      .music-overlay .control-bar {
        background: rgba(255, 255, 255, 0.95);
        width: 80%;
        max-width: 320px;
        padding: 0.8rem 2rem;
        border-radius: 3rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      }

      .music-overlay .btn {
        cursor: pointer;
        transition:
          transform 0.2s,
          background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
      }

      .music-overlay .btn:active {
        transform: scale(0.9);
        background: #e0ced6;
      }

      .music-overlay .play-btn {
        width: 3.5rem;
        height: 3.5rem;
        background: #cadafa;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      }

      .music-overlay .play-btn svg {
        fill: white;
      }

      .music-overlay .control-bar svg {
        width: 1.5rem;
        height: 1.5rem;
        fill: #2a263d;
      }

      @keyframes capsuleBreathe {
        0% {
          transform: scale(1);
          opacity: 0.5;
          box-shadow: 0 0 0px rgba(224, 206, 214, 0.5);
        }
        50% {
          transform: scale(1.4);
          opacity: 1;
          box-shadow: 0 0 10px rgba(224, 206, 214, 0.5);
        }
        100% {
          transform: scale(1);
          opacity: 0.5;
          box-shadow: 0 0 0px rgba(224, 206, 214, 0.5);
        }
      }

      @media (max-height: 600px) {
        .music-overlay .lyrics-section {
          height: 40vh;
        }
        .music-overlay .current-song-title {
          font-size: 1.4rem;
          margin-bottom: 1rem;
        }
      }

      
      .music-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .music-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: #fff;
      }

      .music-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
      }

      
      .reader-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #f8f5f2;
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: "Inter", "Noto Serif SC", serif;
        color: #6b6b6b;
      }

      .reader-overlay.open {
        transform: translateY(0);
      }

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

      .reader-overlay .flex-col {
        flex-direction: column;
      }

      .reader-overlay .h-screen {
        height: 100vh;
      }

      .reader-overlay .px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }

      .reader-overlay .pt-12 {
        padding-top: 3rem;
      }

      .reader-overlay .pb-8 {
        padding-bottom: 2rem;
      }

      .reader-overlay .select-none {
        user-select: none;
      }

      .reader-overlay .justify-between {
        justify-content: space-between;
      }

      .reader-overlay .items-center {
        align-items: center;
      }

      .reader-overlay .mb-8 {
        margin-bottom: 2rem;
      }

      .reader-overlay .mb-12 {
        margin-bottom: 3rem;
      }

      .reader-overlay .flex-1 {
        flex: 1 1 0%;
      }

      .reader-overlay .justify-center {
        justify-content: center;
      }

      .reader-overlay .text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
      }

      .reader-overlay .font-bold {
        font-weight: 700;
      }

      .reader-overlay .tracking-widest {
        letter-spacing: 0.1em;
      }

      .reader-overlay .text-black {
        color: #000;
      }

      .reader-overlay .cursor-pointer {
        cursor: pointer;
      }

      .reader-overlay .hidden {
        display: none;
      }

      .reader-overlay .text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
      }

      .reader-overlay .mb-2 {
        margin-bottom: 0.5rem;
      }

      .reader-overlay .leading-tight {
        line-height: 1.25;
      }

      .reader-overlay .text-gray-400 {
        color: #9ca3af;
      }

      .reader-overlay .text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
      }

      .reader-overlay .roller-viewport {
        height: 60vh;
        perspective: 1200px;
        position: relative;
        mask-image: linear-gradient(
          to bottom,
          transparent,
          black 20%,
          black 80%,
          transparent
        );
      }

      .reader-overlay .book-card {
        transition:
          transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
          opacity 0.4s;
        backface-visibility: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
      }

      .reader-overlay .absolute {
        position: absolute;
      }

      .reader-overlay .w-full {
        width: 100%;
      }

      .reader-overlay .max-w-sm {
        max-width: 24rem;
      }

      .reader-overlay .rounded-3xl {
        border-radius: 1.5rem;
      }

      .reader-overlay .p-6 {
        padding: 1.5rem;
      }

      .reader-overlay .flex-row {
        flex-direction: row;
      }

      .reader-overlay .pr-4 {
        padding-right: 1rem;
      }

      .reader-overlay .text-xs {
        font-size: 0.75rem;
        line-height: 1rem;
      }

      .reader-overlay .text-white\/70 {
        color: rgba(255, 255, 255, 0.7);
      }

      .reader-overlay .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .reader-overlay .text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
      }

      .reader-overlay .line-clamp-3 {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }

      .reader-overlay .leading-relaxed {
        line-height: 1.625;
      }

      .reader-overlay .w-24 {
        width: 6rem;
      }

      .reader-overlay .h-32 {
        height: 8rem;
      }

      .reader-overlay .bg-white\/20 {
        background-color: rgba(255, 255, 255, 0.2);
      }

      .reader-overlay .backdrop-blur-md {
        backdrop-filter: blur(12px);
      }

      .reader-overlay .rounded-xl {
        border-radius: 0.75rem;
      }

      .reader-overlay .border {
        border-width: 1px;
      }

      .reader-overlay .border-white\/30 {
        border-color: rgba(255, 255, 255, 0.3);
      }

      .reader-overlay .text-white\/40 {
        color: rgba(255, 255, 255, 0.4);
      }

      .reader-overlay .text-center {
        text-align: center;
      }

      .reader-overlay .p-2 {
        padding: 0.5rem;
      }

      .reader-overlay .mt-8 {
        margin-top: 2rem;
      }

      .reader-overlay .w-full {
        width: 100%;
      }

      .reader-overlay .py-5 {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
      }

      .reader-overlay .rounded-full {
        border-radius: 9999px;
      }

      .reader-overlay .text-white {
        color: #fff;
      }

      .reader-overlay .text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
      }

      .reader-overlay .font-medium {
        font-weight: 500;
      }

      .reader-overlay .shadow-2xl {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      }

      
      @keyframes breathe {
        0% {
          transform: scale(1);
          opacity: 0.9;
        }
        50% {
          transform: scale(1.02);
          opacity: 1;
        }
        100% {
          transform: scale(1);
          opacity: 0.9;
        }
      }

      .reader-overlay .active-card {
        animation: breathe 3s infinite ease-in-out;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
      }

      .reader-overlay .start-btn {
        background-color: #333333;
        transition: all 0.3s;
      }

      .reader-overlay .start-btn:active {
        transform: scale(0.95);
        opacity: 0.8;
      }

      
      .reader-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: #f8f5f2;
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .reader-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: #6b6b6b;
      }

      .reader-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: #6b6b6b;
      }

      
      @media (max-height: 700px) {
        .reader-overlay .roller-viewport {
          height: 55vh;
        }

        .reader-overlay .book-card {
          height: 140px !important;
        }

        .reader-overlay .w-24 {
          width: 5rem;
        }

        .reader-overlay .h-32 {
          height: 6.5rem;
        }

        .reader-overlay .pt-12 {
          padding-top: 2rem;
        }

        .reader-overlay .text-3xl {
          font-size: 1.5rem;
        }
      }

      @media (max-height: 600px) {
        .reader-overlay .roller-viewport {
          height: 50vh;
        }

        .reader-overlay .book-card {
          height: 120px !important;
        }

        .reader-overlay .text-xl {
          font-size: 1.1rem;
        }

        .reader-overlay .text-sm {
          font-size: 0.8rem;
        }
      }

      
      .forum-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-color, #f9f9fb);
        z-index: 200;
        transform: translateY(100%);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family:
          -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
          Arial, sans-serif;
        color: var(--text-main, #3e3e3e);
      }

      .forum-overlay.open {
        transform: translateY(0);
      }

      
      .forum-overlay {
        --bg-color: #f9f9fb;
        --text-main: #3e3e3e;
        --text-sub: #8c8c8c;
        --primary-purple: #9fa5d5;
        --primary-purple-light: #e8e8f3;
        --accent-orange: #f2e6d6;
        --accent-icon-orange: #e6b980;
        --accent-pink: #f3d1d1;
        --accent-icon-pink: #d98c98;
        --accent-green: #d8e6d8;
        --white: #ffffff;
        --space-xs: 8px;
        --space-sm: 12px;
        --space-md: 16px;
        --space-lg: 24px;
      }

      .forum-overlay * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
      }

      .forum-overlay .no-scrollbar::-webkit-scrollbar {
        display: none;
      }
      .forum-overlay .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      .forum-overlay .fade-in {
        animation: fadeIn 0.5s ease-in-out;
      }

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

      
      .forum-overlay .forum-container {
        width: 100%;
        margin: 0;
        flex: 1;
        min-height: 0;
        height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        position: relative;
        overflow: hidden;
      }

      .forum-overlay .forum-header {
        padding-top: 20px;
        padding-bottom: 0px;
      }

      .forum-overlay .forum-title {
        font-size: 24px;
        font-weight: bold;
        margin: 0;
      }

      .forum-overlay .forum-title-line {
        width: 30px;
        height: 4px;
        background: #333;
        margin-top: 4px;
        border-radius: 2px;
      }

      
      .forum-overlay .forum-banner {
        margin-top: 16px;
        margin-bottom: 32px;
        padding: 20px;
        background: linear-gradient(135deg, #b4aee8 0%, #9fa5d5 100%);
        border-radius: 24px;
        color: #fff;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(180, 174, 232, 0.4);
      }

      .forum-overlay .banner-title {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 4px;
        letter-spacing: 1px;
      }

      .forum-overlay .banner-subtitle {
        font-size: 13px;
        opacity: 0.9;
        margin-bottom: 16px;
      }

      .forum-overlay .join-btn {
        background: #fff;
        color: #333;
        border: none;
        border-radius: 20px;
        padding: 8px 20px;
        font-size: 14px;
        font-weight: 600;
        width: fit-content;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
      }

      
      .forum-overlay .bot-decoration {
        position: absolute;
        right: 10px;
        bottom: -10px;
        width: 100px;
        height: 100px;
      }

      .forum-overlay .bot-body {
        width: 70px;
        height: 60px;
        background: #3d3b55;
        border-radius: 16px;
        position: absolute;
        right: 10px;
        top: 10px;
        border: 2px solid #e0e0ff;
        box-shadow: inset 0 0 10px #7971c3;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .forum-overlay .bot-eye {
        width: 8px;
        height: 8px;
        background: #ffd700;
        border-radius: 50%;
        box-shadow: 0 0 5px #ffd700;
        margin-right: 15px;
      }

      .forum-overlay .bot-icon {
        width: 25px;
        height: 25px;
        background: #e6b980;
        border-radius: 50%;
        position: absolute;
        left: 0;
        bottom: 15px;
        border: 2px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #fff;
        font-size: 14px;
      }

      
      .forum-overlay .section-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
        color: #1a1a1a;
      }

      .forum-overlay .carousel-container {
        height: 140px;
        position: relative;
        overflow: hidden;
        margin-bottom: 24px;
      }

      .forum-overlay .carousel-card {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.02);
      }

      .forum-overlay .avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
        flex-shrink: 0;
      }

      .forum-overlay .name {
        font-size: 18px;
        font-weight: bold;
        margin-right: 8px;
      }

      .forum-overlay .tagline {
        font-size: 12px;
        color: #666;
        margin-bottom: 2px;
      }

      .forum-overlay .subtag {
        font-size: 12px;
        color: #666;
      }

      .forum-overlay .carousel-controls {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        align-items: flex-end;
        padding-top: 4px;
      }

      .forum-overlay .indicators {
        display: flex;
        justify-content: center;
        margin-top: 12px;
        gap: 6px;
      }

      .forum-overlay .indicator {
        width: 6px;
        height: 6px;
        border-radius: 3px;
        background: #e0e0e0;
        transition: all 0.3s ease;
      }

      .forum-overlay .indicator.active {
        width: 16px;
        background: #9fa5d5;
      }

      
      .forum-overlay .hotlist-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }

      .forum-overlay .hotlist-scroll {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 80px;
        -webkit-overflow-scrolling: touch;
      }

      .forum-overlay .hot-item {
        display: flex;
        align-items: center;
        background: #fff;
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 12px;
      }

      .forum-overlay .hot-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
      }

      .forum-overlay .hot-title {
        flex: 1;
        font-size: 15px;
        font-weight: 500;
        color: #333;
      }

      .forum-overlay .hot-views {
        display: flex;
        align-items: center;
        color: #8c8c8c;
      }

      
      .forum-overlay .forum-navbar {
        position: relative;
        flex-shrink: 0;
        width: 100%;
        height: 64px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
        padding-bottom: env(safe-area-inset-bottom, 6px);
        z-index: 100;
      }

      
      .msg-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family:
          -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
          Arial, sans-serif;
      }

      .msg-overlay.open {
        transform: translateY(0);
      }

      
      .msg-overlay {
        
        --c-header-bg: #8c8293;
        --c-accent: #e8afaf;
        --c-accent-dim: rgba(232, 175, 175, 0.2);
        --c-bg-card: #f5f0f2;
        --c-text-main: #4a464b;
        --c-text-sub: #969298;
        --c-white: #ffffff;
        --safe-top: env(safe-area-inset-top, 20px);
        --safe-bottom: env(safe-area-inset-bottom, 20px);
        --header-h: 64px;
        --max-width: 428px;
      }

      .msg-overlay * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        font-family:
          -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
          Arial, sans-serif;
      }

      .msg-overlay #app-root {
        width: 100%;
        max-width: var(--max-width);
        height: 100%;
        background-color: var(--c-header-bg);
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }

      .msg-overlay .no-scrollbar::-webkit-scrollbar {
        display: none;
      }

      .msg-overlay .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      
      @keyframes breathe {
        0% {
          opacity: 1;
          transform: scale(1);
        }
        50% {
          opacity: 0.8;
          transform: scale(0.98);
        }
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }

      @keyframes fadeOut {
        to {
          opacity: 0;
          transform: scale(0);
        }
      }

      @keyframes ripple {
        0% {
          background-color: transparent;
        }
        50% {
          background-color: rgba(232, 175, 175, 0.2);
        }
        100% {
          background-color: transparent;
        }
      }

      .msg-overlay .item-active {
        animation: ripple 0.3s ease-out forwards;
      }

      
      .msg-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: var(--c-header-bg);
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .msg-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: #fff;
      }

      .msg-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
      }

      
      .t9-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }

      .t9-overlay.open {
        transform: translateY(0);
      }

      
      .t9-overlay {
        
        --bg-primary: #cad4c6; 
        --bg-gradient-start: #dce5d8;
        --bg-gradient-end: #bcc8b8;
        --card-bg: rgba(255, 255, 255, 0.85);
        --card-bg-solid: #fdfdfd;
        --text-main: #5c615c; 
        --text-sub: #8e968e;
        --accent-pink: #dfa9a9; 
        --accent-yellow: #eedd98; 
        --accent-green-dark: #8fa38f;
        --spacing-xs: 8px;
        --spacing-sm: 12px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --radius-md: 12px;
        --radius-lg: 20px;
        --radius-round: 50%;
        --safe-top: env(safe-area-inset-top, 20px);
        --safe-bottom: env(safe-area-inset-bottom, 20px);
      }

      .t9-overlay * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        font-family:
          -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue",
          sans-serif;
      }

      .t9-overlay body {
        background: linear-gradient(
          180deg,
          var(--bg-gradient-start) 0%,
          var(--bg-gradient-end) 100%
        );
        color: var(--text-main);
        min-height: 100vh;
        overflow: hidden;
      }

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

      @keyframes heartBeat {
        0% {
          transform: scale(1);
        }
        14% {
          transform: scale(1.3);
        }
        28% {
          transform: scale(1);
        }
        42% {
          transform: scale(1.3);
        }
        70% {
          transform: scale(1);
        }
      }

      @keyframes popIn {
        0% {
          transform: scale(0.8);
          opacity: 0;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }

      
      .t9-overlay .flex-center {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .t9-overlay .flex-between {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .t9-overlay .glass {
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
      }
      .t9-overlay .neumorphism {
        box-shadow:
          4px 4px 10px rgba(163, 177, 164, 0.2),
          -4px -4px 10px rgba(255, 255, 255, 0.5);
      }
      .t9-overlay .touch-feedback:active {
        transform: scale(0.95);
        transition: transform 0.1s;
      }

      
      .t9-overlay .no-scrollbar::-webkit-scrollbar {
        display: none;
      }
      .t9-overlay .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      
      .t9-overlay #t9-root {
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding-top: var(--safe-top);
        padding-bottom: var(--safe-bottom);
        position: relative;
        background: linear-gradient(
          180deg,
          var(--bg-gradient-start) 0%,
          var(--bg-gradient-end) 100%
        );
      }

      
      .t9-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background: linear-gradient(
          180deg,
          var(--bg-gradient-start) 0%,
          var(--bg-gradient-end) 100%
        );
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .t9-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: var(--text-main);
      }

      .t9-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-main);
      }

      
      .t10-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #fdfcf8; 
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family:
          "Songti SC", "Noto Serif SC", "SimSun", serif; 
        color: #464646; 
      }

      .t10-overlay.open {
        transform: translateY(0);
      }

      
      .t10-overlay {
        --bg-color: #fdfcf8;
        --accent-green: #95bba5;
        --accent-yellow: #f9efc5;
        --text-primary: #464646;
        --text-secondary: #8c8c8c;
        --glass-bg: rgba(255, 255, 255, 0.75);
        --glass-border: rgba(255, 255, 255, 0.8);
        --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
        --safe-top: env(safe-area-inset-top, 20px);
        --safe-bottom: env(safe-area-inset-bottom, 20px);
      }

      .t10-overlay * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
      }

      
      .t10-overlay #t10-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: max(20px, var(--safe-top));
        padding-bottom: max(20px, var(--safe-bottom));
        background-color: var(--bg-color);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      
      .t10-illustration-area {
        position: relative;
        width: 100%;
        height: 35vh;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        margin-bottom: 10px;
      }

      
      .t10-blob-bg {
        position: absolute;
        width: 240px;
        height: 220px;
        background: var(--accent-yellow);
        border-radius: 48% 52% 68% 32% / 42% 51% 49% 58%;
        z-index: -1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: t10-breathe 5s ease-in-out infinite alternate;
        opacity: 0.9;
        filter: blur(10px);
      }

      @keyframes t10-breathe {
        0% {
          transform: translate(-50%, -50%) scale(1);
          border-radius: 48% 52% 68% 32% / 42% 51% 49% 58%;
        }
        100% {
          transform: translate(-50%, -50%) scale(1.08);
          border-radius: 58% 42% 48% 52% / 52% 41% 59% 48%;
        }
      }

      
      .t10-plant-svg {
        width: 180px;
        height: auto;
        display: block;
        filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.05));
      }

      
      .t10-header-text {
        text-align: center;
        margin-bottom: 30px;
        z-index: 2;
        width: 100%;
      }

      .t10-header-subtitle {
        font-size: 14px;
        color: var(--text-secondary);
        letter-spacing: 2px;
        margin-bottom: 8px;
      }

      .t10-header-title {
        font-size: 24px;
        font-weight: 500;
        color: var(--text-primary);
        letter-spacing: 1px;
      }

      
      .t10-options-grid {
        width: 100%;
        max-width: 360px;
        padding: 0 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        z-index: 2;
      }

      .t10-option-btn {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--text-primary);
        font-family: inherit;
        font-size: 15px;
        height: 42px;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: var(--shadow-soft);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        outline: none;
      }

      
      .t10-option-btn:nth-child(-n + 6) {
        width: calc(33.33% - 8px);
      }

      
      .t10-option-btn:nth-child(n + 7) {
        width: calc(40% - 8px);
      }

      
      .t10-option-btn:active {
        transform: scale(0.96);
      }

      
      .t10-option-btn.selected {
        background-color: var(--accent-green);
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(149, 187, 165, 0.4);
        font-weight: bold;
      }

      
      .t10-footer-area {
        margin-top: auto;
        width: 100%;
        max-width: 360px;
        padding: 0 24px;
        margin-bottom: 20px;
      }

      .t10-confirm-btn {
        width: 100%;
        height: 52px;
        border-radius: 26px;
        background-color: var(--accent-green);
        color: white;
        border: none;
        font-family: inherit;
        font-size: 18px;
        letter-spacing: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(149, 187, 165, 0.3);
        cursor: pointer;
        transition: transform 0.2s;
      }

      .t10-confirm-btn:active {
        transform: scale(0.98);
      }

      .t10-arrow-icon {
        font-family: sans-serif;
        margin-left: 8px;
        font-size: 14px;
        opacity: 0.8;
        font-weight: 300;
      }

      
      .t10-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: var(--bg-color);
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .t10-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: var(--text-primary);
      }

      .t10-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
      }

      
      .t11-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f9f7f5;
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto",
          "Helvetica Neue", sans-serif;
      }

      .t11-overlay.open {
        transform: translateY(0);
      }

      
      .t12-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f9f7f5;
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto",
          "Helvetica Neue", sans-serif;
      }

      .t12-overlay.open {
        transform: translateY(0);
      }

      .t12-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: #f9f7f5;
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .t12-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: #4a4f55;
      }

      .t12-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: #4a4f55;
      }

      .t12-container {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
      }

      .t12-content {
        text-align: center;
        padding-top: 50px;
      }

      .t12-content h1 {
        font-size: 24px;
        color: #4a4f55;
        margin-bottom: 20px;
      }

      .t12-content p {
        font-size: 16px;
        color: #888d96;
      }

      
      .t11-overlay {
        /* ====================
                              1. 基础重置与变量
                              ====================
                         */
        --bg-body: #f9f7f5; 
        --text-main: #4a4f55; 
        --text-sub: #888d96; 
        --text-label: #6e757f; 
        --color-orange: #e8c3a8;
        --safe-top: env(safe-area-inset-top);
        --safe-bottom: env(safe-area-inset-bottom);
        --header-height: 60px;
        --tabbar-height: 56px;
        --radius-icon: 18px;
        --radius-card: 16px;
        --shadow-icon: 0 4px 10px rgba(0, 0, 0, 0.05);
      }

      .t11-overlay * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
      }

      .t11-overlay body {
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto",
          "Helvetica Neue", sans-serif;
        background-color: var(--bg-body);
        color: var(--text-main);
        overflow-x: hidden;
        width: 100vw;
        min-height: 100vh;
      }

      
      .t11-overlay #t11-root {
        max-width: 480px;
        width: 100%;
        height: 100%;
        margin: 0 auto;
        background: var(--bg-body);
        position: relative;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.02);
        overflow-y: auto;
      }

      /* ====================
                            2. 工具类 & 动画
                            ====================
                       */
      .t11-overlay .glass {
        background: rgba(249, 247, 245, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
      }

      .t11-overlay .fade-in {
        animation: t11-fadeIn 0.5s ease-out;
      }

      @keyframes t11-fadeIn {
        from {
          opacity: 0;
          transform: translateY(5px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      
      .t11-overlay .click-effect {
        transition: transform 0.1s ease;
      }

      .t11-overlay .click-effect:active {
        transform: scale(0.95);
        opacity: 0.9;
      }

      /* ====================
                            3. 组件样式
                            ====================
                       */

      
      .t11-overlay .t11-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding-top: var(--safe-top);
        height: calc(var(--header-height) + var(--safe-top));
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-left: 20px;
        padding-right: 20px;
        max-width: 480px;
        margin: 0 auto;
        background: rgba(249, 247, 245, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
      }

      .t11-overlay .t11-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .t11-overlay .t11-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        background: #ddd;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      }

      .t11-overlay .t11-user-text h1 {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        color: var(--text-main);
      }

      .t11-overlay .t11-user-text p {
        font-size: 12px;
        color: var(--text-sub);
        margin-top: 2px;
      }

      .t11-overlay .t11-header-actions {
        display: flex;
        gap: 16px;
        color: var(--text-main);
        font-size: 22px;
      }

      
      .t11-overlay .t11-main-content {
        padding-top: calc(var(--header-height) + var(--safe-top) + 16px);
        padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 20px);
        padding-left: 20px;
        padding-right: 20px;
        height: 100%;
        overflow-y: auto;
      }

      
      .t11-overlay .t11-banner {
        width: 100%;
        height: 140px;
        background: linear-gradient(135deg, #f0f4f8 0%, #e6ebf0 100%);
        border-radius: var(--radius-card);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-bottom: 32px;
        border: 1px solid rgba(255, 255, 255, 0.5);
      }

      .t11-overlay .t11-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(#ccd1d9 1.5px, transparent 1.5px);
        background-size: 14px 14px;
        opacity: 0.4;
      }

      
      .t11-overlay .t11-app-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        row-gap: 24px;
        column-gap: 8px;
        margin-bottom: 40px;
      }

      .t11-overlay .t11-app-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        min-width: 0;
      }

      .t11-overlay .t11-icon-box {
        width: 52px;
        height: 52px;
        border-radius: var(--radius-icon);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        color: #fff;
        box-shadow: var(--shadow-icon);
        position: relative;
      }

      
      .t11-overlay .t11-icon-box::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: inherit;
        background: linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.15) 0%,
          transparent 100%
        );
        pointer-events: none;
      }

      
      .t11-overlay .t11-list-section-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-main);
      }

      .t11-overlay .t11-list-section-title::before {
        content: "";
        width: 4px;
        height: 16px;
        background: var(--color-orange);
        border-radius: 2px;
      }

      .t11-overlay .t11-simple-list-item {
        display: flex;
        align-items: center;
        padding: 16px;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.01);
      }

      /* ====================
                            4. 底部导航
                            ====================
                       */
      .t11-overlay .t11-tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 480px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        height: calc(var(--tabbar-height) + var(--safe-bottom));
        padding-bottom: var(--safe-bottom);
        display: flex;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        z-index: 100;
      }

      .t11-overlay .t11-tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #bcc0c7;
        cursor: pointer;
        height: 100%;
        user-select: none;
        -webkit-user-select: none;
      }

      .t11-overlay .t11-tab-item.active {
        color: var(--text-main);
      }

      .t11-overlay .t11-tab-item i {
        font-size: 24px;
        display: block;
        margin-bottom: 1px;
        height: 24px;
        width: 24px;
        text-align: center;
        line-height: 24px;
      }

      .t11-overlay .t11-tab-item span {
        font-size: 10px;
        font-weight: 500;
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
        letter-spacing: 0.3px;
      }

      
      .t11-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: rgba(249, 247, 245, 0.95);
        backdrop-filter: blur(10px);
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
      }

      .t11-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: var(--text-main);
      }

      .t11-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-main);
      }

      .t11-overlay .t11-app-name {
        font-size: 12px;
        color: var(--text-label);
        text-align: center;
        line-height: 1.2;
        white-space: nowrap;
        letter-spacing: 0.2px;
      }
      
      .t12-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-base, #f9f7f5);
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto",
          "Helvetica Neue", sans-serif;
        color: var(--text-main, #4a4f55);
      }

      .t12-overlay.open {
        transform: translateY(0);
      }

      
      .t12-overlay {
        
        --bg-base: #f9f7f5;
        --bg-card: #ffffff;
        --primary: #95b8a3;
        --primary-dark: #7a9e89;
        --primary-light: #e8f0eb;
        --accent: #d4a373;
        --text-main: #4a4f55;
        --text-sub: #8c8c8c;
        --text-placeholder: #b0b0b0;
        --shadow-card: 0 8px 24px rgba(149, 184, 163, 0.12);
        --shadow-float: 0 12px 32px rgba(149, 184, 163, 0.25);
        --safe-top: env(safe-area-inset-top);
        --safe-bottom: env(safe-area-inset-bottom);
        --radius-l: 24px;
        --radius-m: 16px;
        --radius-s: 12px;
      }

      .t12-overlay * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
      }

      .t12-overlay body {
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto",
          "Helvetica Neue", sans-serif;
        background-color: var(--bg-base);
        color: var(--text-main);
        width: 100vw;
        min-height: 100vh;
        overflow-x: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      }

      
      .t12-overlay .hide-scrollbar::-webkit-scrollbar {
        display: none;
      }
      .t12-overlay .hide-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      
      .t12-overlay .h-scroller {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 0 20px;
        gap: 16px;
        overscroll-behavior-x: contain;
      }

      
      .t12-overlay .snap-item {
        scroll-snap-align: start;
        flex-shrink: 0;
      }

      
      .t12-overlay .active-press {
        transition: transform 0.1s;
      }
      .t12-overlay .active-press:active {
        transform: scale(0.96);
        opacity: 0.9;
      }

      
      .t12-overlay .glass {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }

      
      .t12-overlay #t12-root {
        height: 100%;
        overflow-y: auto;
        padding-bottom: 100px;
      }

      .t12-overlay .placeholder-img {
        background: linear-gradient(135deg, #f0f0f0 0%, #e6e6e6 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ccc;
        font-size: 12px;
      }

      
      .t12-overlay .t12-container {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        background: var(--bg-base);
        min-height: 100vh;
        position: relative;
      }

      
      .t12-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: var(--bg-base);
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
      }

      .t12-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: var(--text-main);
      }

      .t12-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-main);
      }

      
      .t12-overlay .pt-\[max\(12px\2c var\(--safe-top\)\)\] {
        padding-top: max(12px, var(--safe-top));
      }
      .t12-overlay .px-5 {
        padding-left: 20px;
        padding-right: 20px;
      }
      .t12-overlay .pb-2 {
        padding-bottom: 8px;
      }
      .t12-overlay .flex {
        display: flex;
      }
      .t12-overlay .items-center {
        align-items: center;
      }
      .t12-overlay .justify-between {
        justify-content: space-between;
      }
      .t12-overlay .gap-3 {
        gap: 12px;
      }
      .t12-overlay .mb-2 {
        margin-bottom: 8px;
      }
      .t12-overlay .w-10 {
        width: 40px;
      }
      .t12-overlay .h-10 {
        height: 40px;
      }
      .t12-overlay .rounded-full {
        border-radius: 9999px;
      }
      .t12-overlay .bg-\[\#E0E0E0\] {
        background-color: #e0e0e0;
      }
      .t12-overlay .overflow-hidden {
        overflow: hidden;
      }
      .t12-overlay .shadow-inner {
        box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
      }
      .t12-overlay .border-2 {
        border-width: 2px;
      }
      .t12-overlay .border-white {
        border-color: white;
      }
      .t12-overlay .w-full {
        width: 100%;
      }
      .t12-overlay .h-full {
        height: 100%;
      }
      .t12-overlay .object-cover {
        object-fit: cover;
      }
      .t12-overlay .flex-col {
        flex-direction: column;
      }
      .t12-overlay .text-xs {
        font-size: 12px;
      }
      .t12-overlay .text-\[\#8C8C8C\] {
        color: #8c8c8c;
      }
      .t12-overlay .text-\[\#4A4F55\] {
        color: #4a4f55;
      }
      .t12-overlay .text-sm {
        font-size: 14px;
      }
      .t12-overlay .font-medium {
        font-weight: 500;
      }
      .t12-overlay .mt-0\.5 {
        margin-top: 2px;
      }
      .t12-overlay .mb-6 {
        margin-bottom: 24px;
      }
      .t12-overlay .sticky {
        position: sticky;
      }
      .t12-overlay .top-0 {
        top: 0;
      }
      .t12-overlay .z-10 {
        z-index: 10;
      }
      .t12-overlay .py-2 {
        padding-top: 8px;
        padding-bottom: 8px;
      }
      .t12-overlay .flex-1 {
        flex: 1 1 0%;
      }
      .t12-overlay .h-11 {
        height: 44px;
      }
      .t12-overlay .bg-white {
        background-color: white;
      }
      .t12-overlay .rounded-\[20px\] {
        border-radius: 20px;
      }
      .t12-overlay .shadow-sm {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      }
      .t12-overlay .border {
        border-width: 1px;
      }
      .t12-overlay .border-\[\#F0F0F0\] {
        border-color: #f0f0f0;
      }
      .t12-overlay .text-xl {
        font-size: 20px;
      }
      .t12-overlay .text-\[\#B0B0B0\] {
        color: #b0b0b0;
      }
      .t12-overlay .bg-transparent {
        background-color: transparent;
      }
      .t12-overlay .border-none {
        border: none;
      }
      .t12-overlay .outline-none {
        outline: none;
      }
      .t12-overlay .placeholder-\[\#B0B0B0\]::placeholder {
        color: #b0b0b0;
      }
      .t12-overlay .w-11 {
        width: 44px;
      }
      .t12-overlay .rounded-\[16px\] {
        border-radius: 16px;
      }
      .t12-overlay .justify-center {
        justify-content: center;
      }
      .t12-overlay .mb-8 {
        margin-bottom: 32px;
      }
      .t12-overlay .mb-3 {
        margin-bottom: 12px;
      }
      .t12-overlay .text-lg {
        font-size: 18px;
      }
      .t12-overlay .font-bold {
        font-weight: bold;
      }
      .t12-overlay .items-end {
        align-items: flex-end;
      }
      .t12-overlay .py-2 {
        padding-top: 8px;
        padding-bottom: 8px;
      }
      .t12-overlay .w-\[80vw\] {
        width: 80vw;
      }
      .t12-overlay .rounded-\[var\(--radius-l\)\] {
        border-radius: var(--radius-l);
      }
      .t12-overlay .p-4 {
        padding: 16px;
      }
      .t12-overlay .h-36 {
        height: 144px;
      }
      .t12-overlay .relative {
        position: relative;
      }
      .t12-overlay .absolute {
        position: absolute;
      }
      .t12-overlay .-right-4 {
        right: -16px;
      }
      .t12-overlay .-top-4 {
        top: -16px;
      }
      .t12-overlay .w-24 {
        width: 96px;
      }
      .t12-overlay .opacity-50 {
        opacity: 0.5;
      }
      .t12-overlay .blur-xl {
        filter: blur(20px);
      }
      .t12-overlay .pointer-events-none {
        pointer-events: none;
      }
      .t12-overlay .z-10 {
        z-index: 10;
      }
      .t12-overlay .px-2 {
        padding-left: 8px;
        padding-right: 8px;
      }
      .t12-overlay .py-1 {
        padding-top: 4px;
        padding-bottom: 4px;
      }
      .t12-overlay .rounded-lg {
        border-radius: 8px;
      }
      .t12-overlay .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .t12-overlay .max-w-\[120px\] {
        max-width: 120px;
      }
      .t12-overlay .font-mono {
        font-family:
          ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      }
      .t12-overlay .mt-2 {
        margin-top: 8px;
      }
      .t12-overlay .mt-auto {
        margin-top: auto;
      }
      .t12-overlay .pt-3 {
        padding-top: 12px;
      }
      .t12-overlay .border-t {
        border-top-width: 1px;
      }
      .t12-overlay .border-dashed {
        border-style: dashed;
      }
      .t12-overlay .border-\[\#EEE\] {
        border-color: #eee;
      }
      .t12-overlay .w-1 {
        width: 4px;
      }
      .t12-overlay .flex-shrink-0 {
        flex-shrink: 0;
      }
      .t12-overlay .mb-4 {
        margin-bottom: 16px;
      }
      .t12-overlay .mb-2 {
        margin-bottom: 8px;
      }
      .t12-overlay .mt-1 {
        margin-top: 4px;
      }
      .t12-overlay .w-8 {
        width: 32px;
      }
      .t12-overlay .h-8 {
        height: 32px;
      }
      .t12-overlay .rounded-lg {
        border-radius: 8px;
      }
      .t12-overlay .bg-\[\#EFEFEF\] {
        background-color: #efefef;
      }
      .t12-overlay .py-4 {
        padding-top: 16px;
        padding-bottom: 16px;
      }
      .t12-overlay .w-\[65vw\] {
        width: 65vw;
      }
      .t12-overlay .rounded-\[var\(--radius-m\)\] {
        border-radius: var(--radius-m);
      }
      .t12-overlay .overflow-hidden {
        overflow: hidden;
      }
      .t12-overlay .aspect-\[3\/2\] {
        aspect-ratio: 3/2;
      }
      .t12-overlay .inset-0 {
        inset: 0;
      }
      .t12-overlay .bg-gradient-to-t {
        background-image: linear-gradient(to top, var(--tw-gradient-stops));
      }
      .t12-overlay .from-black\/10 {
        --tw-gradient-from: rgba(0, 0, 0, 0.1);
        --tw-gradient-to: rgba(0, 0, 0, 0);
        --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
      }
      .t12-overlay .to-transparent {
        --tw-gradient-to: transparent;
      }
      .t12-overlay .font-serif {
        font-family:
          ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
      }
      .t12-overlay .italic {
        font-style: italic;
      }
      .t12-overlay .text-base {
        font-size: 16px;
      }
      .t12-overlay .line-clamp-1 {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
      }
      .t12-overlay .fixed {
        position: fixed;
      }
      .t12-overlay .bottom-0 {
        bottom: 0;
      }
      .t12-overlay .left-0 {
        left: 0;
      }
      .t12-overlay .right-0 {
        right: 0;
      }
      .t12-overlay .h-\[calc\(60px\+var\(--safe-bottom\)\)\] {
        height: calc(60px + var(--safe-bottom));
      }
      .t12-overlay .bg-\[rgba\(255\2c 255\2c 255\2c 0\.95\)\] {
        background-color: rgba(255, 255, 255, 0.95);
      }
      .t12-overlay .backdrop-blur-md {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }
      .t12-overlay .shadow-\[0_-4px_20px_rgba\(0\2c 0\2c 0\2c 0\.03\)\] {
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
      }
      .t12-overlay .justify-around {
        justify-content: space-around;
      }
      .t12-overlay .pb-\[var\(--safe-bottom\)\] {
        padding-bottom: var(--safe-bottom);
      }
      .t12-overlay .z-50 {
        z-index: 50;
      }
      .t12-overlay .rounded-t-\[20px\] {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
      }
      .t12-overlay .relative {
        position: relative;
      }
      .t12-overlay .-top-6 {
        top: -24px;
      }
      .t12-overlay .w-16 {
        width: 64px;
      }
      .t12-overlay .h-16 {
        height: 64px;
      }
      .t12-overlay .bg-gradient-to-b {
        background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
      }
      .t12-overlay .from-\[var\(--primary\)\] {
        --tw-gradient-from: var(--primary);
        --tw-gradient-to: rgba(149, 184, 163, 0);
        --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
      }
      .t12-overlay .to-\[var\(--primary-dark\)\] {
        --tw-gradient-to: var(--primary-dark);
      }
      .t12-overlay .text-white {
        color: white;
      }
      .t12-overlay .border-4 {
        border-width: 4px;
      }
      .t12-overlay .border-\[var\(--bg-base\)\] {
        border-color: var(--bg-base);
      }
      .t12-overlay .text-3xl {
        font-size: 30px;
      }
      .t12-overlay .w-14 {
        width: 56px;
      }
      .t12-overlay .text-2xl {
        font-size: 24px;
      }
      .t12-overlay .transition-colors {
        transition-property:
          color, background-color, border-color, text-decoration-color, fill,
          stroke;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
      }
      .t12-overlay .duration-300 {
        transition-duration: 300ms;
      }
      .t12-overlay .text-\[10px\] {
        font-size: 10px;
      }
      .t12-overlay .mx-auto {
        margin-left: auto;
        margin-right: auto;
      }
      .t12-overlay .min-h-screen {
        min-height: 100vh;
      }
      .t12-overlay .bottom-\[80px\] {
        bottom: 80px;
      }
      .t12-overlay .h-10 {
        height: 40px;
      }
      .t12-overlay .bg-gradient-to-t {
        background-image: linear-gradient(to top, var(--tw-gradient-stops));
      }
      .t12-overlay .from-\[var\(--bg-base\)\] {
        --tw-gradient-from: var(--bg-base);
        --tw-gradient-to: rgba(249, 247, 245, 0);
        --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
      }
      .t12-overlay .pointer-events-none {
        pointer-events: none;
      }

      
      .t13-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-base, #f9f7f5);
        z-index: 200;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
          sans-serif;
      }

      .t13-overlay.open {
        transform: translateY(0);
      }

      
      .t13-overlay {
        --bg-base: #f9f7f5;
        --header-bg: #7a8b99;
        --accent-primary: #d99e82;
        --accent-secondary: #e8b4b8;
        --accent-green: #95b8a3;
        --text-main: #4a4a4a;
        --text-sub: #8c8c8c;
        --shadow-soft: 0 8px 20px rgba(122, 139, 153, 0.15);
        --shadow-button: 0 4px 12px rgba(217, 158, 130, 0.3);
        --safe-top: env(safe-area-inset-top);
        --safe-bottom: env(safe-area-inset-bottom);
      }

      .t13-overlay * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
      }

      
      .t13-overlay body {
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
          sans-serif;
        background-color: var(--bg-base);
        color: var(--text-main);
        margin: 0;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
      }

      
      .t13-overlay .hide-scrollbar::-webkit-scrollbar {
        display: none;
      }
      .t13-overlay .hide-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      
      .t13-overlay .active-press {
        transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .t13-overlay .active-press:active {
        transform: scale(0.95);
        opacity: 0.9;
      }

      
      .t13-overlay .scroll-container {
        overflow-y: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        height: 100vh;
        padding-bottom: 100px;
      }

      
      .t13-overlay .glass {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.5);
      }

      
      .t13-overlay .header-curve {
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 24px;
        background: var(--bg-base);
        border-radius: 24px 24px 0 0;
        z-index: 10;
      }

      
      .t13-overlay .t13-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: var(--bg-base);
      }

      
      .t13-nav {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 16px;
        background-color: var(--bg-base);
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      }

      .t13-nav .back-btn {
        position: absolute;
        left: 16px;
        cursor: pointer;
        color: var(--text-main);
      }

      .t13-nav .title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-main);
      }

      
      .t13-overlay .relative {
        position: relative;
      }

      .t13-overlay .bg-\[var\(--header-bg\)\] {
        background-color: var(--header-bg);
      }

      .t13-overlay .pb-12 {
        padding-bottom: 3rem;
      }

      .t13-overlay .pt-\[calc\(var\(--safe-top\)\+12px\)\] {
        padding-top: calc(var(--safe-top) + 12px);
      }

      .t13-overlay .px-5 {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
      }

      .t13-overlay .transition-all {
        transition: all 0.3s ease;
      }

      .t13-overlay .flex {
        display: flex;
      }

      .t13-overlay .items-center {
        align-items: center;
      }

      .t13-overlay .gap-4 {
        gap: 1rem;
      }

      .t13-overlay .text-white {
        color: white;
      }

      .t13-overlay .mb-6 {
        margin-bottom: 1.5rem;
      }

      .t13-overlay .p-1 {
        padding: 0.25rem;
      }

      .t13-overlay .text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
      }

      .t13-overlay .text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
      }

      .t13-overlay .font-medium {
        font-weight: 500;
      }

      .t13-overlay .tracking-wide {
        letter-spacing: 0.025em;
      }

      .t13-overlay .opacity-90 {
        opacity: 0.9;
      }

      .t13-overlay .bg-white\/95 {
        background-color: rgba(255, 255, 255, 0.95);
      }

      .t13-overlay .h-12 {
        height: 3rem;
      }

      .t13-overlay .rounded-xl {
        border-radius: 0.75rem;
      }

      .t13-overlay .shadow-\[var\(--shadow-soft\)\] {
        box-shadow: var(--shadow-soft);
      }

      .t13-overlay .mb-4 {
        margin-bottom: 1rem;
      }

      .t13-overlay .mr-3 {
        margin-right: 0.75rem;
      }

      .t13-overlay .text-gray-400 {
        color: #9ca3af;
      }

      .t13-overlay .flex-1 {
        flex: 1 1 0%;
      }

      .t13-overlay .bg-transparent {
        background-color: transparent;
      }

      .t13-overlay .border-none {
        border: none;
      }

      .t13-overlay .outline-none {
        outline: none;
      }

      .t13-overlay .text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
      }

      .t13-overlay .text-\[var\(--text-main\)\] {
        color: var(--text-main);
      }

      .t13-overlay .placeholder-gray-400::placeholder {
        color: #9ca3af;
      }

      .t13-overlay .absolute {
        position: absolute;
      }

      .t13-overlay .top-0 {
        top: 0;
      }

      .t13-overlay .right-0 {
        right: 0;
      }

      .t13-overlay .w-64 {
        width: 16rem;
      }

      .t13-overlay .h-64 {
        height: 16rem;
      }

      .t13-overlay .bg-white {
        background-color: white;
      }

      .t13-overlay .opacity-5 {
        opacity: 0.05;
      }

      .t13-overlay .rounded-full {
        border-radius: 9999px;
      }

      .t13-overlay .blur-3xl {
        filter: blur(4rem);
      }

      .t13-overlay .pointer-events-none {
        pointer-events: none;
      }

      .t13-overlay .-translate-y-1\/2 {
        transform: translateY(-50%);
      }

      .t13-overlay .translate-x-1\/2 {
        transform: translateX(50%);
      }

      
      .t13-overlay .-mt-8 {
        margin-top: -2rem;
      }

      .t13-overlay .z-20 {
        z-index: 20;
      }

      .t13-overlay .justify-between {
        justify-content: space-between;
      }

      .t13-overlay .gap-3 {
        gap: 0.75rem;
      }

      .t13-overlay .h-14 {
        height: 3.5rem;
      }

      .t13-overlay .rounded-2xl {
        border-radius: 1rem;
      }

      .t13-overlay .justify-center {
        justify-content: center;
      }

      .t13-overlay .font-medium {
        font-weight: 500;
      }

      .t13-overlay .border {
        border-width: 1px;
      }

      .t13-overlay .border-white\/50 {
        border-color: rgba(255, 255, 255, 0.5);
      }

      .t13-overlay .bg-\[var\(--accent-primary\)\] {
        background-color: var(--accent-primary);
      }

      .t13-overlay .shadow-\[var\(--shadow-button\)\] {
        box-shadow: var(--shadow-button);
      }

      .t13-overlay .transform {
        transform: translateY(-0.25rem);
      }

      .t13-overlay .text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
      }

      .t13-overlay .opacity-100 {
        opacity: 1;
      }

      .t13-overlay .opacity-60 {
        opacity: 0.6;
      }

      .t13-overlay .duration-300 {
        transition-duration: 300ms;
      }

      
      .t13-overlay .mx-5 {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
      }

      .t13-overlay .rounded-\[20px\] {
        border-radius: 20px;
      }

      .t13-overlay .p-4 {
        padding: 1rem;
      }

      .t13-overlay .shadow-sm {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      }

      .t13-overlay .border-white {
        border-color: white;
      }

      .t13-overlay .w-\[88px\] {
        width: 88px;
      }

      .t13-overlay .h-\[88px\] {
        height: 88px;
      }

      .t13-overlay .rounded-\[16px\] {
        border-radius: 16px;
      }

      .t13-overlay .shadow-inner {
        box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
      }

      .t13-overlay .flex-shrink-0 {
        flex-shrink: 0;
      }

      .t13-overlay .overflow-hidden {
        overflow: hidden;
      }

      .t13-overlay .text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
      }

      .t13-overlay .z-10 {
        z-index: 10;
      }

      .t13-overlay .flex-col {
        flex-direction: column;
      }

      .t13-overlay .h-full {
        height: 100%;
      }

      .t13-overlay .gap-2 {
        gap: 0.5rem;
      }

      .t13-overlay .text-\[17px\] {
        font-size: 17px;
      }

      .t13-overlay .font-bold {
        font-weight: 700;
      }

      .t13-overlay .leading-tight {
        line-height: 1.25;
      }

      .t13-overlay .self-start {
        align-self: flex-start;
      }

      .t13-overlay .px-3 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
      }

      .t13-overlay .py-1 {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
      }

      .t13-overlay .bg-\[\#F5F5F5\] {
        background-color: #f5f5f5;
      }

      .t13-overlay .rounded-full {
        border-radius: 9999px;
      }

      .t13-overlay .gap-1\.5 {
        gap: 0.375rem;
      }

      .t13-overlay .text-xs {
        font-size: 0.75rem;
        line-height: 1rem;
      }

      .t13-overlay .text-\[var\(--text-sub\)\] {
        color: var(--text-sub);
      }

      .t13-overlay .active\:bg-\[\#EEE\]:active {
        background-color: #eee;
      }

      .t13-overlay .transition-colors {
        transition-property: color, background-color, border-color;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
      }

      .t13-overlay .w-9 {
        width: 2.25rem;
      }

      .t13-overlay .h-9 {
        height: 2.25rem;
      }

      .t13-overlay .active\:scale-90:active {
        transform: scale(0.9);
      }

      .t13-overlay .border-2 {
        border-width: 2px;
      }

      .t13-overlay .border-\[var\(--accent-primary\)\] {
        border-color: var(--accent-primary);
      }

      .t13-overlay .text-\[var\(--accent-primary\)\] {
        color: var(--accent-primary);
      }

      .t13-overlay .active\:bg-\[var\(--accent-primary\)\]:active {
        background-color: var(--accent-primary);
      }

      .t13-overlay .active\:text-white:active {
        color: white;
      }

      
      .t13-overlay .fixed {
        position: fixed;
      }

      .t13-overlay .bottom-0 {
        bottom: 0;
      }

      .t13-overlay .left-0 {
        left: 0;
      }

      .t13-overlay .right-0 {
        right: 0;
      }

      .t13-overlay .h-\[calc\(64px\+var\(--safe-bottom\)\)\] {
        height: calc(64px + var(--safe-bottom));
      }

      .t13-overlay .justify-around {
        justify-content: space-around;
      }

      .t13-overlay .pb-\[var\(--safe-bottom\)\] {
        padding-bottom: var(--safe-bottom);
      }

      .t13-overlay .z-50 {
        z-index: 50;
      }

      .t13-overlay .rounded-t-\[24px\] {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
      }

      .t13-overlay .shadow-\[0_-8px_30px_rgba\(0\2c 0\2c 0\2c 0\.04\)\] {
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.04);
      }

      .t13-overlay .w-16 {
        width: 4rem;
      }

      .t13-overlay .gap-1 {
        gap: 0.25rem;
      }

      .t13-overlay .-bottom-1 {
        bottom: -0.25rem;
      }

      .t13-overlay .w-1 {
        width: 0.25rem;
      }

      .t13-overlay .h-1 {
        height: 0.25rem;
      }

      .t13-overlay .bg-\[var\(--accent-primary\)\] {
        background-color: var(--accent-primary);
      }

      
      .t13-overlay .pt-2 {
        padding-top: 0.5rem;
      }

      .t13-overlay .pb-8 {
        padding-bottom: 2rem;
      }

      .t13-overlay .min-h-\[500px\] {
        min-height: 500px;
      }

      
      .t13-overlay .-top-\[20\%\] {
        top: -20%;
      }

      .t13-overlay .-left-\[20\%\] {
        left: -20%;
      }

      .t13-overlay .w-\[140\%\] {
        width: 140%;
      }

      .t13-overlay .h-\[140\%\] {
        height: 140%;
      }

      .t13-overlay .border-\[8px\] {
        border-width: 8px;
      }

      .t13-overlay .border-white\/20 {
        border-color: rgba(255, 255, 255, 0.2);
      }

      
      .settings-overlay {
        
        transition: var(--transition);
      }

      
      .list-item {
        cursor: pointer;
      }

      .list-item:hover {
        background-color: rgba(0, 0, 0, 0.02);
      }

      
      .wb-card {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
        border: 1px solid transparent;
      }

      .wb-card.active {
        border-color: rgba(74, 144, 226, 0.3);
        background: #fdfeff;
      }

      .wb-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
      }

      .wb-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
      }

      .wb-content {
        font-size: 13px;
        color: #666;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      
      .toggle-switch {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;
        flex-shrink: 0;
      }

      .toggle-input {
        opacity: 0;
        width: 0;
        height: 0;
      }

      .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #e4e4e4;
        transition: 0.4s;
        border-radius: 24px;
      }

      .toggle-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      }

      .toggle-input:checked + .toggle-slider {
        background-color: #07c160 !important; 
      }

      .toggle-input:checked + .toggle-slider:before {
        transform: translateX(20px) !important;
      }

      
      .wb-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        z-index: 300;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
      }

      .wb-modal.show {
        opacity: 1;
        pointer-events: auto;
      }

      .wb-modal-content {
        background: #fff;
        width: 90%;
        max-width: 360px;
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        transform: scale(0.9);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }

      .wb-modal.show .wb-modal-content {
        transform: scale(1);
      }

      
      
      .chat-detail-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f2f0f2;
        z-index: 500; 
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
      }

      .chat-detail-overlay.open {
        transform: translateX(0);
      }

      
      .ai-trigger-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(
          135deg,
          #e0c3fc 0%,
          #8ec5fc 100%
        ); 
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s;
        animation: breathe 3s infinite ease-in-out;
      }
      .ai-trigger-btn:active {
        transform: scale(0.9);
      }

      
      .chat-bg-pattern {
        position: absolute;
        inset: 0;
        opacity: 0.03;
        background-image: radial-gradient(#8c8293 1px, transparent 1px);
        background-size: 20px 20px;
        pointer-events: none;
      }

      
      .chat-scroll-area {
        flex: 1;
        overflow-y: auto;
        padding: 16px 16px 20px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
      }

      
      .msg-bubble {
        max-width: 75%;
        padding: 10px 14px;
        position: relative;
        font-size: 15px;
        line-height: 1.5;
        word-break: break-word;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
        animation: msgFadeIn 0.3s ease-out forwards;
      }

      
      .msg-bubble.them {
        align-self: flex-start;
        background: #ffffff;
        color: #4a464b;
        border-radius: 16px 16px 16px 4px; 
      }

      
      .msg-bubble.me {
        align-self: flex-end;
        background: #e6c8c8; 
        color: #5d4e50;
        border-radius: 16px 16px 4px 16px; 
      }

      
      .msg-time {
        font-size: 10px;
        margin-top: 4px;
        text-align: right;
        opacity: 0.6;
      }

      
      .chat-input-bar {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        padding: 10px 16px;
        padding-bottom: calc(10px + var(--safe-bottom));
        display: flex;
        align-items: flex-end;
        gap: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
      }

      .chat-input-field {
        flex: 1;
        background: #f5f0f2;
        border: none;
        border-radius: 20px;
        padding: 10px 16px;
        font-size: 15px;
        color: #333;
        max-height: 100px;
        min-height: 40px;
        outline: none;
        font-family: inherit;
        resize: none;
        position: relative;
      }

      .chat-header {
        position: relative;
      }
      .chat-header-btn {
        position: relative;
      }
      .chat-header-status {
        position: relative;
      }
      .chat-send-btn {
        position: relative;
        cursor: pointer;
      }
      .chat-action-btn {
        position: relative;
        cursor: pointer;
      }
      .chat-toolbar {
        position: relative;
      }

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

      
      .profile-container {
        padding: 20px;
        background: #fdfcfb; 
        min-height: 100%;
      }

      
      .avatar-uploader {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: #f0f2f5;
        border: 2px dashed #d1d5db;
        margin: 0 auto 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        overflow: hidden;
        position: relative;
        transition: all 0.3s;
      }

      .avatar-uploader:active {
        transform: scale(0.95);
        border-color: #9fa5d5;
      }

      .avatar-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .avatar-placeholder {
        font-size: 12px;
        color: #999;
        text-align: center;
        padding: 10px;
      }

      
      .pf-form-group {
        margin-bottom: 16px;
      }

      .pf-label {
        display: block;
        font-size: 13px;
        color: #8c917b; 
        margin-bottom: 6px;
        font-weight: 500;
      }

      .pf-input,
      .pf-textarea {
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid #eef0f2;
        background: #fff;
        font-size: 15px;
        color: #5a5f4d;
        outline: none;
        transition:
          border 0.3s,
          box-shadow 0.3s;
        font-family: inherit;
      }

      .pf-textarea {
        resize: none;
        height: 80px;
      }

      .pf-input:focus,
      .pf-textarea:focus {
        border-color: #d6cfc7; 
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
      }

      
      .persona-card {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        display: flex;
        align-items: center;
        transition: all 0.2s;
        cursor: pointer;
        position: relative;
      }

      .persona-card.active {
        border-color: #9fa5d5; 
        background: #fbfbfd;
      }

      .persona-info {
        flex: 1;
        margin-left: 12px;
      }

      .persona-name {
        font-size: 16px;
        font-weight: 600;
        color: #333;
      }

      .persona-desc {
        font-size: 12px;
        color: #999;
        margin-top: 4px;
      }

      .persona-tag {
        font-size: 10px;
        padding: 2px 6px;
        background: #f0f2f5;
        border-radius: 4px;
        color: #666;
        margin-left: 8px;
      }

      .active-check {
        position: absolute;
        top: 10px;
        right: 10px;
        color: #9fa5d5;
      }

      
      .btn-group {
        display: flex;
        gap: 12px;
        margin-top: 24px;
      }

      .pf-btn {
        flex: 1;
        padding: 12px;
        border-radius: 24px;
        border: none;
        font-weight: 600;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
      }

      .pf-btn-primary {
        background: linear-gradient(135deg, #b4aee8 0%, #9fa5d5 100%);
        color: white;
        box-shadow: 0 4px 10px rgba(159, 165, 213, 0.3);
      }

      .pf-btn-secondary {
        background: #fff;
        color: #666;
        border: 1px solid #eee;
      }

      .pf-btn-delete {
        background: #fff1f0;
        color: #ff4d4f;
      }

      
      .weather-modal-mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        z-index: 300;
        display: flex;
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s;
      }

      .weather-modal-box {
        background: #fdfcfb;
        width: 85%;
        max-width: 320px;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      }

      .wm-title {
        font-size: 16px;
        font-weight: bold;
        color: #5a5f4d;
        margin-bottom: 16px;
        text-align: center;
      }

      .wm-input {
        width: 100%;
        padding: 12px;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 12px;
        outline: none;
        font-size: 14px;
      }

      .wm-list {
        max-height: 200px;
        overflow-y: auto;
      }

      .wm-item {
        padding: 10px;
        border-bottom: 1px solid #f5f5f5;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .wm-item:active {
        background: #f0f2f5;
      }

      .wm-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
      }
      
      /* ==================== 微信风格 · 莫兰迪浅色磨砂语音通话样式 ==================== */
      @keyframes morandiPulse {
        0% {
          transform: scale(0.96);
          box-shadow: 0 0 0 0 rgba(125, 168, 123, 0.45);
        }
        70% {
          transform: scale(1.04);
          box-shadow: 0 0 0 22px rgba(125, 168, 123, 0);
        }
        100% {
          transform: scale(0.96);
          box-shadow: 0 0 0 0 rgba(125, 168, 123, 0);
        }
      }

      @keyframes soundWaveBar {
        0%, 100% {
          height: 6px;
          opacity: 0.45;
        }
        50% {
          height: 24px;
          opacity: 1;
        }
      }

      @keyframes fadeInSmooth {
        from {
          opacity: 0;
          transform: scale(0.98);
        }
        to {
          opacity: 1;
          transform: scale(1);
        }
      }

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

      .wechat-voice-call-overlay,
      .wechat-voice-call-screen {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 20%, #f6f7f3 0%, #ebeee8 55%, #e1e6de 100%);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        z-index: 1300;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
        animation: fadeInSmooth 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
        user-select: none;
      }

      /* 磨砂半透明玻璃卡片 */
      .wechat-glass-card {
        background: rgba(255, 255, 255, 0.62);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.75);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
      }

      /* 通话按钮交互微动效 (精简尺寸) */
      .wechat-call-btn {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
        border: none;
        outline: none;
      }

      .wechat-call-btn:active {
        transform: scale(0.88);
      }

      /* 莫兰迪挂断 / 拒绝（豆沙绯红） */
      .wechat-btn-hangup {
        background: linear-gradient(135deg, #e87a7a 0%, #d96363 100%);
        color: #ffffff;
        box-shadow: 0 4px 16px rgba(217, 99, 99, 0.28);
      }

      /* 莫兰迪接听（鼠尾草青绿） */
      .wechat-btn-accept {
        background: linear-gradient(135deg, #8dc38e 0%, #70a772 100%);
        color: #ffffff;
        box-shadow: 0 4px 16px rgba(112, 167, 114, 0.3);
        animation: morandiPulse 2.4s infinite ease-in-out;
      }

      /* 辅助功能圆形按钮（静音/免提/打字） */
      .wechat-tool-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.85);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #4a555b;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
      }

      .wechat-tool-btn.active {
        background: #536268;
        color: #ffffff;
        border-color: transparent;
        box-shadow: 0 4px 14px rgba(83, 98, 104, 0.3);
      }

      .wechat-tool-btn:active {
        transform: scale(0.92);
      }

      /* 莫兰迪半透明气泡 (精致紧凑) */
      .wechat-incall-bubble {
        padding: 8px 13px;
        border-radius: 14px;
        font-size: 13px;
        line-height: 1.5;
        max-width: 82%;
        word-break: break-word;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        animation: slideUpSmooth 0.2s ease-out;
      }

      .wechat-incall-bubble-me {
        background: linear-gradient(135deg, rgba(141, 195, 142, 0.92) 0%, rgba(112, 167, 114, 0.92) 100%);
        color: #ffffff;
        border-bottom-right-radius: 3px;
        border: 1px solid rgba(255, 255, 255, 0.35);
      }

      .wechat-incall-bubble-other {
        background: rgba(255, 255, 255, 0.86);
        color: #2c3437;
        border-bottom-left-radius: 3px;
        border: 1px solid rgba(255, 255, 255, 0.9);
      }

      
      .reader-detail-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fdf6e3; 
        z-index: 600; 
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        overflow: hidden;
      }

      .reader-detail-overlay.open {
        transform: translateY(0);
      }

      
      
      .reader-content-area {
        flex: 1;
        padding: 20px 24px;
        
        padding-bottom: 150px;
        font-family: "Noto Serif SC", "Songti SC", serif;
        color: #3e3e3e;
        line-height: 1.8; 
        text-align: justify; 
        overflow: hidden; 
        position: relative;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
      }

      
      .reader-tap-zone {
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 2;
      }
      .zone-left {
        left: 0;
        width: 30%;
      }
      .zone-center {
        left: 30%;
        width: 40%;
      }
      .zone-right {
        right: 0;
        width: 30%;
      }

      
      .reader-menu-bar {
        position: absolute;
        left: 0;
        right: 0;
        background: rgba(253, 246, 227, 0.98);
        backdrop-filter: blur(10px);
        padding: 16px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .menu-top {
        top: 0;
        transform: translateY(-100%);
      }
      .menu-bottom {
        bottom: 0;
        transform: translateY(100%);
        flex-direction: column;
        gap: 16px;
      }

      .reader-menu-visible .menu-top {
        transform: translateY(0);
      }
      .reader-menu-visible .menu-bottom {
        transform: translateY(0);
      }

      
      .reader-progress-track {
        width: 100%;
        height: 4px;
        background: #e0d8c3;
        border-radius: 2px;
        position: relative;
      }
      .reader-progress-fill {
        height: 100%;
        background: #8c917b;
        border-radius: 2px;
      }

      
      .highlight-marker {
        background-color: #ffeb3b80; 
        border-bottom: 2px solid #fbc02d;
        cursor: pointer;
      }

      
      .reader-slider {
        -webkit-appearance: none;
        width: 100%;
        height: 4px;
        background: #e0d8c3;
        border-radius: 2px;
        outline: none;
        margin: 0 10px;
      }

      .reader-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #8c917b; 
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        border: 2px solid #fdf6e3;
        transition: transform 0.1s;
      }

      .reader-slider::-webkit-slider-thumb:active {
        transform: scale(1.2);
      }

      
      .co-read-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 16px 70px 16px; 
        background: linear-gradient(
          to top,
          rgba(253, 246, 227, 1) 0%,
          rgba(253, 246, 227, 0) 100%
        );
        z-index: 15; 
        pointer-events: none; 
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
      }

      .cr-side {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 48%;
        pointer-events: auto; 
      }

      .cr-side.right {
        align-items: flex-end;
      }

      .cr-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-top: 4px;
        background: #eee;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #555;
        cursor: pointer;
        transition: transform 0.2s;
      }

      .cr-avatar:active {
        transform: scale(0.9);
      }

      .cr-bubble {
        background: #fff;
        padding: 8px 12px;
        border-radius: 12px;
        font-size: 13px;
        color: #5a5f4d;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 4px;
        position: relative;
        min-width: 60px;
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
      }

      
      .cr-bubble.left::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 14px;
        border-width: 6px 6px 0;
        border-style: solid;
        border-color: #fff transparent transparent transparent;
      }
      .cr-bubble.right {
        background: #e6ded1; 
      }
      .cr-bubble.right::after {
        content: "";
        position: absolute;
        bottom: -6px;
        right: 14px;
        border-width: 6px 6px 0;
        border-style: solid;
        border-color: #e6ded1 transparent transparent transparent;
      }

      
      .cr-input {
        width: 100%;
        border: none;
        background: transparent;
        outline: none;
        font-size: 13px;
        color: #5a5f4d;
        font-family: inherit;
        resize: none;
        height: 40px;
      }

      
      .char-selector-modal {
        position: absolute;
        top: 50px;
        right: 10px;
        background: #fff;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 50;
        width: 160px;
        max-height: 300px;
        overflow-y: auto;
      }

      
      
      .ai-annotation-mark {
        border-bottom: 2px dashed #8fa38f; 
        background-color: rgba(143, 163, 143, 0.15);
        cursor: pointer;
        padding-bottom: 2px;
        transition: background 0.2s;
        position: relative;
        z-index: 5;
      }

      .ai-annotation-mark:active {
        background-color: rgba(143, 163, 143, 0.4);
      }

      
      .note-bubble-modal {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 20px 20px 0 0;
        padding: 24px;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
        z-index: 1000;
        animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: none;
      }

      @keyframes slideUp {
        from {
          transform: translateX(-50%) translateY(100%);
          opacity: 0;
        }
        to {
          transform: translateX(-50%) translateY(0);
          opacity: 1;
        }
      }

      .note-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(220, 220, 220, 0.3);
      }

      .note-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }

      .note-content {
        font-size: 14px;
        color: #555;
        line-height: 1.6;
        background: rgba(249, 249, 249, 0.8);
        padding: 16px;
        border-radius: 12px;
        position: relative;
        margin: 12px 0;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
      }

      .note-quote {
        font-size: 13px;
        color: #888;
        margin-bottom: 12px;
        padding: 12px 16px;
        border-radius: 10px;
        background: rgba(240, 240, 240, 0.7);
        line-height: 1.5;
      }

      
      .note-mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        animation: fadeIn 0.3s ease;
      }

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

      
      
      .ai-rec-fab {
        position: absolute;
        bottom: 100px; 
        right: 24px;
        width: 48px;
        height: 48px;
        background: linear-gradient(
          135deg,
          #d4c2e1 0%,
          #b4aee8 100%
        ); 
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(180, 174, 232, 0.4);
        color: white;
        z-index: 20;
        cursor: pointer;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      }

      .ai-rec-fab:active {
        transform: scale(0.9);
      }

      .ai-rec-fab i {
        animation: float 3s ease-in-out infinite;
      }

      
      .ai-rec-modal {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 85%;
        max-width: 320px;
        background: #fff;
        border-radius: 24px;
        padding: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        z-index: 50;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }

      .ai-rec-modal.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
      }

      .rec-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 16px;
      }

      .rec-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #eee;
        border: 3px solid #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justifycontent: center;
        font-size: 20px;
        font-weight: bold;
        color: #555;
        margin-bottom: 8px;
      }

      .rec-bubble {
        background: #f7f5e8; 
        padding: 12px 16px;
        border-radius: 16px;
        border-top-left-radius: 4px; 
        font-size: 14px;
        color: #5a5f4d;
        line-height: 1.5;
        margin-bottom: 20px;
        position: relative;
      }

      .rec-book-info {
        background: #fdfdfd;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
      }

      .rec-book-icon {
        width: 40px;
        height: 50px;
        background: #e0d8c3;
        border-radius: 4px;
        flex-shrink: 0;
      }

      .rec-actions {
        display: flex;
        gap: 12px;
      }

      .rec-btn {
        flex: 1;
        padding: 12px;
        border-radius: 20px;
        border: none;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
      }
      .rec-btn-cancel {
        background: #f5f5f5;
        color: #999;
      }
      .rec-btn-confirm {
        background: #9fa5d5;
        color: #fff;
        box-shadow: 0 4px 10px rgba(159, 165, 213, 0.3);
      }

      
      
      .rec-list-container {
        max-height: 400px;
        overflow-y: auto;
        padding: 4px;
      }

      
      .rec-card-item {
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
        position: relative;
        transition: all 0.2s;
        cursor: pointer;
      }

      .rec-card-item.selected {
        border-color: #9fa5d5;
        background: #fbfbfd;
        box-shadow: 0 4px 12px rgba(159, 165, 213, 0.2);
      }

      .rec-card-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
      }

      .rec-card-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justifycontent: center;
        font-size: 12px;
        color: #fff;
        font-weight: bold;
      }

      .rec-reason {
        font-size: 13px;
        color: #5a5f4d;
        background: #fdfcf6;
        padding: 8px 12px;
        border-radius: 8px;
        margin-bottom: 10px;
        font-style: italic;
      }

      .rec-book-mini {
        display: flex;
        gap: 10px;
        align-items: center;
        background: #fafafa;
        padding: 8px;
        border-radius: 8px;
      }

      
      .reaction-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 400px;
        overflow-y: auto;
        padding: 4px;
      }

      .reaction-bubble {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        animation: popIn 0.3s ease-out;
      }

      .reaction-content {
        background: #fff;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 13px;
        color: #333;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        position: relative;
        flex: 1;
      }

      .reaction-content.winner {
        border: 2px solid #e0c3fc; 
        background: #fbf6ff;
      }

      .reaction-content.loser {
        background: #f5f5f5;
        color: #666;
      }

      .go-read-btn {
        width: 100%;
        padding: 14px;
        margin-top: 16px;
        background: linear-gradient(135deg, #b4aee8 0%, #9fa5d5 100%);
        color: white;
        border: none;
        border-radius: 24px;
        font-weight: 600;
        font-size: 16px;
        letter-spacing: 1px;
        box-shadow: 0 4px 15px rgba(159, 165, 213, 0.4);
        cursor: pointer;
        animation: breathe 2s infinite;
      }

      

      
      .cs-mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(2px);
        z-index: 600;
        opacity: 0;
        animation: fadeIn 0.3s forwards;
      }

      
      .cs-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fdfcfb;
        border-radius: 24px 24px 0 0;
        padding: 24px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
        animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
      }

      .cs-title {
        font-size: 18px;
        font-weight: bold;
        color: #5a5f4d;
        margin-bottom: 20px;
        text-align: center;
      }

      .cs-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px dashed #eee;
      }

      .cs-label {
        font-size: 15px;
        color: #333;
      }
      .cs-desc {
        font-size: 12px;
        color: #999;
        margin-top: 4px;
      }

      
      .cs-num-input {
        width: 60px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 8px;
        text-align: center;
        color: #5a5f4d;
        outline: none;
      }

      
      .char-status-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 11px;
        color: #fff;
        opacity: 0.9;
        margin-top: 2px;
      }

      .heart-rate {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #ffb7b2; 
      }

      .heart-icon-anim {
        animation: heartBeat 1s infinite;
      }

      
      .thought-card {
        align-self: flex-start;
        margin: 0 0 8px 10px; 
        background: #fcfbf6; 
        border: 1px solid #e0d8c3;
        border-left: 3px solid #9fa5d5;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        color: #666;
        font-style: italic;
        max-width: 70%;
        animation: fadeIn 0.5s ease;
        position: relative;
      }

      .thought-card::before {
        content: "💭 内心";
        display: block;
        font-size: 10px;
        color: #9fa5d5;
        margin-bottom: 4px;
        font-style: normal;
      }

      
      @keyframes heartBeat {
        0% {
          transform: scale(1);
        }
        14% {
          transform: scale(1.3);
        }
        28% {
          transform: scale(1);
        }
        42% {
          transform: scale(1.3);
        }
        70% {
          transform: scale(1);
        }
      }

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

      
      
      .msg-menu-bar {
        position: absolute;
        bottom: 100%; 
        left: 0;
        background: #4a464b; 
        border-radius: 12px;
        padding: 6px;
        display: flex;
        gap: 4px;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        animation: fadeIn 0.2s ease;
        white-space: nowrap;
        transform: translateY(-8px);
      }

      
      .msg-bubble.me .msg-menu-bar {
        left: auto;
        right: 0;
      }

      
      .msg-menu-bar::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 10px;
        border-width: 6px 6px 0;
        border-style: solid;
        border-color: #4a464b transparent transparent transparent;
      }
      .msg-bubble.me .msg-menu-bar::after {
        left: auto;
        right: 10px;
      }

      
      .msg-menu-btn {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 8px;
        cursor: pointer;
      }
      .msg-menu-btn:active {
        background: rgba(255, 255, 255, 0.2);
      }

      
      .quote-preview-bar {
        background: #fbfbfd;
        padding: 8px 16px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #666;
        border-left: 4px solid #9fa5d5;
      }
      .quote-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 80%;
      }

      
      
      .msg-menu-bar {
        position: absolute;
        bottom: 100%; 
        left: 0;
        background: #4a464b; 
        border-radius: 12px;
        padding: 6px;
        display: flex;
        gap: 4px;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        animation: fadeIn 0.2s ease;
        white-space: nowrap;
        transform: translateY(-8px);
      }

      
      .msg-bubble.me .msg-menu-bar {
        left: auto;
        right: 0;
      }

      
      .msg-menu-bar::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 10px;
        border-width: 6px 6px 0;
        border-style: solid;
        border-color: #4a464b transparent transparent transparent;
      }
      .msg-bubble.me .msg-menu-bar::after {
        left: auto;
        right: 10px;
      }

      
      .msg-menu-btn {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 8px;
        cursor: pointer;
      }
      .msg-menu-btn:active {
        background: rgba(255, 255, 255, 0.2);
      }

      
      .quote-preview-bar {
        background: #fbfbfd;
        padding: 8px 16px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #666;
        border-left: 4px solid #9fa5d5;
      }
      .quote-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 80%;
      }

      
      .cs-mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(2px);
        z-index: 600; 
        display: flex;
        align-items: flex-end; 
        animation: fadeIn 0.2s forwards;
      }

      .cs-panel {
        width: 100%;
        background: #fdfcfb;
        border-radius: 24px 24px 0 0;
        padding: 24px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        
        transform: translateY(100%);
        animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
      }

      
      @keyframes slideUp {
        from {
          transform: translateY(100%);
        }
        to {
          transform: translateY(0);
        }
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

      

      
      @keyframes elasticPop {
        0% {
          transform: scale(0.5) translateY(20px);
          opacity: 0;
        }
        50% {
          transform: scale(1.02) translateY(-5px);
          opacity: 1;
        }
        70% {
          transform: scale(0.98);
        }
        100% {
          transform: scale(1) translateY(0);
          opacity: 1;
        }
      }

      
      .t11-subpage-container {
        padding: 20px;
        padding-top: calc(56px + 20px); 
        padding-bottom: 80px;
        background: #f9f7f5;
        min-height: 100%;
      }

      
      .t11-q-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 24px;
        margin-bottom: 16px;
        border-radius: 24px; 
        color: #5a5f4d; 
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(140, 145, 123, 0.05);
        cursor: pointer;
        opacity: 0; 
        animation: elasticPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        transition: transform 0.2s;
        box-shadow: 0.2s;
        border: 1px solid rgba(255, 255, 255, 0.5);
      }

      .t11-q-card:active {
        transform: scale(0.97) !important; 
      }

      
      .bg-morandi-1 {
        background: linear-gradient(135deg, #e8ded6 0%, #f5efec 100%);
      } 
      .bg-morandi-2 {
        background: linear-gradient(135deg, #deebe1 0%, #edf5ef 100%);
      } 
      .bg-morandi-3 {
        background: linear-gradient(135deg, #d6e4ea 0%, #e6eef2 100%);
      } 
      .bg-morandi-4 {
        background: linear-gradient(135deg, #ead6d6 0%, #f2e6e6 100%);
      } 
      .bg-morandi-5 {
        background: linear-gradient(135deg, #eae6d6 0%, #f5f2e9 100%);
      } 

      
      .t11-fab-btn {
        position: absolute;
        bottom: 30px;
        right: 24px;
        width: 60px;
        height: 60px;
        border-radius: 22px; 
        background: #a8c8ba; 
        color: white;
        border: none;
        box-shadow: 0 8px 20px rgba(168, 200, 186, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 50;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        animation: breathe 4s ease-in-out infinite;
      }

      .t11-fab-btn:active {
        transform: scale(0.9) rotate(90deg);
      }

      

      

      
      .t11-approval-tabs {
        display: flex;
        margin: 16px 20px;
        background: #e6e2ea; 
        border-radius: 12px;
        padding: 4px;
      }

      .t11-approval-tab {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 600;
        color: #8c8293;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .t11-approval-tab.active {
        background: #fff;
        color: #5a5f4d; 
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      }

      
      .t11-approval-card {
        background: #fff;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 12px;
        box-shadow: 0 4px 12px rgba(140, 145, 123, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      
      .card-type-leave {
        border-left-color: #e8b4b8;
      } 
      .card-type-money {
        border-left-color: #ebc583;
      } 
      .card-type-normal {
        border-left-color: #95b8a3;
      } 

      
      .t11-modal-mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(90, 95, 77, 0.4); 
        backdrop-filter: blur(4px);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
      }

      
      .leave-request-container {
        background: #fdfcf8;
        width: 100%;
        max-height: 70%;
        border-radius: 24px;
        padding: 24px;
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        animation: elasticPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }

      
      .leave-item {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
      }

      .leave-buttons {
        display: flex;
        gap: 10px;
        margin-top: 12px;
      }

      .btn-approve {
        flex: 1;
        background: #deebe1; 
        color: #5a8f6d;
        padding: 8px;
        border-radius: 8px;
        text-align: center;
        font-size: 13px;
        font-weight: bold;
      }

      .btn-reject {
        flex: 1;
        background: #f2e6e6; 
        color: #d6724b;
        padding: 8px;
        border-radius: 8px;
        text-align: center;
        font-size: 13px;
        font-weight: bold;
      }

      
      .feedback-toast {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 12px 24px;
        border-radius: 20px;
        font-size: 14px;
        z-index: 200;
        animation:
          fadeIn 0.2s,
          fadeOut 0.2s 1.5s forwards;
      }

      

      
      .activity-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          180deg,
          #2c3e50 0%,
          #4a5568 100%
        ); 
        z-index: 500;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        animation: disperseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      }

      .activity-header {
        text-align: center;
        padding-top: 60px;
        color: #e2e8f0; 
        font-family: "Noto Serif SC", serif;
        letter-spacing: 4px;
        font-size: 18px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        z-index: 10;
      }

      .activity-header::before,
      .activity-header::after {
        content: "✧";
        margin: 0 10px;
        color: #a8c8ba; 
        font-size: 12px;
      }

      
      .star-particle {
        position: absolute;
        background: white;
        border-radius: 50%;
        opacity: 0.6;
        animation: twinkle 3s infinite ease-in-out;
      }

      
      .cards-stage {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 1200px;
        transform-style: preserve-3d;
        width: 100%;
        padding-bottom: 80px; 
        gap: 2px;
      }

      
      .activity-card {
        position: absolute;
        width: 180px;
        height: 320px;
        border-radius: 12px;
        background-size: cover;
        background-position: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 20px;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.15);
        cursor: pointer;
        overflow: hidden;
      }

      
      .card-label {
        writing-mode: vertical-rl;
        font-family: "Noto Serif SC", serif;
        font-size: 24px;
        font-weight: bold;
        letter-spacing: 6px;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        background: rgba(0, 0, 0, 0.2);
        padding: 10px 4px;
        border-radius: 4px;
      }

      
      .card-deco {
        position: absolute;
        border: 1px solid rgba(255, 255, 255, 0.3);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }

      
      @keyframes disperseIn {
        0% {
          opacity: 0;
          transform: scale(1.2);
          filter: blur(10px);
        }
        100% {
          opacity: 1;
          transform: scale(1);
          filter: blur(0);
        }
      }
      @keyframes twinkle {
        0%,
        100% {
          opacity: 0.3;
          transform: scale(0.8);
        }
        50% {
          opacity: 0.8;
          transform: scale(1.2);
        }
      }
      @keyframes floatCard {
        0%,
        100% {
          transform: translateY(0) rotateY(0deg);
        }
        50% {
          transform: translateY(-10px) rotateY(2deg);
        }
      }
      
      .activity-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: radial-gradient(
          ellipse at center,
          rgba(10, 10, 30, 0.8) 0%,
          rgba(0, 0, 10, 0.95) 100%
        );
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        overflow: hidden;
      }

      
      .star-particle {
        position: absolute;
        background: rgba(255, 240, 200, 0.8);
        border-radius: 50%;
        box-shadow:
          0 0 8px rgba(255, 240, 200, 0.6),
          0 0 16px rgba(255, 240, 200, 0.4);
        animation: twinkle 3s infinite ease-in-out;
      }

      
      .activity-header {
        position: absolute;
        top: 60px;
        font-size: 18px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 0 20px rgba(180, 140, 255, 0.6);
        letter-spacing: 2px;
        margin-bottom: 60px;
      }

      
      .cards-stage {
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 1000px;
        gap: 5px;
        width: 100%;
        max-width: 500px;
        position: relative;
        z-index: 10;
      }

      
      .activity-card {
        width: 140px;
        height: 200px;
        background: linear-gradient(135deg, #7a6f8e 0%, #5e5475 100%);
        border-radius: 20px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        position: relative;
        cursor: pointer;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
      }

      
      .activity-card:hover {
        transform: translateZ(80px) scale(1.05);
        box-shadow:
          0 20px 50px rgba(0, 0, 0, 0.4),
          0 0 30px rgba(180, 140, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.4);
      }

      
      .card-label {
        font-size: 14px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 20px;
        padding: 6px 12px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
      }

      
      .card-deco {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
      }

      
      .cards-stage-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 20px 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
      }

      
      .cards-stage-container::-webkit-scrollbar {
        display: none;
      }
      .cards-stage-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      
      .cards-stage {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding-left: calc(50vw - 70px);
        min-width: max-content;
      }

      
      .activity-card.placeholder {
        opacity: 0;
        pointer-events: none;
      }

      
      .edit-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
      }

      
      @media (max-width: 768px) {
        
        .activity-header {
          padding-top: 40px;
          font-size: 16px;
        }

        
        .cards-stage-container {
          padding: 10px 0;
        }

        
        .cards-stage {
          padding: 0 20px;
          gap: 5px;
        }

        
        .activity-card {
          width: 120px;
          height: 240px;
          padding: 15px;
        }

        
        .card-label {
          font-size: 18px;
          letter-spacing: 4px;
          padding: 8px 3px;
        }

        
        .card-deco svg {
          width: 80px;
          height: 80px;
        }

        
        .edit-modal {
          width: 90%;
          max-width: 300px;
          padding: 20px;
        }
      }

      @media (max-width: 480px) {
        
        .activity-header {
          padding-top: 30px;
          font-size: 14px;
        }

        .activity-header::before,
        .activity-header::after {
          margin: 0 5px;
          font-size: 10px;
        }

        
        .activity-card {
          width: 100px;
          height: 200px;
          padding: 12px;
        }

        
        .card-label {
          font-size: 16px;
          letter-spacing: 3px;
          padding: 6px 2px;
        }

        
        .card-deco svg {
          width: 60px;
          height: 60px;
        }

        
        .cards-stage {
          padding: 0 15px;
          gap: 3px;
        }
      }

      
      .edit-modal {
        background: rgba(20, 20, 40, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 30px;
        width: 80%;
        max-width: 400px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
      }

      .edit-modal h3 {
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        margin-bottom: 20px;
        font-size: 18px;
        font-weight: 600;
      }

      .edit-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

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

      .form-group label {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        font-weight: 500;
      }

      .form-group input {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        padding: 12px 16px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        outline: none;
        transition: all 0.3s ease;
      }

      .form-group input:focus {
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
      }

      .color-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
      }

      .color-option {
        width: 100%;
        aspect-ratio: 1;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
      }

      .color-option:hover {
        transform: scale(1.05);
      }

      .color-option.selected {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
      }

      .modal-buttons {
        display: flex;
        gap: 10px;
        margin-top: 10px;
      }

      .modal-buttons button {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .cancel-btn {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
      }

      .cancel-btn:hover {
        background: rgba(255, 255, 255, 0.15);
      }

      .save-btn {
        background: rgba(180, 140, 255, 0.6);
        color: rgba(255, 255, 255, 0.9);
      }

      .save-btn:hover {
        background: rgba(180, 140, 255, 0.8);
      }

      
      .color-picker-container {
        display: flex;
        align-items: center;
        gap: 15px;
      }

      .color-wheel {
        width: 60px;
        height: 60px;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        background: transparent;
      }

      .color-wheel::-webkit-color-swatch-wrapper {
        padding: 0;
        border-radius: 50%;
      }

      .color-wheel::-webkit-color-swatch {
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
      }

      .color-preview {
        flex: 1;
        height: 60px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
      }

      
      @media (max-width: 480px) {
        .cards-stage {
          gap: 20px;
          padding: 0 20px;
        }
        .activity-card {
          width: 120px;
          height: 180px;
          padding: 15px;
        }
        .card-label {
          font-size: 12px;
        }
        .edit-modal {
          width: 90%;
          padding: 20px;
        }
      }

      
      .bells-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          180deg,
          #2c3e50 0%,
          #4a5568 100%
        ); 
        z-index: 600;
        display: flex;
        flex-direction: column;
        animation: disperseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        overflow: hidden;
      }

      .bells-container {
        position: relative;
        width: 100%;
        height: 100%;
        pointer-events: none; 
      }

      
      .bell-wrapper {
        position: absolute;
        pointer-events: auto;
        cursor: pointer;
        transform-origin: top center;
        transition: transform 0.3s;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      
      .red-string-svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
      }

      
      .bell-body {
        width: 40px;
        height: 40px;
        
        background: radial-gradient(
          circle at 30% 30%,
          #ffeaa7 0%,
          #d4af37 60%,
          #8b7020 100%
        );
        border-radius: 50% 50% 10% 10%; 
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1;
      }

      .bell-body::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 10px;
        height: 6px;
        background: #5d4037; 
        border-radius: 0 0 5px 5px;
      }

      .bell-body::before {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: #b8860b; 
        border-radius: 50%;
        z-index: 2;
      }

      
      .bell-knot {
        width: 8px;
        height: 8px;
        background: #e53e3e;
        border-radius: 50%;
        position: absolute;
        top: -4px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
      }

      
      .bell-shake {
        animation: bellShake 1s ease-in-out;
      }

      @keyframes bellShake {
        0% {
          transform: rotate(0deg);
        }
        20% {
          transform: rotate(15deg);
        }
        40% {
          transform: rotate(-10deg);
        }
        60% {
          transform: rotate(5deg);
        }
        80% {
          transform: rotate(-2deg);
        }
        100% {
          transform: rotate(0deg);
        }
      }

      
      .disperse-enter {
        animation: disperseIn 0.8s forwards;
      }
      .disperse-exit {
        animation: disperseOut 0.5s forwards;
      }

      @keyframes disperseOut {
        0% {
          opacity: 1;
          transform: scale(1);
          filter: blur(0);
        }
        100% {
          opacity: 0;
          transform: scale(1.5);
          filter: blur(20px);
        }
      }
      
      .vn-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #000;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: fadeIn 0.8s ease-in-out;
        font-family:
          "Noto Serif SC", "SimSun", serif; 
      }

      
      .vn-background {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        z-index: 1;
        transition: background-image 0.5s ease;
        filter: brightness(0.8); 
      }

      
      .vn-sprite-container {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 85vh; 
        z-index: 2;
        display: flex;
        align-items: flex-end;
        pointer-events: none; 
      }

      .vn-sprite {
        max-height: 100%;
        max-width: 100vw;
        object-fit: contain;
        transition:
          opacity 0.3s ease,
          transform 0.3s ease;
      }

      
      .vn-dialog-area {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: 40vh;
        max-height: 75vh; 
        background: linear-gradient(
          to top,
          rgba(0, 0, 0, 0.98) 0%,
          rgba(0, 0, 0, 0.85) 50%,
          transparent 100%
        );
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        
        padding: 40px 5% calc(60px + env(safe-area-inset-bottom));
        cursor: pointer;
        overflow-y: auto;
        overflow-x: hidden;
      }

      
      .vn-name-tag {
        font-size: 17px;
        font-weight: bold;
        color: #e8c3a8;
        margin-bottom: 8px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        letter-spacing: 1px;
      }

      
      .vn-dialog-text {
        font-size: 15px;
        color: #ffffff;
        line-height: 1.8; 
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        min-height: 3em;
        letter-spacing: 1px;
        padding-bottom: 20px; 
      }

      
      .vn-controls {
        position: absolute;
        top: 15px;
        right: 5%;
        display: flex;
        gap: 20px;
        z-index: 20;
        background: rgba(0, 0, 0, 0.3); 
        padding: 8px 16px;
        border-radius: 20px;
      }

      .vn-control-btn {
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        cursor: pointer;
        transition: color 0.2s;
        letter-spacing: 2px;
      }

      .vn-control-btn:hover,
      .vn-control-btn.active {
        color: #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
      }

      
      
      
      .join-us-header {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 100;
      }
      .back-btn {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(242, 208, 107, 0.5);
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
      }
      .back-btn:hover {
        background: rgba(242, 208, 107, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(242, 208, 107, 0.3);
      }
      
      .area-modal-loading {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 200px;
        color: #666;
        font-size: 14px;
      }
      .join-us-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #0f1015 !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        animation: fadeIn 0.5s ease-out !important;
      }

      
      .join-us-overlay .orbit-container {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
      }

      
      .join-us-overlay .core-sphere {
        width: 90px !important;
        height: 90px !important;
        border-radius: 50% !important;
        
        background: linear-gradient(
          to bottom,
          #e8a8a8 0%,
          #9fbcd0 100%
        ) !important;
        position: absolute !important;
        top: 45% !important; 
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
        
        box-shadow:
          0 0 20px 5px rgba(232, 168, 168, 0.4),
          0 0 20px 5px rgba(159, 188, 208, 0.4) !important;
        
        filter: blur(8px) !important;
        opacity: 0.9 !important;
        
        animation: coreFloat 4s ease-in-out infinite !important;
      }

      
      .join-us-overlay .core-ring {
        position: absolute !important;
        width: 110px !important;
        height: 110px !important;
        border-radius: 50% !important;
        
        border: 2px solid rgba(232, 168, 168, 0.6) !important;
        box-shadow: 0 0 15px rgba(159, 188, 208, 0.6) !important;
        top: 45% !important; 
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 9 !important;
        filter: blur(2px) !important; 
        
        animation: ringWobble 8s linear infinite !important;
      }

      
      .join-us-overlay .orb {
        position: absolute !important;
        border-radius: 50% !important;
        filter: blur(8px) !important; 
        opacity: 0.9 !important;
        animation: orbFloat 6s ease-in-out infinite alternate !important;
      }

      
      .join-us-overlay .enter-btn-area {
        position: absolute !important;
        bottom: 80px !important; 
        z-index: 20 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
      }

      
      .join-us-overlay .enter-btn-outline {
        position: relative !important;
        width: 240px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fdfcf8 !important;
        font-size: 24px !important;
        font-weight: bold !important;
        letter-spacing: 4px !important;
        cursor: pointer !important;
        font-family: "Fredoka", "KaiTi", cursive !important;
      }

      
      .join-us-overlay .btn-border-svg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: none !important;
      }

      
      @keyframes coreFloat {
        0%,
        100% {
          transform: translateY(0) scale(1);
        }
        50% {
          transform: translateY(-10px) scale(1.02);
        }
      }

      @keyframes ringWobble {
        0% {
          transform: rotate(0deg) scale(1, 1);
        }
        50% {
          transform: rotate(180deg) scale(1.05, 0.95);
        }
        100% {
          transform: rotate(360deg) scale(1, 1);
        }
      }

      @keyframes orbFloat {
        0% {
          transform: translate(0, 0);
        }
        100% {
          transform: translate(var(--mx), var(--my));
        }
      }

      
      .area-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        animation: fadeIn 0.3s ease-out !important;
      }

      .area-modal {
        width: 90% !important;
        max-width: 400px !important;
        max-height: 80vh !important;
        background: #1a1a1a !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        overflow: hidden !important;
        animation: slideUp 0.3s ease-out !important;
      }

      .area-modal-content {
        max-height: 60vh !important;
        overflow-y: auto !important;
      }

      .area-modal-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 20px !important;
        background: linear-gradient(to right, #e8a8a8, #9fbcd0) !important;
      }

      .area-modal-title {
        font-size: 18px !important;
        font-weight: bold !important;
        color: #000000 !important;
        margin: 0 !important;
      }

      .area-modal-close {
        background: none !important;
        border: none !important;
        font-size: 24px !important;
        color: #000000 !important;
        cursor: pointer !important;
        padding: 0 !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        transition: background-color 0.2s !important;
      }

      .area-modal-close:hover {
        background: rgba(0, 0, 0, 0.1) !important;
      }

      .area-modal-content {
        padding: 20px !important;
      }

      .area-modal-section {
        margin-bottom: 20px !important;
      }

      .area-modal-label {
        display: block !important;
        font-size: 14px !important;
        font-weight: bold !important;
        color: #ffffff !important;
        margin-bottom: 8px !important;
      }

      .area-modal-select {
        width: 100% !important;
        padding: 10px !important;
        background: #2a2a2a !important;
        border: 1px solid #444444 !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        font-size: 14px !important;
      }

      .area-modal-textarea {
        width: 100% !important;
        padding: 10px !important;
        background: #2a2a2a !important;
        border: 1px solid #444444 !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        font-size: 14px !important;
        min-height: 100px !important;
        resize: vertical !important;
      }

      .area-modal-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 15px 20px !important;
        background: #1a1a1a !important;
        border-top: 1px solid #333333 !important;
      }

      .area-modal-btn-group {
        display: flex !important;
        gap: 10px !important;
      }

      .area-modal-btn {
        padding: 10px 20px !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
      }

      .area-modal-btn-save {
        background: linear-gradient(to right, #e8a8a8, #9fbcd0) !important;
        color: #000000 !important;
      }

      .area-modal-btn-save:hover {
        opacity: 0.9 !important;
        transform: translateY(-1px) !important;
      }

      .area-modal-btn-close {
        background: #444444 !important;
        color: #ffffff !important;
      }

      .area-modal-btn-close:hover {
        background: #555555 !important;
      }

      .area-modal-btn-delete {
        background: #ff4d4d !important;
        color: #ffffff !important;
      }

      .area-modal-btn-delete:hover {
        background: #ff6666 !important;
      }

      .area-modal-multiselect {
        max-height: 120px;
        overflow-y: auto;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 8px;
        background: #f8f6f0;
      }

      .area-modal-checkbox {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
      }

      .area-modal-checkbox input[type="checkbox"] {
        margin-right: 8px;
      }

      .area-modal-checkbox label {
        font-size: 12px;
        color: #5a5f4d;
        cursor: pointer;
      }

      
      .saved-areas-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
      }

      .saved-areas-container {
        background: #f8f6f0;
        border-radius: 12px;
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      }

      .saved-areas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #e0e0e0;
      }

      .saved-areas-header h3 {
        margin: 0;
        color: #5a5f4d;
        font-size: 16px;
      }

      .saved-areas-close {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #5a5f4d;
      }

      .saved-areas-content {
        padding: 16px;
      }

      .saved-area-item {
        margin-bottom: 16px;
        padding: 12px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      }

      .saved-area-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-left: 8px;
        border-left: 4px solid #e8a8a8;
      }

      .saved-area-header h4 {
        margin: 0;
        color: #5a5f4d;
        font-size: 14px;
      }

      .saved-area-time {
        font-size: 10px;
        color: #8e9282;
      }

      .saved-area-details {
        font-size: 12px;
      }

      .saved-area-detail {
        margin-bottom: 8px;
        display: flex;
        align-items: flex-start;
      }

      .saved-area-label {
        width: 80px;
        color: #8e9282;
        flex-shrink: 0;
      }

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

      .saved-area-tag {
        padding: 2px 8px;
        background: #f8f6f0;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        font-size: 10px;
        color: #5a5f4d;
      }

      
      .saved-area-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e0e0e0;
      }

      .saved-area-btn {
        flex: 1;
        padding: 6px 12px;
        border: none;
        border-radius: 6px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .saved-area-btn-select {
        background: #a8d8b8;
        color: white;
      }

      .saved-area-btn-select:hover {
        background: #98c8a8;
      }

      .saved-area-btn-edit {
        background: #b8bedd;
        color: white;
      }

      .saved-area-btn-edit:hover {
        background: #a8aedd;
      }

      .saved-area-btn-delete {
        background: #f0a6ca;
        color: white;
      }

      .saved-area-btn-delete:hover {
        background: #e096ba;
      }

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

      /* ==================== 区域详情页 (AreaDetailPage) 现代雅致重构 ==================== */
      .ad-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 99999 !important;
        width: 100%;
        height: 100vh;
        background-color: #F8F6F0; 
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      }

      .ad-nav {
        min-height: 52px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        background: rgba(248, 246, 240, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 20;
      }

      .ad-scroll-content {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        padding-bottom: 80px;
      }

      .post-detail-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 99999 !important;
        width: 100%;
        height: 100vh;
        background-color: #F8F6F0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      }

      /* 区域顶部艺术卡片 */
      .ad-hero-banner {
        position: relative;
        border-radius: 20px;
        padding: 20px;
        color: #fff;
        margin-bottom: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .ad-hero-bg-overlay {
        position: absolute;
        top: -20px;
        right: -20px;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
        pointer-events: none;
      }

      .ad-hero-header {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .ad-hero-icon-box {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
      }

      .ad-hero-titles {
        display: flex;
        flex-direction: column;
        gap: 2px;
      }

      .ad-hero-title {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .ad-hero-badge {
        font-size: 11px;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.25);
        padding: 2px 8px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.35);
      }

      .ad-hero-tagline {
        font-size: 12px;
        opacity: 0.88;
        font-weight: 400;
      }

      .ad-hero-desc-card {
        background: rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.95);
      }

      /* 板块筛选胶囊栏 */
      .ad-section-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        overflow-x: auto;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      .ad-section-bar::-webkit-scrollbar {
        display: none;
      }

      .ad-section-chip {
        padding: 6px 14px;
        border-radius: 16px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
        border: 1px solid #E5E0D6;
        background: #FFF;
        color: #555;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
      }

      .ad-section-chip:hover {
        background: #F2EFE8;
      }

      .ad-section-chip.active {
        background: #D6724B;
        color: #FFF;
        border-color: #D6724B;
        box-shadow: 0 4px 12px rgba(214, 114, 75, 0.28);
      }

      .ad-section-chip.add-chip {
        background: rgba(0, 0, 0, 0.02);
        color: #888;
        border: 1px dashed #CCC;
      }

      .ad-section-chip.add-chip:hover {
        background: #EEE;
        color: #333;
      }

      /* 帖子卡片流 */
      .ad-post-feed {
        display: flex;
        flex-direction: column;
        gap: 14px;
      }

      .ad-post-card {
        background: #FFFFFF;
        border-radius: 18px;
        padding: 16px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
        transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .ad-post-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        border-color: rgba(214, 114, 75, 0.2);
      }

      .ad-post-card:active {
        transform: scale(0.985);
      }

      .ad-post-author-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .ad-author-info {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .ad-author-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: bold;
        color: #FFF;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      }

      .ad-author-name {
        font-size: 13px;
        font-weight: 600;
        color: #2D3748;
      }

      .ad-author-badge {
        font-size: 10px;
        font-weight: 600;
        padding: 1px 6px;
        border-radius: 6px;
        background: #F3E8DF;
        color: #D6724B;
      }

      .ad-post-time {
        font-size: 12px;
        color: #A0AEC0;
      }

      .ad-post-body {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .ad-post-title {
        font-size: 15px;
        font-weight: 700;
        color: #1A202C;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .ad-post-snippet {
        font-size: 13px;
        color: #718096;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .ad-post-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid #F6F4EE;
        margin-top: 2px;
      }

      .ad-post-tag-badge {
        font-size: 11px;
        font-weight: 500;
        color: #8C7B6C;
        background: #F5EFEB;
        padding: 2px 8px;
        border-radius: 8px;
      }

      .ad-post-actions {
        display: flex;
        align-items: center;
        gap: 14px;
      }

      .ad-action-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #8C8C8C;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        transition: color 0.2s;
      }

      .ad-action-btn.liked {
        color: #E53E3E;
      }

      .ad-action-btn.favorited {
        color: #D6724B;
      }

      /* 骨架屏 */
      .ad-skeleton-card {
        background: #FFFFFF;
        border-radius: 18px;
        padding: 16px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        gap: 12px;
        animation: pulse 1.5s ease-in-out infinite;
      }

      .ad-skeleton-line {
        height: 12px;
        background: #EAE6DE;
        border-radius: 6px;
      }

      /* ==================== 帖子详情页 (PostDetailPage) 样式 ==================== */
      .pd-main-card {
        background: #FFFFFF;
        border-radius: 20px;
        padding: 20px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 14px;
      }

      .pd-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .pd-author-info {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .pd-author-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #D6724B;
        color: #FFF;
        font-weight: bold;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(214, 114, 75, 0.25);
        flex-shrink: 0;
      }

      .pd-title {
        font-size: 18px;
        font-weight: 700;
        color: #1A202C;
        line-height: 1.45;
      }

      .pd-content {
        font-size: 14.5px;
        line-height: 1.8;
        color: #4A5568;
        white-space: pre-wrap;
        word-break: break-word;
      }

      .pd-interaction-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        background: #F9F7F2;
        border-radius: 14px;
        margin-top: 4px;
      }

      .pd-reply-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        padding: 0 4px;
      }

      .pd-reply-title {
        font-size: 15px;
        font-weight: 700;
        color: #2D3748;
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .pd-role-card {
        background: #F3F8F6;
        border: 1px solid #D6E8E3;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 2px 10px rgba(78, 140, 126, 0.05);
      }

      .pd-npc-card {
        background: #FFFFFF;
        border: 1px solid #EFEAE1;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
      }

      .pd-nested-thread {
        margin-left: 24px;
        margin-top: 8px;
        padding: 10px 14px;
        background: rgba(0, 0, 0, 0.025);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      .pd-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(248, 246, 240, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding: 10px 16px calc(10px + var(--safe-bottom, 0px));
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 100;
      }

      /* ==================== 区域详情页样式结束 ==================== */
        
      .incall-container {
        position: absolute;
        inset: 0;
        background: #000;
        z-index: 2001;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        font-family: "SimSun", "Songti SC", serif; 
      }

      
      .incall-top-status {
        margin-top: 60px;
        color: #d4b275; 
        font-size: 20px;
        letter-spacing: 2px;
        font-weight: bold;
      }

      
      .incall-top-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 24px;
        height: 24px;
        border: 1px solid #8c7a6b;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #d4b275;
      }

      
      .incall-dashed-box {
        width: 160px;
        height: 200px;
        border: 3px dashed rgba(200, 200, 200, 0.5); 
        margin-top: 30px;
        border-radius: 2px;
      }

      
      .incall-dialogue-area {
        flex: 1;
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px; 
        margin-bottom: 10px;
        overflow-y: auto;
        
      }

      
      .incall-bubble-wrapper:first-child {
        margin-top: auto;
      }

      
      .incall-dialogue-area::-webkit-scrollbar {
        width: 6px;
      }

      .incall-dialogue-area::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
      }

      .incall-dialogue-area::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 3px;
      }

      .incall-dialogue-area::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.7);
      }

      
      .incall-dialogue-area {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.5) rgba(0, 0, 0, 0.3);
      }

      
      .incall-bubble-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: flex-end; 
      }

      
      .incall-name-tag {
        position: absolute;
        top: -14px;
        right: 12px; 
        background: linear-gradient(
          180deg,
          #5e4b35 0%,
          #3d3223 100%
        ); 
        border: 1px solid #8c7a6b;
        color: #d4b275; 
        font-size: 14px;
        padding: 2px 16px;
        border-radius: 12px; 
        z-index: 2;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .incall-name-tag::before,
      .incall-name-tag::after {
        content: "";
        width: 3px;
        height: 3px;
        background: #d4b275;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
      }
      .incall-name-tag::before {
        left: 6px;
      }
      .incall-name-tag::after {
        right: 6px;
      }

      
      .incall-bubble-body {
        width: 280px; 
        height: 50px;
        background: rgba(220, 220, 220, 0.85); 
        border-radius: 25px; 
        box-shadow:
          inset 0 0 10px rgba(255, 255, 255, 0.3),
          0 4px 10px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
      }

      
      .incall-bottom-bar {
        width: 100%;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 20px;
        gap: 20px;
      }

      .incall-mic-icon {
        width: 28px;
        height: 28px;
        color: #ccc;
        cursor: pointer;
      }

      .incall-input-pill {
        width: 180px;
        height: 40px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
      }

      .incall-arrow-icon {
        width: 28px;
        height: 28px;
        color: #fff;
        cursor: pointer;
      }

      
      .bamboo-page-container {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1200;
        background: radial-gradient(
          circle at 30% 30%,
          #f9f5e8 0%,
          #f1ebd8 70%,
          #dcd4bc 100%
        );
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow: hidden;
        font-family: "Zhi Mang Xing", "STKaiti", "Kaiti TC", "KaiTi", serif;
        --bamboo-light: #fdf5d6;
        --bamboo-mid: #e1c48e;
        --bamboo-dark: #b88d55;
        --bamboo-shadow: #7a5a30;
        --rope-light: #eaddbd;
        --rope-dark: #a88a5c;
        --text-color: #3b2e21;
        box-sizing: border-box;
      }

      .bamboo-page-container .watermark {
        padding: 5px 10px;
        border: 1px solid rgba(138, 114, 80, 0.3);
        border-radius: 16px;
        color: #5a4f3f;
        font-size: 13px;
        letter-spacing: 1px;
        background: rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(4px);
        z-index: 100;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .bamboo-page-container .bamboo-scroll-wrapper {
        position: relative;
        height: 80%;
        max-height: 580px;
        min-height: 380px;
        width: 94%;
        max-width: 390px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        opacity: 0;
        animation: bambooUnroll 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 0.1s;
      }

      @keyframes bambooUnroll {
        0% {
          width: 50px;
          opacity: 1;
        }
        100% {
          width: 94%;
          opacity: 1;
        }
      }

      .bamboo-page-container .flat-area {
        display: flex;
        flex-grow: 1;
        height: 100%;
        overflow: hidden;
        position: relative;
        align-items: center;
        justify-content: flex-end;
        mask-image: linear-gradient(
          to right,
          transparent,
          black 2%,
          black 100%
        );
        -webkit-mask-image: linear-gradient(
          to right,
          transparent,
          black 2%,
          black 100%
        );
      }

      .bamboo-page-container .strip {
        flex-shrink: 0;
        width: 20px;
        height: 100%;
        margin-right: -1px;
        border-radius: 3px 3px 2px 2px;
        background: linear-gradient(
          to right,
          var(--bamboo-dark) 0%,
          var(--bamboo-mid) 15%,
          var(--bamboo-light) 40%,
          var(--bamboo-light) 60%,
          var(--bamboo-mid) 90%,
          var(--bamboo-shadow) 100%
        );
        box-shadow:
          2px 2px 6px rgba(0, 0, 0, 0.15),
          inset 1px 0px 2px rgba(255, 255, 255, 0.6);
        position: relative;
        z-index: 1;
      }

      .bamboo-page-container .strip::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: repeating-linear-gradient(
          to right,
          transparent,
          transparent 4px,
          rgba(0, 0, 0, 0.02) 5px,
          transparent 6px
        );
        pointer-events: none;
      }

      .bamboo-page-container .ropes {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        pointer-events: none;
        z-index: 10;
      }

      .bamboo-page-container .rope {
        position: absolute;
        left: 0;
        right: -20px;
        height: 6px;
        background: repeating-linear-gradient(
          45deg,
          var(--rope-light) 0%,
          var(--rope-light) 2px,
          var(--rope-dark) 3px,
          var(--rope-dark) 4px
        );
        border-radius: 3px;
        box-shadow:
          0 3px 4px rgba(0, 0, 0, 0.3),
          inset 0 1px 1px rgba(255, 255, 255, 0.4);
        mask-image: repeating-linear-gradient(
          to right,
          black 0%,
          black 90%,
          rgba(0, 0, 0, 0.5) 95%,
          black 100%
        );
        -webkit-mask-image: repeating-linear-gradient(
          to right,
          black 0%,
          black 90%,
          rgba(0, 0, 0, 0.5) 95%,
          black 100%
        );
      }

      .bamboo-page-container .rope-top {
        top: 25%;
      }
      .bamboo-page-container .rope-bottom {
        bottom: 25%;
      }

      .bamboo-page-container .knot {
        position: absolute;
        left: -2px;
        width: 12px;
        height: 12px;
        background: radial-gradient(
          circle,
          var(--rope-light),
          var(--rope-dark)
        );
        border-radius: 50%;
        box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
        transform: translateY(-3px);
      }

      .bamboo-page-container .roll-area {
        width: 60px;
        height: 102%;
        background: linear-gradient(
          to right,
          var(--bamboo-shadow) 0%,
          var(--bamboo-mid) 20%,
          var(--bamboo-light) 50%,
          var(--bamboo-mid) 85%,
          #4a3318 100%
        );
        border-radius: 12px;
        box-shadow:
          -8px 0 15px rgba(0, 0, 0, 0.4),
          15px 15px 25px rgba(0, 0, 0, 0.25),
          inset -3px 0 10px rgba(0, 0, 0, 0.6);
        position: relative;
        z-index: 20;
        flex-shrink: 0;
      }

      .bamboo-page-container .roll-area::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 12px;
        background: repeating-linear-gradient(
          to right,
          transparent 0%,
          transparent 8%,
          rgba(0, 0, 0, 0.15) 9%,
          rgba(0, 0, 0, 0.3) 10%
        );
      }

      .bamboo-page-container .content-layer {
        position: absolute;
        top: 8%;
        bottom: 8%;
        left: 10px;
        right: 68px;
        z-index: 25;
        writing-mode: vertical-rl;
        color: var(--text-color);
        font-size: 15px;
        line-height: 24px;
        opacity: 0;
        animation: bambooTextFadeIn 0.8s ease forwards;
        animation-delay: 1.2s;
        pointer-events: auto;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: calc(100% - 75px);
        max-height: 84%;
      }

      .bamboo-page-container .content-layer h1 {
        margin: 0 12px 0 0;
        font-size: 1.4em;
        letter-spacing: 4px;
        font-weight: bold;
      }

      .bamboo-page-container .content-layer p {
        margin: 0 10px 0 0;
        letter-spacing: 2px;
        text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4);
      }

      @keyframes bambooTextFadeIn {
        to {
          opacity: 0.95;
        }
      }

      
      .traj-overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: #f2ebd9; 
        z-index: 1200;
        display: flex;
        flex-direction: column;
        padding: 16px 14px;
        font-family: "SimSun", "STKaiti", serif;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
      }

      .traj-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
      }

      .traj-date {
        color: #8c917b;
        font-size: 13px;
        letter-spacing: 1px;
      }

      .traj-title {
        font-size: 18px;
        font-weight: bold;
        color: #5a5f4d;
        margin-top: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .traj-back-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(90, 95, 77, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #5a5f4d;
        font-size: 18px;
        transition: background 0.2s ease;
      }

      .traj-back-btn:hover {
        background: rgba(90, 95, 77, 0.2);
      }

      .traj-categories {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-bottom: 12px;
      }

      .traj-cat-box {
        border: 1px solid #8c917b;
        border-radius: 4px;
        padding: 2px 8px;
        font-size: 12px;
        color: #5a5f4d;
        background: rgba(255, 255, 255, 0.4);
      }

      .traj-main-grid {
        display: grid;
        grid-template-columns: 80px 1fr;
        flex: 1;
        min-height: 440px;
        position: relative;
      }

      .traj-time-axis {
        display: flex;
        flex-direction: column;
      }

      .traj-period-group {
        display: flex;
        margin-bottom: 4px;
        min-height: 96px;
      }

      .traj-period-label {
        width: 24px;
        background: #e8c3a8; 
        color: white;
        writing-mode: vertical-rl;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        padding: 4px 0;
        border-radius: 4px 0 0 4px;
      }

      .traj-slots {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1;
      }

      .traj-slot-cell {
        background: #ded6c5;
        color: white;
        font-size: 12px;
        padding: 6px 4px;
        text-align: center;
        border-radius: 0 4px 4px 0;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .traj-content-area {
        position: relative;
        padding-left: 8px;
        min-height: 440px;
      }

      .traj-card {
        position: absolute;
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.3;
        color: white;
        border-radius: 8px;
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
        overflow: hidden;
        cursor: pointer;
        box-sizing: border-box;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      .traj-card:hover {
        transform: scale(1.04);
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.18);
      }

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

      
      .stats-page-container {
        position: absolute;
        inset: 0;
        background: #fdfcf8;
        z-index: 600;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: "PingFang SC", sans-serif;
      }
      .stats-left-main {
        flex: 1.2;
        display: flex;
        flex-direction: column;
        padding: 20px;
        position: relative;
      }
      .stats-right-sidebar {
        flex: 0.4;
        background: #fde9d2;
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
      }
      .stats-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 30px;
      }
      .industry-toggle {
        display: flex;
        alignitems: center;
        gap: 10px;
        font-size: 28px;
        font-weight: bold;
        color: #b8bedd;
      }
      .stats-chart-area {
        flex: 1;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        padding: 0 10px 40px;
        position: relative;
      }
      .stats-bar {
        width: 40px;
        background: #f2d0d0;
        border-radius: 20px;
        transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
      }
      .province-label {
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        font-size: 14px;
        color: #b8bedd;
        font-weight: bold;
      }
      .stats-circles {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
      }
      .stats-circle {
        width: 35px;
        height: 35px;
        background: #f0f7db;
        border-radius: 50%;
      }
      .sidebar-top-box {
        width: 100%;
        height: 40px;
        background: #fff;
        border: 2px dashed #dcd6c5;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #dcd6c5;
      }
      .sidebar-pill {
        width: 100%;
        height: 35px;
        background: #fff;
        border-radius: 18px;
      }

      
      .han-map-overlay {
        position: absolute;
        inset: 0;
        background: #f4f1e8; 
        z-index: 300;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: hidden;
      }
      .han-map-overlay.open {
        transform: translateY(0);
      }
      .han-map-svg-wrapper {
        flex: 1;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        
        background-image:
          linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
        background-size: 20px 20px;
        touch-action: pan-x pan-y;
      }
      .map-polygon {
        stroke: #6d635b;
        stroke-width: 2;
        stroke-linejoin: round;
        transition: all 0.3s ease;
        cursor: pointer;
      }
      .map-polygon:active,
      .map-polygon.active {
        stroke: #fff;
        stroke-width: 4;
        filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.3));
        transform: scale(1.01);
        transform-origin: center;
      }
      .map-text {
        font-family: "Zhi Mang Xing", "KaiTi", serif;
        font-size: 22px;
        font-weight: bold;
        fill: #4a453d;
        pointer-events: none;
        text-anchor: middle;
        dominant-baseline: middle;
        text-shadow: 0px 1px 3px rgba(255, 255, 255, 0.8);
      }
      .map-info-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(253, 252, 248, 0.95);
        backdrop-filter: blur(12px);
        border-radius: 28px 28px 0 0;
        padding: 30px 24px 40px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 10;
        border-top: 1px solid rgba(255, 255, 255, 0.8);
      }
      .map-info-panel.show {
        transform: translateY(0);
      }
      .map-info-title {
        font-size: 24px;
        font-weight: bold;
        color: #5a5f4d;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .map-info-tag {
        font-size: 12px;
        padding: 4px 10px;
        background: #e8e5d9;
        border-radius: 12px;
        color: #8c917b;
      }

      /* T13 献帝晴雨表 1:1 复刻样式 */
      .emperor-bg {
        background-color: #a8c8ba !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 950 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 16px 20px 24px !important;
        font-family: "Noto Sans SC", sans-serif !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
      }
      .emperor-header {
        display: flex !important;
        gap: 16px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
        align-items: center !important;
      }
      .emperor-avatar-box {
        width: 130px !important;
        height: 130px !important;
        min-width: 130px !important;
        background-color: #cde3da !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        overflow: hidden !important;
        border: 2px dashed rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        position: relative !important;
      }
      .emperor-avatar-box svg {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
        fill: #ffffff !important;
        display: block !important;
      }
      .emperor-avatar-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
      }
      .emperor-stats {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
      }
      .stat-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
      }
      .stat-bar-container {
        flex: 1 !important;
        height: 16px !important;
        border: 2px dashed #ffffff !important;
        border-radius: 10px !important;
        position: relative !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.2) !important;
      }
      .stat-bar-fill {
        height: 100% !important;
        background: #cde3da !important;
        border-radius: 8px !important;
        transition: width 0.5s ease !important;
      }
      .emperor-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 16px !important;
        width: 100% !important;
      }
      .action-btns {
        display: flex !important;
        gap: 12px !important;
      }
      .ebtn {
        background: #e8f1ed !important;
        color: #6d887b !important;
        padding: 8px 22px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        font-weight: bold !important;
        border: none !important;
        cursor: pointer !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
        transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
      }
      .ebtn:active {
        transform: scale(0.94) !important;
        opacity: 0.9 !important;
      }
      .traffic-lights {
        display: flex !important;
        gap: 8px !important;
      }
      .light {
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
      }
      .emperor-dialog {
        background: #ffffff !important;
        border-radius: 20px !important;
        min-height: 100px !important;
        max-height: 130px !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
        box-sizing: border-box !important;
      }
      .emperor-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin-top: auto !important;
        width: 100% !important;
      }
      .pie-chart {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        border-radius: 50% !important;
        background: conic-gradient(
          #ffffff 0% 33%,
          #ff6b6b 33% 66%,
          #8fa99d 66% 100%
        ) !important;
        position: relative !important;
        border: 3px solid #ff6b6b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
      }
      .pie-label {
        position: absolute !important;
        font-size: 11px !important;
        font-weight: bold !important;
        color: #333333 !important;
      }
      .info-box {
        background: #e8f1ed !important;
        flex: 1 !important;
        height: 75px !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        box-sizing: border-box !important;
      }
      .red-dot {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        background: #ff6b6b !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.7) !important;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
      }
      .red-dot:active {
        transform: scale(1.25) !important;
      }

      
      @keyframes slideUp {
        from {
          transform: translateY(100%);
          opacity: 0;
        }
        to {
          transform: translateY(0);
          opacity: 1;
        }
      }

      
      .tg-bg {
        position: absolute;
        inset: 0;
        z-index: 700;
        background-color: #f7bcc3; 
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        touch-action: none;
      }
      .tg-board {
        position: relative;
        width: 350px;
        height: 350px; 
      }
      
      .tg-square {
        position: absolute;
        width: 65px;
        height: 65px;
        background-color: #fef6d1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 28px;
      }
      
      .tg-circle {
        position: absolute;
        width: 55px;
        height: 55px;
        background-color: #fdf119;
        border-radius: 50%;
      }
      
      .tg-pill {
        position: absolute;
        width: 32px;
        height: 18px;
        background-color: #ff8786;
        border-radius: 8px;
      }
      .tg-pill.v {
        width: 18px;
        height: 32px;
      } 

      
      .starchart-overlay {
        position: absolute;
        inset: 0;
        z-index: 900;
        background: radial-gradient(circle at center, #1a1b3a 0%, #0a0b16 100%);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        width: 100%;
        height: 100%;
      }
      .star-node {
        fill: #fff !important;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
        transform-box: fill-box;
      }
      .star-line {
        stroke: rgba(255, 255, 255, 0.75) !important;
        stroke-width: 1.5 !important;
        transition: all 0.8s ease-in-out;
      }
      .star-glow {
        stroke: rgba(255, 255, 255, 0.35) !important;
        stroke-width: 4 !important;
        fill: none !important;
        filter: blur(2px);
        transition: all 0.8s ease-in-out;
      }
      .pulse-anim {
        animation: starPulse 3s infinite ease-in-out;
      }
      @keyframes starPulse {
        0%,
        100% {
          opacity: 0.6;
        }
        50% {
          opacity: 1;
        }
      }
      .constellation-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #5a5f4d;
        border: 2px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        position: relative;
        transition: transform 0.3s;
      }
      .constellation-btn:active {
        transform: scale(0.9);
      }

      
      .butterfly-effect-overlay {
        position: absolute;
        inset: 0;
        background: #000; 
        z-index: 900;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        overflow: hidden;
        animation: fadeIn 0.8s ease-in-out;
      }
      .be-infinity-container {
        position: relative;
        width: 320px;
        height: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .be-dot {
        position: absolute;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        transition: transform 0.3s ease;
      }
      .be-line-dashed {
        margin-top: 100px;
        width: 180px;
        border-bottom: 3px dashed #fff;
        opacity: 0.8;
      }
      .be-back-btn {
        position: absolute;
        top: 40px;
        right: 25px;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        opacity: 0.6;
      }

      
      /* 沙盘模拟器专用样式 */
      .sand-table-overlay {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 950 !important;
        background: #f2ebe3 !important; 
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
      }
      .sand-grid-container {
        flex: 1 !important;
        position: relative !important;
        overflow: auto !important;
        background-image:
          radial-gradient(#e8ded6 2px, transparent 2px),
          radial-gradient(#e8ded6 2px, #f2ebe3 2px) !important;
        background-size: 40px 40px !important; 
        background-repeat: repeat !important;
        background-position: 0 0 !important;
        cursor: grab !important;
        touch-action: none !important;
        width: 100% !important;
        height: 100% !important;
      }
      .placed-emoji {
        position: absolute !important;
        font-size: 32px !important;
        user-select: none !important;
        cursor: move !important;
        transition: transform 0.1s ease !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
      }
      .element-controls {
        position: absolute !important;
        top: -42px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        gap: 6px !important;
        background: rgba(30, 30, 30, 0.85) !important;
        padding: 5px 8px !important;
        border-radius: 20px !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        z-index: 25 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
      }
      .control-btn {
        padding: 4px 10px !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        color: white !important;
      }
      .flip-btn {
        background: rgba(102, 126, 234, 0.9) !important;
      }
      .delete-btn {
        background: rgba(239, 83, 80, 0.9) !important;
      }
      .detail-btn {
        background: rgba(66, 165, 245, 0.9) !important;
      }
      .control-btn:hover, .control-btn:active {
        transform: scale(1.05) !important;
        opacity: 1 !important;
      }
      .connect-btn {
        background: rgba(168, 200, 186, 0.9) !important;
      }
      .modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1000 !important;
      }
      .write-modal {
        background: white !important;
        border-radius: 20px !important;
        padding: 20px !important;
        width: 90% !important;
        max-width: 500px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
      }
      .write-modal h3 {
        margin-top: 0 !important;
        color: #333 !important;
        text-align: center !important;
      }
      .write-input-container {
        margin: 20px 0 !important;
      }
      .write-input {
        width: 100% !important;
        padding: 12px !important;
        border: 1px solid #ddd !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        resize: vertical !important;
        min-height: 200px !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        font-family: inherit !important;
        box-sizing: border-box !important;
      }
      .generate-btn {
        width: 100% !important;
        padding: 12px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        font-weight: bold !important;
      }
      .generate-btn:hover, .generate-btn:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
      }
      .top-glass-nav {
        position: absolute !important;
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 88% !important;
        max-width: 320px !important;
        padding: 10px 12px !important;
        background: rgba(255, 255, 255, 0.65) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-radius: 30px !important;
        display: flex !important;
        gap: 8px !important;
        z-index: 100 !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
      }
      .top-glass-nav.collapsed {
        transform: translate(-50%, -80px) !important;
        opacity: 0 !important;
      }
      .morandi-glass-btn {
        flex: 1 !important;
        border: none !important;
        padding: 8px 6px !important;
        border-radius: 20px !important;
        background: rgba(168, 200, 186, 0.85) !important; 
        color: #43554b !important;
        font-size: 12px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
        text-align: center !important;
      }
      .morandi-glass-btn:active {
        transform: scale(0.95) !important;
        opacity: 0.85 !important;
      }
      .item-bar-bottom {
        height: 105px !important;
        min-height: 105px !important;
        background: #ffffff !important;
        padding: 12px 18px !important;
        display: flex !important;
        gap: 14px !important;
        overflow-x: auto !important;
        border-top-left-radius: 28px !important;
        border-top-right-radius: 28px !important;
        box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.06) !important;
        z-index: 50 !important;
        box-sizing: border-box !important;
      }
      .emoji-item {
        min-width: 60px !important;
        height: 60px !important;
        background: #f9f7f5 !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 28px !important;
        cursor: pointer !important;
        border: 1px solid #ebe5df !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
      }
      .emoji-item:active {
        transform: scale(0.93) !important;
      }
      
      .re-book-container {
        perspective: 1500px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 60vh;
      }
      .re-book {
        width: 200px;
        height: 280px;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
      }
      .re-book.open {
        transform: rotateY(-180deg) translateX(100px);
      }
      .re-book-cover,
      .re-book-back,
      .re-book-page {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 4px 16px 16px 4px;
        backface-visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
      }
      .re-book-cover {
        background: linear-gradient(135deg, #a8c8ba 0%, #8fa99d 100%);
        z-index: 2;
        border: 4px solid #f4ebd9;
        background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20L0 20z' fill='%237C9488' fill-opacity='0.1'/%3E%3C/svg%3E");
      }
      .re-book-page {
        background: #fdfcf8;
        z-index: 1;
        padding: 20px;
      }
      .re-book-cover h4 {
        color: #fdfcf8;
        font-family: "Zhi Mang Xing", serif;
        font-size: 24px;
        writing-mode: vertical-rl;
        letter-spacing: 4px;
      }
      
      .duo-btn {
        background: white;
        border: none;
        border-bottom: 4px solid #e5e5e5;
        border-radius: 12px;
        padding: 10px 15px;
        font-weight: bold;
        color: #5a5f4d;
        transition: all 0.1s;
      }
      .duo-btn:active {
        border-bottom-width: 0;
        transform: translateY(4px);
      }
      .duo-btn-green {
        border-bottom-color: #89a89a;
        color: #5a8f6d;
      }
      
      .learning-overlay {
        position: absolute;
        inset: 0;
        z-index: 850;
        background-color: #fffcf7;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        animation: slideUp 0.3s ease-out;
      }
      .notebook-bg {
        background-color: #fffcf7;
        background-image: linear-gradient(#e4e3d6 1px, transparent 1px);
        background-size: 100% 2.5rem;
      }
      .path-curve {
        stroke-dasharray: 8 8;
      }
      .three-d-card {
        box-shadow: 0 8px 0 0 rgba(0, 0, 0, 0.05);
        transition:
          transform 0.2s,
          box-shadow 0.2s;
        position: relative;
        overflow: hidden;
      }
      .three-d-card:active {
        transform: translateY(4px);
        box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.05);
      }
      .three-d-card::before,
      .three-d-card::after {
        content: "";
        position: absolute;
        width: 20%;
        height: 20%;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 5;
        pointer-events: none;
        opacity: 0;
      }
      .three-d-card::before {
        top: 0;
        right: 0;
        background: rgba(206, 216, 195, 0.4);
        border-bottom-left-radius: 100%;
      }
      .three-d-card::after {
        bottom: 0;
        left: 0;
        background: rgba(210, 230, 236, 0.8);
        border-top-right-radius: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: "Plus Jakarta Sans", sans-serif;
        font-weight: 800;
        color: #565e4e;
        font-size: 0.875rem;
      }
      .three-d-card:hover::before,
      .three-d-card:hover::after {
        width: 100%;
        height: 100%;
        border-radius: 0;
        opacity: 1;
      }
      .three-d-card:hover::after {
        content: "开始学习";
      }
      .three-d-card:hover .relative.z-10 {
        opacity: 0;
        transition: opacity 0.3s ease;
      }
      .pin-shadow {
        filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.1));
      }
      .morandi-button {
        background-color: #eaddca;
        border: 2px dashed #daa06d;
        border-radius: 15px;
        box-shadow: 0 4px 0 0 #daa06d;
        transition: all 0.2s ease;
      }
      .morandi-button:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0 0 #daa06d;
      }
      .morandi-button-primary {
        background-color: #ced8c3;
        border: 2px dashed #98a18e;
        border-radius: 15px;
        box-shadow: 0 4px 0 0 #98a18e;
        transition: all 0.2s ease;
      }
      .morandi-button-primary:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0 0 #98a18e;
      }

      
      .perspective-1000 {
        perspective: 1000px;
      }
      .preserve-3d {
        transform-style: preserve-3d;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .backface-hidden {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
      }
      .rotate-y-180 {
        transform: rotateY(180deg);
      }
      .flip-active {
        transform: rotateY(180deg);
      }

      
      .t9-companion-modal {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fdfcf8;
        border-radius: 32px 32px 0 0;
        padding: 30px 24px 40px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
        animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
      }
      .t9-companion-mask {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 999;
        animation: fadeIn 0.3s ease-out;
      }
      .breathing-avatar-container {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        margin: 20px auto;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .breathing-avatar-container::before {
        content: "";
        position: absolute;
        inset: -15px;
        border-radius: 50%;
        background: rgba(168, 200, 186, 0.4);
        animation: breathingGlow 3s infinite ease-in-out;
        z-index: 0;
      }
      .breathing-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 4px solid #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 1;
        object-fit: cover;
        background-color: #e8c3a8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: white;
        font-weight: bold;
        animation: breatheScale 3s infinite ease-in-out;
      }
      @keyframes breathingGlow {
        0%,
        100% {
          transform: scale(1);
          opacity: 0.4;
        }
        50% {
          transform: scale(1.2);
          opacity: 0.1;
        }
      }
      @keyframes breatheScale {
        0%,
        100% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.02);
        }
      }
      .companion-form-group {
        margin-bottom: 20px;
      }
      .companion-label {
        font-size: 14px;
        font-weight: bold;
        color: #8c917b;
        margin-bottom: 8px;
        display: block;
      }
      .companion-input {
        width: 100%;
        padding: 14px;
        border: 1px solid #eae6d6;
        border-radius: 16px;
        background: #fff;
        outline: none;
        color: #5a5f4d;
        font-size: 15px;
      }
      .companion-type-btn {
        flex: 1;
        padding: 14px;
        text-align: center;
        border-radius: 16px;
        font-weight: bold;
        font-size: 14px;
        transition: all 0.2s;
        cursor: pointer;
      }

/* Auto-hide overlays when not in .open state */
.settings-overlay:not(.open),
.weather-overlay:not(.open),
.calendar-overlay:not(.open),
.music-overlay:not(.open),
.reader-overlay:not(.open),
.forum-overlay:not(.open),
.msg-overlay:not(.open),
.t9-overlay:not(.open),
.t10-overlay:not(.open),
.decoction-overlay:not(.open),
.t11-overlay:not(.open),
.t12-overlay:not(.open),
.t13-overlay:not(.open),
.chat-detail-overlay:not(.open),
.reader-detail-overlay:not(.open),
.activity-overlay:not(.open),
.bells-overlay:not(.open),
.vn-overlay:not(.open),
.traj-overlay:not(.open),
.han-map-overlay:not(.open),
.starchart-overlay:not(.open),
.butterfly-effect-overlay:not(.open),
.sand-table-overlay:not(.open),
.learning-overlay:not(.open) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Backup global rule - strictly for app pages, excluding all internal dialogs and modals */
[class*="-overlay"]:not(.open):not([class*="modal"]):not([class*="ambient"]):not(.ambient-overlay):not(.agent-private-room-overlay):not(.calendar-modal-overlay):not(.join-us-overlay):not(.area-modal-overlay):not(.saved-areas-overlay):not(.wechat-voice-call-overlay):not(.wechat-voice-call-screen):not(.lockscreen-modal-overlay):not(.lockscreen-action-menu-overlay) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ==================== 锁屏个性化装扮设置弹窗样式 ==================== */
.lockscreen-modal-overlay, .lockscreen-modal-overlay.open, .lockscreen-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.25s ease-out;
}

.lockscreen-settings-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: #fdfcf8;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpSmooth 0.3s ease-out;
}

.lockscreen-settings-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lockscreen-tab-btn {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #6d735b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lockscreen-tab-btn.active {
  background: #6d735b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(109, 115, 91, 0.25);
}

.lockscreen-settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.lockscreen-setting-group {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.lockscreen-setting-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5040;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lockscreen-range-input {
  width: 100%;
  accent-color: #6d735b;
  cursor: pointer;
}

.lockscreen-preset-chip {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lockscreen-preset-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.lockscreen-css-textarea {
  width: 100%;
  height: 160px;
  background: #23282b;
  color: #8be9fd;
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #3c4247;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}

/* ==================== 折叠卡片个性化装扮弹窗样式 ==================== */
.foldcard-modal-overlay,
.foldcard-modal-overlay.open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 3000 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  animation: fadeIn 0.25s ease-out !important;
}

.foldcard-settings-sheet {
  width: 100% !important;
  max-width: 480px !important;
  max-height: 85vh !important;
  background: #fdfcf8 !important;
  border-radius: 28px 28px 0 0 !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: slideUpSmooth 0.3s ease-out !important;
  box-sizing: border-box !important;
}

.foldcard-settings-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.foldcard-tab-btn {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #6d735b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.foldcard-tab-btn.active {
  background: #6d735b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(109, 115, 91, 0.25) !important;
}

.foldcard-settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.foldcard-setting-group {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.foldcard-setting-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5040;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foldcard-range-input {
  width: 100%;
  accent-color: #6d735b;
  cursor: pointer;
}

.foldcard-preset-chip {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.foldcard-preset-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.foldcard-css-textarea {
  width: 100%;
  height: 180px;
  background: #23282b;
  color: #a6e22e;
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #3c4247;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}

/* ==========================================================================
   AI 推荐回复灵感抽屉与卡片样式 (AI Reply Suggestions)
   ========================================================================== */
.chat-suggest-panel {
  height: 275px;
  background: #fbf9f5;
  border-top: 1px solid rgba(214, 114, 75, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 10;
  animation: slideUp 0.2s ease-out;
  user-select: none;
}

.suggest-header {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.suggest-card-list {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.suggest-card {
  background: #ffffff;
  border: 1px solid #ebd9c8;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.suggest-card:hover {
  background: #fff8f0;
  border-color: #d6724b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(214, 114, 75, 0.15);
}

.suggest-card:active {
  transform: scale(0.985);
}

.suggest-tag {
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fbeee6;
  color: #d6724b;
  white-space: nowrap;
  flex-shrink: 0;
}

.suggest-text {
  font-size: 12px;
  color: #4a3e35;
  line-height: 1.45;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.suggest-insert-hint {
  font-size: 10px;
  color: #a89f91;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.suggest-card:hover .suggest-insert-hint {
  color: #d6724b;
  font-weight: 500;
}

.suggest-footer {
  padding: 6px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  background: rgba(255, 255, 255, 0.4);
}

.suggest-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6cbb8;
  transition: all 0.2s ease;
  cursor: pointer;
}

.suggest-dot.active {
  width: 18px;
  border-radius: 4px;
  background: #d6724b;
}

@keyframes spin-anim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spinning-anim {
  animation: spin-anim 1s linear infinite;
}


/* ================= 心纸居（放置小人互动空间）专属样式 ================= */
.mansion-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #231c19;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  user-select: none;
}

.mansion-blur-in {
  animation: mansionBlurIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mansion-blur-out {
  animation: mansionBlurOut 0.35s ease forwards;
}

@keyframes mansionBlurIn {
  0% {
    opacity: 0;
    filter: blur(24px) brightness(1.25);
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: scale(1);
  }
}

@keyframes mansionBlurOut {
  0% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.96);
  }
}

.mansion-room-viewport {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  background-color: #2b2623;
  background-image: url('graph/house-plain.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  touch-action: none;
}

.mansion-char-entity {
  position: absolute;
  transform-origin: bottom center;
  will-change: transform, left, top;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: filter 0.2s ease;
}

.mansion-char-entity:active {
  cursor: grabbing;
}

/* 角色呼吸与状态动画 */
.mansion-anim-idle {
  animation: charIdleBreathing 3.5s ease-in-out infinite;
}

.mansion-anim-walk {
  animation: charWaddleStep 0.4s ease-in-out infinite alternate;
}

.mansion-anim-held {
  animation: charHeldDangle 0.3s ease-in-out infinite alternate;
}

.mansion-anim-drop {
  animation: charDropSquash 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mansion-anim-poke {
  animation: charPokeReact 0.4s ease-out;
}

.mansion-anim-joy {
  animation: charJoyJump 0.6s ease-in-out infinite alternate;
}

.mansion-anim-thinking {
  animation: charThinkingFloat 1.2s ease-in-out infinite alternate;
}

@keyframes charIdleBreathing {
  0%, 100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.025, 0.975);
  }
}

@keyframes charWaddleStep {
  0% {
    transform: rotate(-5deg) translateY(-2px);
  }
  100% {
    transform: rotate(5deg) translateY(-6px);
  }
}

@keyframes charHeldDangle {
  0% {
    transform: rotate(-6deg) scale(1.15) translateY(-12px);
  }
  100% {
    transform: rotate(6deg) scale(1.15) translateY(-18px);
  }
}

@keyframes charDropSquash {
  0% {
    transform: scale(1.28, 0.72) translateY(5px);
  }
  45% {
    transform: scale(0.92, 1.08) translateY(-4px);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}

@keyframes charPokeReact {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.9) rotate(-8deg);
  }
  60% {
    transform: scale(1.1) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes charJoyJump {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  100% {
    transform: translateY(-16px) scale(1.08, 0.95);
  }
}

@keyframes charThinkingFloat {
  0% {
    transform: translateY(0px) rotate(-2deg);
  }
  100% {
    transform: translateY(-8px) rotate(2deg);
  }
}

/* 气泡与微表情 */
.mansion-speech-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(255, 252, 245, 0.96);
  border: 1.5px solid #d6a86e;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #593e25;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(110, 72, 35, 0.18);
  pointer-events: none;
  z-index: 999;
  animation: bubblePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mansion-speech-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #d6a86e transparent transparent transparent;
}

@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0px) scale(0.6);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px) scale(1);
  }
}

/* 悬浮粒子动效 */
.mansion-float-particle {
  position: absolute;
  pointer-events: none;
  font-size: 16px;
  animation: particleFloat 1s ease-out forwards;
  z-index: 1000;
}

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-5px, -28px) scale(1.25);
  }
  100% {
    opacity: 0;
    transform: translate(5px, -55px) scale(1);
  }
}

/* 心纸便签飞信动效 */
.mansion-flying-letter {
  position: absolute;
  cursor: pointer;
  z-index: 80;
  animation: letterFlutter 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 12px rgba(214, 114, 75, 0.4));
  transition: transform 0.2s;
}

.mansion-flying-letter:hover {
  transform: scale(1.15) !important;
}

@keyframes letterFlutter {
  0% {
    transform: translateY(0px) rotate(-4deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
  100% {
    transform: translateY(2px) rotate(-2deg);
  }
}

/* 吸附点涟漪 */
.mansion-anchor-point {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 215, 160, 0.45) 0%, rgba(245, 215, 160, 0) 70%);
  border: 1px dashed rgba(214, 168, 110, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.3s;
}

.mansion-anchor-point:hover {
  transform: translate(-50%, -50%) scale(1.2);
  background: radial-gradient(circle, rgba(245, 215, 160, 0.8) 0%, rgba(245, 215, 160, 0) 70%);
  border-color: #d6724b;
}

/* 拟态玻璃名士管理抽屉 */
.mansion-glass-btn {
  background: rgba(255, 248, 238, 0.16);
  border: 1px solid rgba(245, 215, 160, 0.45);
  border-radius: 20px;
  padding: 5px 12px;
  color: #ffedd5;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mansion-glass-btn:active {
  transform: scale(0.95);
  background: rgba(255, 248, 238, 0.28);
}
/* ==================== 团建活动（密探汤泉泡澡）专属样式 ==================== */
@keyframes bathBob {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(0.4deg);
  }
}

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

@keyframes bathRipple {
  0% {
    width: 24px;
    height: 12px;
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.6);
    border-color: rgba(255, 255, 255, 0.9);
  }
  50% {
    opacity: 0.55;
    border-color: rgba(180, 230, 255, 0.7);
  }
  100% {
    width: 140px;
    height: 60px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
    border-color: rgba(150, 215, 255, 0);
  }
}

@keyframes dynamicWaterRipple {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.5);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  }
  100% {
    width: 180px;
    height: 180px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
    border-color: rgba(200, 240, 255, 0);
    box-shadow: 0 0 20px rgba(200, 240, 255, 0);
  }
}

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateY(0px) scale(0.8) rotate(0deg);
  }
  30% {
    opacity: 0.6;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.4) rotate(15deg);
  }
}

@keyframes heartGlowPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(255, 105, 135, 0.6));
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 12px rgba(255, 105, 135, 0.95));
  }
}

@keyframes splashPop {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -80%) scale(1.2);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -120%) scale(1.5);
    opacity: 0;
  }
}

@keyframes rpsFlashCycle {
  0% {
    transform: scale(0.92) rotate(-6deg);
  }
  50% {
    transform: scale(1.08) rotate(6deg);
  }
  100% {
    transform: scale(0.92) rotate(-6deg);
  }
}

@keyframes rpsSettlePop {
  0% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  60% {
    transform: scale(1.25);
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.85));
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 200, 50, 0.6));
  }
}

@keyframes optionSlideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.teambuilding-container {
  animation: fadeIn 0.35s ease-out;
}

.bath-water-ripple {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  pointer-events: none;
  animation: bathRipple 3s cubic-bezier(0.1, 0.45, 0.65, 1) infinite;
}

.bath-water-ripple-2 {
  position: absolute;
  border: 1.5px solid rgba(200, 235, 255, 0.75);
  border-radius: 50%;
  pointer-events: none;
  animation: bathRipple 3s cubic-bezier(0.1, 0.45, 0.65, 1) infinite;
  animation-delay: 1.5s;
}

.bath-char-clean {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
}

/* 1:1 复刻 选项框UI 胶囊按钮 */
.bath-action-btn {
  position: relative;
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 252, 0.92) 100%);
  border: 1.5px solid #c9d8e8;
  box-shadow: 0 3px 10px rgba(100, 130, 160, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
}

.bath-action-btn:active {
  transform: scale(0.97);
  background: linear-gradient(180deg, rgba(240, 245, 252, 0.98) 0%, rgba(230, 238, 248, 0.92) 100%);
  border-color: #a8c2de;
}

@keyframes newTagToastPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.8);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.05);
  }
  20% {
    transform: translate(-50%, 0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -18px) scale(0.92);
  }
}

/* ================= 群聊 · 线下剧情模式全景场景样式 ================= */
.group-offline-scene-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

@keyframes bubbleFloatIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.6);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -15px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -30px) scale(1.5);
  }
}

.offline-tea-steam-source .steam-1 {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 240, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  animation: steamRise 3s ease-out infinite;
}

.offline-tea-steam-source .steam-2 {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 230, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
  animation: steamRise 3.5s 1.2s ease-out infinite;
}

.action-pop-btn:hover {
  background: rgba(212, 175, 55, 0.25) !important;
  border-color: #d4af37 !important;
}

.quick-actions-bar::-webkit-scrollbar {
  display: none;
}

@keyframes badgeBreatheShake {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.08) translateY(-3px);
  }
}

.offline-speech-dot-badge {
  transition: all 0.2s ease;
}

.offline-speech-dot-badge:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.6) !important;
}

.unread-glow {
  border-color: #e53e3e !important;
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.6) !important;
}



@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes elasticScale {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 传讯消息高亮与搜索跳转动效 */
@keyframes highlightMsgPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(214, 114, 75, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 16px 4px rgba(214, 114, 75, 0.55);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(214, 114, 75, 0);
  }
}

.chat-msg-highlight {
  animation: highlightMsgPulse 1.4s ease-in-out !important;
  border-radius: 14px;
}

.chat-msg-search-match .msg-bubble,
.chat-msg-search-match .construct-card-bubble-container {
  outline: 2.5px solid #d6724b !important;
  outline-offset: 3px;
  box-shadow: 0 0 12px rgba(214, 114, 75, 0.4) !important;
}

.chat-scroll-bottom-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(214, 114, 75, 0.25) !important;
}

.chat-scroll-bottom-fab:active {
  transform: translateY(0) scale(0.96);
}



/* =========================================================
   【手账达人】3D 拟物纸质手账本与逼真翻页视觉系统
   ========================================================= */



/* =========================================================
   【手账达人】基于 turn.js 物理折角翻页引擎的真手账本视觉系统
   ========================================================= */

.journal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(40, 36, 32, 0.78) 0%, rgba(18, 16, 14, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: journalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  user-select: none;
  overflow: hidden;
  box-sizing: border-box;
}

@keyframes journalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.journal-viewport-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
}

/* 翻书舞台包裹层 - 根据封面/双联/封底智能平滑居中 */
.journal-turn-wrapper {
  position: relative;
  margin: 10px auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 封面状态 (Page 1): 将右侧单页精准居中在屏幕中央 */
.journal-turn-wrapper.view-cover-front {
  transform: translateX(-95px);
}

/* 双联展开状态 (Pages 2~9): 整体居中 */
.journal-turn-wrapper.view-spread {
  transform: translateX(0);
}

/* 封底状态 (Page 10): 将左侧单页精准居中在屏幕中央 */
.journal-turn-wrapper.view-cover-back {
  transform: translateX(95px);
}

/* Turn.js 翻页单页标准容器 */
.journal-turn-page {
  background-color: #fdfaf4;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.04);
}

/* 封面页样式 (Page 1) */
.journal-cover-page-front {
  border-radius: 6px 14px 14px 6px;
  position: relative;
  box-sizing: border-box;
  box-shadow: inset 4px 0 10px rgba(0,0,0,0.3), inset -2px -2px 6px rgba(0,0,0,0.4);
}

/* 封底页样式 (Page 10) */
.journal-cover-page-back {
  border-radius: 14px 6px 6px 14px;
  position: relative;
  box-sizing: border-box;
  box-shadow: inset -4px 0 10px rgba(0,0,0,0.3), inset 2px -2px 6px rgba(0,0,0,0.4);
}

/* 内页左侧与右侧书脊阴影 */
.journal-inner-page-left {
  background: linear-gradient(90deg, #ede5d8 0%, #faf6ee 10%, #fffdfa 100%);
  border-left: 2px solid rgba(120, 100, 80, 0.2);
}

.journal-inner-page-right {
  background: linear-gradient(270deg, #ede5d8 0%, #faf6ee 10%, #fffdfa 100%);
  border-right: 2px solid rgba(120, 100, 80, 0.2);
}

/* 纸张宣纸米白纹理与折角装饰 */
.journal-page-inner-content {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(180, 160, 140, 0.28);
  border-radius: 4px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  font-family: serif;
}

/* 底部页脚排列式页码导航 */
.journal-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 14px;
  background: rgba(32, 28, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  z-index: 50;
  max-width: 92%;
  overflow-x: auto;
}

.journal-footer-page-btn {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.journal-footer-page-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.journal-footer-page-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #d6724b 0%, #b8542e 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(214, 114, 75, 0.4);
}

/* 底部自定义封面设置抽屉动画 (从正下方正中滑入) */
@keyframes journalDrawerSlideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.journal-bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #FAF8F5;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px 18px 32px 18px;
  z-index: 10002;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  animation: journalDrawerSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 色盘小圆点 */
.journal-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.journal-color-dot:hover {
  transform: scale(1.18);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.journal-color-dot.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #D6724B;
}


/* =========================================================
   【手账达人】PS 级涂鸦创作与手账工具栏 (Doodle & PS Toolbar)
   ========================================================= */

.journal-doodle-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  padding: 6px 12px;
  background: rgba(26, 23, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  max-width: 96%;
  overflow-x: auto;
}

.journal-doodle-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 44px;
  padding: 4px 6px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  gap: 2px;
}

.journal-doodle-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.journal-doodle-tool-btn.active {
  background: linear-gradient(135deg, #D6724B 0%, #B8542E 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(214, 114, 75, 0.45);
  transform: translateY(-2px);
}

.journal-tool-icon {
  font-size: 16px;
  line-height: 1;
}

.journal-tool-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* 工具参数调节小浮窗 (笔刷大小/粗细/颜色弹层) */
.journal-tool-popover {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 26, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translate(-50%, 8px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}




/* =========================================================
   【手账达人】内页虚线分区、摄像机聚焦与 Canvas 书写系统 (V3 完整对象层与保活版)
   ========================================================= */

/* 页面内半区容器 (上下分区) */
.journal-page-split-container {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.journal-half-page-block {
  flex: 1;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
}

.journal-half-page-block.top-half {
  border-bottom: 1.5px dashed rgba(180, 150, 120, 0.55);
}

/* 分区书写引导热区 */
.journal-zone-select-hint {
  width: 90%;
  height: 80%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  background: rgba(214, 114, 75, 0.05);
  border: 1px dashed rgba(214, 114, 75, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.journal-zone-select-hint:hover {
  background: rgba(214, 114, 75, 0.15);
  border-color: #d6724b;
  transform: scale(0.98);
}

/* 摄像机聚焦书写全屏容器 (统一居中舞台) */
.journal-focus-canvas-stage-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  z-index: 40;
  animation: canvasZoomIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes canvasZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 画布顶栏操作条 */
.journal-canvas-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

/* 纸张画板实体 (米白宣纸拟物纹理) */
.journal-canvas-stage {
  position: relative;
  width: 360px;
  height: 330px;
  background-color: #fdfaf3;
  background-image: radial-gradient(#ede3d2 0.75px, transparent 0.75px), radial-gradient(#ede3d2 0.75px, #fdfaf3 0.75px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 24px rgba(0, 0, 0, 0.05);
  border: 2px solid #ded2bf;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  box-sizing: border-box;
}

/* 可交互画板对象 (文字、贴纸、形状统一容器) */
.journal-canvas-obj {
  position: absolute;
  cursor: move;
  user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-sizing: border-box;
}

.journal-canvas-obj.selected {
  outline: 1.5px dashed #d6724b;
  outline-offset: 3px;
}

/* 对象缩放手柄 */
.journal-obj-resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #d6724b;
  border-radius: 50%;
  z-index: 25;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  right: -7px;
  bottom: -7px;
  cursor: se-resize;
}

/* 对象快捷控制栏 (镜像、翻转、改色、编辑、删除) */
.journal-obj-action-bar {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 24, 20, 0.95);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 35;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.journal-obj-action-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.journal-obj-action-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* 大色盘与笔刷调节浮窗 (丰富色彩) */
.journal-palette-popover {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 22, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 330px;
  box-sizing: border-box;
}

.journal-palette-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.journal-palette-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.journal-palette-swatch:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.journal-palette-swatch.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #D6724B;
}

/* 形状库选择抽屉 */
.journal-shape-picker-popover {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 26, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 90%;
  overflow-x: auto;
}

.journal-shape-item-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.journal-shape-item-btn:hover {
  background: rgba(214, 114, 75, 0.35);
  border-color: #d6724b;
  transform: scale(1.12);
}

/* 2048 果冻动画体系 */
@keyframes jellyAppear {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  65% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes jellyPop {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ==================== 角色头像选择器 AvatarSourcePicker 样式 ==================== */
.avatar-source-picker-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.avatar-source-picker {
  width: min(360px, 100%);
  padding: 18px;
  border-radius: 16px;
  background: var(--c-bg-card, #fff);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.avatar-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--c-text-main, #333);
  font-size: 17px;
  font-weight: 700;
}

.avatar-source-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.avatar-source-tabs {
  display: flex;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(214, 114, 75, 0.35);
  border-radius: 10px;
}

.avatar-source-tab {
  flex: 1;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--c-text-sub, #777);
  font: inherit;
  cursor: pointer;
}

.avatar-source-tab + .avatar-source-tab {
  border-left: 1px solid rgba(214, 114, 75, 0.2);
}

.avatar-source-tab.active {
  background: #d6724b;
  color: #fff;
  font-weight: 700;
}

.avatar-local-upload-area {
  width: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed rgba(214, 114, 75, 0.42);
  border-radius: 12px;
  background: rgba(214, 114, 75, 0.05);
  color: var(--c-text-main, #444);
  font: inherit;
  cursor: pointer;
}

.avatar-local-upload-icon {
  color: #d6724b;
  font-size: 30px;
  line-height: 1;
}

.avatar-url-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avatar-url-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #333;
  font: inherit;
  outline: none;
}

.avatar-url-input:focus {
  border-color: #d6724b;
  box-shadow: 0 0 0 3px rgba(214, 114, 75, 0.12);
}

.avatar-url-confirm {
  align-self: flex-end;
  min-width: 88px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: #d6724b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.avatar-url-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.avatar-url-error {
  color: #c0392b;
  font-size: 13px;
}

@keyframes bounceDot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* 团建活动与全局通用弹窗动效 */
@keyframes sheetSlideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpSheet {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes sheetSlideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* 心纸居左侧榻榻米私室入口热区 */
.mansion-alcove-door-hotspot {
  position: absolute;
  left: 2%;
  top: 18%;
  width: 34%;
  height: 38%;
  cursor: pointer;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 235, 190, 0.42) 0%, rgba(214, 168, 110, 0.12) 65%, transparent 100%);
  border: none !important;
  border-radius: 20px;
  box-shadow: 0 0 24px rgba(255, 225, 170, 0.35);
  transition: all 0.3s ease;
  user-select: none;
  animation: alcoveGlow 3s ease-in-out infinite;
}
.mansion-alcove-door-hotspot:hover, .mansion-alcove-door-hotspot:active {
  transform: scale(1.02);
  background: radial-gradient(circle, rgba(255, 235, 190, 0.6) 0%, rgba(214, 168, 110, 0.25) 75%, transparent 100%);
  box-shadow: 0 0 32px rgba(214, 114, 75, 0.6);
  border: none !important;
}
.mansion-door-tag {
  background: linear-gradient(135deg, #FAF3E6 0%, #F0DFCA 100%);
  color: #5C4129;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid #D6A86E;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  letter-spacing: 0.5px;
}
.mansion-door-subtag {
  color: #7A583A;
  font-size: 9.5px;
  margin-top: 3px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
@keyframes alcoveGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 225, 170, 0.25); border-color: rgba(214, 168, 110, 0.5); }
  50% { box-shadow: 0 0 26px rgba(255, 225, 170, 0.55); border-color: rgba(214, 114, 75, 0.9); }
}
