/* ============================================================
 * 静态页（index-static.html / tutorial-static.html）共用
 * 底部版权区 + 赞赏弹窗 + 意见反馈弹窗（原生实现，无框架依赖）
 * ============================================================ */

/* ---------- 底部版权区 ---------- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 18px 24px;
}
.site-footer .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.site-footer .footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.site-footer .copyright {
    font-size: 13px;
    color: #6b7280;
}
.site-footer .footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .footer-links a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}
.site-footer .footer-links a:hover {
    color: #10b981;
    text-decoration: underline;
}
.site-footer .footer-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 14px;
}
.site-footer .footer-actions a {
    color: #6b7280;
    text-decoration: none;
}
.site-footer .footer-actions a:hover {
    color: #10b981;
}
.site-footer .footer-actions .divider {
    color: #d1d5db;
    font-size: 13px;
    user-select: none;
}
.site-footer .footer-icp {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
}
.site-footer .footer-icp a {
    color: #9ca3af;
    text-decoration: none;
}
.site-footer .footer-icp a:hover {
    color: #10b981;
}
@media screen and (max-width: 768px) {
    .site-footer .footer-main {
        justify-content: center;
        text-align: center;
    }
    .site-footer .footer-links {
        justify-content: center;
    }
}

/* ---------- 通用弹窗 ---------- */
.sf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.sf-overlay.show {
    display: flex;
}
.sf-dialog {
    position: relative;
    width: 680px;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 28px 36px 24px;
    max-height: 92vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.sf-dialog.sf-small {
    width: 400px;
    padding: 26px 28px 24px;
}
.sf-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #909399;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.sf-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}
.sf-close svg {
    width: 18px;
    height: 18px;
}
.sf-title {
    text-align: center;
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}
.sf-subtitle {
    text-align: center;
    margin: -8px 0 14px;
    font-size: 13px;
    color: #9ca3af;
}
.sf-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0 -36px;
}

/* ---------- 意见反馈表单 ---------- */
.sf-form-body {
    padding: 24px 0 8px;
}
.sf-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.sf-row.align-top {
    align-items: flex-start;
}
.sf-label {
    flex: 0 0 92px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    text-align: right;
    padding-right: 16px;
    line-height: 36px;
}
.sf-row.align-top .sf-label {
    line-height: 22px;
    padding-top: 8px;
}
.sf-radios {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}
.sf-radio, .sf-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    user-select: none;
}
.sf-radio input, .sf-checkbox input {
    display: none;
}
.sf-radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: border-color .2s;
    box-sizing: border-box;
}
.sf-radio input:checked + .sf-radio-dot {
    border-color: #3b82f6;
}
.sf-radio input:checked + .sf-radio-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #3b82f6;
}
.sf-checkbox-box {
    width: 17px;
    height: 17px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all .2s;
    box-sizing: border-box;
}
.sf-checkbox input:checked + .sf-checkbox-box {
    background: #3b82f6;
    border-color: #3b82f6;
}
.sf-checkbox input:checked + .sf-checkbox-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.sf-textarea {
    flex: 1;
    min-height: 140px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.sf-textarea:focus, .sf-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.sf-input-wrap {
    flex: 1;
    position: relative;
}
.sf-input-wrap .sf-mail-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
}
.sf-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px 0 38px;
    font-size: 14px;
    color: #374151;
    outline: none;
    box-sizing: border-box;
}
/* 独立安全验证弹窗中的滑块 */
.sf-captcha-dialog {
    width: 340px;
    padding: 24px 24px 22px;
}
.sf-captcha-title {
    margin: 0 0 18px;
    font-size: 17px;
}
.sf-captcha-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 4px 0 2px;
}
.sf-captcha-hint {
    font-size: 12px;
    color: #9ca3af;
}
/* 原生滑块 */
.sf-slide {
    position: relative;
    width: 100%;
    height: 42px;
    background: #eef0f3;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
}
.sf-slide-pass {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: rgba(34, 197, 94, 0.18);
}
.sf-slide-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #9ca3af;
    pointer-events: none;
}
.sf-slide-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
}
.sf-slide.passed {
    background: #d1fae5;
}
.sf-slide.passed .sf-slide-handle {
    background: #22c55e;
    color: #fff;
}
.sf-error {
    display: none;
    text-align: center;
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 8px;
}
.sf-error.show {
    display: block;
}
.sf-footer {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 18px;
}
.sf-btn {
    min-width: 120px;
    height: 42px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s;
}
.sf-btn-cancel {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #4b5563;
}
.sf-btn-cancel:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}
.sf-btn-submit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.sf-btn-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.sf-success {
    display: none;
    padding: 36px 0 28px;
    text-align: center;
}
.sf-success.show {
    display: block;
}
.sf-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sf-success-icon svg {
    width: 34px;
    height: 34px;
}
.sf-success-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: #16a34a;
}
.sf-success-desc {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ---------- 赞赏弹窗 ---------- */
.sf-donate-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}
.sf-donate-head img {
    width: 26px;
    height: 26px;
}
.sf-donate-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}
.sf-donate-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}
.sf-donate-tab.active {
    border-color: #ec4899;
    color: #ec4899;
    background: #fdf2f8;
}
.sf-donate-tab img {
    width: 18px;
    height: 18px;
}
.sf-qr {
    text-align: center;
}
.sf-qr img {
    width: 230px;
    height: 230px;
    object-fit: cover;
    border: 1px solid #f1f1f3;
    border-radius: 12px;
}
.sf-qr p {
    margin: 10px 0 0;
    font-size: 13px;
    color: #6b7280;
}
.sf-donate-foot {
    text-align: center;
    margin-top: 18px;
}

@media screen and (max-width: 768px) {
    .sf-dialog {
        padding: 22px 18px 18px;
    }
    .sf-divider {
        margin: 0 -18px;
    }
    .sf-label {
        flex-basis: 72px;
        padding-right: 10px;
    }
    .sf-radios {
        gap: 16px;
    }
    .sf-footer {
        justify-content: center;
    }
}
