        :root {
            --color-primary: #b83324;
            --color-primary-dark: #97271a;
            --color-primary-light: #fbf2f0;
            --color-primary-border: #f3d4d0;
            
            --color-bg: #f7f5f0;
            --color-surface: #ffffff;
            --color-surface-subtle: #faf9f6;
            
            --color-text-main: #1f1f1f;
            --color-text-regular: #4a4a4a;
            --color-text-muted: #8c8880;
            --color-border: #e8e4dc;
            --color-border-light: #f0ede6;
            
            --color-yi: #b83324;
            --color-yi-bg: #fcf1ef;
            --color-ji: #2d3133;
            --color-ji-bg: #f2f3f5;
            
            --color-lucky: #1b7f57;
            --color-lucky-bg: #eef8f3;
            --color-unlucky: #c02c38;
            --color-unlucky-bg: #fdf2f1;
            
            --color-gold: #b7791f;
            --color-gold-bg: #fefbf3;
            
            --radius-sm: 4px;
            --radius-md: 8px;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background-color: var(--color-bg);
            color: var(--color-text-main);
            font-size: 15px;
            line-height: 1.5;
            letter-spacing: 0;
            -webkit-font-smoothing: antialiased;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 16px;
        }

        /* Header */
        .site-header {
            background: #ffffff;
            border-bottom: 1px solid var(--color-border);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 68px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
            flex-shrink: 0;
            text-decoration: none;
        }

        .brand-logo-icon {
            width: 36px;
            height: 36px;
            display: block;
            flex-shrink: 0;
        }

        .brand-seal {
            width: 38px;
            height: 38px;
            background: var(--color-primary);
            color: #ffffff;
            font-size: 18px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            box-shadow: 0 2px 4px rgba(184, 51, 36, 0.25);
        }

        .brand-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--color-text-main);
            letter-spacing: 0.5px;
            line-height: 1;
        }

        .brand-subtitle {
            font-size: 14px;
            color: var(--color-text-muted);
            margin-left: 6px;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: nowrap;
        }

        .nav-item {
            padding: 7px 11px;
            font-size: 15px;
            white-space: nowrap;
            color: var(--color-text-regular);
            border-radius: var(--radius-sm);
            font-weight: 500;
            transition: all 0.15s ease;
        }

        .nav-item:hover {
            color: var(--color-primary);
            background: var(--color-primary-light);
        }

        .nav-item.active {
            color: var(--color-primary);
            background: var(--color-primary-light);
            font-weight: 700;
            position: relative;
        }

        .nav-item.active::after {
            content: "";
            position: absolute;
            left: 14px;
            right: 14px;
            bottom: 3px;
            height: 2px;
            border-radius: 2px;
            background: var(--color-primary);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .date-input-wrap {
            display: flex;
            align-items: center;
            background: var(--color-surface-subtle);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-sm);
            padding: 5px 12px;
        }

        .date-input-wrap input {
            border: none;
            background: transparent;
            font-size: 15px;
            color: var(--color-text-main);
            outline: none;
            font-family: inherit;
            cursor: pointer;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 7px 16px;
            font-size: 14px;
            font-weight: 500;
            border-radius: var(--radius-sm);
            border: 1px solid var(--color-border);
            background: var(--color-surface);
            color: var(--color-text-regular);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .btn:hover {
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        .btn-primary {
            background: var(--color-primary);
            color: #ffffff;
            border-color: var(--color-primary);
        }

        .btn-primary:hover {
            background: var(--color-primary-dark);
            border-color: var(--color-primary-dark);
            color: #ffffff;
        }

        /* Main Top Section */
        .top-section {
            padding: 24px 0 16px;
        }

        .calendar-layout {
            display: grid;
            grid-template-columns: 1.15fr 0.85fr;
            gap: 20px;
        }

        .card {
            background: var(--color-surface);
            border-radius: var(--radius-md);
            border: 1px solid var(--color-border);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        /* Month Calendar Left Panel */
        .month-calendar-card {
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        .calendar-toolbar-baidu {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 14px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--color-border-light);
        }

        .cal-toolbar-left,
        .cal-toolbar-center,
        .cal-toolbar-right {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cal-select {
            appearance: none;
            -webkit-appearance: none;
            height: 36px;
            padding: 0 28px 0 12px;
            font-size: 14px;
            font-weight: 500;
            color: #1f2329;
            background-color: #ffffff;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23646a73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 9px center;
            border: 1px solid #d0d3d6;
            border-radius: 8px;
            cursor: pointer;
            outline: none;
            transition: border-color 0.15s ease;
        }

        .cal-select:hover,
        .cal-select:focus {
            border-color: #4e6ef2;
        }

        .cal-arrow-btn {
            width: 30px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #646a73;
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.15s ease;
            user-select: none;
        }

        .cal-arrow-btn:hover {
            background-color: #f2f3f5;
            color: #1f2329;
        }

        .cal-today-btn {
            height: 36px;
            padding: 0 16px;
            font-size: 14px;
            font-weight: 500;
            color: #1f2329;
            background: #ffffff;
            border: 1px solid #d0d3d6;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .cal-today-btn:hover {
            border-color: #4e6ef2;
            color: #4e6ef2;
        }

        .calendar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--color-border-light);
        }

        .calendar-month-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--color-text-main);
            display: flex;
            align-items: baseline;
            gap: 10px;
        }

        .calendar-month-sub {
            font-size: 15px;
            color: var(--color-text-muted);
            font-weight: 400;
        }

        .calendar-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .weekdays-bar {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            padding: 10px 0;
            font-size: 15px;
            font-weight: 600;
            color: var(--color-text-regular);
            border-bottom: 1px solid var(--color-border-light);
        }

        .weekdays-bar .weekend {
            color: #e02424;
        }

        .days-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            margin-top: 8px;
        }

        .day-cell {
            min-height: 62px;
            border-radius: 10px;
            border: 2px solid transparent;
            padding: 6px 2px 5px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            position: relative;
            text-decoration: none;
            background: #ffffff;
        }

        .day-cell:hover {
            background: #f5f7ff;
            border-color: #c6d2ff;
        }

        .day-cell.other-month {
            opacity: 0.38;
        }

        .day-solar,
        .day-num {
            font-size: 22px;
            font-weight: 500;
            color: #1f2329;
            line-height: 1.15;
        }

        .day-cell.weekend .day-solar,
        .day-cell.is-weekend .day-num {
            color: #e02424;
        }

        .day-lunar {
            font-size: 12px;
            color: #646a73;
            margin-top: 3px;
            line-height: 1.1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 92%;
        }

        .day-lunar.term,
        .day-lunar.is-term,
        .day-lunar.is-festival {
            color: #e02424;
            font-weight: 500;
        }

        /* 法定节假日放假状态：红底 + 红字 + 休角标（跨月连休同样高亮） */
        .day-cell.is-rest {
            background-color: #fff3f3;
            opacity: 1 !important;
        }

        .day-cell.is-rest:hover {
            background-color: #ffe8e8;
            border-color: #f8b4b4;
        }

        .day-cell.is-rest .day-solar,
        .day-cell.is-rest .day-lunar {
            color: #e02424 !important;
        }

        /* 调休补班状态：黑字 + 班角标（即使周末补班也显示黑色数字） */
        .day-cell.is-work {
            background-color: #f7f8fa;
            opacity: 1 !important;
        }

        .day-cell.is-work .day-solar {
            color: #1f2329 !important;
        }

        .day-cell.is-work .day-lunar {
            color: #646a73 !important;
        }

        /* 当前选中日期或今日选中框（仿百度圆角蓝色选中框） */
        .day-cell.selected,
        .day-cell.is-selected {
            border-color: #4e6ef2 !important;
            background-color: #f3f6ff;
            opacity: 1 !important;
        }

        .day-cell.selected .day-solar,
        .day-cell.selected .day-lunar {
            color: #3b5bdb !important;
            font-weight: 600;
        }

        /* 右上角 休 / 班 / 今 实心角标 */
        .cell-badge {
            position: absolute;
            top: 3px;
            right: 3px;
            width: 16px;
            height: 16px;
            border-radius: 4px;
            font-size: 11px;
            line-height: 16px;
            text-align: center;
            color: #ffffff;
            font-weight: 500;
        }

        .cell-badge.badge-rest {
            background-color: #f33;
        }

        .cell-badge.badge-work {
            background-color: #4e586e;
        }

        .cell-badge.badge-today {
            background-color: #4e6ef2;
        }

        /* Today's Master Card Right Panel */
        .today-master-card {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            background: #ffffff;
        }

        .master-date-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--color-border-light);
        }

        .master-date-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .master-date-full {
            font-size: 22px;
            font-weight: 700;
            color: var(--color-text-main);
        }

        .master-date-meta {
            font-size: 15px;
            color: var(--color-text-muted);
            display: flex;
            gap: 10px;
        }

        .day-switcher {
            display: flex;
            gap: 4px;
        }

        .master-hero-box {
            display: flex;
            align-items: center;
            gap: 20px;
            background: var(--color-surface-subtle);
            padding: 16px 20px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--color-border-light);
        }

        .giant-day-num {
            font-size: 72px;
            font-weight: 800;
            line-height: 1;
            color: var(--color-primary);
            letter-spacing: -2px;
        }

        .master-hero-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .hero-lunar-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--color-text-main);
        }

        .hero-ganzhi-text {
            font-size: 16px;
            color: var(--color-text-regular);
            font-weight: 500;
        }

        .hero-jieqi-text {
            font-size: 14px;
            color: var(--color-gold);
            margin-top: 2px;
        }

        /* Yi / Ji Box */
        .yiji-wrap {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .yiji-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 12px;
            border-radius: var(--radius-sm);
        }

        .yiji-row.yi-row {
            background: var(--color-yi-bg);
            border: 1px solid #f9deda;
        }

        .yiji-row.ji-row {
            background: var(--color-ji-bg);
            border: 1px solid #e3e5e8;
        }

        .yiji-badge {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 18px;
            flex-shrink: 0;
        }

        .yi-row .yiji-badge {
            background: var(--color-yi);
            color: #ffffff;
        }

        .ji-row .yiji-badge {
            background: var(--color-ji);
            color: #ffffff;
        }

        .yiji-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

       .yiji-tag {
           font-size: 15px;
           padding: 3px 9px;
           border-radius: var(--radius-sm);
           font-weight: 500;
           line-height: 1.4;
           transition: all 0.15s ease;
            text-decoration: none;
            display: inline-block;
       }

       .yi-row .yiji-tag {
           color: #8c1e14;
           background: rgba(255, 255, 255, 0.7);
           border: 1px solid #f4c8c4;
       }

       .yi-row .yiji-tag:hover {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #ffffff;
       }

       .ji-row .yiji-tag {
           color: #383d40;
           background: rgba(255, 255, 255, 0.7);
           border: 1px solid #d5d8dc;
       }

       .ji-row .yiji-tag:hover {
            background: #383d40;
            border-color: #383d40;
            color: #ffffff;
       }

        /* Section 2: Details & Shensha */
        .content-section {
            margin-top: 20px;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .section-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--color-text-main);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title::before {
            content: "";
            width: 4px;
            height: 18px;
            background: var(--color-primary);
            border-radius: 2px;
        }

        /* God Positions Banner */
        .gods-bar {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 16px 0;
            margin-bottom: 16px;
            box-shadow: var(--shadow-sm);
        }

        .god-item {
            text-align: center;
            border-right: 1px solid var(--color-border-light);
            padding: 0 10px;
        }

        .god-item:last-child {
            border-right: none;
        }

        .god-label {
            font-size: 14px;
            color: var(--color-text-muted);
            margin-bottom: 5px;
        }

        .god-val {
            font-size: 19px;
            font-weight: 700;
            color: var(--color-text-main);
        }

        /* Almanac Metric Cards Grid */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
            margin-bottom: 16px;
        }

        .metric-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 16px 18px;
            box-shadow: var(--shadow-sm);
        }

        .metric-card-label {
            font-size: 14px;
            color: var(--color-text-muted);
            margin-bottom: 5px;
        }

        .metric-card-val {
            font-size: 18px;
            font-weight: 700;
            color: var(--color-text-main);
        }

        .metric-card-desc {
            font-size: 14px;
            color: var(--color-text-regular);
            margin-top: 4px;
        }

        /* Dual Info Cards */
        .info-card-dual {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }

        .info-card-block {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 18px 20px;
            box-shadow: var(--shadow-sm);
        }

        .info-list-row {
            display: flex;
            padding: 10px 0;
            border-bottom: 1px solid var(--color-border-light);
            font-size: 15px;
        }

        .info-list-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .info-list-row:first-child {
            padding-top: 0;
        }

        .info-list-title {
            width: 95px;
            flex-shrink: 0;
            color: var(--color-text-muted);
            font-weight: 600;
        }

        .info-list-content {
            flex: 1;
            color: var(--color-text-main);
        }

        .info-list-content.highlight {
            color: var(--color-primary);
            font-weight: 500;
        }

        /* Shichen (12 Hours) Table Grid */
        .shichen-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-top: 14px;
        }

        .shichen-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 18px 20px;
            box-shadow: var(--shadow-sm);
            transition: all 0.15s ease;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .shichen-card:hover {
            border-color: var(--color-border);
            box-shadow: var(--shadow-md);
        }

        .shichen-card.is-current {
            border: 1.5px solid var(--color-primary);
            background: #fffcfb;
        }

        .shichen-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--color-border-light);
        }

        .shichen-name-box,
        .shichen-title-group {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .shichen-name {
            font-size: 19px;
            font-weight: 700;
            color: var(--color-text-main);
        }

        .shichen-range {
            font-size: 13px;
            font-weight: 500;
            color: var(--color-text-regular);
            background: #f4f5f7;
            padding: 2px 8px;
            border-radius: 4px;
        }

        .shichen-ganzhi {
            font-size: 14px;
            font-weight: 600;
            color: var(--color-gold);
            background: var(--color-gold-bg);
            padding: 2px 8px;
            border-radius: 4px;
        }

        .shichen-badge {
            font-size: 13px;
            padding: 3px 10px;
            border-radius: var(--radius-sm);
            font-weight: 600;
        }

        .shichen-badge.lucky {
            background: var(--color-lucky-bg);
            color: var(--color-lucky);
        }

        .shichen-badge.unlucky {
            background: var(--color-unlucky-bg);
            color: var(--color-unlucky);
        }

        .shichen-time {
            font-size: 14px;
            color: var(--color-text-muted);
        }

        .shichen-meta-row {
            font-size: 13.5px;
            color: var(--color-text-regular);
            line-height: 1.5;
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
            align-items: center;
        }

        .shichen-chong {
            color: #4b5563;
            font-weight: 500;
        }

        .shichen-shen {
            color: var(--color-text-muted);
        }

        .shichen-yiji {
            font-size: 14px;
            line-height: 1.5;
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 4px;
            padding-top: 10px;
            border-top: 1px dashed var(--color-border-light);
        }

        .shichen-yiji-line {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .tag-s-yi,
        .tag-s-ji {
            width: 22px;
            height: 22px;
            line-height: 22px;
            text-align: center;
            border-radius: 5px;
            font-size: 12px;
            font-weight: 700;
            color: #ffffff;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .tag-s-yi {
            background: linear-gradient(135deg, #d93025, #b91c1c);
            box-shadow: 0 1px 3px rgba(200, 35, 44, 0.22);
        }

        .tag-s-ji {
            background: linear-gradient(135deg, #4b5563, #374151);
            box-shadow: 0 1px 3px rgba(55, 65, 81, 0.18);
        }

        .shichen-yiji-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            flex: 1;
        }

        .shichen-tag {
            display: inline-block;
            padding: 2px 9px;
            font-size: 13.5px;
            line-height: 1.5;
            border-radius: 4px;
            text-decoration: none;
            transition: all 0.15s ease;
        }

        .shichen-tag-yi {
            color: #b42318;
            background: #fef3f2;
            border: 1px solid #fecdca;
        }

        .shichen-tag-yi:hover {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #ffffff;
            transform: translateY(-1px);
        }

        .shichen-tag-ji {
            color: #344054;
            background: #f2f4f7;
            border: 1px solid #e4e7ec;
        }

        .shichen-tag-ji:hover {
            background: #344054;
            border-color: #344054;
            color: #ffffff;
            transform: translateY(-1px);
        }

        .shichen-tag-muted {
            color: #98a2b3;
            background: #f9fafb;
            border: 1px solid #eaecf0;
        }

        /* Section 4: Lucky Days Topic Grid (2x2 Category Matrix) */
        .section-more-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 14px;
            font-weight: 600;
            color: var(--color-primary);
            background: var(--color-primary-light);
            border: 1px solid #f5c2c4;
            padding: 6px 14px;
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.15s ease;
        }

        .section-more-btn:hover {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #ffffff;
        }

        .lucky-topic-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-top: 14px;
        }

        .lucky-cat-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 18px 20px;
            box-shadow: var(--shadow-sm);
            transition: box-shadow 0.18s ease, border-color 0.18s ease;
        }

        .lucky-cat-card:hover {
            box-shadow: var(--shadow-md);
            border-color: #dec9b8;
        }

        .lucky-cat-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 14px;
            margin-bottom: 14px;
            border-bottom: 1px solid var(--color-border-light);
        }

        .lucky-cat-head-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .lucky-cat-seal {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
            font-size: 19px;
            font-weight: 700;
            color: #ffffff;
            flex-shrink: 0;
        }

        .lucky-cat-seal.seal-marriage {
            background: linear-gradient(135deg, #e11d48, #be123c);
            box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
        }

        .lucky-cat-seal.seal-home {
            background: linear-gradient(135deg, #d97706, #b45309);
            box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
        }

        .lucky-cat-seal.seal-biz {
            background: linear-gradient(135deg, #c8232c, #991b1b);
            box-shadow: 0 2px 6px rgba(200, 35, 44, 0.25);
        }

        .lucky-cat-seal.seal-folk {
            background: linear-gradient(135deg, #0d9488, #0f766e);
            box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
        }

        .lucky-cat-name {
            font-size: 17px;
            font-weight: 700;
            color: var(--color-text-main);
            line-height: 1.25;
            margin: 0;
        }

        .lucky-cat-sub {
            font-size: 12.5px;
            color: var(--color-text-muted);
            margin: 3px 0 0;
        }

        .lucky-cat-more {
            font-size: 13px;
            color: var(--color-text-muted);
            text-decoration: none;
            transition: color 0.15s ease;
        }

        .lucky-cat-more:hover {
            color: var(--color-primary);
        }

        .lucky-item-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .lucky-item-card {
            display: flex;
            flex-direction: column;
            gap: 3px;
            padding: 10px 12px;
            background: #faf8f5;
            border: 1px solid #ede6dd;
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.16s ease;
        }

        .lucky-item-card:hover {
            background: #fff5f5;
            border-color: var(--color-primary);
            transform: translateY(-2px);
            box-shadow: 0 3px 8px rgba(200, 35, 44, 0.08);
        }

        .lucky-item-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--color-text-main);
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: color 0.15s ease;
        }

        .lucky-item-title::after {
            content: "›";
            font-size: 16px;
            color: #c0b6ac;
            font-weight: 400;
            transition: transform 0.15s ease, color 0.15s ease;
        }

        .lucky-item-card:hover .lucky-item-title {
            color: var(--color-primary);
        }

        .lucky-item-card:hover .lucky-item-title::after {
            color: var(--color-primary);
            transform: translateX(2px);
        }

        .lucky-item-desc {
            font-size: 12px;
            color: var(--color-text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Footer */
        .site-footer {
            margin-top: 40px;
            background: var(--color-surface);
            border-top: 1px solid var(--color-border);
            padding: 30px 0 24px;
            color: var(--color-text-muted);
            font-size: 14px;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 18px;
            margin-bottom: 14px;
            font-size: 15px;
        }

        .footer-links a:hover {
            color: var(--color-primary);
        }

        .footer-copy {
            line-height: 1.8;
        }

        .footer-copyright-desc {
            line-height: 1.8;
            margin-bottom: 8px;
            color: var(--color-text-muted);
            font-size: 14px;
        }

        .footer-info-line {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 8px 12px;
            margin-top: 6px;
            font-size: 13px;
            color: var(--color-text-muted);
            line-height: 1.6;
        }

        .footer-info-line a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer-info-line a:hover {
            color: var(--color-primary);
            text-decoration: underline;
        }

        .footer-divider {
            color: #d1d5db;
            user-select: none;
        }

        .footer-tongji {
            margin-top: 8px;
            display: inline-block;
            font-size: 12px;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .calendar-layout {
                grid-template-columns: 1fr;
            }
            .metrics-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .shichen-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .lucky-topic-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .header-inner {
                flex-direction: column;
                height: auto;
                padding: 12px 0;
                gap: 10px;
            }
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
            }
            .gods-bar {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
                padding: 12px 10px;
            }
            .god-item {
                border-right: none;
            }
            .info-card-dual {
                grid-template-columns: 1fr;
            }
            .shichen-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .lucky-cat-row {
                flex-direction: column;
                gap: 6px;
            }
        }

        @media (max-width: 640px) {
            .shichen-grid {
                grid-template-columns: 1fr;
            }
            .metrics-grid {
                grid-template-columns: 1fr;
            }
        }


        /* Topic Pages (24 Jieqi & Traditional Festivals) 2 Cards Per Row */
        .topic-card-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .topic-card-link {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 20px;
            box-shadow: var(--shadow-sm);
            text-decoration: none;
            color: inherit;
            transition: all 0.18s ease;
            cursor: pointer;
        }

        .topic-card-link:hover {
            border-color: var(--color-primary);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .topic-card-link:hover .topic-card-title {
            color: var(--color-primary-dark);
        }

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

        .topic-card-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--color-primary);
            transition: color 0.15s ease;
        }

        .topic-card-badge {
            font-size: 13px;
            padding: 3px 10px;
            border-radius: var(--radius-sm);
            background: var(--color-gold-bg);
            color: var(--color-gold);
            border: 1px solid #fae8c8;
            font-weight: 600;
        }

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

        .topic-card-meta {
            font-size: 14px;
            color: var(--color-text-regular);
            margin-bottom: 8px;
            line-height: 1.6;
        }

        .topic-card-desc {
            font-size: 14px;
            color: var(--color-text-regular);
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .topic-card-yi {
            margin-top: auto;
            padding: 10px 14px;
            background: var(--color-yi-bg);
            border-radius: var(--radius-sm);
            font-size: 14px;
            line-height: 1.6;
            border: 1px solid #e8f5e9;
        }

        .topic-card-yi-label {
            color: var(--color-yi);
            font-weight: 600;
            margin-right: 6px;
        }

        .topic-card-yi-text {
            color: var(--color-text-main);
        }

        @media (max-width: 640px) {
            .topic-card-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Huangdao Jiri Directory & Details Styles */
        .hdjr-cat-block {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 22px 24px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-sm);
        }

        .hdjr-cat-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 14px;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--color-border-light);
        }

        .hdjr-cat-title {
            font-size: 19px;
            font-weight: 700;
            color: var(--color-text-main);
            position: relative;
            padding-left: 12px;
        }

        .hdjr-cat-title::before {
            content: "";
            position: absolute;
            left: 0;
            top: 3px;
            bottom: 3px;
            width: 4px;
            background: var(--color-primary);
            border-radius: 2px;
        }

        .hdjr-cat-subtitle {
            font-size: 14px;
            color: var(--color-text-muted);
        }

        .hdjr-tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .hdjr-tag-link {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            background: #fff;
            border: 1px solid var(--color-border);
            border-radius: var(--radius-sm);
            text-decoration: none;
            color: var(--color-text-main);
            font-size: 15px;
            transition: all 0.16s ease;
        }

        .hdjr-tag-link:hover {
            border-color: var(--color-primary);
            background: var(--color-primary-light);
            color: var(--color-primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

        .hdjr-tag-name {
            font-weight: 600;
            margin-right: 4px;
        }

        .hdjr-tag-alias {
            font-size: 13px;
            color: var(--color-text-muted);
            transition: color 0.16s ease;
        }

        .hdjr-tag-link:hover .hdjr-tag-alias {
            color: var(--color-primary);
        }

        /* Event Explanation Typography */
        .hdjr-explain-body {
            font-size: 15px;
            color: var(--color-text-main);
            line-height: 1.8;
        }
        .hdjr-explain-body p {
            margin-bottom: 14px;
        }
        .hdjr-explain-body h3 {
            font-size: 17px;
            font-weight: 700;
            color: var(--color-text-main);
            margin: 18px 0 10px;
            padding-left: 8px;
            border-left: 3px solid var(--color-primary);
        }
        .hdjr-explain-body ul, .hdjr-explain-body ol {
            margin-bottom: 14px;
            padding-left: 24px;
        }
        .hdjr-explain-body li {
            margin-bottom: 6px;
        }
