/* ==========================================================================
   活动页样式（/promotion/）
   独立于官网 style.css：该页面会在微信内打开，按移动端优先排版，不依赖 Bootstrap
   ========================================================================== */

:root {
    --pm-primary: #2BA4D4;
    --pm-primary-dark: #1A82AA;
    --pm-primary-bright: #1BC8F0;
    --pm-dark: #0D1B2A;
    --pm-text: #1A2E3B;
    --pm-text-muted: #5A6C7A;
    --pm-bg: #F0F8FC;
    --pm-radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--pm-bg);
    color: var(--pm-text);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- 预览提示条 ---------- */
.preview-bar {
    background: #FFF3CD;
    color: #7A5B00;
    text-align: center;
    font-size: 14px;
    padding: 8px 16px;
}

/* ---------- 顶栏 ---------- */
.pm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--pm-dark);
}

.pm-brand img { height: 30px; }

.pm-back {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 4px 14px;
}

/* ---------- 页头 ---------- */
.pm-hero {
    background: linear-gradient(150deg, var(--pm-dark) 0%, #123A55 60%, var(--pm-primary-dark) 100%);
    color: #fff;
    padding: 40px 22px 52px;
    text-align: center;
}

.pm-date {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #C9ECFA;
    border: 1px solid rgba(27, 200, 240, 0.5);
    border-radius: 999px;
    padding: 4px 16px;
    margin-bottom: 18px;
}

.pm-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
}

/* ---------- 主体 ---------- */
.pm-main {
    max-width: 760px;
    margin: -28px auto 0;
    padding: 0 16px 40px;
}

.pm-hero-image {
    border-radius: var(--pm-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.18);
    background: #fff;
}

.pm-intro {
    background: #fff;
    border-radius: var(--pm-radius);
    padding: 22px 20px;
    margin-top: 20px;
    color: var(--pm-text-muted);
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.06);
    border-left: 4px solid var(--pm-primary);
}

/* ---------- 活动项 ---------- */
.pm-item {
    background: #fff;
    border-radius: var(--pm-radius);
    overflow: hidden;
    margin-top: 22px;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.06);
}

.pm-item-image img { width: 100%; }

.pm-item-title {
    margin: 0;
    padding: 20px 20px 0;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 34px;
}

.pm-item-title::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 28px;
    width: 5px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pm-primary-bright), var(--pm-primary));
}

.pm-item-text {
    padding: 12px 20px 22px;
    color: var(--pm-text-muted);
}

/* ---------- 底部咨询区 ---------- */
.pm-cta {
    margin-top: 28px;
    background: linear-gradient(150deg, var(--pm-primary) 0%, var(--pm-primary-dark) 100%);
    border-radius: var(--pm-radius);
    padding: 28px 20px 26px;
    color: #fff;
}

.pm-cta-title {
    margin: 0 0 10px;
    font-size: 22px;
    text-align: center;
}

.pm-cta-text {
    margin: 0 0 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.pm-cta-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 24px;
}

.pm-phone {
    background: #fff;
    color: var(--pm-primary-dark);
    font-size: 19px;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 26px;
    box-shadow: 0 6px 18px rgba(13, 27, 42, 0.18);
}

.pm-phone-icon { margin-right: 8px; }

.pm-qr {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.pm-qr img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    margin-bottom: 6px;
}

/* ---------- 表单 ---------- */
.pm-form {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 18px 16px 20px;
}

.pm-field { margin-bottom: 14px; }

.pm-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.92);
}

.pm-field label i {
    font-style: normal;
    color: #FFD166;
}

.pm-field input,
.pm-field textarea {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    color: var(--pm-text);
    background: #fff;
}

.pm-field input:focus,
.pm-field textarea:focus {
    outline: 2px solid var(--pm-primary-bright);
}

.pm-field textarea { resize: vertical; }

.pm-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 13px;
    font-size: 17px;
    font-weight: 700;
    color: var(--pm-primary-dark);
    background: #fff;
    cursor: pointer;
}

.pm-submit:disabled { opacity: 0.7; cursor: default; }

.pm-alert {
    margin-top: 12px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
}

.pm-alert-ok { background: rgba(255, 255, 255, 0.95); color: #17805A; }

.pm-alert-err { background: rgba(255, 235, 235, 0.95); color: #B3261E; }

/* ---------- 空状态 ---------- */
.pm-empty {
    background: #fff;
    border-radius: var(--pm-radius);
    text-align: center;
    padding: 60px 24px;
    margin-top: 40px;
    box-shadow: 0 4px 18px rgba(13, 27, 42, 0.06);
}

.pm-empty-icon { font-size: 46px; }

.pm-empty h1 { font-size: 24px; margin: 12px 0; }

.pm-empty p { color: var(--pm-text-muted); margin: 0 0 24px; }

.pm-empty-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark));
    color: #fff;
    border-radius: 999px;
    padding: 11px 34px;
    font-weight: 600;
}

/* ---------- 页脚 ---------- */
.pm-footer {
    background: var(--pm-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 13px;
    padding: 22px 16px 26px;
}

.pm-footer p { margin: 4px 0; }

.pm-footer a { color: rgba(255, 255, 255, 0.75); }

/* ---------- 桌面端 ---------- */
@media (min-width: 768px) {
    .pm-hero { padding: 60px 24px 72px; }
    .pm-title { font-size: 36px; }
    .pm-main { margin-top: -36px; }
    .pm-item-title { font-size: 22px; }
    .pm-form { padding: 24px 22px 26px; }
}
