/* 基础样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: #333;
}

/* 密码保护界面 */
.password-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.password-container h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}

.password-container p {
    color: #7f8c8d;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1rem;
}

.password-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s;
    background: #f8fafc;
    color: #2c3e50;
}

.password-input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.password-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.password-error {
    color: #e74c3c;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    display: none;
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 40px;
    margin-bottom: 40px;
    display: none;
    animation: slideUp 0.5s ease-out;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1.6;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.single-input-section, .batch-input-section {
    flex: 1;
    min-width: 300px;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.shape-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 20px;
}

.circle {
    width: 60mm;
    height: 60mm;
    border: 4px solid #000000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    position: relative;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.circle:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.square {
    width: 60mm;
    height: 60mm;
    border: 4px solid #000000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    position: relative;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.square:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.input-top {
    height: 40%;
    justify-content: flex-end;
}

.input-middle {
    height: 20%;
    justify-content: center;
}

.input-bottom {
    height: 40%;
    justify-content: flex-start;
}

.shape-input {
    width: 95%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 45px;
    text-align: center;
    transition: all 0.3s;
    background: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-weight: 700;
    line-height: 1.2;
    height: auto;
    color: #1e293b;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

.shape-input:focus {
    outline: 3px solid #000000;
    outline-offset: 3px;
    background: rgba(0, 0, 0, 0.03);
}

.shape-input::placeholder {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 500;
}

/* 批量输入区域 */
.batch-input-area {
    width: 100%;
    padding: 25px;
    border: 3px dashed #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.batch-input-area:hover {
    border-color: #3498db;
    background: #f1f7fd;
}

.batch-textarea {
    width: 100%;
    height: 200px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 15px;
    line-height: 1.8;
    resize: vertical;
    font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
    background: white;
    color: #334155;
    transition: all 0.3s;
}

.batch-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.batch-instructions {
    font-size: 14px;
    color: #64748b;
    margin-top: 15px;
    line-height: 1.7;
}

.batch-instructions code {
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 13px;
    color: #334155;
}

.batch-data-preview {
    margin-top: 25px;
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
    background: white;
    font-size: 14px;
}

.batch-data-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.batch-data-item:hover {
    background: #f8fafc;
}

.batch-data-item:last-child {
    border-bottom: none;
}

.batch-data-index {
    font-weight: 700;
    color: #3498db;
    margin-right: 15px;
    min-width: 40px;
}

/* 按钮样式 */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    gap: 10px;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-print {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
}

.btn-batch-print {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
}

.btn-image {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.btn-batch-image {
    background: linear-gradient(135deg, #16a085 0%, #138d75 100%);
    color: white;
}

/* 设置区域样式 */
.shape-settings, .font-settings, .print-settings, .password-settings, .specifications {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    border-left: 6px solid;
    transition: all 0.3s;
}

.shape-settings:hover, .font-settings:hover, .print-settings:hover, .password-settings:hover, .specifications:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.shape-settings {
    border-left-color: #9b59b6;
}

.font-settings {
    border-left-color: #3498db;
}

.print-settings {
    border-left-color: #000000;
}

.password-settings {
    border-left-color: #2c3e50;
}

.specifications {
    border-left-color: #2ecc71;
}

.shape-settings h3, .font-settings h3, .print-settings h3, .password-settings h3, .specifications h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shape-options {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.shape-option {
    padding: 15px 30px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.shape-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.shape-option.active {
    border-color: #9b59b6;
    background: #f0e6f5;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}

.size-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.size-setting-group {
    display: flex;
    flex-direction: column;
}

.size-setting-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    background: white;
    color: #334155;
    transition: all 0.3s;
}

.size-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.size-unit {
    font-weight: 600;
    color: #64748b;
    min-width: 35px;
}

.size-hint, .setting-hint, .password-setting-hint {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
}

/* 设置组样式 */
.setting-group, .font-setting-group, .password-setting-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.setting-label, .font-setting-label, .password-setting-label {
    width: 180px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.setting-input {
    width: 100px;
    padding: 12px 15px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    background: white;
    color: #334155;
    transition: all 0.3s;
}

.setting-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.setting-unit {
    color: #64748b;
    font-weight: 500;
}

/* 字体设置滑块 */
.font-range-input {
    width: 300px;
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #3498db, #9b59b6);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.font-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #3498db;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.font-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.font-range-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #3498db;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.font-size-value {
    width: 70px;
    padding: 12px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    background: white;
    color: #334155;
    transition: all 0.3s;
}

.font-size-value:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.font-preview {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-weight: 700;
    color: #334155;
    transition: all 0.3s;
}

.font-preview:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

/* 密码设置输入框 */
.password-setting-input {
    width: 250px;
    padding: 12px 15px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    color: #334155;
    transition: all 0.3s;
}

.password-setting-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.password-setting-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.password-setting-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

/* 说明列表 */
.specifications ul {
    list-style-type: none;
    padding-left: 0;
}

.specifications li {
    padding: 12px 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 15px;
}

.specifications li::before {
    content: "✓";
    color: #2ecc71;
    font-weight: 700;
    font-size: 18px;
    min-width: 20px;
}

.instructions {
    margin-top: 40px;
    font-size: 15px;
    color: #64748b;
    text-align: center;
    line-height: 1.8;
    padding: 25px;
    background: #f8fafc;
    border-radius: 20px;
    border-left: 6px solid #f1c40f;
}

/* 图片预览区域 */
.image-preview {
    margin-top: 40px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    background: white;
    animation: fadeIn 0.5s ease-out;
}

.image-preview h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#generated-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    border: 3px solid #f1f5f9;
}

.download-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.4);
}

/* 批量打印预览区域 */
.batch-print-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.batch-print-content {
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 1400px;
    margin: 20px auto;
    position: relative;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.close-preview {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #64748b;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-preview:hover {
    color: #e74c3c;
    background: #f1f5f9;
    transform: rotate(90deg);
}

.batch-preview-title {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.batch-preview-circles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 30px;
    justify-items: center;
}

.preview-shape-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.preview-shape-index {
    font-weight: 700;
    color: #3498db;
    margin-bottom: 12px;
    font-size: 15px;
    text-align: center;
    width: 100%;
    padding: 10px;
    background: #f1f7fd;
    border-radius: 10px;
}

.preview-shape {
    border: 3px solid #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.preview-shape:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.preview-circle {
    border-radius: 50%;
}

.preview-square {
    border-radius: 15px;
}

.preview-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-input {
    width: 90%;
    padding: 5px;
    border: none;
    background: transparent;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Microsoft YaHei', sans-serif;
}

.batch-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* 打印样式 */
@media print {
    body * {
        visibility: hidden !important;
    }
    
    #print-container, #print-container * {
        visibility: visible !important;
    }
    
    #print-container {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .print-shape {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 15px !important;
        background: white !important;
        box-shadow: none !important;
        position: absolute !important;
        border: 4px solid #000000 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .print-circle {
        border-radius: 50% !important;
    }
    
    .print-square {
        border-radius: 15px !important;
    }
    
    .print-input-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }
    
    .print-input {
        width: 95% !important;
        padding: 8px 10px !important;
        border: none !important;
        border-radius: 8px !important;
        text-align: center !important;
        background: transparent !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif !important;
    }
    
    @page {
        margin: 5mm !important;
        size: A4 !important;
    }
    
    .no-print, .container, .header, .content-wrapper, .print-settings, 
    .specifications, .instructions, .image-preview, .batch-print-preview,
    .buttons-container, .password-container, .font-settings, .password-settings,
    .shape-settings {
        display: none !important;
        visibility: hidden !important;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 30px;
    }
    
    .batch-preview-circles {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .circle, .square {
        width: 50mm;
        height: 50mm;
    }
    
    .shape-input {
        font-size: 35px;
    }
    
    .size-settings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        background: #667eea;
    }
    
    .password-container {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .container {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .shape-options {
        flex-direction: column;
    }
    
    .shape-option {
        width: 100%;
    }
    
    .btn {
        min-width: 100%;
        padding: 14px 25px;
    }
    
    .buttons-container {
        gap: 15px;
    }
    
    .setting-group, .font-setting-group, .password-setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .setting-label, .font-setting-label, .password-setting-label {
        width: 100%;
    }
    
    .font-range-input {
        width: 100%;
    }
    
    .font-size-value {
        width: 100%;
    }
    
    .password-setting-input {
        width: 100%;
    }
    
    .password-setting-btn {
        width: 100%;
    }
    
    .batch-print-content {
        padding: 25px;
        max-width: 95%;
    }
    
    .batch-preview-circles {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .circle, .square {
        width: 45mm;
        height: 45mm;
    }
}

@media (max-width: 480px) {
    .password-container {
        padding: 25px 20px;
    }
    
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .circle, .square {
        width: 40mm;
        height: 40mm;
    }
    
    .shape-input {
        font-size: 28px;
        padding: 8px;
    }
    
    .batch-textarea {
        height: 150px;
        padding: 15px;
    }
    
    .font-settings, .shape-settings, .print-settings, .password-settings, .specifications {
        padding: 20px;
    }
    
    .instructions {
        padding: 20px;
    }
    
    .batch-actions {
        flex-direction: column;
    }
    
    .batch-actions .btn {
        width: 100%;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* 输入框占位符样式 */
::placeholder {
    color: #94a3b8;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #94a3b8;
}

::-ms-input-placeholder {
    color: #94a3b8;
}

/* 选择文本样式 */
::selection {
    background: rgba(52, 152, 219, 0.3);
    color: #1e293b;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* 工具提示 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    margin-bottom: 2px;
}