:root {
    --hz-primary: #6c4cf0;
    --hz-primary-dark: #5436d3;
    --hz-accent: #ff6b9d;
    --hz-bg: #0f1029;
    --hz-bg-soft: #171836;
    --hz-card: rgba(255, 255, 255, 0.06);
    --hz-border: rgba(255, 255, 255, 0.1);
    --hz-text: #eef0ff;
    --hz-muted: #a8acd6;
    --hz-success: #4ade80;
    --hz-gold: #fbbf24;
    --hz-radius: 16px;
    --hz-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hz-page {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--hz-text);
    background:
        radial-gradient(circle at 20% 10%, rgba(108, 76, 240, 0.25), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(255, 107, 157, 0.18), transparent 30%),
        linear-gradient(180deg, #0b0c22 0%, #12132e 100%);
    line-height: 1.7;
}

a { color: #c4b5fd; text-decoration: none; }
a:hover { color: #fff; }

.hz-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hz-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(11, 12, 34, 0.82);
    border-bottom: 1px solid var(--hz-border);
}

.hz-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.hz-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hz-brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hz-primary), var(--hz-accent));
    font-size: 24px;
    box-shadow: var(--hz-shadow);
}

.hz-brand-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.hz-brand-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--hz-muted);
}

.hz-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hz-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hz-border);
    font-size: 14px;
}

.hz-nav a:hover {
    background: rgba(108, 76, 240, 0.25);
    border-color: rgba(108, 76, 240, 0.5);
}

.hz-period-bar-wrap {
    margin-top: 16px;
}

.hz-period-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--hz-card);
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
    box-shadow: var(--hz-shadow);
    scrollbar-width: none;
}

.hz-period-tabs::-webkit-scrollbar { display: none; }

.hz-period-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
    color: var(--hz-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hz-period-tab:hover {
    color: #fff;
    background: rgba(108, 76, 240, 0.22);
}

.hz-period-tab.is-active {
    color: #fff;
    background: rgba(108, 76, 240, 0.45);
    border-color: rgba(108, 76, 240, 0.55);
    font-weight: 600;
}

.hz-main { padding: 24px 0 48px; }

.hz-hero-card,
.hz-text-card,
.hz-fortune-card,
.hz-pair-card,
.hz-profile-card,
.hz-sign-card,
.hz-article-item,
.hz-faq-item {
    background: var(--hz-card);
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
    box-shadow: var(--hz-shadow);
}

.hz-hero-card {
    padding: 28px;
    margin-top: 8px;
}

.hz-date-line {
    color: var(--hz-muted);
    font-size: 14px;
    margin: 0 0 12px;
}

.hz-section { margin-top: 36px; }

.hz-section-title {
    margin: 0 0 10px;
    font-size: 24px;
}

.hz-section-desc,
.hz-lead,
.hz-muted {
    color: var(--hz-muted);
}

.hz-lead { font-size: 16px; margin: 0 0 18px; }

.hz-overall-score {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hz-score-num {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hz-score-label { color: var(--hz-muted); }

.hz-sign-stars { color: var(--hz-gold); letter-spacing: 2px; }
.hz-sign-stars.lg { font-size: 20px; }

.hz-fortune-grid,
.hz-profile-grid,
.hz-pairing-grid,
.hz-sign-grid {
    display: grid;
    gap: 16px;
}

.hz-fortune-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hz-profile-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hz-pairing-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hz-sign-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.hz-fortune-card,
.hz-text-card,
.hz-profile-card,
.hz-pair-card {
    padding: 20px;
}

.hz-fortune-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hz-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.hz-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hz-primary), var(--hz-accent));
}

.hz-progress.sm { height: 6px; margin-top: 12px; margin-bottom: 0; }

.hz-lucky-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: var(--hz-radius);
    background: rgba(108, 76, 240, 0.12);
    border: 1px solid rgba(108, 76, 240, 0.25);
}

.hz-pair-card {
    position: relative;
    padding-left: 56px;
}

.hz-pair-rank {
    position: absolute;
    left: 16px;
    top: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}

.hz-pair-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hz-pair-symbol { font-size: 28px; line-height: 1; }

.hz-pair-card h3 {
    margin: 0;
    font-size: 16px;
}

.hz-pair-level {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--hz-muted);
}

.level-excellent .hz-progress i { background: linear-gradient(90deg, #22c55e, #86efac); }
.level-great .hz-progress i { background: linear-gradient(90deg, #6366f1, #a78bfa); }
.level-good .hz-progress i { background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.level-fair .hz-progress i { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.level-low .hz-progress i { background: linear-gradient(90deg, #64748b, #94a3b8); }

.hz-sign-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
    transition: transform .2s, border-color .2s, background .2s;
}

.hz-sign-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 76, 240, 0.55);
    background: rgba(108, 76, 240, 0.12);
}

.hz-sign-symbol { font-size: 34px; margin-bottom: 8px; }
.hz-sign-dates,
.hz-sign-score {
    font-size: 12px;
    color: var(--hz-muted);
    margin-top: 6px;
}

.hz-table-wrap {
    overflow-x: auto;
    border-radius: var(--hz-radius);
    border: 1px solid var(--hz-border);
}

.hz-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: rgba(255, 255, 255, 0.03);
}

.hz-table th,
.hz-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hz-border);
    text-align: left;
}

.hz-table th {
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.hz-badge {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(108, 76, 240, 0.25);
    font-weight: 700;
}

.hz-pairing-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hz-pairing-links a {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hz-border);
    font-size: 14px;
}

.hz-profile-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hz-profile-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hz-border);
}

.hz-profile-card li span { color: var(--hz-muted); }

.hz-profile-card h3 { margin: 0 0 12px; }

.hz-ad-wrap {
    margin-top: 16px;
    border-radius: var(--hz-radius);
    overflow: hidden;
}

.hz-article-list { display: grid; gap: 16px; }
.hz-article-item { padding: 20px; }
.hz-article-item h3 { margin: 0 0 10px; font-size: 18px; }

.hz-faq-list { display: grid; gap: 12px; }

.hz-faq-item {
    padding: 0 18px;
}

.hz-faq-item summary {
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    list-style: none;
}

.hz-faq-item summary::-webkit-details-marker { display: none; }

.hz-faq-item p {
    margin: 0 0 18px;
    color: var(--hz-muted);
}

.hz-footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--hz-border);
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
    color: var(--hz-muted);
    font-size: 14px;
}

.hz-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    margin-bottom: 16px;
}

.hz-icp a { color: var(--hz-muted); }

@media (max-width: 768px) {
    .hz-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hz-brand-title { font-size: 18px; }

    .hz-nav { width: 100%; }
    .hz-nav a { flex: 1 1 calc(50% - 10px); text-align: center; }

    .hz-section-title { font-size: 20px; }
    .hz-score-num { font-size: 40px; }
}
