body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    color: #333;
    background-color: #f5f5f5;
}
 
.container {
    width: 80%;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
 
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}
 
.search-section, .token-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}
 
.form-group {
    margin-bottom: 15px;
}
 
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
 
input[type="text"], textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
 
textarea {
    min-height: 100px;
}
 
button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}
 
button:hover {
    background-color: #2980b9;
}
 
button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}
 
.hidden {
    display: none;
}
 
#cert-buttons {
    margin-top: 15px;
}
 
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
 
.cert-btn {
    background-color: #2ecc71;
}
 
.cert-btn:hover {
    background-color: #27ae60;
}
 
#pdf-download-btn {
    background-color: #9b59b6;
}
 
#pdf-download-btn:hover {
    background-color: #8e44ad;
}
 
#pdf-download-btn:disabled {
    background-color: #95a5a6;
}
 
#result-container {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 5px;
}
 
#response-data {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: white;
    padding: 10px;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}
 
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    background: #e1f5fe;
    color: #0277bd;
}
 
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
}
 
.back-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important; /* 确保覆盖其他样式 */
}
 
/* 按钮加载状态 */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 添加平滑的显示/隐藏过渡 */
#cert-buttons, .token-section, .query-form, #result-container {
    transition: all 0.3s ease;
}
 
/* 加载状态样式 */
button[disabled] {
    position: relative;
}
button[disabled]::after {
    content: " ";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: button-loading 1.2s linear infinite;
}
@keyframes button-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-container {
    margin: 20px 0;
}
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

/* 进度条样式 */ 
.progress-container {
    margin: 15px 0;
    text-align: center;
}
.progress-bar {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
    width: 0%;
}
 
/* 消息提示 */
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    transition: opacity 0.5s;
}
.message.success  {
    background: #dff0d8;
    color: #3c763d;
}
.message.error  {
    background: #f2dede;
    color: #a94442;
}
 
/* 文件拖放区 */
.file-drop-area.active  {
    background: #f8f9fa;
    border-color: #2196F3;
}