/**
 * 抢亲活动 - UI 样式（粉紫浪漫风格）
 */
.wedding-page {
    --wd-primary: #c026d3;
    --wd-secondary: #e879f9;
    --wd-accent: #f472b6;
    --wd-glow: rgba(192, 38, 211, 0.3);
    --wd-bride: #ec4899;
    --wd-guard: #3b82f6;
    background: linear-gradient(180deg, #1a0a20 0%, #220e2a 40%, #15081a 100%);
}

/* Hero */
.wd-hero {
    position: relative;
    text-align: center;
    padding: 28px 16px 32px;
    margin-bottom: 8px;
    overflow: hidden;
}
.wd-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(90deg, var(--wd-primary), var(--wd-accent));
    box-shadow: 0 0 20px var(--wd-glow);
    margin-bottom: 12px;
}
.wd-hero h1 {
    font-size: 1.8rem;
    margin: 0 0 8px;
    background: linear-gradient(90deg, #e879f9, #f472b6, #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wd-hero p {
    color: rgba(230, 180, 230, 0.7);
    margin: 0;
    font-size: 0.95rem;
}
.wd-hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px; height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 38, 211, 0.12) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.wd-hero h1, .wd-hero p, .wd-hero-badge, .wd-time-grid { position: relative; z-index: 1; }
.wd-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}
.wd-time-grid div {
    padding: 8px 6px;
    border: 1px solid rgba(192, 38, 211, 0.18);
    border-radius: 10px;
    background: rgba(20, 8, 28, 0.58);
}
.wd-time-grid span {
    display: block;
    color: rgba(230, 180, 230, 0.5);
    font-size: 11px;
    margin-bottom: 2px;
}
.wd-time-grid strong {
    display: block;
    color: #f5d0fe;
    font-size: 12px;
}

/* Sections */
.wd-section { margin-bottom: 20px; padding: 0 12px; }
.wd-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(192, 38, 211, 0.2);
    background: rgba(20, 8, 28, 0.7);
    padding: 16px;
}
.wd-card-head {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wd-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wd-badge {
    font-size: 12px;
    background: rgba(192, 38, 211, 0.2);
    padding: 2px 10px;
    border-radius: 10px;
    color: var(--wd-secondary);
}
.wd-hint {
    text-align: center;
    color: rgba(230, 180, 230, 0.55);
    font-size: 13px;
    margin: 4px 0 12px;
}
.wd-rules-card { opacity: 0.85; }
.wd-rules {
    color: rgba(230, 180, 230, 0.6);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Stats Row */
.wd-stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.wd-stat {
    flex: 1;
    text-align: center;
    background: rgba(192, 38, 211, 0.08);
    border-radius: 10px;
    padding: 10px 6px;
}
.wd-stat-val { display: block; font-size: 1.3rem; font-weight: 700; color: var(--wd-secondary); }
.wd-stat-label { display: block; font-size: 11px; color: rgba(230, 180, 230, 0.5); margin-top: 2px; }

/* Buttons */
.wd-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    color: #fff;
}
.wd-btn:active { transform: scale(0.97); }
.wd-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wd-btn-primary {
    background: linear-gradient(90deg, var(--wd-primary), var(--wd-accent));
    box-shadow: 0 4px 16px var(--wd-glow);
}
.wd-btn-secondary {
    background: rgba(192, 38, 211, 0.15);
    border: 1px solid rgba(192, 38, 211, 0.3);
    color: var(--wd-secondary);
}
.wd-btn-bride {
    background: linear-gradient(90deg, #ec4899, #f472b6);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}
.wd-btn-guard {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Couple Grid */
.wd-couple-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wd-couple-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(192, 38, 211, 0.06);
    border: 1px solid rgba(192, 38, 211, 0.15);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all .2s;
}
.wd-couple-card:active { transform: scale(0.98); }
.wd-couple-card.selected {
    border-color: var(--wd-accent);
    background: rgba(244, 114, 182, 0.1);
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.15);
}
.wd-couple-card.voted {
    opacity: 0.7;
    cursor: default;
}
.wd-couple-no {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wd-primary), var(--wd-accent));
    color: #fff;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.wd-couple-info { flex: 1; min-width: 0; }
.wd-couple-names {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.wd-couple-votes {
    color: rgba(230, 180, 230, 0.5);
    font-size: 12px;
}
.wd-couple-bar {
    height: 4px;
    background: rgba(255,255,255,.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}
.wd-couple-bar span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--wd-primary), var(--wd-accent));
    border-radius: 2px;
    transition: width .3s;
}
.wd-couple-vote-btn {
    padding: 8px 16px;
    border: 1px solid var(--wd-accent);
    border-radius: 8px;
    background: transparent;
    color: var(--wd-accent);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s;
}
.wd-couple-vote-btn:hover { background: rgba(244,114,182,.15); }
.wd-couple-vote-btn:disabled { border-color: #555; color: #555; cursor: not-allowed; }

/* PK Section */
.wd-pk-pool {
    text-align: center;
    padding: 16px;
    background: rgba(192, 38, 211, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
}
.wd-pool-label { display: block; font-size: 12px; color: rgba(230,180,230,.55); margin-bottom: 4px; }
.wd-pool-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--wd-secondary), var(--wd-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wd-pool-unit { font-size: 13px; color: rgba(230,180,230,.5); margin-left: 4px; }

.wd-my-faction {
    text-align: center;
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(230,180,230,.6);
}
.wd-faction-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
}
.wd-faction-tag.bride { background: rgba(236,72,153,.2); color: #f472b6; }
.wd-faction-tag.guard { background: rgba(59,130,246,.2); color: #60a5fa; }

.wd-pk-vs {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.wd-pk-vs-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: rgba(230,180,230,.4);
    width: 40px;
    flex-shrink: 0;
}
.wd-pk-side {
    flex: 1;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    min-width: 0;
    transition: all .3s;
}
.wd-pk-bride { border: 1px solid rgba(236,72,153,.3); background: rgba(236,72,153,.06); }
.wd-pk-bride.my-faction { border-color: rgba(236,72,153,.7); background: rgba(236,72,153,.15); box-shadow: 0 0 20px rgba(236,72,153,.2); }
.wd-pk-guard { border: 1px solid rgba(59,130,246,.3); background: rgba(59,130,246,.06); }
.wd-pk-guard.my-faction { border-color: rgba(59,130,246,.7); background: rgba(59,130,246,.15); box-shadow: 0 0 20px rgba(59,130,246,.2); }
.wd-pk-side-head { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.wd-pk-side-votes { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.wd-pk-bride .wd-pk-side-votes { color: #f472b6; }
.wd-pk-guard .wd-pk-side-votes { color: #60a5fa; }
.wd-pk-side .wd-btn { margin-bottom: 10px; font-size: 13px; padding: 8px; }
.wd-pk-leaders { text-align: left; font-size: 11px; color: rgba(230,180,230,.45); }
.wd-pk-leaders .wd-leader-row { display: flex; justify-content: space-between; padding: 2px 0; }

/* Bottom vote button */
.wd-pk-vote-bottom {
    margin-top: 16px;
    padding: 0;
}
.wd-pk-vote-bottom .wd-btn {
    font-size: 15px;
    padding: 14px;
}

/* Vote number input */
.wd-vote-input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.wd-num-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(192,38,211,.4);
    background: rgba(192,38,211,.1);
    color: var(--wd-secondary);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}
.wd-num-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid rgba(192,38,211,.3);
    border-radius: 8px;
    background: rgba(20,8,28,.8);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* Gender */
.wd-gender-row { display: flex; gap: 10px; }
.wd-gender-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(192,38,211,.2);
    border-radius: 10px;
    background: transparent;
    color: rgba(230,180,230,.6);
    font-size: 15px;
    cursor: pointer;
    transition: all .2s;
}
.wd-gender-btn.selected {
    border-color: var(--wd-accent);
    background: rgba(244,114,182,.1);
    color: var(--wd-accent);
}

/* Form */
.wd-form-group { margin-bottom: 16px; }
.wd-form-group label { display: block; font-size: 13px; color: rgba(230,180,230,.6); margin-bottom: 8px; }

/* Photo Preview */
.wd-photo-preview { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wd-photo-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(192,38,211,.2); }

/* Modal */
.wd-modal-sheet { border-top: 2px solid rgba(192,38,211,.4); }
.wd-modal-foot { padding: 12px 16px 16px; }

/* Result */
.wd-result-winner {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(192,38,211,.12), rgba(244,114,182,.08));
    border-radius: 12px;
    margin-bottom: 16px;
}
.wd-result-winner h3 { color: var(--wd-accent); margin: 0 0 8px; }
.wd-result-winner p { color: rgba(230,180,230,.6); margin: 0; font-size: 13px; }

.wd-reward-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}
.wd-reward-table th {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(192,38,211,.15);
    color: rgba(230,180,230,.5);
    font-weight: 500;
    text-align: left;
}
.wd-reward-table td {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(192,38,211,.08);
    color: #ddd;
}
.wd-reward-table .highlight { color: var(--wd-accent); font-weight: 700; }
.wd-reward-my { background: rgba(192,38,211,.1); }

/* History */
.wd-history-list { display: flex; flex-direction: column; gap: 12px; }
.wd-history-item {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(192,38,211,.14);
    background: rgba(192,38,211,.05);
}
.wd-history-title { color: #fff; font-weight: 700; margin-bottom: 6px; }
.wd-history-meta { color: rgba(230,180,230,.55); font-size: 12px; line-height: 1.6; }
.wd-history-rewards { margin-top: 8px; border-top: 1px solid rgba(192,38,211,.12); padding-top: 6px; }
.wd-history-subtitle { color: rgba(230,180,230,.72); font-size: 12px; margin-bottom: 4px; }
.wd-history-reward { display: flex; justify-content: space-between; gap: 8px; color: rgba(230,180,230,.62); font-size: 12px; padding: 2px 0; }
.wd-history-reward.muted strong { color: rgba(230,180,230,.55); }
.wd-history-reward strong { color: var(--wd-accent); white-space: nowrap; }
.wd-history-detail-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid rgba(244,114,182,.5);
    background: rgba(244,114,182,.12);
    color: #f9a8d4;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
}
.wd-history-detail-btn:active { transform: scale(0.98); }
.wd-history-detail-sheet { max-width: 980px; width: 96%; }
.wd-history-rank-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.wd-history-rank-row { padding: 9px 0; border-bottom: 1px solid rgba(192,38,211,.1); }
.wd-history-rank-row .rank-main { display: flex; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.88); font-size: 13px; }
.wd-history-rank-row .rank-main strong { color: var(--wd-secondary); white-space: nowrap; }
.wd-history-rank-row .rank-reward { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; color: rgba(230,180,230,.56); font-size: 12px; line-height: 1.5; }


/* Extra rewards */
.wd-extra-rewards { margin-top: 14px; border-top: 1px solid rgba(192,38,211,.14); padding-top: 12px; }
.wd-reward-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.wd-reward-tab { border: 1px solid rgba(192,38,211,.25); background: rgba(192,38,211,.08); color: rgba(230,180,230,.65); border-radius: 10px; padding: 8px; font-weight: 700; }
.wd-reward-tab.active { border-color: var(--wd-accent); color: #fff; background: rgba(244,114,182,.18); }
.wd-extra-reward-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: rgba(230,180,230,.6); font-size: 13px; border-bottom: 1px solid rgba(192,38,211,.08); }
.wd-extra-reward-row strong { color: var(--wd-accent); text-align: right; }

/* Newlyweds */
.wd-newlyweds { grid-template-columns: 1fr 42px 1fr; align-items: center; gap: 8px; margin-bottom: 14px; }
.wd-newlywed-card { text-align: center; padding: 12px 8px; border-radius: 12px; background: rgba(244,114,182,.08); border: 1px solid rgba(244,114,182,.18); }
.wd-newlywed-card img, .wd-newlywed-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); font-size: 28px; }
.wd-newlywed-card span { display: block; color: rgba(230,180,230,.55); font-size: 12px; }
.wd-newlywed-card strong { display: block; color: #fff; font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-newlywed-heart { text-align: center; font-size: 24px; }

/* Couple names clickable hint */
.wd-couple-names {
    cursor: pointer;
    position: relative;
}
.wd-couple-names:hover {
    color: var(--wd-accent);
}
.wd-photo-icon, .wd-audio-icon {
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.7;
}

/* Couple detail modal */
.wd-detail-person {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(192,38,211,.05);
    border-radius: 10px;
}
.wd-detail-person h4 {
    color: var(--wd-accent);
    margin: 0 0 10px;
    font-size: 15px;
}
.wd-detail-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.wd-detail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(192,38,211,.2);
    cursor: pointer;
    transition: transform 0.2s;
}
.wd-detail-img:hover {
    transform: scale(1.05);
}
.wd-detail-audio {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(230,180,230,.6);
    font-size: 13px;
}
.wd-detail-audio audio {
    height: 36px;
    flex: 1;
    min-width: 0;
}

@media (min-width: 520px) {
    .wd-couple-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .wd-pk-vs { flex-direction: column; }
    .wd-pk-vs-text { width: 100%; padding: 4px 0; }
}
