/* ===== 今日摸鱼签 · 专属样式 ===== */

/* ---- Hero 区域 ---- */
.ms-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #f3eefc 0%, #faf7ff 60%, #f4effc 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #e4dcf4;
    transition: background 0.3s ease;
}
.ms-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: 480px;
    height: 460px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.ms-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 460px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ms-brand { display: flex; flex-direction: column; gap: 4px; }
.ms-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ms-tagline { font-size: 13px; color: #9c8cc0; font-weight: 500; }
.ms-date {
    font-size: 15px;
    font-weight: 800;
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.12);
    padding: 8px 14px;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

/* ---- 抽签区 ---- */
.ms-draw {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 0 20px;
}
.ms-draw-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 30% 25%, #a78bfa, #8b5cf6 55%, #6d28d9);
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ms-draw-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 36px rgba(139, 92, 246, 0.5); }
.ms-draw-btn:active { transform: scale(0.94); }
.ms-hint { font-size: 12.5px; color: #9c8cc0; }

/* ---- 签文区 ---- */
.ms-sign {
    --sign-color: #f59e0b;
    position: relative;
    z-index: 1;
    max-width: 440px;
    width: 100%;
    padding: 28px 26px 24px;
    border-radius: 18px;
    background: linear-gradient(160deg, #fff, #fdfbff);
    border: 2px solid color-mix(in srgb, var(--sign-color) 40%, #e4dcf4);
    box-shadow: 0 14px 40px rgba(109, 40, 217, 0.12);
    text-align: center;
    animation: ms-pop 0.35s ease;
}
@keyframes ms-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ms-sign-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ms-sign-badge {
    font-size: 14px;
    font-weight: 900;
    background: rgba(245, 158, 11, 0.12);
    padding: 5px 14px;
    border-radius: 999px;
}
.ms-sign-num { font-size: 12px; color: #9c8cc0; font-weight: 600; }
.ms-sign-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--sign-color);
    margin-bottom: 14px;
}
.ms-sign-poem {
    font-size: 15px;
    line-height: 2;
    color: #6d28d9;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
}
.ms-sign-interp { font-size: 13.5px; line-height: 1.8; color: #8b7ab0; margin-bottom: 16px; }
.ms-yiji {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.ms-yi, .ms-ji {
    flex: 1;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ms-yi { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); }
.ms-ji { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); }
.ms-yiji-title { font-size: 13px; font-weight: 900; }
.ms-yi .ms-yiji-title { color: #059669; }
.ms-ji .ms-yiji-title { color: #dc2626; }
.ms-yiji-text { font-size: 13px; line-height: 1.7; color: #6b7280; }
.ms-actions { display: flex; gap: 10px; justify-content: center; }
.ms-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ms-btn.primary {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}
.ms-btn.primary:hover { transform: translateY(-2px); }
.ms-btn.ghost { background: #fff; color: #6d28d9; border: 1.5px solid #ddd1f0; }
.ms-btn.ghost:hover { background: #faf7ff; }
.ms-copied {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}

/* ---- 签到联动 ---- */
.ms-checkin-link {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    max-width: 440px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: #047857;
    font-weight: 600;
    flex-wrap: wrap;
}
.ms-checkin-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease;
}
.ms-checkin-btn:hover { transform: translateY(-1px); }

/* ---- 日历记录 ---- */
.ms-card {
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid #eee8f8;
    padding: 24px;
    margin-bottom: 24px;
}
.ms-block-title {
    font-size: 17px;
    font-weight: 800;
    color: #4c1d95;
    margin-bottom: 16px;
}
.ms-tip-inline { font-size: 12px; color: #a99cc9; font-weight: 600; }
.ms-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.ms-cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    border-radius: 12px;
    background: #faf7ff;
    border: 1px solid #eee8f8;
}
.ms-cal-day.is-today {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
    background: #f5f0ff;
}
.ms-cal-num { font-size: 16px; font-weight: 800; color: #6d28d9; }
.ms-cal-week { font-size: 11px; color: #a99cc9; }
.ms-cal-icon { font-size: 13px; line-height: 1; }
.ms-stats {
    display: flex;
    gap: 12px;
}
.ms-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px;
    border-radius: 12px;
    background: #faf7ff;
    border: 1px solid #eee8f8;
}
.ms-stat .num { font-size: 20px; font-weight: 900; color: #6d28d9; font-variant-numeric: tabular-nums; }
.ms-stat .label { font-size: 11.5px; color: #a99cc9; font-weight: 600; }

/* ---- 黑夜模式 ---- */
[data-theme="dark"] .ms-hero {
    background: linear-gradient(180deg, #251d33 0%, #221b2e 60%, #251d33 100%);
    border-color: #3a2f4d;
}
[data-theme="dark"] .ms-tagline { color: #8f7fb8; }
[data-theme="dark"] .ms-date { color: #b49df0; background: rgba(139, 92, 246, 0.16); }
[data-theme="dark"] .ms-hint { color: #8f7fb8; }
[data-theme="dark"] .ms-sign {
    background: linear-gradient(160deg, #251d33, #2a2140);
    border-color: color-mix(in srgb, var(--sign-color) 35%, #3a2f4d);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .ms-sign-num { color: #8f7fb8; }
[data-theme="dark"] .ms-sign-poem { color: #c4b0f5; background: rgba(139, 92, 246, 0.14); }
[data-theme="dark"] .ms-sign-interp { color: #a899c9; }
[data-theme="dark"] .ms-yiji-text { color: #b8b1c7; }
[data-theme="dark"] .ms-btn.ghost { background: #251d33; color: #c4b0f5; border-color: #4a3d63; }
[data-theme="dark"] .ms-btn.ghost:hover { background: #2e2544; }
[data-theme="dark"] .ms-card { background: #1d1728; border-color: #332a45; }
[data-theme="dark"] .ms-block-title { color: #d5c6f5; }
[data-theme="dark"] .ms-tip-inline { color: #8f7fb8; }
[data-theme="dark"] .ms-cal-day { background: #251d33; border-color: #332a45; }
[data-theme="dark"] .ms-cal-day.is-today { background: #2e2544; }
[data-theme="dark"] .ms-cal-num { color: #c4b0f5; }
[data-theme="dark"] .ms-cal-week { color: #8f7fb8; }
[data-theme="dark"] .ms-stat { background: #251d33; border-color: #332a45; }
[data-theme="dark"] .ms-stat .num { color: #c4b0f5; }
[data-theme="dark"] .ms-stat .label { color: #8f7fb8; }
