        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', Arial, sans-serif;
        }
        html{
            font-size: 14px;
        }
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2px;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        h1, h2, h3, h4, h5, h6 {
            margin: 0;
        }
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        a {
              color: #000;
              text-decoration: none;
        }
                /* 主容器 - 改为响应式 */
        .huang_box {
            max-width: 1200px;
            margin: 1px auto 0;
            border: 2px solid #cb7a43;
            border-bottom: 1px solid #efd7a6;
            border-radius: 10px 10px 0 0;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-wrap: wrap;
        }
        /* 三栏布局 - 响应式 */
        .huang_box .huang_left,
        .huang_box .huang_right,
        .huang_box .huang_center {
            flex: 1;
            min-width: 300px;
            padding: 5px 15px;
            background: #FFF;
        }
        
        .huang_box .huang_center {
            position: relative;
            border: 1px solid #efd7a6;
            border-top: none;
            border-bottom: none;
            background: #FFF;
            overflow: hidden;
            text-align: center;
        }
        
        /* 中央区域样式 */
        .huang_center h2 {
            color: #cb7a43;
            font-size: 1.2rem;
        }
        
        .huang_center h5 {
            font-size: 8rem;
            color: #e24e4c;
            font-weight: bold;
            margin: 0;
        }
        
        .huang_center h4 {
            color: #e24e4c;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .huang_center h3 {
            color: #cb7a43;
            font-size: 1.2rem;
            font-weight: bold;
        }
        
        .huang_center h6 {
            color: #cb7a43;
            font-size: 16px;
        }
        .logo {
  width: 160px;
  height: 80px;
  overflow: hidden;
  clear: both;
  margin: auto;
}
.logo img {
  margin-top: -30px;
}
.hl{
    font-size: 1.2rem;
    text-align: right;
}
        /* 左右两侧样式 */
        .huang_td {
            font-size: 1.2rem;
            overflow: hidden;
            height: 40px;
            border-bottom: 1px solid #efd7a6;
            background: #FFF;
            display: flex;
            align-items: center;
        }
        
        .huang_td span {
            margin-right: 15px;
        }
        
        .huang_td span.bagua {
            color: #cb7a43;
            font-weight: bold;
            background-repeat: no-repeat;
            background-position: 0px 9px;
            background-size: 22px;
        }
        
        .huang_td2 {
            font-size: 14px;
            overflow: hidden;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border-top: 1px solid #efd7a6;
            background: #FCF8EF;
        }
        
        .huangli_yiji {
            padding: 10px 0 0 0;
        }
        
        .huangli_yiji h4 {
            text-align: center;
            font-size: 16px;
            margin-bottom: 10px;
            color: #27ac54;
        }
        
        .huangli_yiji.ji h4 {
            color: #e24e4c;
        }
        
        .huangli_yiji p {
            font-size: 16px;
            text-align: left;
            overflow: hidden;
            margin: -40px 0 10px 60px;
        }
        .huangli_yiji img{
            border: 0;
        }
        
        .huangli_yiji p span {
            display: inline-block;
            padding: 2px 4px;
            margin: 2px 0;
            color: #27ac54;
            background-color: rgba(39, 172, 84, 0.1);
            border-radius: 3px;
        }
        
        .huangli_yiji.ji p span {
            color: #e24e4c;
            background-color: rgba(226, 78, 76, 0.1);
        }
        
        /* 神煞布局 - 响应式 */
        .shen_box {
            max-width: 1200px;
            margin: 0 auto;
            border: 2px solid #cb7a43;
            border-top: none;
            border-bottom: 1px solid #efd7a6;
            display: flex;
            flex-wrap: wrap;
            background-color:#FFF;
        }
        
        .shen_bt2{
            border-bottom: 2px solid #cb7a43;
            border-radius: 0 0 10px 10px;
        }
        .shen_box .shen_td {
            flex: 1;
            min-width: 150px;
            text-align: center;
            font-size: 1.1rem;
            padding: 10px;
            border-right: 1px solid #efd7a6;
        }
        .shen_box .shen_td span {
            margin: 12px 0 0 0;
            display: inline-block;
        }
        .shen_box .shen_td:last-child {
            border-right: none;
        }
        
        .shen_td h4 {
            color: #cb7a43;
            text-align: center;
            font-size: 1.2rem;
            line-height: 30px;
            margin: auto;
            border: 1px solid #cb7a43;
            border-radius: 4px;
        }
        
        .shen_td.gui {
            font-size: 1.2rem;
        }
        
        .shen_td.chong {
            font-size: 1.2rem;
        }
        
        .shen_td.ji p {
            text-align: left;
            font-size: 14px;
            padding: 0 5px;
        }
        
        .shen_td.jiu p {
            font-size: 12px;
            text-align: left;
            padding-left: 10px;
        }
        
        /* 导航按钮 */
        .prev_day, .next_day {
            position: absolute;
            top: 200px;
            transform: translateY(-50%);
            color: #dfc896;
            font-size: 36px;
            padding: 10px;
            text-decoration: none;
        }
        
        .prev_day {
            left: 10px;
        }
        
        .next_day {
            right: 10px;
        }
        
        .calendar-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 15px 0;
            background-color: white;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border: 2px solid #cb7a43;
        }
        
        .calendar-nav a {
            display: inline-block;
            padding: 8px 10px;
            background-color: #cb7a43;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s;
            font-size: 1.2rem;
        }
        
        .calendar-nav a:hover {
            background-color: #bf3211;
        }
        .calendar-day a:hover {
            color: #D3463D;
            background-color: #fcebcb;
        }
        .current-month {
            font-size: 1.8rem;
            font-weight: bold;
            color: #2c3e50;
        }
        
        .month-info {
            text-align: center;
            margin-bottom: 15px;
            font-size: 1.2rem;
            color: #555;
        }
        
        .calendar {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: 2px solid #cb7a43;
        }
        
        .calendar-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background-color: #cb7a43;
            color: white;
            text-align: center;
            font-weight: bold;
            padding: 12px 0;
            font-size: 1.4rem;
        }
        
        .calendar-body {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1px;
            background-color: #efd7a6;
        }
        
        .calendar-day {
            background-color: white;
            padding: 5px 0px;
            display: flex;
            flex-direction: column;
            transition: all 0.3s;
            position: relative;
        }
        
        .calendar-day:hover {
            color: #D3463D;
            background-color: #fcebcb;
        }
        
        .calendar-day.other-month {
            color: #aaa;
            background-color: #f9f9f9;
        }
        
        .calendar-day.today {
            color: #D3463D;
            background-color: #fcebcb;
        }
        
        .solar-date {
            font-size: 2.5rem;
            font-weight: bold;
            margin: 5px auto 0 auto;
            text-align: center;
        }
        .lunar-date-ganzhi{
            text-align: center;
        }
        
        .lunar-date {
            font-size: 1.1rem;
        }
        
        .ganzhi {
            font-size: 1.1rem;
        }
        
        .holidays {
            margin-top: 8px;
            font-size: 0.75rem;
            text-align: center;
        }
        
        .holiday {
            display: inline-block;
            background-color: #ff6b6b;
            color: white;
            padding: 2px 6px;
            border-radius: 3px;
            margin-right: 3px;
            margin-bottom: 3px;
        }
        
        .day-link {
            text-decoration: none;
            color: inherit;
            display: block;
            height: 100%;
        }
        
        .leap-indicator {
            position: absolute;
            top: 5px;
            right: 5px;
            font-size: 0.7rem;
            color: #e74c3c;
        }
        .chuyi {
            color: red;
            font-weight: bold;
        }
        .bazi-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 15px 0 15px 0;
    padding: 15px;
    border: 2px solid #cb7a43;
}

.bazi-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--foreground-second);
    border-bottom: 1px solid #cb7a43;
    padding-bottom: 10px;
}

/* 网格系统 */
.bazi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bazi-grid-item {
    background-color: #f2eee8;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.bazi-grid-item .label {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.bazi-grid-item .value {
    font-size: 1.2rem;
    font-weight: 600;
}
/* 九宫网格 */
.jiugong-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto;
}

.jiugong-item {
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jiugong-item.ji {
    background-color: rgba(67, 160, 71, 0.1);
    border: 2px solid rgba(67, 160, 71, 0.3);
}

.jiugong-item.xiong {
    background-color: rgba(229, 57, 53, 0.1);
    border: 2px solid rgba(229, 57, 53, 0.3);
}

.jiugong-item .position,
.jiugong-item .jixiong {
    font-size: 1.1rem;
    color: rgba(55, 71, 79, 0.7);
    margin-bottom: 0px;
}
.jiugong-item .position{float:left;}
.jiugong-item .jixiong{float:right;}
.jiugong-item .star-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0px;
}

.jiugong-item .star-desc {
    font-size: 1.3rem;
    margin-bottom: 0px;
}

.jiugong-item .star-type {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0px;
}

.jiugong-item .star-effect {
    font-size: 1.1rem;
    color: rgba(55, 71, 79, 0.75);
}
.luoshu{
    font-size:1.0rem;
    margin: 10px 0 10px 0;
}
.tip-box{
    font-size:1.0rem;
}
.pengzu{
    font-size: 0.9rem;
}
.jieshao{
    margin: 15px 0 0 0;
  font-size: 1.1rem;
  line-height: 25px;
  border: 2px solid #cb7a43;
  border-radius: 8px;
  padding: 5px 10px;
}
.jieshao img{
  float:right;
  padding: 2px;
  border: 1px solid #ccc;
  
}
        footer {
            text-align: center;
            margin-top: 10px;
            padding: 5px;
            font-size: 1.1rem;
        }
        footer p {
            margin: 0;
            }
        footer p img {
          padding: 2px;
          border: 1px solid #ccc;
        }
                /* 响应式调整 */
        @media (max-width: 1024px) {
            .huang_box .huang_left,
            .huang_box .huang_right,
            .huang_box .huang_center {
                min-width: 50%;
            }
            
            .huang_box .huang_center {
                order: -1;
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            body{
                font-size: 1.0rem;
            }
            .calendar-day {
                min-height: 50px;
                padding: 5px 0px;
            }
            .calendar-header {
                padding: 10px 0;
                font-size: 1.1rem;
            }
            
            .calendar-nav a {
                padding: 8px 8px;
                font-size: 1.1rem;
            }
            .solar-date {
                font-size: 1.8rem;
                margin-bottom: 0px;
            }
            
            .lunar-date {
                font-size: 0.75rem;
            }
            
            .ganzhi {
                font-size: 0.75rem;
            }
            
            .holidays {
                font-size: 0.6rem;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .current-month {
                font-size: 1.5rem;
            }
            
            footer {
            font-size: 1.0rem;
            }
        }
        @media (max-width: 768px) {
            .huang_box .huang_left,
            .huang_box .huang_right,
            .huang_box .huang_center {
                min-width: 100%;
            }
            .huang_box .huang_center{
                border-radius: 10px 10px 0 0;
            }
            .shen_box .shen_td {
                min-width: 25%;
                max-width: 50%;
                border-top: 1px solid #efd7a6;
            }
            .huang_box{
                border-bottom: 0;
            }
            .huang_center h2 {
                font-size: 18px;
            }
            
            .huang_center h5 {
                font-size: 5.0rem;
            }
            
            .huang_center h3 {
                font-size: 18px;
            }
            
            .huang_center h6 {
                font-size: 14px;
            }
            .prev_day, .next_day {
            top: 160px;
            }
        }
        
        @media (max-width: 480px) {
            .huang_box {
                width: 100%;
                margin: 1px 0 0 0;
                border-bottom: 0;
            }
            .huang_box .huang_center{
                border-radius: 10px 10px 0 0;
                background-color:#fff;
            }
            .bazi-card{padding:10px;}
            .shen_box .shen_td {
                min-width: 25%;
                max-width: 50%;
                border-top: 1px solid #efd7a6;
            }
            .jiugong-item {padding:5px;}
            .jiugong-item .star-name {
                font-size: 1.5rem;
            }
            .jiugong-item .star-desc {
                font-size: 1.0rem;
            }
            .jiugong-item .star-type {
                font-size: 1.0rem;
            }
            .jiugong-item .star-effect {
                font-size: 0.9rem;
            }
            .pengzu{
                font-size: 0.9rem;
            }
            .huang_td {
                font-size: 1.2rem;
            }
            
            .huang_td span {
                margin-right: 10px;
            }
            .prev_day, .next_day {
            top: 160px;
            }
            
        }