/**
 * RouterPHP 引导页样式
 * 纯 CSS 实现，零依赖
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

.rp-tip-page {
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* ========== 顶部引导区 ========== */
.rp-top-bar {
    position: relative;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 30px 24px 24px;
    overflow: hidden;
}

.rp-top-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.rp-top-text {
    position: relative;
    z-index: 1;
}

.rp-step {
    font-size: 16px;
    color: #fff;
    line-height: 2.2;
}

.rp-step strong {
    font-weight: 600;
    color: #ffd54f;
}

.rp-dot {
    color: #ffd54f;
    font-size: 12px;
    margin-right: 4px;
    vertical-align: middle;
}

.rp-device-hint {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

/* ========== 中间说明区 ========== */
.rp-notice {
    text-align: center;
    padding: 32px 24px 20px;
}

.rp-notice-icon {
    color: #1a73e8;
    margin-bottom: 12px;
}

.rp-notice-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 4px;
}

.rp-notice-desc {
    font-size: 14px;
    color: #666;
}

/* ========== 网址展示区 ========== */
.rp-url-section {
    margin: 0 24px 20px;
}

.rp-url-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    padding-left: 4px;
}

.rp-url-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #555;
    word-break: break-all;
    line-height: 1.6;
    user-select: all;
    cursor: pointer;
}

/* ========== 复制按钮 ========== */
.rp-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 14px 0;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.rp-copy-btn:active {
    transform: scale(0.97);
    background: #1557b0;
}

.rp-copy-btn--done {
    background: #34a853;
}

.rp-copy-btn--done:active {
    background: #2d9249;
}

/* ========== Toast 提示 ========== */
.rp-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9999;
}

.rp-toast--show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ========== 响应式 ========== */
@media (max-width: 360px) {
    .rp-top-bar {
        padding: 24px 18px 20px;
    }
    .rp-step {
        font-size: 14px;
    }
    .rp-copy-btn {
        font-size: 14px;
        padding: 12px 0;
    }
}
