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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    font-size: 14px;
    opacity: 0.9;
}

.zib-widget {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.box-body {
    padding: 20px;
}

.box-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.upload-area {
    border: 3px dashed #e1e8ed;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f5f5f5;
}

.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-area i {
    font-size: 64px;
    color: #999;
    margin-bottom: 15px;
}

.upload-text-main {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.upload-text-sub {
    font-size: 14px;
    color: #999;
}

.file-info-box, .detection-result, .result-file-box {
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-top: 15px;
}

.file-name-text, .detection-title, .result-file-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.file-size-text, .detection-message-text, .result-file-size {
    font-size: 13px;
    color: #999;
}

.card-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.card-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.card-digit:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.but {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.but:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.but:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.but.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.but.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.but.gray {
    background: #6c757d;
}

.progress-ring {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: #e1e8ed;
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: #667eea;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.jmgl-process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 10px;
}

.process-step {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.process-step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.process-step.active .step-number,
.process-step.active .step-title,
.process-step.active .step-status {
    color: white;
}

.process-step.completed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: #11998e;
}

.process-step.completed .step-number,
.process-step.completed .step-title,
.process-step.completed .step-status {
    color: white;
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.process-step.active .step-number,
.process-step.completed .step-number {
    background: rgba(255,255,255,0.2);
    color: white;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.step-status {
    font-size: 12px;
    color: #999;
}

.step-arrow {
    font-size: 20px;
    color: #ccc;
    flex-shrink: 0;
    margin-left: 10px;
}

.tips {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.tips.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}

.c-blue { color: #667eea; }
.c-green { color: #11998e; }
.c-yellow { color: #ffc107; }
.c-red { color: #dc3545; }

.mt20 { margin-top: 20px; }
.text-center { text-align: center; }
.hidden { display: none; }

.jmgl-announcement-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.jmgl-announcement-icon {
    font-size: 24px;
}

.jmgl-usage-guide {
    margin-top: 10px;
}

.jmgl-usage-item {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: white;
}

.jmgl-usage-collapse-header {
    padding: 12px 15px;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jmgl-usage-collapse-icon {
    color: #667eea;
    transition: transform 0.3s ease;
}

.jmgl-usage-collapse-header.expanded .jmgl-usage-collapse-icon {
    transform: rotate(90deg);
}

.jmgl-usage-collapse-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.jmgl-usage-content {
    padding: 15px;
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

@media (max-width: 768px) {
    .jmgl-process-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .card-input-group {
        flex-wrap: wrap;
    }
    
    .card-digit {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}
