* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

/* 头部导航样式 */
header {
    background: linear-gradient(to bottom, #FFE7B3, #F6C462, #EDBC5D, #E1B257);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.logo {
    width: 120px;
    height: auto;
}

.subtitle {
    width: 187px;
    height: auto;
}

/* 主要内容区域 */
main {
    padding: 20px 0;
}

/* 证书区域 */
.certificate-container {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.certificate-inner {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA2MDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNLTEwNC44MjMgNDk4Ljg3OWM0NC42NDgtMjUuMDE4IDEzMi40MDUtNzYuNDc1IDIyMC4wODMtMTI3LjMzM0MyMDMuNjQ4IDMyMC4yMzIgMjkwLjc1OCAyNjcuNzk3IDM3OC4zNTQgMjE3LjA4NWM4Ny42NjctNTAuODQyIDE3NS4zODQtMTAxLjI4NyAyMTkuOTg4LTEyNi4yMDRMMTQ3MC4wMy00NC4yOTRjLTQ0LjYzMyAyNC45NzgtMTMyLjQwMiA3Ni40MzctMjIwLjA4MyAxMjcuMzMzLTg3LjcyNiA1MC45NjgtMTc0LjgzNiAxMDMuNDAzLTI2Mi40MzIgMTU0LjExNS04Ny42NjcgNTAuODQyLTE3NS4zODQgMTAxLjI4Ny0yMTkuOTg4IDEyNi4yMDRsLTg5Ni4xODIgNTE2Ljk0MXoiIGZpbGw9IiNGREZCRkIiIGZpbGwtb3BhY2l0eT0iLjEiLz48L2c+PC9zdmc+') center/cover;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.certificate-title {
    text-align: center;
    margin-bottom: 20px;
}

.certificate-title img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.certificate-content {
    background-color: #FFFDF5;
    border: 1px solid #D39B2C;
    border-radius: 8px;
    overflow: hidden;
}

/* 轮播图样式 */
.certificate-slider {
    position: relative;
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.slider-prev, .slider-next {
    background-color: rgba(211, 155, 44, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(211, 155, 44, 1);
}

.slider-pagination {
    display: flex;
    justify-content: center;
    margin: 0 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(211, 155, 44, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: rgba(211, 155, 44, 1);
}

.slider-counter {
    margin-left: 10px;
    font-size: 14px;
    color: #734308;
}

/* 证书信息区域 */
.certificate-info {
    border-top: 1px solid #E6D2B3;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: inherit;
}

.info-row {
    display: flex;
    border-bottom: 1px solid #E6D2B3;
}

.info-row:nth-child(odd) {
    background: linear-gradient(to right, #FFF5E0, #FFECC6);
}

.info-label {
    width: 120px;
    padding: 12px 15px;
    border-right: 1px solid #E6D2B3;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.info-value {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    word-break: break-all;
}

.certificate-date {
    text-align: right;
    padding: 15px;
    font-size: 16px;
    color: #734308;
}

.certificate-seal {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: auto;
}

.certificate-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background-color: white;
    border: 1px solid #DFB04E;
    border-radius: 6px;
    color: #C39539;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #FFF5E0;
}

.action-btn img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* 统计数据区域 */
.stats-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stats-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.stats-header {
    background-color: #e6b75b;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.stats-summary {
    display: flex;
    background-color: #FFF5E0;
    border: 1px solid #E6D2B3;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 20px;
    color: #734308;
}

.stats-summary-item {
    flex: 1;
    margin-right: 15px;
}

.stats-summary-value {
    font-size: 28px;
    font-weight: 600;
    margin-top: 5px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.stats-table th {
    background-color: #EFD7A7;
    padding: 12px;
    border: 1px solid #E6D2B3;
    font-weight: 600;
}

.stats-table td {
    padding: 12px;
    border: 1px solid #E6D2B3;
}

.stats-table tr:nth-child(odd) {
    background-color: #FFF5E0;
}

.stats-btn {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px;
    background-color: #D39B2C;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.stats-btn:hover {
    background-color: #C39539;
}

/* 页脚样式 */
footer {
    background-color: #D39B2C;
    color: white;
    padding: 30px 0 15px;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-qr {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.qr-item {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.copyright {
    text-align: center;
    color: #666;
    padding: 15px;
    font-size: 14px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .logo {
        width: 198px;
    }

    .subtitle {
        width: 309px;
    }

    .info-label {
        width: 140px;
        padding: 20px 25px;
        font-size: 18px;
    }

    .info-value {
        padding: 20px 25px;
        font-size: 18px;
    }

    .certificate-seal {
        width: 120px;
    }

    .slider-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .certificate-actions {
        align-items: center;
    }

    .action-btn {
        width: 80%;
        justify-content: center;
    }

    .stats-summary {
        flex-direction: column;
    }

    .stats-summary-item {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer-content {
        flex-direction: column;
    }

    .slider-container {
        height: 250px;
    }

    .slider-prev, .slider-next {
        width: 35px;
        height: 35px;
    }
}