/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f3f3f6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-logo a {
    display: block;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #6448d0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6448d0, #0099cc);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}



/* 培训展示区域 */
.training-section {
    padding-top: 120px;
    background: #f3f3f6;
}

.training-carousel {
    position: relative;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    height: 650px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateX(100%);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px;
    color: white;
}

.slide-overlay h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.slide-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 112%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #000;
    border: 3px solid #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #6448d0;
    transform: scale(1.2);
}

/* 证书查询区域 */
.certificate-section {
    margin-top: 70px;
    /* background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%); */
    background: #f3f3f6;
}

.certificate-content {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    padding-bottom: 60px;
}

.section-title{
    font-size: 40px;
    text-align: center;
}

.query-panel {
    background: #e5e5e5;
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.query-form h3 {
    color: #000;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1;
}

.form-description {
    color: #000;
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #000;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #6448d0;
}

.required {
    color: #ff4757;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6448d0;
    background: #eee;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group input::placeholder {
    color: #666;
}

.query-btn {
    width: 100%;
    padding: 15px;
    background: #6448d0;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.query-tips {
    background: rgba(255, 255, 255, 1);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #6448d0;
}

.query-tips h4 {
    color: #000;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.query-tips h4 i {
    color: #000;
}

.query-tips ul {
    list-style: none;
    color: #000;
}

.query-tips li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.query-tips li::before {
    content: '•';
    color: #6448d0;
    position: absolute;
    left: 0;
}

.certificate-display {
    background: #e5e5e5;
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-result {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #666;
}

.placeholder-content i {
    font-size: 4rem;
    color: #333;
    margin-bottom: 20px;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #888;
}

.placeholder-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.certificateBox {
    position: relative;
    cursor: pointer;
    animation: fadeIn 0.5s ease;
}
.certificateBox> span{
    position: absolute;
}
.certificateBox .nums{
    top: 36.4px;
    right: 42px;
    font-size: 6px;
}
.certificateBox .name{
    top: 135px;
    left: 97px;
    font-size: 8px;
    width: 54px;
    height: 10px;
}
.certificateBox .name .txts{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.certificateBox .dates {
    top: 201px;
    left: 86px;
    font-size: 10px;
}
.certificateBox .hours {
    top: 201px;
    left: 362px;
    font-size: 10px;
}

.certificate-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.certificate-info h4 {
    color: #6448d0;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.certificate-info p {
    color: #6f6e6e;
    margin-bottom: 8px;
}

.certificate-info strong {
    color: #000;
}

/* 页脚样式 */
.footer {
    background: #0a0a0a;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section li {
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #6448d0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #6448d0;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .certificate-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .carousel-container {
        height: 300px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #6448d0;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示样式 */
.error-message {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #ff4757;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #2ed573;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popupBox{
    position: fixed;
    z-index: 999;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    transition: all .3s ease;
}
.popupBox.show{
    top: 0;
}
.popupBox .cont{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 800px;
    padding: 10px;
    border-radius: 10px;
    background: #6448d0;
}
.popupBox .cont img{
    width: 100%;
}

.popupBox .cont .closePopup{
    width: 25px;
    height: 25px;
    position: absolute;
    text-align: center;
    right: -40px;
    top: 0;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    line-height: 18px;
    cursor: pointer;
    user-select: none;
    transition: all .2s ease-in-out;
}
.popupBox .cont .closePopup:hover{
    background: #6448d0;
    transform: rotate(180deg);
}

