/* ===== 白噪音 · 雨声咖啡馆 · 专属样式 ===== */

/* ---- 标题区 ---- */
.wn-head { margin-bottom: 24px; }
.wn-head .detail-title-row { margin-bottom: 14px; }
.wn-head .detail-badges { margin-bottom: 14px; }

/* ---- 播放器（深色沉浸区） ---- */
.wn-player {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 28px 26px 30px;
    margin-bottom: 36px;
    background: linear-gradient(160deg, #161a2e 0%, #1b1f3a 45%, #11132a 100%);
    box-shadow: 0 20px 60px rgba(10, 12, 30, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #eef1ff;
    z-index: 1;
}

/* 流动光晕 */
.wn-glow {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 184, 169, 0.28) 0%, rgba(124, 92, 255, 0.12) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
    animation: wn-float 14s ease-in-out infinite;
}
@keyframes wn-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.1); }
}

/* ---- 顶栏 ---- */
.wn-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}
.wn-bar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}
.wn-bar-icon { font-size: 20px; }

.wn-master {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    flex: 1;
    max-width: 420px;
}
.wn-master-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    white-space: nowrap;
}
.wn-master-slider { flex: 1; }
.wn-master-val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 30px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- 自定义滑条 ---- */
.wn-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00b8a9, #7c5cff);
    background-size: var(--fill, 60%) 100%;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
}
.wn-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #00b8a9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.wn-slider::-webkit-slider-thumb:hover { transform: scale(1.18); }
.wn-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #00b8a9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
.wn-slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

/* ---- 通道卡片网格 ---- */
.wn-channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.wn-card {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.wn-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

/* 卡片激活时的发光 */
.wn-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 0 1px var(--card-accent, #00b8a9), 0 0 28px var(--card-accent-soft, rgba(0, 184, 169, 0.35));
}
.wn-card.active {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
}
.wn-card.active .wn-card-glow { opacity: 1; }

/* 各通道主色 */
.wn-card[data-channel="rain"]    { --card-accent: #4dabf7; --card-accent-soft: rgba(77, 171, 247, 0.4); }
.wn-card[data-channel="cafe"]    { --card-accent: #ff9f43; --card-accent-soft: rgba(255, 159, 67, 0.4); }
.wn-card[data-channel="fire"]    { --card-accent: #ff6b6b; --card-accent-soft: rgba(255, 107, 107, 0.42); }
.wn-card[data-channel="keyboard"]{ --card-accent: #b197fc; --card-accent-soft: rgba(177, 151, 252, 0.4); }
.wn-card[data-channel="ocean"]   { --card-accent: #00d4ff; --card-accent-soft: rgba(0, 212, 255, 0.4); }

/* 卡片顶部行 */
.wn-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.wn-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.wn-card.active .wn-card-icon {
    background: var(--card-accent-soft);
    border-color: var(--card-accent);
}
.wn-card-name {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* 开关 */
.wn-toggle {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}
.wn-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #c5cbe0;
    transition: transform 0.3s ease, background 0.3s ease;
}
.wn-toggle[aria-pressed="true"] {
    background: var(--card-accent, #00b8a9);
    border-color: var(--card-accent, #00b8a9);
}
.wn-toggle[aria-pressed="true"] .wn-toggle-knob {
    transform: translateX(20px);
    background: #fff;
}

/* 波形可视化（仅激活时动画） */
.wn-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.wn-wave span {
    display: block;
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.3s ease;
}
.wn-card.active .wn-wave span {
    background: var(--card-accent, #00b8a9);
    animation: wn-bar 1s ease-in-out infinite;
}
.wn-card.active .wn-wave span:nth-child(1) { animation-delay: 0s;    animation-duration: 0.9s; }
.wn-card.active .wn-wave span:nth-child(2) { animation-delay: 0.15s; animation-duration: 1.1s; }
.wn-card.active .wn-wave span:nth-child(3) { animation-delay: 0.3s;  animation-duration: 0.8s; }
.wn-card.active .wn-wave span:nth-child(4) { animation-delay: 0.45s; animation-duration: 1.2s; }
.wn-card.active .wn-wave span:nth-child(5) { animation-delay: 0.6s;  animation-duration: 0.95s; }
.wn-card.active .wn-wave span:nth-child(6) { animation-delay: 0.2s;  animation-duration: 1.05s; }
.wn-card.active .wn-wave span:nth-child(7) { animation-delay: 0.5s;  animation-duration: 0.85s; }
@keyframes wn-bar {
    0%, 100% { height: 8px; }
    50% { height: 28px; }
}

/* 音量滑条 */
.wn-vol {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.wn-vol-slider { flex: 1; }
.wn-vol-val {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    min-width: 28px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- 定时器 ---- */
/* ---- 焦虑源关闭器 ---- */
.wn-annoy {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.wn-annoy-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 14px;
}
.wn-annoy-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.wn-annoy-icon { font-size: 17px; }
.wn-annoy-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.wn-annoy-alloff {
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12.5px;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
}
.wn-annoy-alloff:hover { background: rgba(255, 255, 255, 0.16); }
.wn-annoy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}
.wn-annoy-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm, 12px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all .25s ease;
}
.wn-annoy-card.off {
    background: rgba(0, 200, 150, 0.08);
    border-color: rgba(0, 200, 150, 0.35);
}
.wn-annoy-card-icon { font-size: 22px; flex: none; }
.wn-annoy-card-meta { flex: 1; min-width: 0; }
.wn-annoy-card-meta b { display: block; font-size: 13.5px; color: #fff; }
.wn-annoy-card-meta span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }
.wn-annoy-card-state { font-size: 11.5px; color: #ffb36b; white-space: nowrap; font-weight: 600; }
.wn-annoy-card.off .wn-annoy-card-state { color: #00c896; }
.wn-annoy-card-off {
    border: none;
    background: linear-gradient(135deg, #ff8a3d, #ff5e7a);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
    white-space: nowrap;
}
.wn-annoy-card-off:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 94, 122, 0.4); }
.wn-annoy-card.off .wn-annoy-card-off {
    background: rgba(0, 200, 150, 0.15);
    color: #00c896;
    box-shadow: none;
    cursor: default;
    transform: none;
}
.wn-annoy-status {
    margin-top: 12px;
    min-height: 20px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    color: transparent;
    transition: color .3s ease;
}
.wn-annoy-status.done {
    color: #00c896;
    animation: wn-fade .4s ease;
}

/* ---- 定时关闭 ---- */
.wn-timer {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.wn-timer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.wn-timer-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.wn-timer-display {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.wn-timer-display.running {
    color: #00d4ff;
}
.wn-timer-display.done {
    color: #00c896;
}

.wn-timer-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wn-preset {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #eef1ff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wn-preset:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}
.wn-preset.active {
    background: #00b8a9;
    border-color: #00b8a9;
    color: #fff;
    box-shadow: 0 0 18px rgba(0, 184, 169, 0.4);
}
.wn-preset-go {
    background: #7c5cff !important;
    border-color: #7c5cff !important;
    color: #fff !important;
}
.wn-preset-go:hover {
    background: #6b4cf0 !important;
}
.wn-preset-cancel {
    background: transparent !important;
    border-color: rgba(255, 107, 107, 0.4) !important;
    color: #ff8a8a !important;
}
.wn-timer-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.wn-timer-custom input {
    width: 110px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}
.wn-timer-custom input:focus { border-color: #00b8a9; }
.wn-timer-custom input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* ---- 操作区 ---- */
.wn-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.wn-act {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.wn-act-save {
    background: linear-gradient(135deg, #00b8a9, #00c896);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 184, 169, 0.35);
}
.wn-act-save:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 184, 169, 0.45); }
.wn-act-load {
    background: rgba(124, 92, 255, 0.16);
    border-color: rgba(124, 92, 255, 0.5);
    color: #b9a7ff;
}
.wn-act-load:hover { background: rgba(124, 92, 255, 0.28); color: #fff; }
.wn-act-stop {
    background: rgba(255, 107, 107, 0.14);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff9b9b;
}
.wn-act-stop:hover { background: rgba(255, 107, 107, 0.26); color: #fff; }

/* 状态提示 */
.wn-status {
    margin-top: 14px;
    min-height: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.wn-status.show {
    color: #00d4ff;
    animation: wn-fade 0.3s ease;
}
.wn-status.show.error {
    color: #ff8a8a;
}
@keyframes wn-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .wn-player { padding: 22px 18px 24px; }
    .wn-bar { flex-direction: column; align-items: stretch; }
    .wn-master { min-width: 0; max-width: none; }
    .wn-channels { grid-template-columns: 1fr 1fr; gap: 12px; }
    .wn-timer-custom { margin-left: 0; width: 100%; }
    .wn-timer-custom input { flex: 1; width: auto; }
    .wn-annoy-alloff { margin-left: 0; }
    .wn-annoy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .wn-channels { grid-template-columns: 1fr; }
    .wn-card-top { flex-wrap: wrap; }
}
