.tool-form-chinese-zodiac {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.tool-form-chinese-zodiac .sx-calendar-note {
    margin: 0 0 1rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #4b5563;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 8px;
}

.tool-form-chinese-zodiac .sx-panel {
    width: 100%;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f7;
    box-sizing: border-box;
}

.tool-form-chinese-zodiac .sx-panel:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tool-form-chinese-zodiac .sx-panel-title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
}

.tool-form-chinese-zodiac .sx-query-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.25rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
    align-items: stretch;
}

.tool-form-chinese-zodiac .sx-query-wrap .sx-panel-query {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 1rem 1.05rem 1.05rem;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.tool-form-chinese-zodiac .sx-query-wrap .sx-panel-title {
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #f0f3f7;
}

.tool-form-chinese-zodiac .sx-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.65rem;
    width: 100%;
}

.tool-form-chinese-zodiac .sx-label {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: justify;
    text-align-last: justify;
    line-height: 2rem;
}

.tool-form-chinese-zodiac .sx-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
}

.tool-form-chinese-zodiac .sx-controls .radio {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 2rem;
    font-size: 0.875rem;
    color: #374151;
}

.tool-form-chinese-zodiac .sx-year-input,
.tool-form-chinese-zodiac .sx-year-select,
.tool-form-chinese-zodiac .sx-select,
.tool-form-chinese-zodiac .sx-select-wide {
    height: 2rem;
    padding: 0.3rem 0.45rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #555;
    -webkit-text-fill-color: #555;
    border-color: #d9d9d9;
    line-height: 1.4;
    box-sizing: border-box;
}

.tool-form-chinese-zodiac .sx-year-input {
    width: 7rem;
}

.tool-form-chinese-zodiac .sx-year-select {
    width: 7.25rem;
}

.tool-form-chinese-zodiac .sx-select {
    width: 4.25rem;
}

.tool-form-chinese-zodiac .sx-month-select,
.tool-form-chinese-zodiac .sx-day-select {
    min-width: 4.25rem;
    width: auto;
}

.tool-form-chinese-zodiac .sx-select-wide {
    min-width: 8rem;
}

.tool-form-chinese-zodiac .sx-suffix {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 2rem;
}

.tool-form-chinese-zodiac .sx-row .btn,
.tool-form-chinese-zodiac .sx-controls .btn {
    height: 2rem;
    min-width: 4rem;
    padding: 0.3rem 0.65rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.2;
    box-sizing: border-box;
}

.tool-form-chinese-zodiac .sx-result-slot {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 0.35rem;
    min-height: 8.75rem;
}

.tool-form-chinese-zodiac .sx-result {
    flex: 1 1 auto;
    margin-top: 0;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    background: linear-gradient(160deg, #f7fafc 0%, #eef4fa 100%);
    border: 1px solid #dbe4f0;
    box-sizing: border-box;
    min-height: 8.75rem;
}

.tool-form-chinese-zodiac .sx-result.hide {
    display: none;
}

.tool-form-chinese-zodiac .sx-result-slot:has(.sx-result.hide)::before {
    content: "查询结果将显示在这里";
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 8.75rem;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    border: 1px dashed #d7dee8;
    background: #fafbfc;
    color: #9aa3af;
    font-size: 0.8125rem;
    box-sizing: border-box;
}

.tool-form-chinese-zodiac #sx-year-result .sx-result-meta {
    min-height: 4.2rem;
}

.tool-form-chinese-zodiac .sx-result-name {
    font-size: 1.05rem;
    font-weight: 650;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.tool-form-chinese-zodiac .sx-result-meta {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.55;
}

.tool-form-chinese-zodiac .sx-result-personality {
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.6;
}

.tool-form-chinese-zodiac .sx-year-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 0.65rem;
}

.tool-form-chinese-zodiac .sx-year-list li,
.tool-form-chinese-zodiac .sx-year-item {
    margin: 0;
    list-style: none;
    list-style-type: none;
    font-size: 0.9375rem;
    line-height: 1.45;
    padding: 0.75rem 0.9rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
}

.tool-form-chinese-zodiac .sx-year-list li::marker,
.tool-form-chinese-zodiac .sx-year-list li::before {
    content: none;
    display: none;
}

.tool-form-chinese-zodiac .table-scroll-x {
    width: 100%;
    overflow-x: auto;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    overflow: visible;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table col.sx-col-animal {
    width: 3.5rem;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table col.sx-col-past {
    width: 500px;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table col.sx-col-future {
    width: 150px;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table col.sx-col-personality {
    width: auto;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table td:nth-child(1),
.tool-form-chinese-zodiac .table-scroll-x .soft-table th:nth-child(1) {
    white-space: nowrap;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table tbody td:nth-child(2),
.tool-form-chinese-zodiac .table-scroll-x .soft-table tbody td:nth-child(3) {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono, Menlo, Monaco, Consolas, "Courier New", monospace);
    letter-spacing: 0.01em;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table td:nth-child(2),
.tool-form-chinese-zodiac .table-scroll-x .soft-table th:nth-child(2) {
    word-break: break-all;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table td:nth-child(3),
.tool-form-chinese-zodiac .table-scroll-x .soft-table th:nth-child(3) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    box-sizing: border-box;
    word-break: break-all;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
}

.tool-form-chinese-zodiac .table-scroll-x .soft-table td:nth-child(4),
.tool-form-chinese-zodiac .table-scroll-x .soft-table th:nth-child(4) {
    vertical-align: middle;
    white-space: nowrap;
    word-break: keep-all;
}

@media (max-width: 900px) {
    .tool-form-chinese-zodiac .sx-query-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tool-form-chinese-zodiac .sx-query-wrap .sx-panel-query {
        padding: 0.85rem 0.9rem;
    }
}
