.tool-container {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 20px;
}
.main-card {
    background: #ffffff;
    padding: 40px;
    border: 1px solid #f1f1f1;
}
.page-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    font-weight: 600;
    margin: 0 0 10px;
}
.page-desc {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 35px;
    line-height: 1.6;
}
.tab-switch {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.switch-tab {
    padding: 10px 28px;
    border-radius: 30px;
    background: #f7f9fc;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}
.switch-tab.active {
    background: #6b9dbb;
    color: #fff;
}
.form-panel {
    display: none;
}
.form-panel.show {
    display: block;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.form-item label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}
.form-item select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: 0.3s;
}
.form-item select:focus {
    border-color: #6b9dbb;
    box-shadow: 0 0 0 3px rgba(107,157,187,0.12);
}
.query-btn {
    display: block;
    width: 240px;
    height: 48px;
    margin: 10px auto 30px;
    background: #6b9dbb;
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}
.query-btn:hover {
    opacity: 0.9;
    box-shadow: 0 5px 18px rgba(107,157,187,0.2);
}
.result-box {
    background: #f9fafb;
    border-radius: 18px;
    padding: 30px;
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.5s ease;
}
.result-box.show {
    display: block;
}
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(15px);}
    to {opacity: 1; transform: translateY(0);}
}
.star-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.star-name {
    font-size: 22px;
    color: #333;
    font-weight: 600;
    margin: 8px 0;
}
.star-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #eef4f8;
    color: #555;
    border-radius: 20px;
    font-size: 13px;
    margin: 0 5px;
}
.relation-title {
    font-size: 19px;
    color: #333;
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}
.desc-text {
    line-height: 1.9;
    color: #555;
    font-size: 15px;
}
.desc-text p {
    margin: 12px 0;
    text-indent: 2em;
}

/* ====================== 星宿卡片 全新优化 ====================== */
.su-book-wrap {
    margin-top: 90px !important;
}
.su-book-title {
    font-size: 22px;
    text-align: center;
    color: #333;
    margin: 0 0 35px;
    font-weight: 600;
}
.su-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.su-item {
    background: linear-gradient(120deg, #ffffff, #f8f9fa);
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.su-item h4 {
    font-size: 17px;
    color: #333;
    margin: 0 0 10px;
    font-weight: 600;
}
.su-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}