/* ================================================================
   星座生肖查询 · 页面私有样式（xingzuo.html 专用）
   公共组件见 css/common.css，此处仅放本页新增选择器与覆盖
   ================================================================ */

/* 本页为单表单工具，容器与其它工具页统一宽度 */
.container {
    max-width: 1400px;
}

/* laydate 触发输入框：只读但可点击 */
#birthdayInput {
    cursor: pointer;
}

#birthdayInput[readonly]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

/* laydate 弹层与站点设计令牌统一（圆角/阴影/字体） */
.layui-laydate {
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.laydate-footer button:hover {
    border-radius: 4px;
}

/* 十二星座 / 生肖速查条 */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    background: #fff;
    white-space: nowrap;
    transition: all 0.2s;
    font-variant-numeric: tabular-nums;
}

.chip .em {
    font-size: 14px;
}

.chip:hover {
    border-color: #667eea;
}

.chip.active {
    border-color: #667eea;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

/* 十二星座性格详解卡片 */
.sign-intro {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.8;
    color: #6b7280;
}

.sign-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sign-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sign-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102,126,234,0.12);
}

.sign-card.active {
    border-color: #667eea;
    background: #eef2ff;
}

.sign-card-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.sign-card-head .em {
    font-size: 20px;
}

.sign-card-head h3 {
    margin: 0;
    font-size: 15px;
    color: #374151;
}

.sign-card-head .range {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sign-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.sign-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: #eef2ff;
    color: #4338ca;
    white-space: nowrap;
}

.sign-card.active .sign-tag {
    background: #fff;
}

.sign-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
}

@media (max-width: 700px) {
    .sign-cards {
        grid-template-columns: 1fr;
    }
}
