/* 积分中心：获取 / 兑换 / 明细 统一入口 */

.hub-wrap {
    max-width: none;
    margin: 0;
    padding: 0 0 1.5rem;
}

.hub-balance {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(5, 150, 105, .06);
    overflow: hidden;
    margin-bottom: 1rem;
}

.hub-balance-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem 0.4rem;
}

.hub-balance-user {
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
}

a.hub-planet-link,
a.hub-planet-link:link,
a.hub-planet-link:visited,
a.hub-planet-link:hover,
a.hub-planet-link:focus,
a.hub-planet-link:active {
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
    font-weight: 700;
    text-decoration: underline;
}

.hub-rank {
    background: #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.hub-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.4rem 0 0.9rem;
}

.hub-balance-cell {
    text-align: center;
    padding: 0.4rem 0.5rem;
}

.hub-balance-cell + .hub-balance-cell {
    border-left: 1px solid #eee;
}

.hub-balance-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.15rem;
}

.hub-balance-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #059669;
    line-height: 1.2;
}

.hub-balance-empty {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.hub-ops {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.hub-op-btn,
a.hub-op-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #059669;
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.hub-op-btn:hover,
a.hub-op-btn:hover {
    background: #ecfdf5;
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}

.hub-op-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #888 !important;
    -webkit-text-fill-color: #888 !important;
}

.hub-ops-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: -0.35rem 0 0.85rem;
    font-size: 0.82rem;
}

.hub-ops-extra a {
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
    font-weight: 600;
    text-decoration: none;
}

.hub-ops-extra a:hover {
    text-decoration: underline;
}

.hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .3rem;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.hub-tab,
a.hub-tab {
    flex: 1 1 calc(16.66% - 0.35rem);
    min-width: 3.4rem;
    text-align: center;
    padding: 0.65rem 0.15rem;
    border-radius: 10px;
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.hub-tab:hover,
a.hub-tab:hover {
    background: rgba(255, 255, 255, .65);
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}

.hub-tab.is-active,
a.hub-tab.is-active,
.hub-tab.is-active:link,
.hub-tab.is-active:visited,
.hub-tab.is-active:hover,
.hub-tab.is-active:focus,
.hub-tab.is-active:active,
a.hub-tab.is-active:link,
a.hub-tab.is-active:visited,
a.hub-tab.is-active:hover,
a.hub-tab.is-active:focus,
a.hub-tab.is-active:active {
    background: #fff;
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.hub-hint {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-bottom: 0.75rem;
}

.hub-cross {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #047857;
}

.hub-cross a,
a.hub-cross-link {
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hub-list {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(5, 150, 105, .06);
}

.hub-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f1f1f1;
}

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

.hub-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.hub-item-icon.is-scale {
    background: #e8f8f3;
    color: #0f766e;
}

.hub-item-body {
    flex: 1;
    min-width: 0;
}

.hub-item-title {
    font-weight: 600;
    color: #111;
    font-size: 0.95rem;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.hub-item-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    line-height: 1.4;
}

.hub-item-tag.is-book {
    background: #f3f4f6;
    color: #111;
}

.hub-item-meta {
    font-size: 0.8rem;
    color: #059669;
    margin-top: 0.15rem;
}

.hub-item-meta.is-cost {
    color: #111;
}

.hub-item-meta.is-shortage {
    color: #b45309;
    font-weight: 600;
}

.hub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.hub-stats-cell {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 8px 24px rgba(5, 150, 105, .04);
}

.hub-stats-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #047857;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hub-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #666;
    margin-top: 0.2rem;
}

.hub-stats-row strong {
    font-weight: 700;
    color: #111;
}

.hub-stats-row strong.is-plus {
    color: #059669;
}

.hub-stats-row strong.is-minus {
    color: #111;
}

.hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

/* 权益兑换：去兑换 / 兑换记录 顶部切换 */
.hub-redeem-nav {
    margin-top: 0.15rem;
}

.hub-filter,
a.hub-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.hub-filter:hover,
a.hub-filter:hover {
    border-color: #059669;
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}

.hub-filter.is-active,
a.hub-filter.is-active,
a.hub-filter.is-active:link,
a.hub-filter.is-active:visited,
a.hub-filter.is-active:hover,
a.hub-filter.is-active:focus,
a.hub-filter.is-active:active {
    background: #059669;
    border-color: #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hub-item-stack {
    align-items: flex-start;
}

.hub-inline-link,
a.hub-inline-link {
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
    font-weight: 600;
    text-decoration: underline;
}

.hub-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    line-height: 1.4;
}

.hub-status.is-pending {
    background: #f3f4f6;
    color: #374151;
}

.hub-status.is-processing {
    background: #ecfdf5;
    color: #047857;
}

.hub-status.is-done {
    background: #d1fae5;
    color: #065f46;
}

.hub-status.is-off {
    background: #f3f4f6;
    color: #6b7280;
}

.hub-item-desc {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.1rem;
}

.hub-redeem-extra {
    margin-top: 0.75rem;
    text-align: left;
}

.hub-redeem-extra label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.35rem;
}

.hub-redeem-extra select,
.hub-redeem-extra input[type="number"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
}

.hub-btn,
a.hub-btn {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.hub-btn-primary,
a.hub-btn-primary,
a.hub-btn-primary:link,
a.hub-btn-primary:visited,
a.hub-btn-primary:hover,
a.hub-btn-primary:focus,
a.hub-btn-primary:active {
    background: #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hub-btn-ghost,
a.hub-btn-ghost {
    background: #fff;
    border: 1px solid #059669;
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
}

.hub-btn-muted,
a.hub-btn-muted {
    background: #f3f4f6;
    color: #888 !important;
    -webkit-text-fill-color: #888 !important;
    cursor: default;
}

.hub-empty {
    text-align: center;
    padding: 2.2rem 1rem;
    color: #888;
}

.hub-empty i {
    font-size: 2rem;
    color: #c5c5c5;
    margin-bottom: 0.6rem;
}

.hub-record-amount {
    font-weight: 700;
    font-size: 0.95rem;
}

.hub-record-amount.is-plus {
    color: #059669;
}

.hub-record-amount.is-minus {
    color: #111;
}

.hub-footer-link {
    text-align: center;
    margin-top: 0.9rem;
}

.hub-footer-link a {
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.hub-panel {
    display: none;
}

.hub-panel.is-active {
    display: block;
}

.hub-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.hub-search input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    color: #111;
    background: #fff;
}

.hub-search input[type="text"]:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.hub-rank-item {
    text-decoration: none;
    color: inherit;
    cursor: default;
}

a.hub-rank-item {
    cursor: pointer;
}

a.hub-rank-item:hover {
    background: #f8fdf9;
}

.hub-rank-item .hub-item-title,
a.hub-rank-item .hub-item-title {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

.hub-rank-item .hub-item-desc,
a.hub-rank-item .hub-item-desc {
    color: #888888 !important;
    -webkit-text-fill-color: #888888 !important;
}

.hub-rank-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hub-rank-num.is-top {
    background: #059669;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.hub-rank-points {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
    line-height: 1.3;
}

.hub-pager {
    text-align: center;
    margin-top: 0.85rem;
}

.hub-pager-info {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.hub-pager-btns {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hub-pager-btns a {
    background: #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.hub-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin: 1.15rem 0 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hub-section-title:first-child {
    margin-top: 0;
}

.hub-section-title i {
    color: #059669;
}

.hub-notice {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: #047857;
    line-height: 1.55;
}

.hub-notice strong {
    color: #065f46;
}

.hub-notice ul {
    margin: 0.4rem 0 0;
    padding-left: 1.15rem;
}

.hub-notice li {
    margin-bottom: 0.2rem;
}

.hub-form {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 12px 40px rgba(5, 150, 105, .06);
}

.hub-field {
    margin-bottom: 0.9rem;
}

.hub-field label {
    display: block;
    font-weight: 600;
    color: #111;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.hub-field input[type="text"],
.hub-field input[type="number"],
.hub-field textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    color: #111;
    background: #fff;
}

.hub-field input[type="text"]:focus,
.hub-field input[type="number"]:focus,
.hub-field textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.hub-field-hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

.hub-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    padding: 0.15rem 0;
}

.hub-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    user-select: none;
}

.hub-radio input[type="radio"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: #059669;
    cursor: pointer;
    flex-shrink: 0;
}

.hub-radio span {
    line-height: 1.2;
}

.hub-submit,
button.hub-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.hub-submit:hover,
button.hub-submit:hover {
    background: #047857;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hub-submit:disabled,
button.hub-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .hub-tab,
    a.hub-tab {
        flex: 1 1 calc(33.33% - 0.35rem);
        font-size: 0.78rem;
        padding: 0.6rem 0.1rem;
    }

    .hub-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hub-wrap {
        padding: 0 0 1.5rem;
    }

    .hub-tab,
    a.hub-tab {
        font-size: 0.75rem;
        padding: 0.55rem 0.08rem;
    }

    .hub-item {
        padding: 0.8rem 0.75rem;
    }
}
