/* ====== 响应式控制 ====== */
    /* 默认：单行版隐藏，完整版显示 */
    .calendar-compact {
        display: none;
    }
    
    .dhrili {
        display:none;
    }
    
    .calendar-full {
        display: block;
    }
    
    /* 移动端：单行版显示，完整版隐藏 */
    @media (max-width: 767px) {
        .calendar-compact {
            display: block;
        }
        
        .calendar-full {
            display: none;
        }
        
        .dhrili {
            display:block;
            /*padding:15px;*/
            background-color:#fff;
        }
    }
    
    /* ====== 完整版日历样式 (rili-full.html) ====== */
    .calendar-full .simple-calendar {
        float: right;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 16px;
        width: 336px;
        color: #333;
        border: 1px solid #f0f0f0;
        overflow: hidden;
        transition: all 0.2s ease;
        cursor: pointer;
        margin-bottom: 10px;
        
    }
    

.simple-calendar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.calendar-header {
  margin-bottom: 16px;
}

.date-today {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.solar-date {
  display: flex;
  align-items: center;
}

.day {
  font-size: 42px;
  font-weight: 700;
  color: #1890ff;
  margin-right: 12px;
  line-height: 1;
}

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

.weekday {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.date-details {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.date-details span {
  margin-right: 8px;
}

.week-number {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.zodiac-corner {
  text-align: right;
}

.zodiac {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.calendar-body {
  font-size: 13px;
}

.lunar-section {
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.lunar-date {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.lunar-label {
  font-size: 13px;
  color: #999;
  margin-right: 8px;
  min-width: 32px;
}

.lunar-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.ganzhi-section {
  margin-bottom: 8px;
}

.ganzhi-full {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  background: #F8F4E9;
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 3px solid #52c41a;
}

/* 节日信息样式 */
.festival-section {
  margin-top: 8px;
}

.festival-info {
  font-size: 13px;
  color: #ff6b6b;
  font-weight: 500;
  line-height: 1.4;
  background: #fff5f5;
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 3px solid #ff6b6b;
  display: none; /* 默认隐藏，有节日时显示 */
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
}

.update-time {
  color: #999;
}

.update-time span {
  color: #1890ff;
  font-weight: 500;
}

.solar-term {
  color: #52c41a;
  font-weight: 500;
  padding: 2px 6px;
  background: #f6ffed;
  border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .simple-calendar {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    padding: 14px;
  }
  
  .day {
    font-size: 36px;
  }
  
  .lunar-text {
    font-size: 14px;
  }
  
  .ganzhi-full {
    font-size: 13px;
  }
  
  .festival-info {
    font-size: 12px;
    padding: 5px 7px;
  }
}
	
    
    /* ====== 单行版日历样式 (rili-dh.html) ====== */
    .compact-calendar {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
        background: #ffffff;
        border-radius: 0px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        padding: 10px 12px;
        color: #333;
        /*border: 1px solid #f0f0f0;*/
        font-size: 13px;
    }
    
    .compact-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .compact-date {
        display: flex;
        align-items: center;
        min-width: 120px;
    }
    
    .compact-day {
        font-size: 32px;
        font-weight: 700;
        color: #1890ff;
        margin-right: 8px;
        line-height: 1;
    }
    
    .compact-date-info {
        display: flex;
        flex-direction: column;
    }
    
    .compact-week {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 2px;
    }
    
    .compact-weeknum {
        font-size: 11px;
        color: #666;
        background: #f5f5f5;
        padding: 1px 4px;
        border-radius: 3px;
        margin-left: 4px;
    }
    
    .compact-ym {
        font-size: 12px;
        color: #666;
    }
    
    .compact-lunar {
        flex: 1;
        min-width: 140px;
    }
    
    .lunar-row {
        display: flex;
        align-items: center;
        margin-bottom: 3px;
    }
    
    .lunar-label {
        color: #999;
        margin-right: 2px;
        font-size: 12px;
    }
    
    .lunar-text {
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }
    
    .ganzhi-text {
        font-size: 12px;
        color: #666;
        line-height: 1.3;
    }
    
    .compact-right {
        text-align: right;
        /*min-width: 80px;*/
    }
    
    .compact-zodiac {
        display: inline-block;
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(135deg, #ff7e5f, #feb47b);
        padding: 3px 8px;
        border-radius: 4px;
        margin-bottom: 4px;
    }
    
    .compact-time {
        font-size: 11px;
        color: #999;
    }
    
    .compact-festival {
        margin-top: 6px;
        font-size: 12px;
        color: #ff6b6b;
        font-weight: 500;
        background: #fff5f5;
        padding: 4px 8px;
        border-radius: 4px;
        display: none;
    }
    
    .compact-term {
        margin-top: 4px;
        font-size: 11px;
        color: #52c41a;
        font-weight: 500;
        padding: 2px 6px;
        background: #f6ffed;
        border-radius: 4px;
        display: inline-block;
    }
    
    /* 响应式调整 */
    @media (max-width: 480px) {
        .compact-header {
            gap: 8px;
        }
        
        .compact-day {
            font-size: 28px;
        }
        
        .compact-lunar {
            min-width: 130px;
        }
        
        .lunar-text {
            font-size: 13px;
        }
        
        .ganzhi-text {
            font-size: 11px;
        }
    }
    
    @media (max-width: 360px) {
        .compact-header {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }
        
        .compact-date, .compact-lunar, .compact-right {
            width: 100%;
        }
        
        .compact-right {
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
    }