/* ========================================================
 * rs-common.css — rs-ext 全局公共样式
 * 所有页面通过 rs_enqueue_assets() 自动加载本文件
 * ======================================================== */

/* ---------- 页面导航条 ---------- */
.rs-page-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.rs-page-nav-inner {
    display: flex;
    justify-content: center;
    gap: 6px;
    max-width: 1100px;
    margin: 0 auto;
    white-space: nowrap;
}
.rs-page-nav a {
    flex: 0 0 auto;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: color .2s, border-color .2s;
    border-bottom: 2px solid transparent;
}
.rs-page-nav a:hover  { color: #D2572A; }
.rs-page-nav a.active { color: #D2572A; border-bottom-color: #D2572A; font-weight: bold; }

/* ---------- 通用按钮 ---------- */
.rs-btn-primary {
    display: inline-block; padding: 12px 30px;
    background: #D2572A; color: #fff; border: none;
    border-radius: 25px; font-size: 16px; cursor: pointer;
    transition: background .2s;
}
.rs-btn-primary:hover { background: #BA4D26; }

.rs-btn-secondary {
    display: inline-block; padding: 8px 24px;
    background: #6c757d; color: #fff; border: none;
    border-radius: 6px; cursor: pointer; margin-top: 10px;
    transition: background .2s;
}
.rs-btn-secondary:hover { background: #5a6268; }

.rs-btn-success {
    display: inline-block; padding: 8px 24px;
    background: #28a745; color: #fff; border: none;
    border-radius: 6px; cursor: pointer;
    transition: background .2s;
}
.rs-btn-success:hover { background: #218838; }

.rs-btn-info {
    display: inline-block; padding: 12px 24px;
    background: #007bff; color: #fff; border: none;
    border-radius: 8px; text-decoration: none; cursor: pointer;
    transition: background .2s;
}
.rs-btn-info:hover { background: #0069d9; }

/* ---------- Toast（加载提示） ---------- */
.rs-toast {
    display: none; position: fixed; left: 50%; top: 50%;
    transform: translate(-50%, -50%); z-index: 10001;
}
.rs-toast-inner {
    background: rgba(0,0,0,.8); color: #fff;
    padding: 25px 35px; border-radius: 10px; text-align: center;
}
.rs-toast-spinner {
    display: inline-block; width: 32px; height: 32px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff; border-radius: 50%;
    animation: rs-spin .7s linear infinite;
}
@keyframes rs-spin { to { transform: rotate(360deg); } }
.rs-toast-msg { margin-top: 10px; font-size: 14px; }

/* ---------- 模态框 / 弹窗 ---------- */
.rs-modal-overlay {
    display: none; position: fixed; left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.5); z-index: 9999;
}
.rs-modal-box {
    position: fixed; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: #fff; border-radius: 12px;
    padding: 30px; max-width: 400px; width: 90%;
    z-index: 10000; text-align: center;
}
.rs-modal-close {
    position: absolute; right: 15px; top: 10px;
    font-size: 22px; cursor: pointer;
    background: none; border: none; color: #333;
}
.rs-modal-box input {
    width: 100%; padding: 10px; margin: 8px 0;
    border: 1px solid #ddd; border-radius: 6px;
    box-sizing: border-box;
}
.rs-modal-footer { margin-top: 12px; font-size: 13px; color: #999; }
.rs-modal-footer a { color: #007bff; }
.rs-login-warn { color: #D2572A; font-size: 14px; min-height: 20px; margin: 8px 0; }
.rs-login-warn a { color: #D2572A; text-decoration: underline; }
