/* 基础样式重置 */
@import url("https://fontsapi.zeoseven.com/84/main/result.css");

body {
    font-family: "DouyinSans";
    font-weight: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
        font-family: "DouyinSans";
}

:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --primary-color: #4a13c9;
    --secondary-color: #1e56d0;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #333333;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--background-color);
    background-image: var(--primary-gradient);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
}

.query-box {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 117, 208, 0.1);
    outline: none;
}

.query-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* 结果区域样式 */
.result-box {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    min-height: 120px;
}

.result-box .icon {
    flex: 0 0 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}

.result-box .result-content {
    flex: 1;
    padding-left: 20px;
}

.result-box h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.result-box p {
    color: #666;
}

.result-box.success {
    border: 1px solid rgba(76, 175, 80, 0.3);
    background-color: rgba(76, 175, 80, 0.05);
}

.result-box.error {
    border: 1px solid rgba(244, 67, 54, 0.3);
    background-color: rgba(244, 67, 54, 0.05);
}

.result-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.result-box a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #777;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .result-box {
        flex-direction: column;
        text-align: center;
    }
    
    .result-box .icon {
        margin-bottom: 15px;
    }
    
    .result-box .result-content {
        padding-left: 0;
    }
}

/* 下载按钮样式 */
.download-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 证书详情样式 */
.certificate-details {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.certificate-details p {
    margin-bottom: 8px;
}

.certificate-details strong {
    color: var(--primary-color);
}