/* ========== 隐私中心 ========== */
.privacy-center {
    max-width: 950px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}
.privacy-center-header {
    text-align: center;
    margin-bottom: 40px;
}
.privacy-center-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.privacy-center-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ========== 隐私卡片 ========== */
.privacy-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.privacy-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.privacy-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 0;
}
.privacy-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}
.privacy-card-subtitle {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}
.privacy-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
}
.privacy-card-icon svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-top: 2px;
}
.privacy-card-body {
    padding: 20px 24px 24px;
}
.privacy-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* 链接卡片 */
.privacy-card-link a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.privacy-card-link .privacy-card-header {
    padding: 24px;
}
.privacy-card-arrow {
    margin-left: auto;
    color: var(--text-gray);
    transition: transform 0.2s;
}
.privacy-card-arrow svg {
    width: 20px;
    height: 20px;
}
.privacy-card-link:hover .privacy-card-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ========== 同意状态网格 ========== */
.consent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.consent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--bg-section, #f8fafc);
    border: 1px solid transparent;
    transition: all 0.2s;
}
.consent-item.consent-active {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
}
.consent-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background 0.2s;
}
.consent-active .consent-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.consent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.consent-info strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}
.consent-info span {
    font-size: 12px;
    color: var(--text-gray);
}

/* ========== 数据权利网格 ========== */
.rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.right-item {
    padding: 20px;
    border-radius: 10px;
    background: var(--bg-section, #f8fafc);
    border: 1px solid var(--border-color);
}
.right-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 12px 0 6px;
}
.right-item p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 14px;
}
.right-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.right-item-icon svg {
    width: 20px;
    height: 20px;
}
.right-icon-export {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.right-icon-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.right-item-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========== 按钮 ========== */
.privacy-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.privacy-btn-primary:hover {
    background: var(--accent-hover);
}
.privacy-btn-primary svg {
    width: 16px;
    height: 16px;
}
.privacy-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.privacy-btn-outline:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
}
.privacy-btn-outline svg {
    width: 16px;
    height: 16px;
}
.privacy-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.privacy-btn-danger:hover {
    background: #dc2626;
}
.privacy-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.privacy-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.privacy-input::placeholder {
    color: #94a3b8;
}

/* ========== 联系区域 ========== */
.privacy-contact-section {
    text-align: center;
    padding: 32px 0;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}
.privacy-contact-section strong {
    color: var(--accent);
}

/* ========== 面包屑 ========== */
.privacy-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
}
.privacy-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}
.privacy-breadcrumb a:hover {
    text-decoration: underline;
}

/* ========== Toast 提示 ========== */
.privacy-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.privacy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.privacy-toast.success {
    background: #10b981;
    color: #fff;
}
.privacy-toast.error {
    background: #ef4444;
    color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .privacy-center {
        padding: 80px 16px 40px;
    }
    .privacy-center-header h1 {
        font-size: 26px;
    }
    .consent-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    .privacy-card-actions {
        flex-direction: column;
    }
    .privacy-card-actions .privacy-btn-primary,
    .privacy-card-actions .privacy-btn-outline {
        width: 100%;
        justify-content: center;
    }
}
