/* 应时小程序 - 自定义样式 */

/* 中文字体优化 */
body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'SimSun', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 24节气主题色变量 */
:root {
  --jieqi-lichun: #BFC9B8;
  --jieqi-yushui: #A9B7AB;
  --jieqi-jingzhe: #B5C4A5;
  --jieqi-chunfen: #A7B8B0;
  --jieqi-qingming: #9FB9AC;
  --jieqi-guyu: #C7D1B8;
  --jieqi-lixia: #E6DDB2;
  --jieqi-xiaoman: #EDE4C8;
  --jieqi-mangzhong: #DAC89C;
  --jieqi-xiazhi: #E9D7A6;
  --jieqi-xiaoshu: #E7CEAA;
  --jieqi-dashu: #D9B58E;
  --jieqi-liqiu: #CDBB94;
  --jieqi-chushu: #C1A98D;
  --jieqi-bailu: #D5CBB6;
  --jieqi-qiufen: #A88E76;
  --jieqi-hanlu: #9B8576;
  --jieqi-shuangjiang: #B48A69;
  --jieqi-lidong: #E6E8EB;
  --jieqi-xiaoxue: #D7D9DC;
  --jieqi-daxue: #C8CAD0;
  --jieqi-dongzhi: #B9BBC4;
  --jieqi-xiaohan: #AAACB8;
  --jieqi-dahan: #9B9DAC;
}

/* 响应式设计 */
@media (min-width: 768px) {
  .max-w-md {
    max-width: 28rem;
  }
}

@media (min-width: 1024px) {
  .max-w-md {
    max-width: 32rem;
  }
  
  /* PC端布局调整 */
  .pc-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .pc-sidebar {
    width: 280px;
    min-height: 100vh;
    background: white;
    border-right: 1px solid #e5e7eb;
  }
  
  .pc-main {
    flex: 1;
    padding: 20px;
  }
  
  /* PC端导航 */
  .pc-nav {
    position: sticky;
    top: 0;
    padding: 20px;
  }
  
  .pc-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s;
  }
  
  .pc-nav-item:hover, .pc-nav-item.active {
    background: #f3f4f6;
    color: #2563eb;
  }
  
  .pc-nav-item i {
    width: 20px;
    margin-right: 12px;
  }
}

/* 节气罗盘样式 */
.jieqi-compass {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.compass-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
}

.compass-inner {
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.compass-middle {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.compass-outer {
  width: 240px;
  height: 240px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.compass-item {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-origin: center;
}

.compass-item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.compass-item.active {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}