/* 基础样式 */
body {
    background-color: #f3f4f6;
}

.container {
    max-width: 990px;
    margin: 0 auto;    
    padding: 0 13px;
}

/* 内容布局 */
.content-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 15px;    margin-bottom: 20px;
}

.fortune-card {
    flex: 1;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    padding: 1.3rem;
}

@media (min-width: 768px) {
    .fortune-card {
        min-width: 600px;
    }
    .right-sidebar{ min-width: 300px;}
    .zodiac-nav{min-width: 990px;}
}

.right-sidebar {
    width: 300px;
   
 
}

/* 移动端适配 */
@media (max-width: 767px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .right-sidebar {
        width: 100%;
       
    }
}

a{
    text-decoration: none;
    color: #111;
}
/* 标题样式 */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}
    .head_left{    padding-left: 0px !important;}
    .head_right{    padding-right: 0px !important;}
/* 星座导航样式 */
.zodiac-nav {
    overflow-x: auto;
    margin: 10px 0px 15px 0px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.zodiac-nav::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

.zodiac-nav-inner {
    display: flex;
    gap: 0.5rem;
    font-size: 14px;
    min-width: max-content;
    width: 100%;
}

@media (min-width: 768px) {
    .zodiac-nav-inner {
        justify-content: space-between;
        min-width: auto;
    }
    
    .zodiac-item {
        flex: 1;
        max-width: calc((100% - 5.5rem) / 12); /* 12个图标，考虑间距 */
    }
}

.zodiac-item {
    flex-shrink: 0;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s;
}

.zodiac-item:hover {
    background-color: #eff6ff;
}

.zodiac-item.active {
    background-color: #c17b57;
    color: white !important;
}

.zodiac-item.active   {
    color: white;
}

.zodiac-item img {
    width: 3rem;
    height: 3rem;
    margin: 0 auto ;
}

.zodiac-date-small {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    text-align: center;
    display: block;
    width: 100%;
}
.zodiac-date-small.active  {
    color: white;
}
 

/* 运势类型选择样式 */
.fortune-types {
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
     
}

.fortune-type-btn {
    padding: 0.3rem 0rem;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 0.5rem !important;
}

@media (max-width: 767px) {
    .fortune-type-btn {
        position: relative;
        width: 2em;
        overflow: hidden;
    }
    
    .fortune-type-btn::after {
        content: attr(data-short);
        position: absolute;
        left: 0;
        top: 0;
    }
}

.fortune-type-btn:hover {
    color: #3b82f6;
}

.fortune-type-btn.active {
    color: #111;
    border-bottom: solid 1px #999;
}

.fortune-date {
    color: #888;font-weight: normal;
    font-size: 12px;
    
}

.fortune-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.fortune-header img {
    width: 5rem;
    height: 5rem;
    margin-right: 1rem;
}

.fortune-header h2 {
    font-size: 1rem;
    padding-bottom: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
  
}

.zodiac-date {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* 运势评分网格 */
.score-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 0.8rem;
}

@media (min-width: 768px) {
    .score-grid {
        grid-template-columns: repeat(4, 1fr);
    }
  
}

.score-item {
 
    display: flex;
    align-items: center;
}

.score-label {
    color: #6b7280;
    font-size: 14px;
 
}

.score-value {
 
    font-size: 15px;
    color: #111;
}

/* 运势详情样式 */
.fortune-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin :  0px;
}

.fortune-section h3 {
    font-weight: 700;font-size: 15px;
    margin: 1.2rem 0rem  0.6rem 0rem;
    position: relative;
    padding-left: 0.8rem;    color: #b37758;
}

.fortune-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-55%);
    width: 0.3rem;
    height: 0.8rem;
    background-color: #b37758;
    border-radius: 0.2rem;
}

.fortune-section p {
    color: #333;    font-size: 14px;
    line-height: 1.8;
}

/* 幸运信息网格 */
.lucky-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .lucky-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lucky-item {
 
    display: flex;
    align-items: center;
}

.lucky-label {
    color: #6b7280;
    font-size: 14px;
  
}

.lucky-value {
 
    font-size: 14px;
    color: #111;
} 
/* 右侧列表样式 */
.xz-links {     
    border-radius: 0.5rem;
    background-color: white;    
    margin-bottom: 20px;padding-bottom: 10px;
}

/* 电脑端只显示前15条 */
.xz-link-item:nth-child(n+16) {
    display: none;
}

 
/* 移动端显示前25条 */
@media (max-width: 767px) {
    .xz-link-item:nth-child(n+16) {
        display: block;
    }
    .xz-link-item:nth-child(n+26) {
        display: none;
    }

  

}

.xz-links-title {
    font-size: 14px;
    
    padding: 8px 14px 8px;
    color: #333;
    border-bottom: 1px solid #eee;margin-bottom: 5px;
}

.xz-link-item {
    padding: 5px 5px 0px 15px;
}

.xz-link-item:last-child {
    border-bottom: none;
}

.xz-link-item a {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    display: block;
    transition: color 0.2s;
    position: relative;
    padding-left: 15px;
}

.xz-link-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #999;
    border-radius: 50%;
}

.xz-link-item a:hover {
    color: #3b82f6;
} 