/* 前台样式 */
.tuc-pledge-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tuc-form-group {
    margin-bottom: 20px;
}

.tuc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.tuc-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tuc-help-text {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.tuc-agreement {
    margin: 25px 0;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 4px;
}

.tuc-submit-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
}

/* 证书展示 */
.tuc-certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tuc-certificate-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.tuc-certificate-card:hover {
    transform: translateY(-5px);
}

.tuc-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 20px;
}

.tuc-logo img {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
}

.tuc-site-name {
    text-align: center;
    margin: 15px 0 10px;
    padding: 0 15px;
    font-size: 18px;
}

.tuc-quote {
    text-align: center;
    font-style: italic;
    color: #555;
    padding: 0 15px 15px;
    border-bottom: 1px solid #eee;
    margin: 0 15px;
}

.tuc-site-link, .tuc-cert-link {
    display: block;
    text-align: center;
    padding: 10px;
    text-decoration: none;
}

.tuc-site-link {
    background: #f8f8f8;
    color: #333;
}

.tuc-cert-link {
    background: #2196F3;
    color: white;
}

/* 协议弹窗 */
.tuc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

.tuc-modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.tuc-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.tuc-agreement-content {
    margin-top: 20px;
    line-height: 1.6;
}
/* 证书详情页 */
.tuc-certificate-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    position: relative;
}

.tuc-certificate-header {
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.tuc-certificate-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 32px;
}

.tuc-cert-number {
    margin-top: 10px;
    font-size: 18px;
    color: #7f8c8d;
    font-weight: bold;
}

.tuc-certificate-body {
    display: flex;
    margin-bottom: 30px;
    gap: 30px;
}

.tuc-site-info {
    flex: 1;
}

.tuc-info-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.tuc-info-label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
    color: #555;
}

.tuc-info-value {
    color: #333;
}

.tuc-quotation .tuc-info-value {
    font-style: italic;
    color: #666;
}

.tuc-site-logo {
    flex: 0 0 200px;
    padding: 15px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.tuc-site-logo img {
    max-width: 100%;
    max-height: 150px;
}

.tuc-certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin: 30px 0;
}

.tuc-dynamic-time {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
}

.tuc-seal img {
    width: 120px;
}

.tuc-certificate-actions {
    text-align: center;
    margin-top: 30px;
}

.tuc-download-btn, .tuc-home-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.tuc-download-btn {
    background: #3498db;
    color: white;
    border: 2px solid #2980b9;
}

.tuc-home-btn {
    background: #f1f1f1;
    color: #333;
    border: 2px solid #ddd;
}

/* 成功弹窗 */
.tuc-success-content {
    text-align: center;
    max-width: 600px;
}

.tuc-success-icon {
    font-size: 80px;
    color: #4CAF50;
    margin: 20px 0;
}

.tuc-badge-instructions {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.tuc-badge-instructions img {
    max-width: 200px;
    margin: 15px 0;
    border: 1px solid #eee;
    padding: 10px;
    background: white;
}

/* 悬挂标识区域 */
.tuc-badge-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.tuc-badge-example {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.tuc-badge-example img {
    width: 120px;
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
}

.tuc-badge-info p {
    margin: 8px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tuc-certificate-body {
        flex-direction: column;
    }
    
    .tuc-badge-example {
        flex-direction: column;
        align-items: flex-start;
    }
}