/* ============================================================================
   退役服务（退役就业 + 退役相亲）前台样式
   —— 只作用于 .rt- 前缀的类，避免影响站内既有页面
   —— 主色取站点主题色（模板内联 --rt-primary），军绿/金作为退役主题点缀
   ============================================================================ */

.rt-page {
    --rt-primary: #ff4040;
    --rt-ink: #1f2937;
    --rt-muted: #6b7280;
    --rt-line: #e5e7eb;
    --rt-bg: #f5f6f8;
    --rt-army: #1f4d3a;
    --rt-army-2: #2f6b52;
    --rt-gold: #c9a227;
    --rt-radius: 12px;
    background: var(--rt-bg);
    color: var(--rt-ink);
    padding-bottom: 40px;
}
.rt-page * { box-sizing: border-box; }
.rt-wrap { width: 1200px; max-width: calc(100% - 32px); margin: 0 auto; }
.rt-main { padding-top: 28px; }

/* ------------------------------ 顶部 Hero ------------------------------ */
.rt-hero {
    background: linear-gradient(120deg, #173a2b 0%, var(--rt-army) 45%, var(--rt-army-2) 70%, #8a6d1f 100%);
    color: #fff;
    padding: 56px 0 48px;
}
.rt-hero__inner { display: flex; align-items: center; gap: 40px; }
.rt-hero__text { flex: 1 1 auto; min-width: 0; }
.rt-hero__badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1px;
    color: #f7e6b0;
}
.rt-hero h1 {
    margin: 16px 0 12px;
    font-size: 34px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 1px;
}
.rt-hero p { margin: 0 0 24px; font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .82); max-width: 620px; }
.rt-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.rt-hero__stats {
    flex: 0 0 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rt-stat {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(4px);
}
.rt-stat strong { display: block; font-size: 26px; color: #f7e6b0; line-height: 1.2; }
.rt-stat span { font-size: 13px; color: rgba(255, 255, 255, .78); }
.rt-stat--wide { grid-column: 1 / -1; }

/* ------------------------------ 按钮 ------------------------------ */
.rt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 42px;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s ease;
    white-space: nowrap;
}
.rt-btn:hover { text-decoration: none; transform: translateY(-1px); }
.rt-btn--primary { background: var(--rt-primary); color: #fff; }
.rt-btn--primary:hover { color: #fff; filter: brightness(.92); }
.rt-btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.rt-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.rt-btn--gold { background: var(--rt-gold); color: #2b2100; }
.rt-btn--gold:hover { color: #2b2100; filter: brightness(.95); }
.rt-btn--line { background: #fff; color: var(--rt-ink); border: 1px solid var(--rt-line); }
.rt-btn--line:hover { color: var(--rt-primary); border-color: var(--rt-primary); }
.rt-btn--sm { height: 32px; line-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.rt-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------ 两个入口 ------------------------------ */
.rt-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.rt-entry {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    background: #fff;
    border-radius: var(--rt-radius);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
    text-decoration: none;
    color: var(--rt-ink);
    overflow: hidden;
    transition: all .2s ease;
}
.rt-entry:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 23, 42, .12); }
.rt-entry::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--rt-primary);
    opacity: .06;
}
.rt-entry__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--rt-army), var(--rt-army-2));
}
.rt-entry--love .rt-entry__icon { background: linear-gradient(135deg, #b4305a, #e0607f); }
.rt-entry h3 { margin: 0 0 6px; font-size: 20px; }
.rt-entry p { margin: 0; font-size: 14px; color: var(--rt-muted); line-height: 1.7; }
.rt-entry__arrow { margin-left: auto; font-size: 22px; color: #c4c9d2; }

/* ------------------------------ 区块标题 ------------------------------ */
.rt-section { margin-bottom: 38px; }
.rt-section__hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.rt-section__hd h2 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.rt-section__hd h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--rt-gold);
}
.rt-section__more { font-size: 14px; color: var(--rt-muted); text-decoration: none; }
.rt-section__more:hover { color: var(--rt-primary); text-decoration: none; }

/* ------------------------------ 卡片通用 ------------------------------ */
.rt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rt-card {
    display: block;
    background: #fff;
    border-radius: var(--rt-radius);
    padding: 20px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--rt-ink);
    transition: all .2s ease;
}
.rt-card:hover { text-decoration: none; color: var(--rt-ink); border-color: rgba(255, 64, 64, .25); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 23, 42, .10); }
.rt-card h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.rt-salary { font-size: 20px; font-weight: 700; color: var(--rt-primary); margin-bottom: 10px; }
.rt-meta { font-size: 13px; color: var(--rt-muted); line-height: 1.8; }
.rt-meta span + span::before { content: "·"; margin: 0 6px; color: #c4c9d2; }
.rt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rt-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 20px;
    background: #f2f4f7;
    color: var(--rt-muted);
}
.rt-tag--hot { background: rgba(201, 162, 39, .14); color: #8a6d1f; }
.rt-tag--love { background: rgba(224, 96, 127, .12); color: #b4305a; }
.rt-tag--army { background: rgba(31, 77, 58, .10); color: var(--rt-army); }
.rt-card__company { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rt-logo {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef1f4;
}
.rt-logo--empty { display: flex; align-items: center; justify-content: center; color: #9aa3af; font-size: 15px; }
.rt-company-name { font-size: 13px; color: var(--rt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------ 相亲卡片 ------------------------------ */
.rt-love-card { padding: 0; overflow: hidden; }
.rt-love-card__photo {
    position: relative;
    display: block;
    width: 100%;
    height: 230px;
    background: linear-gradient(135deg, #f3e7e9, #e8d5da);
    overflow: hidden;
}
.rt-love-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.rt-love-card:hover .rt-love-card__photo img { transform: scale(1.04); }
.rt-love-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: #c9939f;
    background: linear-gradient(135deg, #f7edef, #efe0e4);
}
.rt-love-card__body { padding: 16px 18px 18px; }
.rt-love-card__name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.rt-love-card__name .rt-age { font-size: 14px; font-weight: 400; color: var(--rt-muted); }
.rt-love-card__body .rt-meta { min-height: 24px; }

/* ------------------------------ 筛选条 ------------------------------ */
.rt-filter {
    background: #fff;
    border-radius: var(--rt-radius);
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.rt-filter select,
.rt-filter input[type="text"] {
    height: 38px;
    min-width: 120px;
    padding: 0 10px;
    border: 1px solid var(--rt-line);
    border-radius: 7px;
    font-size: 14px;
    color: var(--rt-ink);
    background: #fff;
    outline: none;
}
.rt-filter input[type="text"] { min-width: 200px; }
.rt-filter select:focus,
.rt-filter input[type="text"]:focus { border-color: var(--rt-primary); }
.rt-filter__spacer { flex: 1 1 auto; }

/* ------------------------------ 分页 ------------------------------ */
.rt-page-box { margin-top: 24px; text-align: center; }
.rt-page-box .pagination,
.rt-page-box .page { display: inline-block; }
.rt-page-box a,
.rt-page-box span {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    margin: 0 3px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--rt-line);
    color: var(--rt-muted);
    font-size: 14px;
    text-decoration: none;
}
.rt-page-box .cur,
.rt-page-box span.current { background: var(--rt-primary); border-color: var(--rt-primary); color: #fff; }

/* ------------------------------ 详情页 ------------------------------ */
.rt-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rt-panel { background: #fff; border-radius: var(--rt-radius); padding: 26px; box-shadow: 0 2px 12px rgba(15, 23, 42, .05); }
.rt-panel + .rt-panel { margin-top: 20px; }
.rt-detail__title { margin: 0 0 8px; font-size: 26px; line-height: 1.4; }
.rt-detail__salary { font-size: 26px; font-weight: 700; color: var(--rt-primary); margin: 6px 0 14px; }
.rt-detail__meta { color: var(--rt-muted); font-size: 14px; line-height: 2; }
.rt-detail__meta span + span::before { content: "·"; margin: 0 8px; color: #c4c9d2; }
.rt-block { margin-top: 26px; }
.rt-block h3 { margin: 0 0 12px; font-size: 18px; padding-left: 10px; border-left: 3px solid var(--rt-gold); line-height: 1.2; }
.rt-block p { margin: 0; font-size: 15px; line-height: 2; color: #374151; word-break: break-word; }
.rt-block--rich { white-space: normal; }
.rt-sidebar .rt-panel { padding: 22px; }
.rt-sidebar__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.rt-sidebar__actions .rt-btn { width: 100%; }
.rt-contact {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f6f8f5;
    border: 1px dashed #cfe0d5;
    font-size: 14px;
    line-height: 1.9;
    color: #2f5b45;
}
.rt-contact strong { color: var(--rt-army); }
.rt-contact--locked { background: #f8f9fb; border-color: var(--rt-line); color: var(--rt-muted); }

/* 相亲详情 */
.rt-love-detail { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.rt-love-photo { width: 100%; border-radius: var(--rt-radius); overflow: hidden; background: #efe0e4; }
.rt-love-photo img { width: 100%; display: block; }
.rt-love-photo__ph { width: 100%; height: 420px; display: flex; align-items: center; justify-content: center; font-size: 72px; color: #c9939f; }
.rt-love-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.rt-love-gallery img { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
.rt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 18px 0 0; }
.rt-facts div { font-size: 14px; color: var(--rt-muted); line-height: 1.8; }
.rt-facts b { display: inline-block; min-width: 64px; color: var(--rt-ink); font-weight: 500; }

/* ------------------------------ 表单 ------------------------------ */
.rt-form { background: #fff; border-radius: var(--rt-radius); padding: 28px; box-shadow: 0 2px 12px rgba(15, 23, 42, .05); }
.rt-form__title { margin: 0 0 6px; font-size: 22px; }
.rt-form__tip { margin: 0 0 22px; font-size: 13px; color: var(--rt-muted); line-height: 1.8; }
.rt-field { margin-bottom: 20px; }
.rt-field__label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--rt-ink); font-weight: 500; }
.rt-field__label em { color: var(--rt-primary); font-style: normal; margin-left: 2px; }
.rt-field input[type="text"],
.rt-field input[type="number"],
.rt-field select,
.rt-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--rt-line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--rt-ink);
    background: #fff;
    outline: none;
    transition: border-color .15s ease;
}
.rt-field textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.rt-field input:focus,
.rt-field select:focus,
.rt-field textarea:focus { border-color: var(--rt-primary); }
.rt-field__help { margin-top: 6px; font-size: 12px; color: #9aa3af; }
.rt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rt-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.rt-radio-group { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 6px; }
.rt-radio-group label { font-size: 14px; color: #374151; cursor: pointer; }
.rt-radio-group input { margin-right: 4px; }
.rt-form__actions { display: flex; gap: 12px; margin-top: 26px; }
.rt-upload { display: flex; align-items: center; gap: 14px; }
.rt-upload__preview {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    border: 1px dashed var(--rt-line);
    background: #f8f9fb center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa3af;
    font-size: 12px;
    overflow: hidden;
}
.rt-upload__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------ 弹层 / 提示 ------------------------------ */
.rt-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.rt-modal.is-open { display: block; }
.rt-modal__mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); }
.rt-modal__box {
    position: relative;
    width: 520px;
    max-width: calc(100% - 32px);
    margin: 9vh auto 0;
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
}
.rt-modal__box h3 { margin: 0 0 16px; font-size: 20px; }
.rt-modal__close { position: absolute; right: 16px; top: 14px; font-size: 22px; color: #9aa3af; cursor: pointer; line-height: 1; }
.rt-modal__close:hover { color: var(--rt-ink); }

#rt-toast {
    position: fixed;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    z-index: 10000;
    max-width: 80vw;
    padding: 11px 22px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
    display: none;
}
#rt-toast.ok { background: #1f4d3a; }
#rt-toast.err { background: #b91c1c; }

/* ------------------------------ 空状态 ------------------------------ */
.rt-empty { padding: 60px 20px; text-align: center; color: var(--rt-muted); background: #fff; border-radius: var(--rt-radius); }
.rt-empty i { display: block; font-size: 40px; margin-bottom: 12px; font-style: normal; color: #c4c9d2; }

/* ------------------------------ 会员中心 ------------------------------ */
.rt-member-page { padding: 0 20px 10px; }

.rt-member-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rt-member-tabs a {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rt-line);
    color: var(--rt-muted);
    font-size: 14px;
    text-decoration: none;
}
.rt-member-tabs a:hover { color: var(--rt-primary); border-color: rgba(255, 64, 64, .3); text-decoration: none; }
.rt-member-tabs a.is-active { background: var(--rt-primary); border-color: var(--rt-primary); color: #fff; }
.rt-member-tabs .rt-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: rgba(0, 0, 0, .12); font-size: 12px; line-height: 18px; text-align: center; }
.rt-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rt-radius); overflow: hidden; }
.rt-table th,
.rt-table td { padding: 13px 12px; border-bottom: 1px solid #f1f2f4; font-size: 14px; text-align: left; vertical-align: middle; }
.rt-table th { background: #fafbfc; color: var(--rt-muted); font-weight: 500; white-space: nowrap; }
.rt-table tr:last-child td { border-bottom: 0; }
.rt-table .rt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-status { display: inline-block; padding: 1px 9px; border-radius: 4px; font-size: 12px; line-height: 20px; background: #f2f4f7; color: var(--rt-muted); }
.rt-status--ok { background: rgba(31, 77, 58, .10); color: var(--rt-army); }
.rt-status--wait { background: rgba(201, 162, 39, .16); color: #8a6d1f; }
.rt-status--no { background: rgba(185, 28, 28, .10); color: #b91c1c; }
.rt-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #f2f4f7; display: block; }
.rt-thumb--empty { display: flex; align-items: center; justify-content: center; color: #c4c9d2; font-size: 20px; }
.rt-member-note { font-size: 13px; color: var(--rt-muted); line-height: 1.8; }
.rt-photo-cell { display: flex; align-items: center; gap: 10px; }
.rt-photo-cell strong { display: block; font-weight: 500; color: var(--rt-ink); }
.rt-photo-cell span { display: block; font-size: 12px; color: var(--rt-muted); }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 992px) {
    .rt-grid { grid-template-columns: repeat(2, 1fr); }
    .rt-hero__inner { flex-direction: column; align-items: flex-start; gap: 26px; }
    .rt-hero__stats { flex: none; width: 100%; grid-template-columns: repeat(3, 1fr); }
    .rt-detail { grid-template-columns: 1fr; }
    .rt-love-detail { grid-template-columns: 1fr; }
    .rt-love-photo__ph { height: 300px; }
}
@media (max-width: 640px) {
    .rt-wrap { max-width: calc(100% - 24px); }
    .rt-hero { padding: 38px 0 34px; }
    .rt-hero h1 { font-size: 24px; }
    .rt-hero p { font-size: 14px; }
    .rt-hero__stats { grid-template-columns: 1fr 1fr; }
    .rt-grid { grid-template-columns: 1fr; }
    .rt-entry-grid { grid-template-columns: 1fr; }
    .rt-entry { padding: 18px; }
    .rt-filter { padding: 12px; }
    .rt-filter select, .rt-filter input[type="text"] { flex: 1 1 45%; min-width: 0; }
    .rt-row, .rt-row--3 { grid-template-columns: 1fr; }
    .rt-love-card__photo { height: 200px; }
    .rt-panel, .rt-form { padding: 18px; }
    .rt-table { display: block; overflow-x: auto; white-space: nowrap; }
    .rt-member-tabs a { padding: 6px 12px; font-size: 13px; }
}
