/* 通用基础样式 */
body {
    margin: 0;
    background: #f0f2f5;
    font-family: 'Microsoft YaHei', sans-serif;
    color: #2d3436;
    min-height: 100vh;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 2.2em;
    color: #2d3436;
    margin: 30px 0 10px;
    padding: 0 15px;
}

.page-text {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    padding: 0 15px;
}

/* 表单容器 */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center; 
}
form {
    display: flex;
    flex-direction: column;
    align-items: center; /* 表单元素居中 */
}
/* 输入控件 */
input, select {
    display: block;
    width: 100%;
    margin: 5px auto; /* 自动居中 */
    padding: 12px;
    border: 1px solid #dcdde1;
    border-radius: 8px;
    font-size: 16px;
}

input:focus, select:focus {
    outline: none;
    border-color: #2d3436;
    box-shadow: 0 0 0 2px rgba(45, 52, 54, 0.1);
}

input {
    max-width: 300px;
}

select {
    max-width: 150px;
    appearance: none;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center/16px;
}

/* 按钮样式 */
button, .button {
    display: inline-block;
    padding: 12px 40px;/* 长宽 */
    background: #2d3436;
    color: white;
    border: none;
    border-radius: 15px;/* 圆角 */
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

button:hover, .button:hover {
    background: #434d52;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 证书查询页特定样式 */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 20px auto;
    display: block;
    border: 3px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.valid-text {
    color: #28a745;
    font-size: 1.4em;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
}

.info-line {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 16px;
}

.issuer-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .form-container {
        margin: 20px 15px;
        padding: 20px;
    }
    
    input {
        max-width: 100%;
    }
    
    select {
        max-width: 100%;
    }
}
.btn-style {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}
.profile-info {
    flex: 1;
    }
.sponsor-button {
    padding: 8px 20px;
    background: rgba(255,255,255,0.9);
    color: #9457EB !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lightning-icon {
      transition: transform 0.2s ease;
      vertical-align: middle;
    }
.sponsor-button:hover .lightning-icon {
      transform: rotate(-20deg) scale(1.2);
    }
    
@media (max-width: 480px) {
        .profile-avatar {
            width: 60px;
            height: 60px;
        }
        .profile-info h1 {
            font-size: 20px;
        }
    }