/* ===== 投屏连接页样式（复用 index.css 主题变量与基础组件） ===== */

.header-actions {
    display: flex;
    align-items: center;
}

.back-link {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.back-link:hover { color: var(--accent); }

.header-actions .back-link + .back-link { margin-left: 18px; }

.header-vip-link {
    margin-right: 14px;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--accent);
    background: rgba(232, 179, 65, 0.1);
    border: 1px solid rgba(232, 179, 65, 0.4);
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.header-vip-link:hover {
    background: rgba(232, 179, 65, 0.18);
    border-color: var(--accent);
}

.cast-page {
    min-height: calc(100vh - 64px);
    padding: 44px 0 72px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 179, 65, 0.07), transparent 60%),
        var(--bg-deep);
}

/* ===== 页面标题 ===== */
.cast-head {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.cast-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    background: rgba(232, 179, 65, 0.1);
    border: 1px solid rgba(232, 179, 65, 0.35);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 16px;
}

.cast-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
}

.cast-sub {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}

.cast-sub b { color: var(--accent); }

/* ===== 主体两栏 ===== */
.cast-grid {
    display: flex;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.cast-card {
    flex: 1 1 auto;
    max-width: 560px;
    margin: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 30px 26px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(232, 179, 65, 0.08);
}

.cast-required {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 10px 12px;
    background: rgba(232, 179, 65, 0.08);
    border: 1px solid rgba(232, 179, 65, 0.28);
    border-radius: 10px;
}

.cast-required-icon {
    margin-right: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.cast-required p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--accent-light, #F0C96A);
}

.cast-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

.cast-input {
    width: 100%;
    margin: 0 0 14px;
    font-size: 28px;
    text-align: center;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: var(--bg-deep);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    padding: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cast-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 179, 65, 0.15);
}

.cast-input::placeholder { color: var(--dim); letter-spacing: 2px; }
.cast-input:-ms-input-placeholder { color: var(--dim); letter-spacing: 2px; }

.cast-btn { width: 100%; }

.cast-message {
    min-height: 24px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.cast-message.success { color: #4caf50; }
.cast-message.error { color: #f44336; }

.cast-tip {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--dim);
}

.cast-help {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.cast-help-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--muted);
    margin-bottom: 10px;
}

.cast-help ol {
    padding-left: 18px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
}

/* ===== 右侧前提卡片 ===== */
.cast-side {
    flex: 0 0 300px;
    margin-left: 20px;
}

.cast-info-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}

.cast-info-card h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.cast-check-list {
    margin-top: 12px;
    list-style: none;
}

.cast-check-list li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.cast-check-list li:last-child { margin-bottom: 0; }

.cast-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.cast-info-note {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--dim);
}

/* ===== 通用区块 ===== */
.cast-section {
    max-width: 900px;
    margin: 40px auto 0;
}

.cast-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text);
}

.cast-section-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

/* ===== 配套流程 ===== */
.cast-flow {
    display: flex;
    align-items: stretch;
    margin: 18px -8px 0;
}

.cast-flow-step {
    flex: 1;
    margin: 0 8px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.cast-flow-no {
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #0F1129;
    background: var(--accent);
    border-radius: 50%;
}

.cast-flow-step h3 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text);
}

.cast-flow-step p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.cast-flow-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: var(--accent);
    font-size: 20px;
}

/* ===== 两端角色 ===== */
.cast-roles {
    display: flex;
    margin: 18px -8px 0;
}

.cast-role {
    flex: 1;
    margin: 0 8px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.cast-role-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 2px 10px;
    font-size: 11px;
    color: var(--accent);
    background: rgba(232, 179, 65, 0.1);
    border: 1px solid rgba(232, 179, 65, 0.3);
    border-radius: 999px;
}

.cast-role h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text);
}

.cast-role p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

/* ===== 常见问题 ===== */
.cast-faq { margin-top: 16px; }

.cast-faq-item {
    margin-bottom: 10px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.cast-faq-item summary {
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.cast-faq-item summary::-webkit-details-marker { display: none; }

.cast-faq-item summary::before {
    content: "+";
    display: inline-block;
    width: 18px;
    color: var(--accent);
    font-weight: 700;
}

.cast-faq-item[open] summary::before { content: "−"; }

.cast-faq-item p {
    margin-top: 8px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

/* ===== 页脚 ===== */
.cast-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--dim);
    border-top: 1px solid var(--border);
    background: #0f1923;
}

.cast-footer-slogan { color: var(--muted); }

.cast-footer-links {
    margin-top: 8px;
    font-size: 12px;
}

.cast-footer-links a {
    color: var(--muted);
    transition: color 0.2s;
}

.cast-footer-links a:hover { color: var(--accent); }

.cast-footer-links span { margin: 0 8px; }

.cast-footer-company {
    margin-top: 8px;
    font-size: 12px;
    color: var(--dim);
}

/* ===== 响应式 ===== */
@media (max-width: 820px) {
    .cast-grid { flex-direction: column; }

    .cast-card { max-width: none; }

    .cast-side {
        flex: none;
        width: 100%;
        margin: 20px 0 0;
    }

    .cast-flow { flex-direction: column; }

    .cast-flow-step { margin-bottom: 12px; }

    .cast-flow-arrow {
        align-self: center;
        margin: -2px 0 10px;
        transform: rotate(90deg);
    }

    .cast-roles { flex-direction: column; }

    .cast-role { margin-bottom: 12px; }

    .cast-role:last-child { margin-bottom: 0; }
}

@media (max-width: 560px) {
    .header-home-link { display: none; }

    .header-vip-link {
        margin-right: 12px;
        padding: 3px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cast-page { padding: 32px 0 56px; }

    .cast-head { margin-bottom: 22px; }

    .cast-title { font-size: 24px; }

    .cast-section { margin-top: 32px; }

    .cast-section-title { font-size: 19px; }

    .cast-card { padding: 22px 18px; }

    .cast-input { font-size: 22px; letter-spacing: 4px; }

    .header-actions .back-link + .back-link { margin-left: 12px; }
}
