        
        /* 底部导航条样式 */
        .bottom-button-group {
            display: flex;
            justify-content: space-around;
            padding: 10px 8px;
            margin: 12px 0 0 0;
            width: 100%;
            background: rgba(255, 252, 245, 0.8);
            backdrop-filter: blur(8px);
            border-top: 1px solid #E8DCC0;
            position: relative;
            z-index: 2;
            box-sizing: border-box;
            height: auto;
            min-height: 70px;
            gap: 4px;
        }
        
        .bottom-btn {
            flex: 1;
            max-width: calc((100% / 6) - 10px);
            padding: 8px 4px;
            margin: 0 2px;
            height: auto;
            min-height: 60px;
            line-height: 1.4;
            font-size: 12px;
            font-weight: 500;
            background: linear-gradient(145deg, #FFF8E7 0%, #F5EDD3 100%);
            color: #8b6914;
            border-radius: 12px;
            box-shadow: 
                0 2px 8px rgba(212, 175, 55, 0.12),
                inset 0 1px 0 rgba(255, 248, 220, 0.9);
            border: 1px solid rgba(212, 175, 55, 0.2);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-base, 200ms ease);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }
        
        .bottom-btn:hover {
            background: linear-gradient(145deg, #f5e6d3 0%, #ead5bb 100%);
            box-shadow: 
                0 4px 12px rgba(212, 175, 55, 0.2),
                inset 0 1px 0 rgba(255, 248, 220, 0.9);
            transform: translateY(-1px);
        }
        
        .bottom-btn:active {
            background: linear-gradient(145deg, #d4af37 0%, #c9a961 100%);
            transform: scale(0.96);
        }
        
        .btn-icon-bottom {
            width: 22px;
            height: 22px;
            margin-bottom: 4px;
            opacity: 0.9;
            transition: all 0.2s ease;
        }
        
        .bottom-btn:active .btn-icon-bottom {
            opacity: 1;
            transform: scale(1.05);
        }
        
        .bottom-btn span {
            color: #8b6914;
            font-weight: 600;
            font-size: 12px;
        }
        
        /* 日程显示区域 */
        .calendar-notes {
            width: 100%;
            min-height: 90px;
            max-height: 150px;
            background: rgba(255, 252, 245, 0.6);
            border-radius: 10px;
            padding: 12px 16px;
            margin: 12px 0 20px 0;
            box-sizing: border-box;
            position: relative;
            z-index: 3;
            overflow-y: auto;
            font-size: 14px;
            color: #4A3F2F;
            line-height: 1.6;
            border: 1px solid rgba(232, 220, 192, 0.5);
        }
        
        .calendar-notes:active {
            background-color: #F5EDD3;
            transform: scale(0.99);
        }
        
        .calendar-notes .event-item {
            display: block;
            padding: 4px 0;
            margin-bottom: 4px;
        }
        
        .event-q1 {
            color: #E57373; /* 红色 - 重要且紧急 */
        }
        
        .event-q2 {
            color: #FFB74D; /* 黄色 - 重要不紧急 */
        }
        
        .event-q3 {
            color: #81C784; /* 绿色 - 紧急不重要 */
        }
        
        .event-q4 {
            color: #B0BEC5; /* 灰色 - 不重要不紧急 */
        }
        
        .input-container {
            display: flex;
            gap: 8px;
            margin: 4px 0;
            align-items: center;
            flex-wrap: wrap;
            background: transparent;  /* 参照小程序：透明背景 */
            padding: 4px 4px;
            border-radius: 0;
            box-shadow: none;
            border: none;
        }
        .cell-content {
            position: relative;
            height: 100%;
            width: 100%;
        }
        .cell-content > div {
            position: absolute;
            width: 100%;
            text-align: center;
        }
        .date-number {  /* 日期数字 */
            top: 2px;
            height: 20px;
            line-height: 20px;
            font-size: 14px;
            font-weight: bold;
            z-index: 1;
        }
        .badge-ji {
            position: absolute;
            top: 1px;
            left: 1px;
            width: clamp(14px, 3.5vw, 18px);
            height: clamp(14px, 3.5vw, 18px);
            line-height: 1;
            font-size: clamp(8px, 2.2vw, 11px);
            background: linear-gradient(135deg, #d4af37 0%, #c9a430 100%);
            color: white;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            z-index: 999;
            font-weight: 600;
            box-shadow: 0 1px 3px rgba(212, 175, 55, 0.3);
        }
        body { 
            font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; 
            margin: 0;
            padding: 0;
            background: #FBF7F0;
            font-size: 12px;
        }
        .container { 
            max-width: 100%;
            margin: 0 auto; 
            background: #FBF7F0;
            padding: 0; 
            padding-top: 0; /* no navbar */
            border-radius: 0;
            box-shadow: none;
            min-height: 100vh;
        }
        select { 
            padding: 6px 12px; 
            border: 1px solid #E8DCC0; 
            border-radius: 8px; 
            height: 36px; 
            font-size: 16px; 
            color: #b8962e; 
            font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
            background: white;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(139, 115, 85, 0.06);
            transition: all var(--transition-base, 200ms ease);
            min-width: 100px;
        }
        select:hover {
            border-color: #d4af37;
            box-shadow: 0 2px 5px rgba(212, 175, 55, 0.1);
        }
        select:focus {
            outline: none;
            border-color: #d4af37;
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
        }
        .calendar { 
            width: 100%; 
            border-collapse: collapse; 
            margin-top: 4px; 
            table-layout: fixed;
        }
        .calendar th { 
            padding: 10px 0; 
            color: #ffffff; 
            font-size: 14px;
            font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
            font-weight: 500;
            letter-spacing: 0.05em;
            text-shadow: none;
            background: linear-gradient(180deg, #d4af37 0%, #c9a430 100%) !important;
            border: none;
            border-bottom: 2px solid #b8962e;
        }
        
        .calendar th:nth-child(6), 
        .calendar th:nth-child(7) { 
            background: linear-gradient(180deg, #c0392b 0%, #a93226 100%) !important;
            border-bottom: 2px solid #922b21;
        }
        .calendar td { 
            border: 0.5px solid #E8DCC0; 
            padding: 0; 
            height: 125px;
            position: relative;
            background-color: #FFFCF5;
            -webkit-user-select: none;
            user-select: none;
            transition: background-color var(--transition-fast, 150ms ease);
        }
        .calendar { -webkit-user-select: none; user-select: none; }
        .today { 
            background-color: rgba(212, 175, 55, 0.08) !important;
            box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.3);
            border-radius: 4px;
        }
        .calendar td.selected {
            background-color: rgba(212, 175, 55, 0.15) !important;
            box-shadow: inset 0 0 0 2px #d4af37;
            border-radius: 6px;
        }
        .solar-term { 
            color: #0066cc !important;
            font-family: "Microsoft YaHei", sans-serif;
            font-size: 12px;
        }
        .huangdao { color: #cc9900; }
        .heidao { color: #000; }
        .cell-content div { 
            line-height: 1.3;
            margin: 1px 0;
            width: 100%;
            font-family: "Microsoft YaHei", sans-serif !important;
        }
        .cell-content div:nth-child(2) {  /* 农历日期/节气 */
            position: absolute;
            top: 22px;
            left: 0;
            right: 0;
            height: 16px;
            font-size: 12px;
        }
        .cell-content div:nth-child(3) {  /* 干支 */
            position: absolute;
            top: 38px;
            left: 0;
            right: 0;
        }
        .cell-content div:nth-child(4) {  /* 九星建除 */
            position: absolute;
            top: 54px;
            left: 0;
            right: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .cell-content div:nth-child(5) {  /* 特殊标记（金神七煞） */
            position: absolute;
            top: 60px;  /* 向上移动 */
            left: 0;
            right: 0;
        }
        .holiday-tag {
            position: absolute;
            bottom: 2px;  /* 移到单元格底部 */
            left: 0;
            right: 0;
            font-size: 12px;  /* 与单元格内其它字体保持一致 */
            color: #e54d42;
            text-align: center;
            font-weight: normal;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 2px;
            z-index: 5;
        }
        /* 休/班 标记（右上角小角标，类似手机日历） */
        .rest-mark, .work-mark {
            position: absolute;
            top: 1px;
            right: 1px;
            width: clamp(14px, 3.5vw, 18px);
            height: clamp(14px, 3.5vw, 18px);
            font-size: clamp(8px, 2.2vw, 11px);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            z-index: 10;
            font-weight: 600;
            line-height: 1;
        }
        .rest-mark {
            color: #2e7d32;
            background: #e8f5e9;
            border: 1px solid #a5d6a7;
        }
        .work-mark {
            color: #c62828;
            background: #ffebee;
            border: 1px solid #ef9a9a;
        }
        .lunar-text {
            font-family: "Microsoft YaHei", sans-serif;
            font-size: 12px;
            color: #666;
            text-align: center;
        }
        .solar-term {
            color: #0066cc !important;
            font-size: 12px;
        }
        .jiuxing-special {
            color: #00cc66 !important;
            font-weight: bold;
        }
        .huangdao {
            color: #cc9900;
            font-weight: bold;
        }
        .heidao {
            color: #000;
            font-weight: normal;
        }
        .calendar td.other-month { background-color: #FBF7F0 !important; }
        .special-day {
            display: flex;
            justify-content: center;
            gap: 2px;
        }
        .hongsha { 
            color: #ff3b30 !important;
            font-family: "Microsoft YaHei", sans-serif;
            font-size: 12px;
            font-weight: bold;
        }
        .jinshen { 
            color: #ff9500 !important;
            font-family: "Microsoft YaHei", sans-serif;
            font-size: 12px;
            font-weight: bold;
        }
        .touxiu { 
            color: #34c759 !important;
            font-family: "Microsoft YaHei", sans-serif;
            font-size: 12px;
            font-weight: bold;
        }
        header.page-header-with-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 10px 0 20px 10px !important;
        }
        header .header-logo {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            object-fit: contain;
            border-radius: 8px;
        }
        h1 {
            color: #b8962e;
            font-family: "Noto Serif SC", "STSong", serif;
            font-size: 32px;
            margin: 0 !important;
            padding: 0;
            text-align: left;
            cursor: pointer;
        }
        /* 统一导航栏标题覆盖：取消h1的渐变色，使用navbar白色 */
        .unified-navbar h1.unified-navbar__title {
            color: #fff;
            background: none;
            -webkit-background-clip: unset;
            background-clip: unset;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
        }
        /* 新增间距调整样式 */
        .lunar-text br { display: none; }
        .cell-content div:nth-child(3) { letter-spacing: -0.5px; }
        .cell-content div:nth-child(4) { word-spacing: -1px; }

        /* 黄历弹窗样式（禁止选区，避免长按/双击后出现蓝色选中块） */
        .almanac-popup-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            z-index: 99999 !important;
            -webkit-user-select: none;
            user-select: none;
        }
        
        .almanac-popup {
            width: 85%;
            max-width: 650px;
            background-color: #fff;
            border-radius: 12px;
            padding: 16px 14px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            position: relative;
            -webkit-user-select: none;
            user-select: none;
        }
        .almanac-popup .popup-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #e54d42;
            color: #fff;
            border: none;
            font-size: 20px;
            line-height: 1;
            padding: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .almanac-popup .popup-close:hover {
            background: #c62828;
        }
        
        .almanac-content {
            margin-top: 6px;
        }
        
        .almanac-item {
            margin: 4px 0;
            display: flex;
            align-items: flex-start;
            line-height: 1.28;
        }
        
        .almanac-item .item-label {
            width: 50px;
            color: #8B7355;
            font-size: 14px;
            flex-shrink: 0;
        }
        
        .almanac-item .item-value {
            flex: 1;
            font-size: 14px;
            color: #4A3F2F;
        }
        
        .item-value-list {
            flex: 1;
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }
        
        .value-tag {
            padding: 2px 5px;
            border-radius: 4px;
            font-size: 13px;
            display: inline-block;
            margin: 1px;
            line-height: 1.2;
        }
        
        .yi-item .value-tag {
            background-color: #e8f5e9;
            color: #333;
            border: 1px solid #66bb6a;
        }
        
        .ji-item .value-tag {
            background-color: #ffebee;
            color: #333;
            border: 1px solid #e57373;
        }
        
        .jieqi-text {
            color: #0066cc !important;
            font-weight: normal;
            margin-left: 5px;
            font-size: 13px;
        }
        
        .popup-date-header {
            font-size: 16px;
            text-align: center;
            color: #4A3F2F;
            margin-bottom: 10px;
            padding-bottom: 6px;
            border-bottom: 1px solid #E8DCC0;
            line-height: 1.3;
        }
        .popup-date-header .ganzhi-bold {
            font-weight: bold;
        }
        .time-popup-table .popup-date-header {
            padding-right: 44px;
            padding-top: 2px;
        }
        
        /* 吉时弹窗：与截图 100% 一致；禁止选区，避免出现蓝色选中块影响阅读 */
        .time-popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; -webkit-user-select: none; user-select: none; }
        .time-popup-table { background: #fff; border-radius: 10px; padding: 16px; max-width: 95%; max-height: 85vh; overflow: auto; position: relative; box-shadow: 0 8px 32px rgba(0,0,0,0.12); -webkit-user-select: none; user-select: none; }
        .time-popup-table .popup-close {
            position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
            background: #e54d42; color: #fff; border: none; font-size: 18px; line-height: 1; padding: 0;
            cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1;
        }
        .time-popup-table .popup-close:hover { background: #c62828; }
        .time-popup-table table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
        .time-popup-table .time-table th,
        .time-popup-table .time-table td { width: 20%; text-align: center; vertical-align: middle; }
        .time-popup-table .time-table thead tr { background: linear-gradient(90deg, #ffc107, #ff9800); color: #fff; font-weight: normal; }
        .time-popup-table .time-table th { padding: 6px 8px; border: 1px solid rgba(255,255,255,0.25); line-height: 1.25; }
        .time-popup-table .time-table td { padding: 5px 8px; border: 1px solid #e8e8e8; line-height: 1.2; color: #333; }
        .time-popup-table .time-table tbody .time-row.time-row-even { background: #fafafa; }
        .time-popup-table .time-table tbody .time-row.time-row-odd { background: #fff; }
        .time-popup-table .time-row { cursor: pointer; }
        .time-popup-table .time-row:hover { background: #f0f0f0 !important; }
        .time-popup-table .time-row.tr-selected { background: #e0e0e0 !important; }
        .time-popup-table .time-table td.cell-baishixiong { background: #ffebee; color: #c62828; font-weight: bold; }
        .time-popup-table .time-table td.cell-baishixiong strong { font-weight: bold; color: #c62828; }
        /* 吉时弹窗必须显示第五列「五不遇时」，覆盖全局 .popup-table 对第5列的隐藏 */
        .time-popup-table .time-table th:nth-child(5),
        .time-popup-table .time-table td:nth-child(5) { display: table-cell !important; min-width: 56px; }
        .tr-detail td { padding: 0; vertical-align: top; border: none; }
        .detail-card { margin: 12px 16px; padding: 16px; background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e9 100%); border-radius: 12px; border: 1px solid #c8e6c9; font-size: 13px; text-align: left; }
        .detail-card.detail-xiong { background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%); border-color: #ffcdd2; }
        .detail-warning { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
        .warning-icon { margin-right: 8px; }
        .warning-title { font-size: 14px; font-weight: bold; color: #c62828; }
        .detail-warning-desc { text-align: center; font-size: 12px; color: #666; }
        .detail-header { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed #c8e6c9; }
        .detail-time-name { font-size: 14px; font-weight: bold; color: #2e7d32; }
        .detail-row { display: flex; align-items: center; margin-bottom: 10px; }
        .detail-row-double { justify-content: space-between; }
        .detail-item { display: flex; align-items: center; flex-wrap: wrap; }
        .detail-label { font-size: 12px; color: #666; margin-right: 8px; }
        .detail-value { font-size: 13px; color: #333; font-weight: 500; }
        .detail-tag { font-size: 11px; color: #ff9800; margin-left: 8px; padding: 2px 8px; background: #fff3e0; border-radius: 10px; }
        .detail-yiji { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #c8e6c9; }
        .yiji-row { display: flex; align-items: flex-start; margin-bottom: 6px; line-height: 1.5; font-size: 12px; }
        .yiji-icon { margin-right: 6px; }
        .yiji-label { flex-shrink: 0; margin-right: 4px; }
        .yiji-content { flex: 1; word-break: break-all; }
        .detail-taixuan { margin-top: 10px; font-size: 12px; }
        .taixuan-label { margin-right: 6px; }
        .luck-ji { color: #2e7d32; font-weight: 500; }
        .luck-xiong { color: #c62828; font-weight: 500; }
        
        /* 提醒弹窗样式 */
        .reminder-popup-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            z-index: 99999 !important;
        }
        
        .reminder-popup {
            width: 85%;
            max-width: 650px;
            max-height: 80vh;
            background-color: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            padding: 0;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        .reminder-popup .popup-header {
            height: 45px;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            padding-bottom: 8px;
            font-size: 17px;
            font-weight: bold;
            color: #4A3F2F;
            border-bottom: 1px solid #E8DCC0;
            position: relative;
        }
        
        .reminder-content {
            flex: 1;
            overflow-y: auto;
            padding: 0 10px;
            max-height: calc(80vh - 60px);
        }
        
        .reminder-list {
            padding-bottom: 10px;
        }
        
        .no-reminder {
            text-align: center;
            color: #A68A6D;
            padding: 30px 0;
            font-size: 14px;
        }
        
        .reminder-item {
            margin: 3px 0;
            padding: 6px;
            border-radius: 4px;
            background-color: #f9f9f9;
            position: relative;
            display: flex;
            flex-direction: column;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            transition: all 0.2s ease;
            min-height: 30px;
            cursor: pointer;
        }
        
        .reminder-item:active {
            transform: scale(0.98);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
        }
        
        .reminder-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        
        .reminder-item-header .reminder-date {
            font-size: 12px;
            color: #8B7355;
            font-weight: 500;
        }
        
        .reminder-item-header .reminder-time {
            font-size: 12px;
            color: #A68A6D;
        }
        
        .reminder-item-title {
            font-size: 14px;
            color: #4A3F2F;
            font-weight: 500;
        }
        
        .reminder-item-location {
            font-size: 12px;
            color: #A68A6D;
            margin-top: 4px;
        }
        
        .popup-table {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 0 30px rgba(0,0,0,0.3);
            z-index: 1000;
            max-width: 90vw;
            max-height: 90vh;
            overflow: auto;
        }

        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 999;
            backdrop-filter: blur(2px);
        }
        
        /* 日期选择器弹窗样式 */
        .popup-content {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            z-index: 1000;
            min-width: 300px;
        }

        .calendar-intro {
            max-width: min(90vw, 520px);
            text-align: center;
        }

        .calendar-intro h3 {
            margin: 0 0 12px 0;
            color: #b8962e;
            font-size: 20px;
            font-family: "Noto Serif SC", "STSong", serif;
        }

        .calendar-intro p {
            margin: 0 0 18px 0;
            color: #5C4D3C;
            line-height: 1.6;
            font-size: 14px;
        }

        .calendar-intro .intro-btn {
            display: inline-block;
            padding: 8px 18px;
            background: linear-gradient(145deg, #d4af37, #b8962e);
            color: #fff;
            border: none;
            border-radius: 18px;
            cursor: pointer;
            font-size: 14px;
            transition: opacity var(--transition-fast, 150ms ease);
        }

        /* 吉日统计弹窗（与小程序一致） */
        .lucky-days-popup {
            position: relative;
            padding: 24px 28px;
            min-width: 260px;
            max-width: 300px;
            width: auto;
        }
        .lucky-days-popup .popup-header {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            text-align: center;
            margin: 0 0 20px 0;
            padding-bottom: 12px;
            border-bottom: 1px solid #eee;
        }
        .lucky-days-popup .popup-close {
            background: #e54d42;
            color: #fff;
        }
        .lucky-days-popup .popup-close:hover {
            background: #c62828;
            color: #fff;
        }
        .lucky-days-content {
            padding: 0;
        }
        .lucky-days-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 15px;
        }
        .lucky-days-item:last-child {
            border-bottom: none;
        }
        .lucky-days-item .item-label {
            color: #666;
        }
        .lucky-days-item .item-value-container {
            display: flex;
            align-items: baseline;
            gap: 4px;
        }
        .lucky-days-item .count-number {
            color: #f59e0b;
            font-weight: bold;
            font-size: 22px;
        }
        .lucky-days-item .count-unit {
            color: #333;
            font-size: 14px;
        }
        
        .date-picker-popup {
            min-width: 320px;
        }
        .date-picker-popup h3 {
            margin: 0 0 20px 0;
            color: #b8962e;
            font-size: 22px;
            text-align: center;
            font-family: "Noto Serif SC", "STSong", serif;
        }
        
        .date-picker-controls {
            margin: 20px 0;
        }
        
        .picker-row {
            display: flex;
            align-items: center;
            margin: 12px 0;
            gap: 12px;
        }
        
        .picker-row label {
            min-width: 56px;
            font-size: 16px;
            color: #333;
            flex-shrink: 0;
        }
        
        .picker-row select {
            flex: 1;
            min-width: 0;
            width: 100%;
            height: 44px;
            line-height: 44px;
            padding: 0 32px 0 14px;
            border: 1px solid #E8DCC0;
            border-radius: 8px;
            font-size: 16px;
            color: #b8962e;
            background: white;
            cursor: pointer;
            box-sizing: border-box;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8962e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            overflow: visible;
            white-space: nowrap;
            text-overflow: ellipsis;
            transition: border-color 150ms ease;
        }
        
        .picker-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        
        .picker-actions button {
            flex: 1;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .picker-actions button:first-child {
            background: #f0f0f0;
            color: #666;
        }
        
        .picker-actions button:first-child:hover {
            background: #e0e0e0;
        }
        
        .picker-actions button:last-child {
            background: linear-gradient(145deg, #d4af37, #b8962e);
            color: white;
        }
        
        .picker-actions button:last-child:hover {
            background: linear-gradient(145deg, #c9a430, #a88828);
        }

        .popup-table table {
            border-spacing: 0;
            border-collapse: collapse;
            width: 100%;
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .popup-table th, .popup-table td {
            border: 1px solid #e8e8e8;
            padding: 1px 4px;  /* 进一步减小单元格内边距 */
            font-size: 15px;
            text-align: center;
            white-space: nowrap;
            line-height: 0.9;  /* 进一步减小行高 */
        }

        /* 添加凶字样式 */
        .popup-table td span.xiong {
            background: #000;
            color: #fff;
            padding: 0 4px;
            border-radius: 2px;
            font-size: 12px;
        }

        .popup-table tr:nth-child(even) {
            background: #f8f9fa;
        }

        .popup-table tr:hover {
            background: #f0f4f8;
        }

        /* 设置各列宽度 */
        .popup-table th:nth-child(1),
        .popup-table td:nth-child(1) { 
            width: 50px;  /* 时间列 */
        }
        .popup-table th:nth-child(2),
        .popup-table td:nth-child(2) { 
            width: 60px;  /* 时干支列 */
        }
        .popup-table th:nth-child(3),
        .popup-table td:nth-child(3) { 
            width: 50px;  /* 太玄数列 */
        }
        .popup-table th:nth-child(4),
        .popup-table td:nth-child(4) { 
            width: 50px;  /* 吉凶列 */
        }
        .popup-table th:nth-child(5),
        .popup-table td:nth-child(5) { 
            display: none;  /* 隐藏含义列 */
        }
        .popup-table th:nth-child(6),
        .popup-table td:nth-child(6) { 
            width: 50px;  /* 百事凶列 */
        }

        /* 修改表格标题文字 */
        .popup-table thead tr th {
            font-family: "Microsoft YaHei", sans-serif;
        }

        /* 关闭按钮 */
        .popup-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            background: rgba(0,0,0,0.1);
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .popup-close:hover {
            background: rgba(0,0,0,0.2);
            color: #333;
        }

        /* year-position样式已在上方.second-row中定义 */


        /* 页面全局样式美化 */
        body {
            font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
            margin: 0;
            background: #FBF7F0;
            min-height: 100vh;
            padding: 0;
            box-sizing: border-box;
        }

        .container {
            max-width: 100%;
            margin: 0 auto;
            background: #FBF7F0;
            padding: 0;
            padding-top: 0; /* no navbar */
            border-radius: 0;
            box-shadow: none;
        }

        /* 弹出框样式美化 */
        .popup-table {
            background: white;
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(139, 115, 85, 0.2);
            max-width: 90vw;
            max-height: 90vh;
            overflow: auto;
            border: 1px solid rgba(232, 220, 192, 0.5);
        }

        .popup-table table thead {
            background: linear-gradient(145deg, #d4af37, #b8962e);
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .popup-table th {
            color: white;
            padding: 15px 8px;
            font-size: 15px;
            font-weight: 500;
            text-shadow: none;
            border: none;
            position: relative;
        }

        .popup-table th:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(255,255,255,0.2);
        }

        .popup-table td {
            padding: 12px 8px;
            border: 1px solid #edf2f7;
        }

        .popup-table tr:nth-child(even) {
            background: #f8fafc;
        }

        .popup-table tr:hover {
            background: #edf2f7;
            transition: background-color 0.2s ease;
        }

        /* 关闭按钮美化 */
        .popup-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background: rgba(139, 115, 85, 0.1);
            color: #5C4D3C;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all var(--transition-base, 200ms ease);
            box-shadow: none;
        }

        .popup-close:hover {
            background: rgba(139, 115, 85, 0.2);
            color: #2D2418;
        }

        .popup-overlay {
            background: rgba(45, 36, 24, 0.5);
            backdrop-filter: blur(4px);
        }

        /* 移动端适配 */
        @media screen and (max-width: 850px) {
            body {
                padding: 0;
                font-size: 14px;
            }
            
            .container {
                padding: 0;
                padding-top: 0; /* no navbar */
                width: 100%;
                max-width: 100%;
            }

            .input-container {
                flex-wrap: wrap;
                gap: 8px;
                padding: 4px 8px;
            }

            .nav-btn {
                min-width: 36px;  /* 确保最小宽度 */
                min-height: 36px; /* 确保最小高度 */
                width: 36px;      /* 保持正方形 */
                height: 36px;     /* 保持正方形 */
                padding: 0;       /* 移除内边距 */
                flex-shrink: 0;   /* 防止按钮被压缩 */
            }

            .year-ganzhi {
                font-size: 18px !important;
            }

            .year-ganzhi-row {
                padding: 0 5px;
            }
            
            .year-position {
                font-size: 13px;
                padding: 3px 6px;
            }

            select {
                flex: 1;
                min-width: 80px;
            }

            /* 弹窗移动端优化 */
            .popup-table {
                margin: 0;
                padding: 12px;
                width: 90vw;
                max-width: 90vw;
                max-height: 80vh;
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

            .popup-table table {
                width: 100%;
                font-size: 12px;
            }

            .popup-table th,
            .popup-table td {
                padding: 8px 4px;
                white-space: normal; /* 允许文字换行 */
            }

            /* 改善在小屏幕上的滚动体验 */
            .popup-table {
                -webkit-overflow-scrolling: touch;
                overflow-y: auto;
            }
        }

        /* 调整整体布局宽度 */
        .container { 
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
            padding-top: 0; /* no navbar */
            box-sizing: border-box;
        }

        /* 改进戊己煞方位显示 */
        /* year-position样式已在上方.second-row中定义 */

        /* 优化导航栏布局 */
        .input-container {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            gap: 12px;
            padding: 16px;
            border-radius: 10px;
            background: linear-gradient(to right, #ffffff, #f8f9fa);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        /* year-position样式已在上方.second-row中定义 */


        .input-container {
            display: flex;
            flex-wrap: wrap;  /* 允许换行 */
            gap: 8px;
            padding: 8px 12px;
            background: linear-gradient(to right, #ffffff, #f8f9fa);
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,204,102,0.1);
        }

        .controls-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }

        /* 更新导航栏和戊己煞样式 */
        .input-container {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin: 8px 0;
            padding: 8px 12px;
            background: linear-gradient(to right, #ffffff, #f8f9fa);
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,204,102,0.1);
        }

        .controls-row {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            justify-content: flex-start;
        }
        
        .controls-row .nav-btn {
            flex: 0 0 36px;
            width: 36px;
            height: 36px;
        }
        
        .controls-row .date-picker {
            flex: 0 1 auto;
            min-width: 140px;
            max-width: 180px;
        }

        /* year-position样式已在上方.second-row中定义 */

        /* 动态渐变背景 — 暖金色调 */
        body {
            background: linear-gradient(-45deg, #FBF7F0, #F5EDD3, #FBF0DB, #FFF5E1);
            background-size: 400% 400%;
            animation: gradientBG 20s ease infinite;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* 容器卡片效果增强 - 仅桌面端 */
        @media screen and (min-width: 851px) {
          .container {
            max-width: 520px;
            margin: 20px auto;
            backdrop-filter: blur(12px);
            background: rgba(255, 252, 245, 0.95);
            box-shadow: 0 8px 32px rgba(139, 115, 85, 0.12);
            border: 1px solid rgba(232, 220, 192, 0.6);
            border-radius: 16px;
            transition: box-shadow var(--transition-slow, 300ms ease);
          }

          .container:hover {
            box-shadow: 0 12px 40px rgba(139, 115, 85, 0.18);
          }
        }

        /* 按钮悬浮效果增强 */
        .nav-btn {
            background: transparent;
            transition: all var(--transition-base, 200ms ease);
            position: relative;
            overflow: hidden;
        }

        .nav-btn:hover {
            background: rgba(212, 175, 55, 0.1);
            border-radius: 8px;
        }

        /* 点击波纹效果 */
        .nav-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, .5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        .nav-btn:active::after {
            animation: ripple 0.6s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(100, 100);
                opacity: 0;
            }
        }

        /* 日历单元格悬浮效果 */
        .calendar td {
            transition: all 0.3s ease;
        }

        .calendar td:hover {
            box-shadow: 0 2px 8px rgba(139, 115, 85, 0.1);
            z-index: 1;
            position: relative;
        }

        /* 下拉框美化 */
        select {
            border: 1px solid #E8DCC0;
            transition: border-color var(--transition-fast, 150ms ease), box-shadow var(--transition-fast, 150ms ease);
        }

        select:hover {
            border-color: #d4af37;
            box-shadow: 0 2px 8px rgba(212, 175, 55, 0.12);
        }

        /* 今日标记动画 */
        .today {
            animation: todayPulse 2s infinite;
        }

        @keyframes todayPulse {
            0% { box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.4); }
            70% { box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.15); }
            100% { box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.4); }
        }

        /* 吉日标记 — 移除旋转动画，保持静态 */
        .badge-ji {
            animation: none;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 弹出框动画优化 */
        .popup-overlay {
            animation: fadeIn 0.3s ease;
        }

        .popup-table {
            animation: slideIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { 
                opacity: 0;
                transform: translate(-50%, -60%);
            }
            to { 
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        /* 加大单元格行间距 */
        .cell-content div:nth-child(2) { top: 24px; }  /* 农历日期/节气 */
        .cell-content div:nth-child(3) { top: 44px; }  /* 干支 */
        .cell-content div:nth-child(4) { top: 64px; }  /* 九星建除 */
        .cell-content div:nth-child(5) { top: 90px; }  /* 特殊标记/假期 */
        
        .calendar td {
            height: 125px;  /* 增加单元格高度 */
        }

        /* 优化弹窗样式 */
        .popup-overlay {
            animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(8px);
        }

        .popup-table {
            animation: popIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 
                0 10px 40px rgba(0, 0, 0, 0.2),
                inset 0 0 80px rgba(255, 255, 255, 0.5);
            transform-origin: center center;
        }

        @keyframes popIn {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }
            100% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        .popup-table table {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .popup-table th {
            background: linear-gradient(145deg, #d4af37, #b8962e);
            padding: 16px 12px;
            font-size: 16px;
            letter-spacing: 0.5px;
        }

        .popup-table td {
            padding: 14px 12px;
            font-size: 14px;
            line-height: 1.6;
            transition: background var(--transition-fast, 150ms ease);
        }

        .popup-table tr:hover td {
            background: rgba(212, 175, 55, 0.05);
        }

        .popup-close {
            transform: scale(1);
            transition: all var(--transition-base, 200ms ease);
        }

        .popup-close:hover {
            background: rgba(139, 115, 85, 0.2);
            color: #2D2418;
        }

        /* 弹窗内容滚动优化 */
        .popup-table {
            max-height: 85vh;
        }

        .popup-table table {
            margin-bottom: 0;
        }

        .popup-table thead {
            position: sticky;
            top: 0;
            z-index: 10;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* 标题立体效果 */
        h1:not(.unified-navbar__title) {
            color: #b8962e;
            background: none;
            -webkit-background-clip: unset;
            background-clip: unset;
            text-shadow: none;
            position: relative;
        }

        /* 容器立体效果 - 仅桌面端 */
        @media screen and (min-width: 851px) {
          .container {
            transform-style: preserve-3d;
            perspective: 1000px;
            box-shadow: 
                0 20px 40px rgba(0,0,0,0.1),
                0 5px 15px rgba(0,0,0,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            position: relative;
          }
        }

        /* 日历表格立体效果 */
        .calendar {
            transform-style: preserve-3d;
            box-shadow: 
                0 10px 30px rgba(0,0,0,0.1),
                0 1px 8px rgba(0,0,0,0.05);
        }

        .calendar td {
            transition: all 0.3s ease;
            transform-style: preserve-3d;
            transform: translateZ(0);
        }

        .calendar td:hover {
            transform: translateZ(10px) scale(1.02);
            box-shadow: 
                0 10px 20px rgba(0,0,0,0.1),
                0 3px 6px rgba(0,0,0,0.05);
            z-index: 1;
        }

        /* 戊己煞文字滚动变色效果 */
        .year-position {
            background: linear-gradient(
                90deg, 
                #f5f10ada, #fa4ec6da, #ff6b6b, #4ecdc4, #45b7d1, #45e430
            );
            background-size: 600% 100%;
            animation: gradientFlow 10s linear infinite;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent !important;
            text-shadow: none;
            font-weight: bold;
        }

        @keyframes gradientFlow {
            0% { background-position: 0% 50%; }
            100% { background-position: 600% 50%; }
        }

        /* 立体按钮效果 */
        .nav-btn {
            transform-style: preserve-3d;
            transform: translateZ(0);
            transition: all 0.3s ease;
        }

        .nav-btn:hover {
            transform: translateZ(2px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        /* 下拉框立体效果 */
        select {
            transform-style: preserve-3d;
            transform: translateZ(0);
            transition: all 0.3s ease;
        }

        select:hover {
            transform: translateZ(5px);
            box-shadow: 
                0 5px 15px rgba(0,204,102,0.2),
                0 3px 6px rgba(0,0,0,0.1);
        }

        /* 弹窗立体效果 */
        .popup-table {
            transform-style: preserve-3d;
            perspective: 1000px;
            box-shadow: 
                0 20px 40px rgba(0,0,0,0.2),
                0 5px 15px rgba(0,0,0,0.1);
        }

        /* 修改 popup-table 相关样式以缩小行高 */
        .popup-table td {
            padding: 4px;  /* 减小单元格内边距 */
            font-size: 12px;  /* 稍微减小字体大小 */
            line-height: 1.2;  /* 减小行高 */
            vertical-align: middle;  /* 垂直居中对齐 */
        }

        .popup-table th {
            padding: 6px 4px;  /* 标题行也相应减小内边距 */
            font-size: 13px;  /* 标题字体稍大于内容 */
            line-height: 1.2;  /* 标题行高与内容一致 */
        }

        /* 调整凶字样式以适应新的行高 */
        .popup-table td span.xiong {
            padding: 1px 3px;  /* 减小凶字的内边距 */
            font-size: 11px;  /* 稍微减小凶字大小 */
            line-height: 1;  /* 确保凶字不会影响行高 */
        }

        /* 确保表格行高一致 */
        .popup-table tr {
            height: 24px;  /* 设置固定行高 */
        }

        /* 戊己煞弹窗样式优化 */
        .popup-table.sha-popup {
            padding: 24px;
            text-align: center;
            max-width: min(90vw, 600px);
            border-radius: 20px;
            background: linear-gradient(145deg, #e6d5c5, #f0e5db);  /* 浅咖色渐变背景 */
            backdrop-filter: blur(10px);
            box-shadow: 
                0 20px 40px rgba(0,0,0,0.2),
                0 0 100px rgba(0,0,0,0.1);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);  /* 确保完全居中 */
            opacity: 0;
            animation: shaPopup 0.6s cubic-bezier(0.34, 1, 0.64, 1) forwards;
        }

        .sha-popup h3 {
            color: #944509;  /* 深咖色标题 */
            font-size: 20px;
            margin: 0 0 20px 0;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(74, 55, 40, 0.2);  /* 半透明深咖色边框 */
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }

        .sha-popup img {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(74, 55, 40, 0.2);  /* 咖色阴影 */
            transform: translateY(20px);
            opacity: 0;
            animation: shaImage 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
        }

        @keyframes shaPopup {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes shaImage {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* 关闭按钮优化 */
        .sha-popup .popup-close {
            transform: rotate(-180deg) scale(0);
            animation: shaClose 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
        }

        @keyframes shaClose {
            to {
                transform: rotate(0) scale(1);
            }
        }

        /* 关闭按钮样式调整 */
        .sha-popup .popup-close {
            background: rgba(74, 55, 40, 0.1);  /* 半透明咖色背景 */
            color: #4a3728;  /* 深咖色文字 */
        }

        .sha-popup .popup-close:hover {
            background: rgba(74, 55, 40, 0.2);  /* 悬停时加深背景色 */
        }

        /* year-position样式已在上方.second-row中定义 */

        /* 更新戊己煞弹窗样式，确保完全居中 */
        .popup-table.sha-popup {
            position: fixed;  /* 使用 fixed 定位 */
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);  /* 使用 transform 确保完全居中 */
            margin: 0;
            padding: 24px;
            width: auto;
            max-width: min(90vw, 600px);
            text-align: center;
            z-index: 1000;  /* 确保显示在最上层 */
        }

        /* 更新戊己煞弹窗样式以确保居中显示 */
        .popup-table.sha-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            margin: 0;
            padding: 24px;
            width: auto;
            max-width: min(90vw, 600px);
            text-align: center;
        }

        .year-position {
            font-size: 14px;
            padding: 4px 8px;
            text-align: center;
            font-weight: bold;
            cursor: pointer;
            white-space: nowrap;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        /* year-position样式已在上方.second-row中定义 */

        /* 更新戊己煞弹窗样式 */
        .popup-table.sha-popup {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            margin: 0;
            padding: 24px;
            width: min(90vw, 600px);
            max-width: none;
            text-align: center;
            z-index: 1000;
            animation: shaPopup 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        @keyframes shaPopup {
            0% {
                opacity: 0;
                transform: translate(-50%, -60%);
            }
            100% {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        /* === FINAL OVERRIDE: mobile full-width calendar === */
        @media screen and (max-width: 850px) {
            body {
                padding-top: 0 !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                padding-bottom: 0 !important;
                margin: 0 !important;
                background: #FBF7F0 !important;
                overflow-x: hidden !important;
            }
            .container {
                padding-top: 0 !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                padding-bottom: 0 !important;
                margin: 0 !important;
                max-width: 100% !important;
                width: 100% !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                backdrop-filter: none !important;
                background: #FBF7F0 !important;
                transform: none !important;
            }
            .container:hover {
                transform: none !important;
                box-shadow: none !important;
            }
            .calendar {
                width: 100% !important;
                margin: 0 !important;
                border-collapse: collapse !important;
                border-spacing: 0 !important;
                table-layout: fixed !important;
            }
            .input-container {
                margin: 0 !important;
                border-radius: 0 !important;
                border: none !important;
                box-shadow: none !important;
                padding: 4px 8px !important;
                background: transparent !important;
            }
            #calendarResult {
                padding: 0 !important;
                margin: 0 !important;
                width: 100% !important;
            }
        }

        /* === Calendar header area === */
        .calendar-header-area {
            padding: 16px 16px 8px 16px;
            background: linear-gradient(180deg, rgba(255, 252, 245, 0.9) 0%, transparent 100%);
        }
        .calendar-main-title {
            font-family: "Noto Serif SC", "STSong", serif;
            font-size: 28px !important;
            font-weight: 700;
            color: #b8962e !important;
            background: none !important;
            -webkit-background-clip: unset !important;
            background-clip: unset !important;
            -webkit-text-fill-color: #b8962e !important;
            margin: 0 0 6px 0 !important;
            padding: 0 !important;
            text-align: left;
            letter-spacing: 0.05em;
        }
        .calendar-header-area .controls-row {
            justify-content: flex-start;
            gap: 4px;
            margin-bottom: 4px;
        }
        .calendar-header-area .year-ganzhi {
            font-size: 26px !important;
            font-weight: 700;
            color: #4A3F2F;
            margin: 2px 0;
            display: block;
        }
        .year-position-center {
            text-align: center;
            margin: 4px 0 2px 0;
        }

        /* 微信内「添加到桌面」提示条：仅微信且非从桌面进入时显示 */
        .add-to-home-banner {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 9999;
            background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
            color: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            padding: 12px 44px 12px 16px;
            font-size: 14px;
            line-height: 1.4;
            box-sizing: border-box;
        }
        .add-to-home-banner.show { display: block; }
        .add-to-home-banner strong { display: block; margin-bottom: 4px; font-size: 15px; }
        .add-to-home-banner .add-to-home-banner-close {
            position: absolute;
            top: 50%;
            right: 12px;
            transform: translateY(-50%);
            width: 28px;
            height: 28px;
            border: none;
            background: rgba(255,255,255,0.3);
            color: #fff;
            font-size: 20px;
            line-height: 1;
            border-radius: 50%;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .add-to-home-banner .add-to-home-banner-close:hover { background: rgba(255,255,255,0.5); }
        .add-to-home-banner .add-to-home-banner-close:active { background: rgba(255,255,255,0.6); }
        body.add-to-home-banner-visible .container { padding-top: 70px; }
