/* 个人边界声明样式 - spank.cn 黑白简约风格 */
.boundary-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--fg);
    padding-bottom: 14px;
}
.boundary-header h1 {
    font-size: 2rem;
    font-weight: bold;
}
.boundary-header .subtitle {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 6px;
}
/* 安全提示 */
.boundary-notice {
    background: #f5f5f5;
    border-left: 3px solid var(--fg);
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.7;
}
/* 分区 */
.boundary-section {
    margin-bottom: 26px;
}
.boundary-section h2 {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--light-border);
}
.boundary-section h2 .section-num {
    display: inline-block;
    margin-right: 8px;
    color: var(--muted);
}
/* 单选卡片网格 */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.radio-card {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border: 1.5px solid var(--light-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg);
    user-select: none;
    position: relative;
}
.radio-card:hover {
    border-color: var(--fg);
}
.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.radio-card .rc-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.radio-card .rc-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
}
.radio-card.active {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}
.radio-card.active .rc-title {
    color: var(--bg);
}
.radio-card.active .rc-desc {
    color: rgba(255, 255, 255, 0.75);
}
/* 复选框网格 */
.check-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.check-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid var(--light-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg);
    font-size: 0.85rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.check-card:hover {
    border-color: var(--fg);
}
.check-card:active {
    transform: scale(0.98);
}
.check-card input {
    accent-color: var(--fg);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.check-card .cc-label {
    flex: 1;
    line-height: 1.3;
}
.check-card.checked {
    border-color: var(--fg);
    background: var(--hover-bg);
    font-weight: 600;
}
.check-card.checked::before {
    content: '✓';
    color: var(--fg);
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 2px;
}
.check-card.checked input {
    display: none;
}
.check-card.checked .cc-label {
    margin-left: -2px;
}
/* 锁定项 */
.check-card.locked {
    background: #fafafa;
    cursor: not-allowed;
    color: var(--muted);
}
.check-card.locked input {
    cursor: not-allowed;
    display: none;
}
.check-card.locked.checked {
    background: #f0f0f0;
    color: var(--fg);
    border-color: var(--fg);
}
/* 分组小标题 */
.group-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 10px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* 自定义添加 */
.custom-add {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.custom-add input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--light-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--fg);
}
.custom-add input:focus {
    outline: none;
    border-color: var(--fg);
}
.custom-add button {
    padding: 8px 16px;
    border: 1.5px solid var(--fg);
    background: var(--bg);
    color: var(--fg);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.15s;
}
.custom-add button:hover {
    background: var(--fg);
    color: var(--bg);
}
/* 自定义项列表 */
.custom-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.custom-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--hover-bg);
    border: 1px solid var(--light-border);
    border-radius: 14px;
    font-size: 0.8rem;
}
.custom-item .remove-btn {
    cursor: pointer;
    color: var(--muted);
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
}
.custom-item .remove-btn:hover {
    color: var(--fg);
}
/* 文本输入 */
.text-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--light-border);
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--fg);
}
.text-input:focus {
    outline: none;
    border-color: var(--fg);
}
textarea.text-input {
    min-height: 80px;
    resize: vertical;
    line-height: 1.6;
}
/* 操作按钮 */
.boundary-actions {
    display: flex;
    gap: 10px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.btn {
    padding: 10px 22px;
    border: 2px solid var(--fg);
    border-radius: 6px;
    background: var(--bg);
    color: var(--fg);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.15s;
}
.btn:hover {
    background: var(--fg);
    color: var(--bg);
}
.btn-primary {
    background: var(--fg);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--bg);
    color: var(--fg);
}
.btn-danger {
    border-color: var(--muted);
    color: var(--muted);
}
.btn-danger:hover {
    background: var(--muted);
    color: var(--bg);
    border-color: var(--muted);
}
/* 输出区 */
.boundary-output {
    margin-top: 20px;
    padding: 18px;
    border: 2px solid var(--fg);
    border-radius: 8px;
    background: var(--bg);
}
.boundary-output h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 12px;
}
.boundary-output .output-text {
    font-size: 0.9rem;
    line-height: 1.85;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--fg);
    background: #fafafa;
    padding: 14px;
    border-radius: 6px;
    border-left: 3px solid var(--fg);
    margin-bottom: 12px;
}
/* Toast 提示 */
.boundary-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fg);
    color: var(--bg);
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.boundary-toast.show {
    opacity: 1;
}
/* 响应式 */
@media (max-width: 480px) {
    .boundary-header h1 { font-size: 1.6rem; }
    .radio-grid { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: repeat(2, 1fr); }
    .check-card { font-size: 0.8rem; padding: 9px 10px; gap: 6px; }
    .check-card input { width: 14px; height: 14px; }
    .btn { padding: 9px 16px; font-size: 0.85rem; }
    .boundary-output .output-text { font-size: 0.85rem; padding: 12px; }
}
/* 截图专用容器：脱离屏幕可见区域 */
.snapshot-host {
    position: fixed;
    left: -99999px;
    top: 0;
    z-index: -1;
    pointer-events: none;
}
.snapshot-card {
    background: #ffffff;
    padding: 32px 36px;
    width: 600px;
    box-sizing: border-box;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1a1a1a;
}
.snapshot-card .sc-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2px solid #1a1a1a;
}
.snapshot-card .sc-section {
    margin-bottom: 14px;
}
.snapshot-card .sc-h {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
}
.snapshot-card .sc-body {
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.snapshot-card .sc-divider {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 12px 0;
}
.snapshot-card .sc-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
