.h5-toolbox { position: fixed; right: 18px; bottom: 24px; z-index: 9999; }
.h5-toolbox-toggle { width: 58px; height: 58px; border: none; border-radius: 50%; background: #e60012; color: #fff; font-size: 16px; font-weight: 900; cursor: grab; box-shadow: 0 4px 14px rgba(0,0,0,0.22); touch-action: none; user-select: none; }
.h5-toolbox-toggle:active { cursor: grabbing; transform: translateY(1px); }
.h5-toolbox-panel { position: absolute; right: 0; bottom: 66px; display: none; width: 100px; padding: 8px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.h5-toolbox.open .h5-toolbox-panel { display: grid; gap: 6px; }
.h5-toolbox-panel button { width: 100%; border: none; border-radius: 14px; background: #1e88e5; color: #fff; font-size: 15px; font-weight: 800; padding: 8px 0; cursor: pointer; }
.h5-toolbox-panel button:active { transform: translateY(1px); }
.h5-zodiac-mask { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(0,0,0,0.48); }
.h5-zodiac-mask.open { display: flex; }
.h5-zodiac-card { width: min(92vw, 560px); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,0.28); }
.h5-zodiac-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #e60012; color: #fff; font-size: 20px; font-weight: 900; }
.h5-zodiac-close { border: none; background: #fff; color: #e60012; border-radius: 14px; padding: 5px 12px; font-size: 15px; font-weight: 900; cursor: pointer; }
.h5-zodiac-body { max-height: calc(90vh - 54px); overflow: auto; }
.h5-zodiac-table { display: grid; gap: 6px; padding: 12px; background: #f7fbff; }
.h5-filter-panel { padding: 10px 12px; border: 2px solid #007bff; border-radius: 8px; background: #f0f8ff; margin-bottom: 10px; }
.h5-filter-title { color: #0d47a1; font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.h5-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h5-filter-field { display: grid; gap: 4px; color: #0d47a1; font-size: 14px; font-weight: 800; }
.h5-filter-field select,
.h5-filter-field input { width: 100%; border: 1px solid #93c5fd; border-radius: 6px; padding: 8px 10px; font-size: 15px; background: #fff; color: #111827; }
.h5-filter-actions { display: flex; gap: 8px; margin-top: 8px; }
.h5-filter-actions button { flex: 1; border: none; border-radius: 14px; padding: 8px 0; font-size: 15px; font-weight: 900; color: #fff; cursor: pointer; }
.h5-filter-actions [data-filter-apply] { background: #1d4ed8; }
.h5-filter-actions [data-filter-clear] { background: #e60012; }
.h5-filter-result-wrap { padding: 0 12px 12px; }
.h5-filter-summary { color: #0d47a1; font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.h5-filter-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.h5-filter-card { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border: 2px solid #cbd5e1; border-radius: 8px; font-weight: 900; text-align: center; padding: 0; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.h5-filter-number { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 6px; color: #fff; padding: 5px 4px; }
.h5-filter-num { font-size: 20px; line-height: 1; }
.h5-filter-zodiac { margin-top: 5px; font-size: 16px; line-height: 1; }
.h5-filter-red .h5-filter-number { background: #d90000; }
.h5-filter-blue .h5-filter-number { background: #1d4ed8; }
.h5-filter-green .h5-filter-number { background: #15803d; }
.h5-filter-empty { padding: 12px; text-align: center; color: #6b7280; font-size: 15px; }
.h5-zodiac-table-divider { padding: 0 12px 4px; color: #0d47a1; font-size: 18px; font-weight: 900; }
.h5-zodiac-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px; padding: 8px 10px; border: 2px solid #007bff; border-radius: 8px; background: #ffffff; font-weight: 900; }
.h5-zodiac-animal { color: #d90000; font-size: 22px; white-space: nowrap; }
.h5-zodiac-chong { margin-left: 6px; color: #0d47a1; font-size: 16px; }
.h5-zodiac-numbers { color: #111827; font-size: 20px; letter-spacing: 1px; text-align: left; }
.h5-zodiac-chip-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; letter-spacing: 0; text-align: center; }
.h5-zodiac-number { display: flex; align-items: center; justify-content: center; min-height: 32px; border-radius: 6px; color: #fff; font-size: 18px; font-weight: 900; }
.h5-zodiac-number-red { background: #d90000; }
.h5-zodiac-number-blue { background: #1d4ed8; }
.h5-zodiac-number-green { background: #15803d; }
.h5-wave-list { display: grid; gap: 6px; margin-top: 4px; }
.h5-wave-row { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 8px; padding: 9px 10px; border: 2px solid #d90000; border-radius: 8px; background: #fff5f5; font-weight: 900; }
.h5-wave-title { color: #d90000; font-size: 22px; }
.h5-wave-numbers { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; color: #d90000; font-size: 18px; line-height: 1.45; }
.h5-wave-blue { border-color: #1d4ed8; background: #f3f7ff; }
.h5-wave-blue .h5-wave-title,
.h5-wave-blue .h5-wave-numbers { color: #1d4ed8; }
.h5-wave-green { border-color: #15803d; background: #f0fff4; }
.h5-wave-green .h5-wave-title,
.h5-wave-green .h5-wave-numbers { color: #15803d; }
.h5-info-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; padding: 10px; border: 2px solid #007bff; border-radius: 8px; background: #ffffff; font-weight: 900; }
.h5-info-title { color: #d90000; font-size: 22px; }
.h5-info-content { color: #0d47a1; font-size: 20px; letter-spacing: 1px; }
.h5-wuxing-row { grid-template-columns: 60px 1fr; }
.h5-property-row { padding: 9px 10px; border: 2px solid #007bff; border-radius: 8px; background: #ffffff; text-align: center; font-weight: 900; }
.h5-property-text { color: #0d47a1; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }

@media (max-width: 640px) {
    .h5-toolbox { right: 10px; bottom: 14px; }
    .h5-toolbox-toggle { width: 52px; height: 52px; font-size: 14px; }
    .h5-toolbox-panel { bottom: 60px; width: 94px; }
    .h5-zodiac-row { grid-template-columns: 112px 1fr; padding: 7px 8px; }
    .h5-zodiac-animal { font-size: 20px; }
    .h5-zodiac-chong { font-size: 14px; }
    .h5-zodiac-numbers { font-size: 17px; letter-spacing: 0; }
    .h5-zodiac-chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .h5-zodiac-number { min-height: 28px; font-size: 15px; }
    .h5-filter-grid { grid-template-columns: 1fr; }
    .h5-filter-results { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .h5-filter-card { aspect-ratio: 1 / 1; }
    .h5-filter-num { font-size: 17px; }
    .h5-filter-zodiac { font-size: 14px; }
    .h5-wave-row { grid-template-columns: 64px 1fr; padding: 8px; }
    .h5-wave-title { font-size: 18px; }
    .h5-wave-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 16px; }
    .h5-info-row { grid-template-columns: 74px 1fr; padding: 8px; }
    .h5-wuxing-row { grid-template-columns: 46px 1fr; }
    .h5-info-title { font-size: 18px; }
    .h5-info-content { font-size: 17px; letter-spacing: 0; }
    .h5-property-row { padding: 8px; }
    .h5-property-text { font-size: 16px; }
}
