/* ===== 页面布局：隐藏侧边栏和导航 ===== */
.sidebar-container { display: none !important; }
.main-layout { display: block !important; }
.content-area { max-width: 100% !important; width: 100% !important; padding: 0 12px !important; }
.main-nav { display: none !important; }
.header-content { justify-content: space-between !important; }
.footer { display: none; }

/* ===== 上传区域 ===== */
.upload-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
    border: 3px dashed #ccc;
    border-radius: 12px;
    margin: 20px 0;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #3498db;
    background: linear-gradient(135deg, #eaf4fc 0%, #dceefb 100%);
    box-shadow: 0 0 0 4px rgba(52,152,219,0.08);
}
.upload-zone-inner {
    text-align: center;
    color: #666;
}
.upload-icon {
    font-size: 56px;
    margin-bottom: 12px;
}
.upload-zone-inner h3 {
    margin: 0 0 6px;
    color: #333;
}
.upload-zone-inner p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #999;
}

/* ===== 工作区 Grid 布局 ===== */
.workspace {
    margin: 20px 0;
}
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 860px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 预览面板 ===== */
.preview-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 16px;
}
.preview-header {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}
.preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 560px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: #fafafa;
}
.preview-container canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

/* ===== 加载遮罩 ===== */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p {
    margin-top: 16px;
    color: #3498db;
    font-size: 20px;
    font-weight: 700;
}
.overlay-timer {
    display: none;
    margin-top: 10px;
    color: #3498db !important;
    font-weight: 600;
    font-size: 13px;
}
.overlay-cancel-btn {
    display: none;
    flex: none !important;
    width: auto !important;
    margin-top: 6px;
    padding: 5px 16px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}

.time-estimate {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0;
    margin: 0;
    color: #888;
    font-size: 13px;
    text-align: center;
}

/* ===== 处理进度条 ===== */
.processing-bar-wrap {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.processing-bar {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 5px;
    transition: width 0.3s ease-out;
}
.processing-status {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}
.processing-bar.active ~ .processing-status {
    color: #3498db;
    font-weight: 600;
}
.elapsed-time {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
.elapsed-time span { font-weight: 700; color: #555; }

/* ===== 控制面板卡片 ===== */
.control-panel .card {
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.control-panel .card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}
.control-panel .card-header {
    padding: 12px 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
}
.control-panel .card-title {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #444;
}
.control-panel .card-body {
    padding: 12px 16px 16px;
}

/* 美颜折叠 */
.collapsible-header {
    cursor: pointer;
    user-select: none;
}
.collapsible-header:hover {
    background: linear-gradient(180deg, #f0f2f5 0%, #ebeef2 100%);
}
.collapse-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
    display: inline-block;
}
.collapse-arrow.open {
    transform: rotate(90deg);
}

/* ===== 尺寸标签页 ===== */
.size-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 3px;
}
.size-tab-btn {
    flex: 1;
    padding: 7px 4px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #777;
    transition: all 0.2s;
    white-space: nowrap;
}
.size-tab-btn:hover {
    color: #555;
    background: rgba(255,255,255,0.6);
}
.size-tab-btn.active {
    background: #fff;
    color: #3498db;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ===== 自定义下拉（签证国家） ===== */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}
.custom-select-trigger:hover {
    border-color: #aaa;
}
.custom-select-trigger:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
}
.custom-select-placeholder {
    color: #999;
}
.custom-select-placeholder.selected {
    color: #333;
}
.custom-select-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}
.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
}
.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}
.custom-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: background 0.15s;
}
.custom-select-option:hover {
    background: #f0f6fc;
}
.custom-select-option.selected {
    background: #eaf4fc;
    color: #2980b9;
    font-weight: 600;
}
.custom-select-option img {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* ===== 尺寸预设按钮 ===== */
.size-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.size-preset-btn {
    padding: 7px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    color: #555;
}
.size-preset-btn:hover {
    border-color: #3498db;
    background: #eaf4fc;
    color: #3498db;
}
.size-preset-btn.active {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(52,152,219,0.3);
}

/* ===== 自定义尺寸 ===== */
.custom-size-group {
    margin-top: 10px;
}
.input-row {
    display: flex;
    gap: 10px;
}
.input-row label {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}
.input-row input[type="number"] {
    width: 72px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}
.input-row input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

/* ===== 换底选项按钮 ===== */
.bg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bg-option-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #555;
    font-weight: 500;
}
.bg-option-btn:hover {
    border-color: #3498db;
    background: #eaf4fc;
}
.bg-option-btn.active {
    border-color: #3498db;
    background: #eaf4fc;
    color: #2980b9;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.15);
}
.bg-swatch {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}
.none-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #aaa;
    background: #f0f0f0;
    font-weight: bold;
}
.custom-swatch {
    padding: 0;
    overflow: hidden;
    position: relative;
}
.custom-swatch input[type="color"] {
    position: absolute;
    inset: -3px;
    width: 28px;
    height: 28px;
    border: none;
    cursor: pointer;
    background: none;
}

/* ===== 滑块组 ===== */
.slider-group {
    margin-bottom: 14px;
}
.slider-group:last-child {
    margin-bottom: 0;
}
.slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
    font-weight: 500;
}
.slider-val {
    font-weight: 600;
    color: #3498db;
    min-width: 36px;
    text-align: right;
}
.slider-group input[type="range"] {
    width: 100%;
    accent-color: #3498db;
    height: 5px;
    cursor: pointer;
}

/* ===== 镜像翻转 ===== */
.mirror-toggle-row {
    margin-bottom: 12px;
    text-align: center;
}
.mirror-label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* ===== 操作按钮 ===== */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(52,152,219,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.35);
}
.btn-process {
    flex: 1 0 100%;
    padding: 13px 0;
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(52,152,219,0.25);
}
.btn-process:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(52,152,219,0.35);
}
.btn-process:active {
    transform: translateY(0);
}
.btn-process:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-cancel {
    flex: 0.6;
    padding: 12px 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(231,76,60,0.3);
}
.btn-cancel:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231,76,60,0.4);
}
.btn-download {
    flex: 1;
    padding: 11px 0;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(46,204,113,0.25);
}
.btn-download:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-download:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(46,204,113,0.35);
}
.download-group {
    flex: 1;
    display: flex;
    gap: 0;
}
.download-group .btn-download {
    flex: 1;
    border-radius: 8px 0 0 8px;
}
.download-format-select {
    padding: 6px 8px;
    border: 2px solid #27ae60;
    border-left: 1px solid rgba(255,255,255,0.3);
    border-radius: 0 8px 8px 0;
    background: #2ecc71;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    min-width: 52px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 16px;
}
.download-format-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-compare {
    flex: 1;
    padding: 11px 0;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(230,126,34,0.25);
}
.btn-compare:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-compare:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(230,126,34,0.35);
}
.btn-secondary {
    flex: 1;
    padding: 11px 0;
    background: #f5f6f8;
    color: #555;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: #e8eaed;
    border-color: #ccc;
}

/* ===== 上传按钮组 ===== */
.upload-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-camera {
    padding: 10px 24px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(155,89,182,0.25);
}
.btn-camera:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155,89,182,0.35);
}

/* ===== 拍照模态框 ===== */
.camera-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.camera-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}
.camera-modal-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    width: 95%;
    max-width: 520px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.camera-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fafbfc;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.camera-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
.camera-close:hover {
    color: #333;
}
.camera-viewfinder {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 70vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.camera-viewfinder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.camera-viewfinder canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.guide-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}
.camera-controls {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    justify-content: center;
    flex-wrap: wrap;
    background: #fafbfc;
}
.camera-controls .btn-process,
.camera-controls .btn-download,
.camera-controls .btn-secondary {
    flex: 0 1 auto;
    padding: 9px 18px;
    font-size: 13px;
}

/* ===== 错误提示 ===== */
.error-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fce4e4;
    color: #c0392b;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 500;
}
.error-dismiss {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #c0392b;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.error-dismiss:hover {
    opacity: 1;
}

/* ===== 二维码区域 ===== */
.qr-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}
.qr-code-img {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.qr-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #bbb;
}

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
    .upload-zone {
        min-height: 240px;
        margin: 8px 0;
        border-width: 2px;
        border-radius: 10px;
    }
    .upload-icon { font-size: 40px; }
    .upload-zone-inner h3 { font-size: 15px; }
    .upload-zone-inner p { font-size: 12px; }

    /* 移动端隐藏二维码 */
    .qr-section { display: none; }

    .workspace {
        margin: 8px 0;
    }
    .workspace-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .preview-panel {
        padding: 10px;
        border-radius: 10px;
    }
    .preview-container {
        aspect-ratio: 3 / 4;
        max-height: 420px;
        border-radius: 6px;
    }

    /* 控制面板单列布局 */
    .control-panel {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .control-panel .card {
        margin-bottom: 0;
        border-radius: 10px;
    }
    .control-panel .card-header {
        padding: 8px 10px;
    }
    .control-panel .card-title {
        font-size: 13px;
    }
    .control-panel .card-body {
        padding: 8px 10px 10px;
    }

    /* 尺寸标签页字号 */
    .size-tab-btn {
        font-size: 13px;
        padding: 8px 6px;
    }
    /* 签证下拉移动端 */
    .custom-select-trigger {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 48px;
    }
    .custom-select-option {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 48px;
    }
    .custom-select-options {
        max-height: 340px;
    }

    /* 更大的触控目标 */
    .size-preset-btn {
        padding: 9px 14px;
        font-size: 13px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .bg-option-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
    }
    .visa-select {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }
    .slider-group input[type="range"] {
        height: 20px;
        min-height: 20px;
    }
    .slider-group label {
        font-size: 13px;
    }

    .btn-process {
        padding: 15px 0;
        font-size: 17px;
        min-height: 52px;
    }
    .btn-download,
    .btn-compare,
    .btn-secondary {
        padding: 13px 0;
        font-size: 14px;
        min-height: 48px;
    }
    .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 48px;
    }
    .btn-camera {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 48px;
    }

    .action-buttons {
        gap: 8px;
    }

    /* 拍照模态框移动端全屏 */
    .camera-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    .camera-viewfinder {
        flex: 1;
        max-height: none;
        aspect-ratio: auto;
    }
    .camera-modal-header {
        padding: 12px 16px;
        font-size: 15px;
    }
    .camera-controls {
        padding: 10px 8px;
        gap: 6px;
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #eee;
    }
    .camera-controls .btn-process,
    .camera-controls .btn-download,
    .camera-controls .btn-secondary {
        padding: 10px 14px;
        font-size: 12px;
        min-height: 44px;
    }

    /* 镜像开关和标签文字适配 */
    .mirror-label {
        font-size: 14px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .mirror-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
}

/* 桌面端中等窗口适配 */
@media (min-width: 641px) and (max-width: 1020px) {
    .workspace-grid {
        grid-template-columns: 1fr 300px;
        gap: 16px;
    }
    .control-panel .card-title {
        font-size: 14px;
    }
    .size-tab-btn {
        font-size: 12px;
        padding: 6px 3px;
    }
}

/* 处理中锁定状态 */
.locked {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed !important;
}

/* ═══════════════════════════════════════════════════════════
   社交互动区域
   ═══════════════════════════════════════════════════════════ */
.idp-social-section {
    max-width: 860px;
    margin: 24px auto 0;
    padding: 0 12px 30px;
    font-family: inherit;
}
.idp-social-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.idp-stats { display: flex; gap: 16px; font-size: 14px; color: #555; }
.idp-stat-item strong { color: #3498db; }
.idp-like-btn {
    padding: 7px 18px;
    border: 1px solid #e74c3c;
    border-radius: 20px;
    background: #fff;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.idp-like-btn:hover { background: #e74c3c; color: #fff; }
.idp-like-btn.liked { background: #e74c3c; color: #fff; cursor: default; }
.idp-comment-section h4 {
    margin: 0 0 8px; font-size: 15px; color: #333;
}
.idp-comment-form {
    display: flex; gap: 8px; margin-bottom: 12px;
}
.idp-comment-form textarea {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 36px;
    font-family: inherit;
}
.idp-comment-submit {
    padding: 6px 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}
.idp-comment-submit:hover { background: #2980b9; }
.idp-comment-list { max-height: 400px; overflow-y: auto; }
.idp-comment-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.idp-comment-item:last-child { border-bottom: none; }
.idp-comment-meta {
    display: flex; gap: 8px; align-items: center; margin-bottom: 4px;
}
.idp-comment-user {
    font-weight: 600; font-size: 13px;
}
.idp-comment-badge {
    font-size: 11px; padding: 1px 6px; border-radius: 10px;
    color: #fff; line-height: 1.4;
}
.idp-comment-time { font-size: 12px; color: #999; }
.idp-comment-text { color: #333; line-height: 1.5; word-break: break-all; }
.idp-comment-reply-btn {
    font-size: 12px; color: #3498db; cursor: pointer; background: none; border: none; padding: 0;
}
.idp-comment-reply-btn:hover { text-decoration: underline; }
.idp-comment-reply-form {
    display: flex; gap: 6px; margin-top: 6px; margin-left: 16px;
}
.idp-comment-reply-form textarea {
    flex: 1; padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 13px; resize: vertical; min-height: 30px; font-family: inherit;
}
.idp-comment-reply-form button {
    padding: 4px 12px; background: #3498db; color: #fff; border: none;
    border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap;
}
.idp-comment-replies { margin-left: 24px; }
.idp-social-footer {
    text-align: right; font-size: 12px; color: #aaa; padding-top: 8px; margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.idp-social-footer em { color: #777; font-style: normal; }

/* 移动端 */
@media (max-width: 640px) {
    .idp-social-header { flex-direction: column; align-items: flex-start; }
    .idp-comment-replies { margin-left: 12px; }
    .idp-comment-reply-form { margin-left: 8px; }
}
