/* ==========================================================================
   情感咨询 · 公共基础样式（移动端优先，设计基准 375px）
   ========================================================================== */

:root {
    --brand: #ff699b;
    --brand-dark: #f25487;
    --brand-soft: #ffe9f1;
    --progress: #e14549;
    --page-bg: #ffe9f1;
    --ink: rgba(0, 0, 0, 0.9);
    --ink-weak: #666;
    --line: #f1dbe4;
    --success: #07c160;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink);
    background: #f7eaf0;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    border: 0;
}

p,
h1,
h2,
h3 {
    margin: 0;
    font-weight: 400;
}

button,
input {
    font-family: inherit;
}

button {
    padding: 0;
    border: 0;
    outline: none;
    background: none;
    cursor: pointer;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

/* 页脚免责声明 -------------------------------------------------------------- */
.disclaimer {
    width: 90%;
    margin: 0 auto;
    color: var(--ink-weak);
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

/* 轻提示 ------------------------------------------------------------------- */
.toast {
    position: fixed;
    left: 50%;
    top: 45%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    max-width: 76%;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.78);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    word-break: break-all;
    pointer-events: none;
}

.toast[hidden] {
    display: none;
}

/* 通用按钮反馈 -------------------------------------------------------------- */
button:active {
    opacity: 0.86;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
