* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    padding: 16px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 16px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.content {
    padding: 24px 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 6px;
    background: #f8f9fa;
    display: none;
}

.result.show {
    display: block;
}

.result h3 {
    margin-bottom: 12px;
    color: #333;
}

.manual-list {
    list-style: none;
}

.manual-item {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.manual-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.manual-item:last-child {
    margin-bottom: 0;
}

.error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

.success {
    color: #28a745;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

.beian {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* PDF Viewer Modal Styles */
#pdfViewerModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    overflow: hidden;
}

#pdfViewerContainer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #333;
}

.pdf-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-pdf-btn {
    position: absolute;
    bottom: 40%;
    right: 20px;
    z-index: 10001;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 0;
}

.close-pdf-btn:hover {
    background: #ff3742;
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .container {
        margin: 0;
        border-radius: 0;
    }

    .header {
        padding: 20px 12px;
    }

    .content {
        padding: 20px 12px;
    }

    #pdfViewerModal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}