* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* 容器和布局 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(10px, 2vw, 20px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 顶部标题 */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: clamp(20px, 3vw, 30px);
    width: 100%;
    max-width: 100%;
}

.tool-sections {
    display: contents;
    height: 100%;
}

/* 强制响应式行为 */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr !important;
    }
    
    .tool-sections {
        display: flex;
        flex-direction: column;
        gap: clamp(15px, 2vw, 20px);
    }
}

/* 控制面板 */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2.5vw, 25px);
    max-height: min(calc(100vh - 200px), 80vh);
    overflow-y: auto;
    padding-right: clamp(5px, 1vw, 10px);
}

.control-panel::-webkit-scrollbar {
    width: 6px;
}

.control-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 区块样式 */
.control-panel > div,
.preview-panel > div {
    background: white;
    border-radius: clamp(12px, 2vw, 16px);
    padding: clamp(15px, 3vw, 25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #667eea;
    background: #e0e7ff;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* 尺寸选择 */
.size-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.size-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-size {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.size-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.input-group input {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 背景颜色选择 */
.background-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preset-colors {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-group h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 12px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 10px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-btn.active {
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 自定义颜色 */
.custom-color {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.color-input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 12px;
    display: block;
}

.color-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input-wrapper input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.color-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 调整控制 */
.adjustment-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    transition: all 0.3s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.value-display {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    text-align: right;
}

/* 预览面板 */
.preview-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2.5vw, 25px);
    height: 100%;
    min-height: 0;
}

.preview-panel > div {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 预览容器 */
.preview-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(300px, 40vh, 600px);
    background: #f8fafc;
    border-radius: clamp(8px, 1.5vw, 12px);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
    flex: 1;
}

.preview-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 预览信息 */
.preview-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.info-item .label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.info-item .value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

/* 下载选项 */
.format-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    transition: all 0.3s ease;
}

.radio-label:hover {
    color: #667eea;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.quality-control {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.quality-control label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 10px;
    display: block;
}

/* 按钮样式 */
.apply-btn, .reset-btn, .download-btn, .action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.apply-btn {
    background: #667eea;
    color: white;
}

.apply-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.reset-btn {
    background: #ef4444;
    color: white;
    width: 100%;
    justify-content: center;
}

.reset-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.download-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    justify-content: center;
    transition: all 0.3s ease;
}

.download-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.download-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.download-btn.secondary {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.download-btn.secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    font-weight: 600;
}

/* 快捷操作 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    padding: 12px 16px;
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 通知提示 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #10b981;
    max-width: 300px;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-message {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 底部 */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-text {
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 增强的响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: minmax(300px, 350px) 1fr;
        gap: clamp(15px, 2vw, 20px);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .preview-wrapper {
        min-height: clamp(250px, 35vh, 500px);
    }
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: clamp(15px, 2vw, 20px);
    }
    
    .control-panel {
        max-height: none;
        order: 2;
        padding-right: 0;
    }
    
    .preview-panel {
        order: 1;
    }
    
    .preview-wrapper {
        min-height: clamp(200px, 30vh, 400px);
    }
    
    .title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .header-content {
        padding: clamp(15px, 3vw, 20px);
    }
    
    .tool-sections {
        flex-direction: column;
        gap: clamp(15px, 2vw, 20px);
    }
}

@media (max-width: 640px) {
    .title {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    }
    
    .subtitle {
        font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    }
    
    .control-panel > div,
    .preview-panel > div {
        padding: clamp(15px, 4vw, 20px);
    }
    
    .size-inputs {
        grid-template-columns: 1fr;
        gap: clamp(10px, 2vw, 15px);
    }
    
    .format-selection {
        flex-direction: column;
        gap: clamp(8px, 1.5vw, 12px);
    }
    
    .download-buttons {
        gap: clamp(8px, 1.5vw, 10px);
    }
    
    .footer-content {
        flex-direction: column;
        gap: clamp(12px, 2vw, 15px);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .notification {
        top: clamp(5px, 1vw, 10px);
        right: clamp(5px, 1vw, 10px);
        left: clamp(5px, 1vw, 10px);
        max-width: none;
    }
    
    .preview-wrapper {
        min-height: clamp(150px, 25vh, 300px);
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .color-palette {
        grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
        gap: clamp(5px, 2vw, 8px);
    }
    
    .color-btn {
        width: clamp(30px, 8vw, 35px);
        height: clamp(30px, 8vw, 35px);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: clamp(8px, 2vw, 12px);
    }
    
    .preview-info {
        grid-template-columns: 1fr;
        gap: clamp(8px, 2vw, 10px);
    }
    
    .upload-area {
        padding: clamp(20px, 5vw, 40px) clamp(10px, 3vw, 20px);
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .main-content {
        grid-template-columns: minmax(400px, 500px) 1fr;
    }
    
    .preview-wrapper {
        min-height: clamp(400px, 50vh, 700px);
    }
}

@media (min-width: 1800px) {
    .container {
        max-width: 1800px;
    }
    
    .main-content {
        gap: clamp(30px, 4vw, 40px);
    }
}

/* 缩放适配 */
@supports (zoom: 1) {
    body {
        zoom: 1;
    }
}

/* 确保在任何缩放级别下都有良好的可读性 */
@media screen and (min-resolution: 2dppx) {
    .control-panel > div,
    .preview-panel > div {
        border: 0.5px solid rgba(255, 255, 255, 0.8);
    }
}

/* 防止内容溢出 */
* {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    box-sizing: border-box;
}

/* 强制容器适应性 */
html, body {
    width: 100%;
    min-width: 320px;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 320px;
    overflow-x: hidden;
}

/* 确保网格布局响应式 */
.main-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.control-panel,
.preview-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}

/* 移动端强制单列 */
@media screen and (max-width: 968px) {
    .main-content {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .control-panel,
    .preview-panel {
        flex: 1;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* 加载状态 */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 特殊效果 */
.glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 微信收款码弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    width: 400px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
}

.qr-code-container {
    padding: 30px;
    text-align: center;
}

.qr-code-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qr-code-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    transition: all 0.3s ease;
}

.qr-placeholder:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.qr-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.qr-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.qr-message {
    margin-top: 20px;
}

.qr-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.qr-tip {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.modal-btn.secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* 响应式适配 */
@media (max-width: 640px) {
    .modal-content {
        width: 95vw;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .qr-code-container {
        padding: 20px;
    }
    
    .qr-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .qr-icon {
        font-size: 2.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .qr-title {
        font-size: 1.1rem;
    }
    
    .qr-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .qr-icon {
        font-size: 2rem;
    }
}

/* 微信收款码弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    width: 400px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
}

.qr-code-container {
    padding: 30px;
    text-align: center;
}

.qr-code-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qr-code-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    transition: all 0.3s ease;
}

.qr-placeholder:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.qr-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.qr-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.qr-message {
    margin-top: 20px;
}

.qr-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.qr-tip {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.modal-btn.secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* 响应式适配 */
@media (max-width: 640px) {
    .modal-content {
        width: 95vw;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .qr-code-container {
        padding: 20px;
    }
    
    .qr-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .qr-icon {
        font-size: 2.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .qr-title {
        font-size: 1.1rem;
    }
    
    .qr-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .qr-icon {
        font-size: 2rem;
    }
}