.gyxq-widget {
    --gyxq-w-crimson: #9b1c31;
    --gyxq-w-crimson-light: #b83248;
    --gyxq-w-gold: #d4a24e;
    --gyxq-w-ink: #1c2434;
    --gyxq-w-muted: #7a8494;
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(28, 36, 52, 0.08) !important;
    box-shadow: 0 8px 24px rgba(28, 36, 52, 0.06) !important;
}

.gyxq-widget > .widget-title {
    display: none;
}

.gyxq-widget-body {
    padding: 16px 14px 16px;
}

.gyxq-widget-head {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(28, 36, 52, 0.07);
}

.gyxq-widget-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gyxq-widget-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--gyxq-w-ink);
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.gyxq-widget-lead {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--gyxq-w-muted);
}

.gyxq-widget-live {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--gyxq-w-muted);
}

.gyxq-widget-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e74c3c;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.45);
    animation: gyxq-w-pulse 2s ease-out infinite;
}

@keyframes gyxq-w-pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.gyxq-widget-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.35s ease;
}

.gyxq-widget-grid.is-loading {
    opacity: 0.55;
}

.gyxq-widget-card {
    display: flex;
    align-items: stretch;
    text-decoration: none !important;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(155, 28, 49, 0.08);
    box-shadow: 0 2px 10px rgba(28, 36, 52, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: gyxq-w-card-in 0.35s ease both;
}

@keyframes gyxq-w-card-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gyxq-widget-card:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 162, 78, 0.35);
    box-shadow: 0 8px 18px rgba(155, 28, 49, 0.1);
}

.gyxq-widget-photo {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f3ec 0%, #ece7df 100%);
}

.gyxq-widget-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gyxq-widget-ribbon {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: rgba(155, 28, 49, 0.92);
    line-height: 1.4;
    z-index: 2;
}

.gyxq-widget-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 10px;
}

.gyxq-widget-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    min-width: 0;
}

.gyxq-widget-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--gyxq-w-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gyxq-widget-meta {
    display: -webkit-box;
    font-size: 11px;
    line-height: 1.45;
    color: var(--gyxq-w-muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gyxq-widget-meta i {
    color: var(--gyxq-w-gold);
    margin-right: 2px;
}

.gyxq-widget-gender {
    flex-shrink: 0;
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.4;
}

.gyxq-widget-gender.boy {
    background: #e8f2fc;
    color: #1565c0;
}

.gyxq-widget-gender.girl {
    background: #fce8ef;
    color: #ad1457;
}

.gyxq-widget-gender.unknown {
    background: #f0f0f0;
    color: #888;
}

.gyxq-widget-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 2px 0;
    border-top: 1px dashed rgba(155, 28, 49, 0.14);
    font-size: 12px;
}

.gyxq-widget-count {
    color: var(--gyxq-w-muted);
    font-variant-numeric: tabular-nums;
}

.gyxq-widget-count b {
    color: var(--gyxq-w-crimson);
    font-weight: 800;
}

.gyxq-widget-more {
    color: var(--gyxq-w-crimson) !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.gyxq-widget-clue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gyxq-w-crimson) 0%, var(--gyxq-w-crimson-light) 100%);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(155, 28, 49, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gyxq-widget-clue:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(155, 28, 49, 0.24);
    color: #fff !important;
}

.gyxq-widget-clue i {
    font-size: 14px;
}

.gyxq-widget-empty {
    padding: 22px 14px;
    text-align: center;
    border-radius: 14px;
    background: rgba(155, 28, 49, 0.04);
    border: 1px dashed rgba(155, 28, 49, 0.14);
}

.gyxq-widget-empty p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--gyxq-w-muted);
}

.gyxq-widget-embed {
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .gyxq-widget-pulse,
    .gyxq-widget-card {
        animation: none;
    }
    .gyxq-widget-card:hover,
    .gyxq-widget-clue:hover {
        transform: none;
    }
}
