:root {
    --douhao-primary: #A78BFA;
    --douhao-primary-dark: #7C3AED;
    --douhao-primary-light: #C4B5FD;
    --douhao-accent: #C084FC;
    --douhao-bg: #ffffff;
    --douhao-bg-soft: #f8f6ff;
    --douhao-bg-soft-2: #f0ebff;
    --douhao-text: #241a2d;
    --douhao-text-2: #8078a0;
    --douhao-text-3: #b0a8c8;
    --douhao-border: #e8e0ff;
    --douhao-border-2: #f2edff;
    --douhao-success: #10b981;
    --douhao-error: #e53e3e;
    --douhao-shadow-sm: 0 2px 12px rgba(167,139,250,0.06);
    --douhao-shadow: 0 6px 24px rgba(167,139,250,0.10);
    --douhao-shadow-lg: 0 16px 48px rgba(167,139,250,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
    background: var(--douhao-bg);
    background-image:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(167,139,250,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(139,92,246,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(192,132,252,0.09) 0%, transparent 55%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--douhao-text);
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(167,139,250,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.douhao-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--douhao-border-2);
    z-index: 100;
    box-shadow: 0 1px 0 rgba(167,139,250,0.04);
}
.douhao-topbar-inner {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 28px;
}
.douhao-topbar-main {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.douhao-logo { display: flex; align-items: center; gap: 14px; color: var(--douhao-text); flex-shrink: 0; }
.douhao-logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-accent));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    box-shadow: 0 4px 16px rgba(167,139,250,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}
.douhao-logo-text {
    font-size: 21px; font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--douhao-text);
}
.douhao-logo-text small {
    display: block; font-size: 10px; font-weight: 500;
    opacity: 0.5; letter-spacing: 3px; margin-top: 2px;
    color: var(--douhao-text-2);
}
.douhao-logo-img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}
.douhao-nav {
    display: flex; gap: 2px; flex: 1; justify-content: center;
    background: rgba(248,246,255,0.6);
    padding: 4px; border-radius: 14px;
    border: 1px solid var(--douhao-border-2);
}
.douhao-nav a {
    padding: 9px 20px;
    color: var(--douhao-text-2);
    border-radius: 10px;
    font-size: 14.5px; font-weight: 500;
    transition: all 0.25s;
    display: flex; align-items: center; gap: 7px;
    white-space: nowrap;
}
.douhao-nav a:hover {
    color: var(--douhao-primary-dark);
    background: rgba(167,139,250,0.08);
}
.douhao-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    box-shadow: 0 4px 14px rgba(167,139,250,0.35);
}
.douhao-topbar-time {
    font-size: 13.5px;
    color: var(--douhao-text-2);
    display: flex; align-items: center; gap: 7px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    flex-shrink: 0;
}
.douhao-topbar-time i { color: var(--douhao-primary); }
.douhao-nav-mobile { display: none; }

.douhao-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 28px 60px;
    position: relative;
    z-index: 1;
}

.douhao-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #f8f6ff 0%, #ffffff 50%, #f0ebff 100%);
    border: 1px solid var(--douhao-border);
    border-radius: 28px;
    padding: 48px 56px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--douhao-shadow);
}
.douhao-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.douhao-hero::after {
    content: '';
    position: absolute;
    bottom: -60%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.douhao-hero-content { position: relative; z-index: 1; }
.douhao-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: rgba(167,139,250,0.12);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--douhao-primary-dark);
    font-weight: 500;
    margin-bottom: 20px;
}
.douhao-hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--douhao-primary);
    border-radius: 50%;
    animation: douhaoPulse 2s infinite;
}
@keyframes douhaoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.douhao-hero h1 {
    font-size: 46px; font-weight: 800;
    line-height: 1.2; letter-spacing: -0.5px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #241a2d 0%, var(--douhao-primary-dark) 60%, var(--douhao-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.douhao-hero p {
    font-size: 17px; line-height: 1.7;
    color: var(--douhao-text-2);
    margin-bottom: 28px;
    max-width: 520px;
}
.douhao-hero-stats { display: flex; gap: 32px; }
.douhao-hero-stat .num {
    font-size: 28px; font-weight: 800;
    color: var(--douhao-primary-dark);
    line-height: 1; margin-bottom: 6px;
}
.douhao-hero-stat .label {
    font-size: 13px; color: var(--douhao-text-2);
}

.douhao-hero-visual {
    position: relative;
    height: 320px;
    display: flex; align-items: center; justify-content: center;
}
.douhao-wheel { position: relative; width: 280px; height: 280px; }
.douhao-wheel-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(167,139,250,0.3);
    animation: douhaoRotate 60s linear infinite;
}
.douhao-wheel-ring-inner {
    position: absolute; inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(167,139,250,0.15);
}
@keyframes douhaoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.douhao-wheel-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90px; height: 90px;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px; color: #fff;
    box-shadow: 0 8px 32px rgba(167,139,250,0.45), inset 0 2px 0 rgba(255,255,255,0.3);
}
.douhao-wheel-sat {
    position: absolute;
    top: 50%; left: 50%;
    font-size: 22px;
    color: var(--douhao-primary);
    opacity: 0.7;
}
.douhao-wheel-sat:nth-child(3) { transform: translate(-50%, -50%) rotate(0deg) translateY(-140px) rotate(0deg); }
.douhao-wheel-sat:nth-child(4) { transform: translate(-50%, -50%) rotate(30deg) translateY(-140px) rotate(-30deg); }
.douhao-wheel-sat:nth-child(5) { transform: translate(-50%, -50%) rotate(60deg) translateY(-140px) rotate(-60deg); }
.douhao-wheel-sat:nth-child(6) { transform: translate(-50%, -50%) rotate(90deg) translateY(-140px) rotate(-90deg); }
.douhao-wheel-sat:nth-child(7) { transform: translate(-50%, -50%) rotate(120deg) translateY(-140px) rotate(-120deg); }
.douhao-wheel-sat:nth-child(8) { transform: translate(-50%, -50%) rotate(150deg) translateY(-140px) rotate(-150deg); }
.douhao-wheel-sat:nth-child(9) { transform: translate(-50%, -50%) rotate(180deg) translateY(-140px) rotate(-180deg); }
.douhao-wheel-sat:nth-child(10) { transform: translate(-50%, -50%) rotate(210deg) translateY(-140px) rotate(-210deg); }
.douhao-wheel-sat:nth-child(11) { transform: translate(-50%, -50%) rotate(240deg) translateY(-140px) rotate(-240deg); }
.douhao-wheel-sat:nth-child(12) { transform: translate(-50%, -50%) rotate(270deg) translateY(-140px) rotate(-270deg); }
.douhao-wheel-sat:nth-child(13) { transform: translate(-50%, -50%) rotate(300deg) translateY(-140px) rotate(-300deg); }
.douhao-wheel-sat:nth-child(14) { transform: translate(-50%, -50%) rotate(330deg) translateY(-140px) rotate(-330deg); }

.douhao-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.douhao-head h2 {
    font-size: 22px; font-weight: 700;
    display: flex; align-items: center; gap: 12px;
    color: var(--douhao-text);
}
.douhao-head-badge {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-accent));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 14px rgba(167,139,250,0.3);
}
.douhao-head-hint {
    font-size: 13.5px;
    color: var(--douhao-text-2);
    display: flex; align-items: center; gap: 6px;
}

.douhao-const-section { margin-bottom: 32px; }
.douhao-const-wrap {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--douhao-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--douhao-shadow-sm);
}
.douhao-const-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.douhao-const-item {
    background: linear-gradient(180deg, #ffffff, var(--douhao-bg-soft));
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px 8px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.douhao-const-item:hover {
    transform: translateY(-3px);
    border-color: rgba(167,139,250,0.5);
    box-shadow: 0 8px 24px rgba(167,139,250,0.15);
}
.douhao-const-item.active {
    border-color: var(--douhao-primary);
    background: linear-gradient(180deg, rgba(167,139,250,0.14), rgba(255,255,255,0.5));
    box-shadow: 0 10px 28px rgba(167,139,250,0.28);
}
.douhao-const-icon {
    font-size: 38px; line-height: 1;
    margin-bottom: 8px; display: block;
    color: var(--douhao-primary);
    filter: drop-shadow(0 2px 6px rgba(167,139,250,0.3));
    transition: transform 0.3s, color 0.3s;
}
.douhao-const-item.active .douhao-const-icon {
    transform: scale(1.15);
    color: var(--douhao-primary-dark);
}
.douhao-const-name {
    font-size: 13.5px; font-weight: 700;
    color: var(--douhao-text);
}

.douhao-tabs-wrap {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--douhao-border);
    border-radius: 22px;
    padding: 8px;
    margin-bottom: 24px;
    box-shadow: var(--douhao-shadow-sm);
}
.douhao-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.douhao-tab {
    padding: 13px 20px;
    background: transparent;
    border: none;
    border-radius: 16px;
    font-size: 15px; font-weight: 500;
    color: var(--douhao-text-2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; justify-content: center;
    gap: 9px;
    font-family: inherit;
}
.douhao-tab i { font-size: 15px; transition: transform 0.3s; }
.douhao-tab:hover:not(.active) {
    color: var(--douhao-primary-dark);
    background: rgba(167,139,250,0.06);
}
.douhao-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    box-shadow: 0 6px 20px rgba(167,139,250,0.35);
}
.douhao-tab.active i { transform: scale(1.1); }

.douhao-fortune {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--douhao-border);
    border-radius: 26px;
    box-shadow: var(--douhao-shadow);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}
.douhao-fortune::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--c-color, var(--douhao-primary)) 0%, transparent 60%);
    opacity: 0.08;
    pointer-events: none;
}
.douhao-fortune-head {
    display: flex; align-items: center; gap: 24px;
    padding: 32px 36px;
    border-bottom: 1px solid var(--douhao-border-2);
    position: relative; z-index: 1;
    background: linear-gradient(135deg, rgba(248,246,255,0.6), rgba(255,255,255,0.4));
}
.douhao-fortune-icon {
    width: 96px; height: 96px;
    border-radius: 26px;
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; color: #fff;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-accent));
    box-shadow: 0 12px 32px rgba(167,139,250,0.4), inset 0 2px 0 rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.douhao-fortune-info { flex: 1; min-width: 0; }
.douhao-fortune-info h2 {
    font-size: 30px; font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--douhao-primary-dark), var(--douhao-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.douhao-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.douhao-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px;
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.18);
    border-radius: 20px;
    font-size: 13px;
    color: var(--douhao-primary-dark);
    font-weight: 500;
}
.douhao-tag.gold { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.2); color: #6D28D9; }
.douhao-tag.pink { background: rgba(217,70,239,0.1); border-color: rgba(217,70,239,0.2); color: #A21CAF; }
.douhao-tag.green { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #047857; }

.douhao-fortune-body { padding: 32px 36px; position: relative; z-index: 1; }

.douhao-ring-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px dashed var(--douhao-border);
}
.douhao-ring-item { text-align: center; }
.douhao-ring-chart {
    width: 100px; height: 100px;
    margin: 0 auto 10px;
    position: relative;
}
.douhao-ring-svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.douhao-ring-bg {
    fill: none;
    stroke: rgba(167,139,250,0.1);
    stroke-width: 8;
}
.douhao-ring-progress {
    fill: none;
    stroke: url(#douhaoRingGrad);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.douhao-ring-value {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px; font-weight: 800;
    color: var(--douhao-primary-dark);
    font-variant-numeric: tabular-nums;
}
.douhao-ring-label {
    font-size: 13.5px;
    color: var(--douhao-text-2);
    font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    gap: 5px;
}
.douhao-ring-label i { color: var(--douhao-primary); font-size: 12px; }

.douhao-lucky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.douhao-lucky {
    background: linear-gradient(135deg, rgba(248,246,255,0.8), rgba(255,255,255,0.9));
    border: 1px solid var(--douhao-border);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    transition: all 0.25s;
}
.douhao-lucky:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167,139,250,0.12);
    border-color: rgba(167,139,250,0.35);
}
.douhao-lucky-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-accent));
    color: #fff;
    box-shadow: 0 4px 12px rgba(167,139,250,0.3);
}
.douhao-lucky-icon.pink { background: linear-gradient(135deg, #D946EF, #A21CAF); }
.douhao-lucky-icon.gold { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.douhao-lucky-body { min-width: 0; }
.douhao-lucky-label { font-size: 12.5px; color: var(--douhao-text-2); margin-bottom: 3px; }
.douhao-lucky-value { font-size: 17px; font-weight: 700; color: var(--douhao-text); word-break: break-word; }

.douhao-block {
    background: linear-gradient(135deg, rgba(248,246,255,0.5), rgba(255,255,255,0.7));
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 14px;
    transition: all 0.25s;
}
.douhao-block:hover {
    border-left-width: 5px;
    background: linear-gradient(135deg, rgba(248,246,255,0.9), rgba(255,255,255,0.9));
}
.douhao-block-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 700;
    color: var(--douhao-primary-dark);
    margin-bottom: 12px;
}
.douhao-block-icon {
    width: 28px; height: 28px;
    border-radius: 9px;
    background: rgba(167,139,250,0.15);
    color: var(--douhao-primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.douhao-block-content {
    font-size: 16px; line-height: 1.85;
    color: var(--douhao-text);
}
.douhao-block.love { border-left-color: #D946EF; }
.douhao-block.love .douhao-block-title { color: #A21CAF; }
.douhao-block.love .douhao-block-icon { background: rgba(217,70,239,0.15); color: #A21CAF; }
.douhao-block.money, .douhao-block.finance { border-left-color: #FBBF24; }
.douhao-block.money .douhao-block-title, .douhao-block.finance .douhao-block-title { color: #B45309; }
.douhao-block.money .douhao-block-icon, .douhao-block.finance .douhao-block-icon { background: rgba(251,191,36,0.15); color: #B45309; }
.douhao-block.health { border-left-color: #34D399; }
.douhao-block.health .douhao-block-title { color: #047857; }
.douhao-block.health .douhao-block-icon { background: rgba(52,211,153,0.15); color: #047857; }
.douhao-block.career { border-left-color: #60A5FA; }
.douhao-block.career .douhao-block-title { color: #2563EB; }
.douhao-block.career .douhao-block-icon { background: rgba(96,165,250,0.15); color: #2563EB; }

.douhao-loading { display: none; text-align: center; padding: 100px 20px; }
.douhao-loading.show { display: block; }
.douhao-spinner {
    width: 56px; height: 56px;
    border: 4px solid rgba(167,139,250,0.15);
    border-top-color: var(--douhao-primary);
    border-radius: 50%;
    animation: douhaoSpin 0.8s linear infinite;
    margin: 0 auto 20px;
}
@keyframes douhaoSpin { to { transform: rotate(360deg); } }
.douhao-loading p { color: var(--douhao-text-2); font-size: 15px; }
.douhao-error { display: none; text-align: center; padding: 100px 20px; color: var(--douhao-error); }
.douhao-error.show { display: block; }
.douhao-error i { font-size: 52px; margin-bottom: 16px; opacity: 0.7; }
.douhao-error p { font-size: 15px; }

.douhao-articles { margin-top: 60px; }
.douhao-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 22px;
}
.douhao-article-card {
    background: #fff;
    border: 1px solid var(--douhao-border-2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--douhao-shadow-sm);
}
.douhao-article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(167,139,250,0.35);
    box-shadow: var(--douhao-shadow-lg);
}
.douhao-article-head {
    height: 130px;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.douhao-article-head-icon {
    position: relative; z-index: 1;
    object-fit: cover;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.douhao-article-body { padding: 22px 24px 24px; }
.douhao-article-title {
    font-size: 18px; font-weight: 700;
    color: var(--douhao-text);
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.2s;
}
.douhao-article-title a { color: var(--douhao-text); }
.douhao-article-card:hover .douhao-article-title a { color: var(--douhao-primary-dark); }
.douhao-article-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    display: flex; flex-direction: column;
    gap: 2px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}
.douhao-article-list::-webkit-scrollbar { width: 4px; }
.douhao-article-list::-webkit-scrollbar-thumb { background: rgba(167,139,250,0.25); border-radius: 4px; }
.douhao-article-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 5px 0px;
    border-radius: 8px;
    font-size: 13.5px; line-height: 1.5;
    transition: all 0.2s;
}
.douhao-article-item:hover {
    background: rgba(167,139,250,0.08);
    transform: translateX(2px);
}
.douhao-article-num {
    flex-shrink: 0;
    width: 24px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: rgba(167,139,250,0.12);
    color: var(--douhao-primary-dark);
    border-radius: 6px;
    margin-top: 1px;
}
.douhao-article-text {
    flex: 1;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--douhao-text);
}
.douhao-article-item:hover .douhao-article-text { color: var(--douhao-primary-dark); }
.douhao-article-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
    color: var(--douhao-text-3);
    padding-top: 14px;
    border-top: 1px dashed var(--douhao-border);
}
.douhao-article-meta span { display: flex; align-items: center; gap: 6px; }
.douhao-article-empty {
    padding: 30px 0;
    text-align: center;
    color: var(--douhao-text-3);
    font-size: 14px;
}

.douhao-search-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--douhao-border);
    border-radius: 22px;
    padding: 4px 6px 4px 18px;
    box-shadow: var(--douhao-shadow-sm);
    flex: 0 1 340px;
    min-width: 220px;
}
.douhao-search-inline i { color: var(--douhao-text-3); font-size: 14px; }
.douhao-search-inline input {
    flex: 1; min-width: 0;
    border: none; outline: none;
    background: transparent;
    padding: 9px 4px;
    font-size: 14.5px;
    color: var(--douhao-text);
    font-family: inherit;
}
.douhao-search-inline input::placeholder { color: var(--douhao-text-3); }
.douhao-search-inline button {
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
}
.douhao-search-inline button:hover {
    box-shadow: 0 4px 14px rgba(167,139,250,0.4);
}

.douhao-search-head {
    background: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 22px;
    box-shadow: var(--douhao-shadow-sm);
    border: 1px solid var(--douhao-border);
}
.douhao-search-head h2 { font-size: 19px; color: var(--douhao-text); }
.douhao-search-head h2 i { color: var(--douhao-primary); margin-right: 6px; }
.douhao-search-head h2 span { color: var(--douhao-primary-dark); }
.douhao-search-head p { color: var(--douhao-text-2); font-size: 13.5px; margin-top: 8px; }
.douhao-search-words { margin-left: 10px; color: var(--douhao-text-3); }
.douhao-search-words em {
    font-style: normal;
    background: rgba(167,139,250,0.12);
    color: var(--douhao-primary-dark);
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-right: 4px;
}

.douhao-cat-head { margin-bottom: 15px; }
.douhao-cat-head h1 { font-size: 22px; color: var(--douhao-text); margin-bottom: 5px; }
.douhao-cat-head h1 i { color: var(--douhao-primary); }
.douhao-cat-head p { color: var(--douhao-text-2); font-size: 13.5px; }
.douhao-cat-tabs {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--douhao-shadow-sm);
    border: 1px solid var(--douhao-border);
    margin-bottom: 22px;
    scrollbar-width: none;
}
.douhao-cat-tabs::-webkit-scrollbar { display: none; }
.douhao-cat-tab {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 16px;
    background: var(--douhao-bg-soft);
    color: var(--douhao-text-2);
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s;
}
.douhao-cat-tab:hover {
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
}
.douhao-cat-tab.active {
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(167,139,250,0.35);
}

.douhao-list { display: flex; flex-direction: column; gap: 15px; }
.douhao-list-item {
    display: flex; gap: 18px;
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--douhao-shadow-sm);
    border: 1px solid var(--douhao-border-2);
    transition: all 0.25s;
}
.douhao-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--douhao-shadow);
    border-color: rgba(167,139,250,0.35);
}
.douhao-list-thumb { flex-shrink: 0; }
.douhao-list-thumb img {
    width: 200px; height: 140px;
    object-fit: cover;
    border-radius: 12px;
}
.douhao-list-content {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    min-width: 0;
}
.douhao-list-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.douhao-list-title a { color: var(--douhao-text); }
.douhao-list-title a:hover { color: var(--douhao-primary-dark); }
.douhao-list-desc {
    color: var(--douhao-text-2);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.douhao-list-meta {
    color: var(--douhao-text-3);
    font-size: 12.5px;
    display: flex; align-items: center; gap: 15px;
    flex-wrap: wrap;
}
.douhao-list-author {
    display: inline-flex; align-items: center; gap: 6px;
    margin-right: auto;
}
.douhao-list-avatar {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: #F3F3F3;
}
.douhao-list-name { color: var(--douhao-text-2); font-size: 12.5px; }
.douhao-list-more {
    color: var(--douhao-primary-dark);
    font-weight: 600;
    font-size: 13px;
}
.douhao-list-more:hover { color: var(--douhao-primary); }
.douhao-hit {
    font-style: normal;
    color: var(--douhao-primary-dark);
    font-weight: 700;
    background: rgba(167,139,250,0.15);
    padding: 0 2px;
    border-radius: 2px;
}

.douhao-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--douhao-text-2);
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--douhao-border);
}
.douhao-empty i { font-size: 48px; color: #ddd; display: block; margin-bottom: 15px; }
.douhao-empty p { font-size: 15px; margin-bottom: 15px; }
.douhao-btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
    border-radius: 22px;
    font-size: 14px;
    transition: all 0.3s;
}
.douhao-btn-primary:hover { box-shadow: 0 6px 20px rgba(167,139,250,0.4); }

.douhao-detail-layout { display: flex; gap: 24px; align-items: flex-start; }
.douhao-detail-main { flex: 1; min-width: 0; }
.douhao-detail-side { width: 300px; flex-shrink: 0; }

.douhao-detail {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--douhao-shadow-sm);
    border: 1px solid var(--douhao-border);
}
.douhao-detail h1 {
    font-size: 26px;
    color: var(--douhao-text);
    margin-bottom: 16px;
    line-height: 1.4;
    font-weight: 800;
}
.douhao-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--douhao-text-3);
    font-size: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--douhao-border-2);
    margin-bottom: 22px;
}
.douhao-detail-author {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--douhao-text);
    margin-right: auto;
}
.douhao-detail-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #F3F3F3;
}
.douhao-detail-right {
    display: inline-flex; align-items: center; gap: 15px;
    flex-wrap: wrap;
}
.douhao-detail-content {
    line-height: 1.9;
    font-size: 16px;
    color: var(--douhao-text);
}
.douhao-detail-content p { margin-bottom: 14px; text-indent: 2em; }
.douhao-detail-content p:has(img) { text-indent: 0; }
.douhao-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px auto;
    display: block;
}
.douhao-detail-content h2,
.douhao-detail-content h3,
.douhao-detail-content h4 {
    margin: 22px 0 12px;
    text-indent: 0;
    color: var(--douhao-text);
}
.douhao-detail-content ul,
.douhao-detail-content ol { margin: 12px 0 12px 24px; text-indent: 0; }
.douhao-detail-content blockquote {
    border-left: 4px solid var(--douhao-primary);
    background: var(--douhao-bg-soft);
    padding: 10px 16px;
    margin: 14px 0;
    border-radius: 0 8px 8px 0;
    color: var(--douhao-text-2);
    text-indent: 0;
}
.douhao-detail-content blockquote p { text-indent: 0; }

.douhao-detail-tags {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--douhao-border-2);
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
}
.douhao-detail-tags span { color: var(--douhao-text-2); font-size: 13.5px; }
.douhao-detail-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(167,139,250,0.1);
    color: var(--douhao-primary-dark);
    border-radius: 15px;
    font-size: 12.5px;
    transition: all 0.3s;
}
.douhao-detail-tag:hover {
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
}

.douhao-detail-nav {
    display: flex; justify-content: space-between; gap: 15px;
    margin-top: 22px;
}
.douhao-detail-nav a {
    flex: 1;
    padding: 12px 16px;
    background: var(--douhao-bg-soft);
    border-radius: 12px;
    font-size: 13.5px;
    transition: all 0.3s;
    color: var(--douhao-text);
}
.douhao-detail-nav a:hover {
    background: rgba(167,139,250,0.15);
    color: var(--douhao-primary-dark);
}
.douhao-detail-nav .next { text-align: right; }
.douhao-nav-label {
    display: block;
    font-size: 11.5px;
    color: var(--douhao-text-3);
    margin-bottom: 4px;
}

.douhao-side-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--douhao-shadow-sm);
    border: 1px solid var(--douhao-border);
    margin-bottom: 18px;
}
.douhao-side-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--douhao-primary);
    color: var(--douhao-text);
}
.douhao-side-card h3 i { color: var(--douhao-primary); margin-right: 6px; }
.douhao-side-list { list-style: none; }
.douhao-side-list li {
    display: flex; align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--douhao-border-2);
    gap: 10px;
}
.douhao-side-list li:last-child { border-bottom: none; }
.douhao-side-list a {
    flex: 1;
    color: var(--douhao-text-2);
    font-size: 14.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-side-list a:hover { color: var(--douhao-primary-dark); }
.douhao-side-views { color: var(--douhao-text-3); font-size: 11.5px; flex-shrink: 0; }

.douhao-readmore-preview { position: relative; }
.douhao-readmore-overlay {
    position: relative;
    margin-top: -150px;
    padding-top: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 50%, rgba(255,255,255,0.98) 80%, #fff 100%);
    text-align: center;
    min-height: 120px;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    pointer-events: none;
}
.douhao-readmore-text { padding: 20px 30px 30px; pointer-events: auto; }
.douhao-readmore-arrow {
    animation: douhaoArrow 1.5s ease-in-out infinite;
    font-size: 32px;
    color: var(--douhao-primary-dark);
    display: block;
    margin-bottom: 8px;
}
@keyframes douhaoArrow {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(10px); opacity: 1; }
}
.douhao-readmore-hint {
    font-size: 14px;
    color: var(--douhao-text-2);
    letter-spacing: 2px;
}
.douhao-readmore-wrap { text-align: center; padding: 20px 0 30px; margin-top: 10px; }
.douhao-readmore-btn {
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(167,139,250,0.3);
    font-family: inherit;
}
.douhao-readmore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(167,139,250,0.45);
}
.douhao-readmore-btn i { margin-right: 8px; }

.douhao-readmore-ad {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.douhao-readmore-ad.show { display: flex; }
.douhao-readmore-ad-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.douhao-readmore-tip {
    text-align: center;
    font-size: 15px;
    color: var(--douhao-text-2);
    margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center;
    gap: 4px;
}
.douhao-countdown {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: var(--douhao-primary-dark);
    min-width: 30px;
    text-align: center;
    background: rgba(167,139,250,0.15);
    padding: 0 10px;
    border-radius: 6px;
    line-height: 1.4;
}
.douhao-readmore-ad-body {
    background: var(--douhao-bg-soft);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.douhao-readmore-ad-body img { max-width: 100%; height: auto; }

.douhao-rs-page {
    background: #fff;
    border-radius: 20px;
    padding: 32px 36px;
    box-shadow: var(--douhao-shadow-sm);
    border: 1px solid var(--douhao-border);
}
.douhao-rs-head {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--douhao-border-2);
}
.douhao-rs-head h1 {
    font-size: 28px;
    color: var(--douhao-text);
    margin-bottom: 10px;
}
.douhao-rs-head h1 i { color: var(--douhao-primary-dark); }
.douhao-rs-head p { color: var(--douhao-text-2); font-size: 15px; }
.douhao-rs-count { color: var(--douhao-text-3); font-size: 13px; margin-top: 8px; }
.douhao-rs-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.douhao-rs-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
    font-size: 14px;
}
.douhao-rs-tag:hover { transform: translateY(-2px) scale(1.03); }
.douhao-rs-hot {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.douhao-rs-warm {
    background: linear-gradient(135deg, #ff9a6c, #ff7a4d);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 3px 10px rgba(255,122,77,0.25);
}
.douhao-rs-mild {
    background: var(--douhao-bg-soft-2);
    color: var(--douhao-primary-dark);
    border: 1px solid var(--douhao-primary-light);
    font-size: 15px;
}
.douhao-rs-cool {
    background: var(--douhao-bg-soft);
    color: var(--douhao-text-2);
    border: 1px solid var(--douhao-border);
    font-size: 14px;
}
.douhao-rs-top {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(244,67,54,0.4);
}
.douhao-rs-num {
    font-size: 11px;
    opacity: 0.75;
    background: rgba(0,0,0,0.1);
    padding: 1px 6px;
    border-radius: 8px;
}

.douhao-cat-fortune-wrap {
    margin-bottom: 26px;
}
.douhao-cat-fortune-wrap .douhao-tabs-wrap {
    margin-bottom: 18px;
}

.douhao-footer-cols {
    background: #fff;
    border: 1px solid var(--douhao-border);
    border-radius: 20px;
    padding: 32px 36px;
    margin-top: 40px;
    box-shadow: var(--douhao-shadow-sm);
}
.douhao-footer-cols-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
}
.douhao-footer-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--douhao-border-2);
    position: relative;
}
.douhao-footer-col-head::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 40px; height: 2px;
    background: var(--douhao-primary-dark);
    border-radius: 1px;
}
.douhao-footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--douhao-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.douhao-footer-col-title i {
    color: var(--douhao-primary);
    font-size: 14px;
}
.douhao-footer-col-more {
    font-size: 13px;
    color: var(--douhao-text-2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.douhao-footer-col-more:hover {
    color: var(--douhao-primary-dark);
    gap: 8px;
}
.douhao-footer-col-more i { font-size: 11px; }
.douhao-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.douhao-footer-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--douhao-bg-soft);
    color: var(--douhao-text-2);
    border: 1px solid var(--douhao-border);
    border-radius: 16px;
    font-size: 13px;
    transition: all 0.25s;
}
.douhao-footer-tag:hover {
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167,139,250,0.3);
}
.douhao-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
    gap: 4px 20px;
}
.douhao-footer-links li { padding: 5px 0; }
.douhao-footer-links a {
    color: var(--douhao-text-2);
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.douhao-footer-links a::before {
    content: '·';
    color: var(--douhao-primary);
    font-weight: 700;
}
.douhao-footer-links a:hover {
    color: var(--douhao-primary-dark);
    transform: translateX(3px);
}

.douhao-footer {
    text-align: center;
    padding: 48px 20px 32px;
    color: var(--douhao-text-2);
    font-size: 14px;
    border-top: 1px solid var(--douhao-border-2);
    margin-top: 60px;
}
.douhao-footer-deco {
    margin-bottom: 18px;
    font-size: 20px;
    letter-spacing: 14px;
    opacity: 0.85;
    color: var(--douhao-primary);
}
.douhao-footer-text { line-height: 1.8; }
.douhao-footer-text strong { color: var(--douhao-primary-dark); font-weight: 600; }
.douhao-footer-text a { color: var(--douhao-primary-dark); }

@media (max-width: 1024px) {
    .douhao-hero { grid-template-columns: 1fr; padding: 36px 32px; }
    .douhao-hero-visual { display: none; }
    .douhao-hero h1 { font-size: 36px; }
    .douhao-ring-grid { grid-template-columns: repeat(3, 1fr); }
    .douhao-detail-layout { flex-direction: column; }
    .douhao-detail-side { width: 100%; }
}
@media (max-width: 768px) {
    .douhao-hero { display: none; }
    .douhao-head { display: none; }
    .douhao-articles { margin-top: 20px; }
    .douhao-const-section { margin-bottom: 20px;}
    .douhao-topbar-inner { padding: 0 14px; }
    .douhao-topbar-main {
        height: 60px;
        gap: 10px;
    }
    .douhao-logo-icon { width: 38px; height: 38px; font-size: 19px; border-radius: 11px; }
    .douhao-logo-text { font-size: 16px; }
    .douhao-logo-text small { font-size: 9px; letter-spacing: 2px; }
    .douhao-logo-img { height: 34px; max-width: 140px; }
    .douhao-nav { display: none; }

    .douhao-nav-mobile {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 0 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
    }
    .douhao-nav-mobile::-webkit-scrollbar { display: none; }
    .douhao-nav-mobile a {
        flex-shrink: 0;
        padding: 7px 14px;
        color: var(--douhao-text-2);
        background: rgba(248,246,255,0.9);
        border: 1px solid var(--douhao-border);
        border-radius: 18px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.25s;
    }
    .douhao-nav-mobile a:hover {
        color: var(--douhao-primary-dark);
        background: rgba(167,139,250,0.1);
    }
    .douhao-nav-mobile a.active {
        color: #fff;
        background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
        border-color: transparent;
        box-shadow: 0 3px 10px rgba(167,139,250,0.35);
    }

    .douhao-const-grid { grid-template-columns: repeat(4, 1fr); }
    .douhao-tab { padding: 10px 8px; font-size: 13px; }
    .douhao-tab i { display: none; }
    .douhao-fortune-head { padding: 24px 20px; gap: 18px; }
    .douhao-fortune-icon { width: 76px; height: 76px; font-size: 40px; border-radius: 20px; }
    .douhao-fortune-info h2 { font-size: 24px; }
    .douhao-fortune-body { padding: 24px 20px; }
    .douhao-ring-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .douhao-ring-chart { width: 76px; height: 76px; }
    .douhao-ring-value { font-size: 17px; }
    .douhao-list-item { flex-direction: row; }
    .douhao-list-thumb img { width: 120px; height: 90px; }
    .douhao-search-inline { flex: 1 1 100%; }
    .douhao-footer-cols { padding: 22px 18px; margin-top: 26px; }
    .douhao-footer-cols-inner { grid-template-columns: 1fr; gap: 24px; }
    .douhao-footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .douhao-topbar-main { height: 56px; }
    .douhao-topbar-time { font-size: 12px; gap: 5px; }
    .douhao-topbar-time i { font-size: 12px; }
    body { padding-top: 104px; }
    .douhao-container { padding: 20px 10px 30px; }
    .douhao-hero { padding: 28px 22px; border-radius: 22px; }
    .douhao-hero h1 { font-size: 26px; }
    .douhao-hero p { font-size: 15px; }
    .douhao-hero-stats { gap: 22px; }
    .douhao-hero-stat .num { font-size: 22px; }
    .douhao-const-wrap { padding: 12px; }
    .douhao-const-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .douhao-const-item { padding: 12px 4px 10px; border-radius: 12px; }
    .douhao-const-icon { font-size: 30px; margin-bottom: 5px; }
    .douhao-const-name { font-size: 11.5px; }
    .douhao-head h2 { font-size: 18px; }
    .douhao-head-badge { width: 32px; height: 32px; font-size: 14px; }
    .douhao-head-hint { display: none; }
    .douhao-fortune-head { flex-direction: column; text-align: center; gap: 14px; padding: 22px 18px; }
    .douhao-fortune-icon { width: 72px; height: 72px; font-size: 38px; }
    .douhao-fortune-info h2 { font-size: 22px; }
    .douhao-tags { justify-content: center; }
    .douhao-fortune-body { padding: 20px 16px; }
    .douhao-ring-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; padding-bottom: 20px; margin-bottom: 20px; }
    .douhao-ring-chart { width: 60px; height: 60px; }
    .douhao-ring-value { font-size: 14px; }
    .douhao-ring-chart { width: 68px; height: 68px; }
    .douhao-ring-value { font-size: 15px; }
    .douhao-ring-label { font-size: 11.5px; }
    .douhao-lucky-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .douhao-lucky { padding: 14px; gap: 10px; }
    .douhao-lucky-icon { width: 38px; height: 38px; font-size: 16px; }
    .douhao-lucky-value { font-size: 15px; }
    .douhao-block { padding: 18px 20px; }
    .douhao-block-title { font-size: 14px; }
    .douhao-block-content { font-size: 14.5px; line-height: 1.75; }
    .douhao-articles-grid { grid-template-columns: 1fr; gap: 16px; }
    .douhao-article-head { height: 110px; }
    .douhao-article-title { font-size: 16px; }
    .douhao-detail { padding: 20px; }
    .douhao-detail h1 { font-size: 20px; }
    .douhao-detail-nav { flex-direction: column; }
    .douhao-rs-page { padding: 20px 16px; }
    .douhao-rs-head h1 { font-size: 22px; }
    .douhao-rs-tag { padding: 6px 14px; font-size: 13px !important; }
}
@media (max-width: 380px) {
    .douhao-const-grid { grid-template-columns: repeat(3, 1fr); }
    .douhao-ring-grid { grid-template-columns: repeat(2, 1fr); }
    .douhao-ring-chart { width: 68px; height: 68px; }
    .douhao-lucky-grid { grid-template-columns: 1fr; }
}
.douhao-lucky-icon.blue {
    background: linear-gradient(135deg, #818CF8, #4F46E5);
    box-shadow: 0 4px 12px rgba(129,140,248,0.3);
}

.douhao-year-form {
    background: linear-gradient(135deg, rgba(248,246,255,0.85), rgba(255,255,255,0.95));
    border: 1px solid var(--douhao-border);
    border-radius: 16px;
    padding: 22px 24px;
    margin-top: 16px;
}
.douhao-year-form-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--douhao-primary-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.douhao-year-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.douhao-year-group {
    flex: 1 1 220px;
    min-width: 200px;
    position: relative;
}
.douhao-year-group label {
    display: block;
    font-size: 13.5px;
    color: var(--douhao-text-2);
    font-weight: 600;
    margin-bottom: 6px;
}
.douhao-year-group label i {
    color: var(--douhao-primary);
    margin-right: 4px;
}
.douhao-year-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--douhao-border);
    border-radius: 10px;
    font-size: 14.5px;
    background: #fff;
    color: var(--douhao-text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}
.douhao-year-input:focus {
    border-color: var(--douhao-primary);
    box-shadow: 0 0 0 3px rgba(167,139,250,0.15);
}
.douhao-year-gender {
    display: flex;
    gap: 10px;
}
.douhao-year-radio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--douhao-border);
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--douhao-text-2);
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    font-weight: 600;
}
.douhao-year-radio input {
    display: none;
}
.douhao-year-radio input:checked + span {
    color: #fff;
}
.douhao-year-radio:has(input:checked) {
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    border-color: transparent;
    color: #fff;
}
.douhao-year-actions {
    display: block;
    margin-top: 6px;
}
.douhao-year-btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 32px;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(167,139,250,0.35);
    font-family: inherit;
}
.douhao-year-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167,139,250,0.5);
}
.douhao-year-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.douhao-area-pop {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: douhaoAreaFadeIn 0.25s ease;
}
.douhao-area-pop.show {
    display: flex;
}
@keyframes douhaoAreaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.douhao-area-pop-con {
    background: #fff;
    border-radius: 22px 22px 0 0;
    width: 30%;
    max-width: 100%;
    padding: 24px 26px calc(24px + env(safe-area-inset-bottom, 0px));
    position: relative;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    animation: douhaoAreaSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70vh;
    overflow-y: auto;
}
@keyframes douhaoAreaSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.douhao-area-pop-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--douhao-text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.douhao-area-pop-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.douhao-area-pop-close::before,
.douhao-area-pop-close::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: #666;
    border-radius: 2px;
}
.douhao-area-pop-close::before { transform: rotate(45deg); }
.douhao-area-pop-close::after { transform: rotate(-45deg); }
.douhao-area-pop-close:hover { background: #e8e8e8; }
.douhao-area-selects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.douhao-area-selects select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--douhao-border);
    border-radius: 10px;
    font-size: 14.5px;
    background: #fff;
    color: var(--douhao-text);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238078a0' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}
.douhao-area-selects select:focus {
    border-color: var(--douhao-primary);
    box-shadow: 0 0 0 3px rgba(167,139,250,0.15);
}
.douhao-area-pop-btn {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: linear-gradient(135deg, var(--douhao-primary), var(--douhao-primary-dark));
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(167,139,250,0.35);
}
.douhao-area-pop-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(167,139,250,0.5);
}
@media (max-width: 640px) {
    .douhao-area-pop-con {
        padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
    }
    .douhao-area-pop-title { font-size: 16px; }
    .douhao-area-selects select { padding: 10px 12px; font-size: 14px; }
    .douhao-area-pop-btn { padding: 12px; font-size: 15px; }
}

@media (max-width: 640px) {
    .douhao-year-form { padding: 18px 16px; }
    .douhao-year-row { flex-direction: column; gap: 12px; }
    .douhao-year-group { min-width: 0; flex: 1 1 100%; }
    .douhao-year-btn { width: 100%; justify-content: center; }
    .douhao-year-actions { justify-content: stretch; }
}

.douhao-loading-mask {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: douhaoMaskIn 0.2s ease;
}
@keyframes douhaoMaskIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.douhao-loading-box {
    text-align: center;
}
.douhao-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(167,139,250,0.2);
    border-top-color: var(--douhao-primary, #A78BFA);
    border-radius: 50%;
    animation: douhaoMaskSpin 0.9s linear infinite;
    margin: 0 auto 18px;
}
@keyframes douhaoMaskSpin {
    to { transform: rotate(360deg); }
}
.douhao-loading-text {
    font-size: 16px;
    color: var(--douhao-primary-dark, #7C3AED);
    font-weight: 600;
    letter-spacing: 1px;
}