@charset "utf-8";

/* Verify Page Styles - Modern Two Column Layout */

/* Banner */
.hero {
    width: 100%;
    height: 220px;
    background: url("../images/hero_cy.jpg") center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.hero-content {
    width: 1200px;
    text-align: left;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #4273fa;
    letter-spacing: 1px;
    margin-top: 0;
}

.hero-content h1 span {
    color: #4273fa;
}

.hero-content p {
    font-size: 18px;
    color: #333;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
    font-weight: bold;
}

/* Container */
.check-container {
    width: 1200px;
    margin: 60px auto;
    display: flex;
    gap: 80px; /* Increased gap for better spacing */
    background: #fff;
    padding-bottom: 60px;
}

/* Left Column */
.check-left {
    width: 420px;
    flex-shrink: 0;
}

.check-subtitle {
    font-size: 14px;
    color: #1e6cff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 50px;
    display: flex;
    align-items: center;
}
.check-subtitle::before {
    content: "";
    position: absolute;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1e6cff;
}

.check-title {
    font-size: 36px;
    color: #333;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Form */
.form-group {
    margin-bottom: 25px;
}

.input-row {
    display: flex;
    height: 48px;
}

/* File Input Style */
.file-input-row {
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.file-input-row:hover {
    border-color: #c0c4cc;
}

.file-text {
    flex: 1;
    line-height: 48px;
    padding: 0 15px;
    font-size: 14px;
    color: #909399;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-select {
    width: 112px;
    background: #1e6cff;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s;
    height: 100%;
}
.btn-select:hover {
    background: #409eff;
}

/* Code Input Style */
.code-input-row input {
    flex: 1;
    border: 1px solid #e4e7ed;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    color: #606266;
    transition: border-color 0.2s;
    border-radius: 4px 0 0 4px;
    height: 100%;
}
.code-input-row input:focus {
    border-color: #1e6cff;
}

.code-img-wrapper {
    width: 100px;
    border: 1px solid #e4e7ed;
    border-left: none;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-code {
    width: 80px;
    border: 1px solid #e4e7ed;
    border-left: none;
    background: #fff;
    font-size: 12px;
    color: #606266;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    line-height: 1.2;
}
.change-code:hover {
    color: #1e6cff;
}

.upload-tip {
    font-size: 13px;
    color: #909399;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-check-submit, .btn-check-reset {
    width: 120px;
    height: 40px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-check-submit {
    background: #1e6cff;
    color: #fff;
}
.btn-check-submit:hover {
    background: #409eff;
}

.btn-check-reset {
    background: #545c64;
    color: #fff;
}
.btn-check-reset:hover {
    background: #6e7780;
}

.footer-tip {
    font-size: 12px;
    color: #909399;
}
.footer-tip a {
    color: #1e6cff;
    text-decoration: none;
}
.footer-tip a:hover {
    text-decoration: underline;
}

/* Right Column */
.check-right {
    flex: 1;
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 20px;
}

.result-area {
    width: 100%;
    min-height: 400px;
    height: auto;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.result-icon-wrapper {
    margin-bottom: 20px;
    text-align: center;
}

.result-area p {
    color: #909399;
    font-size: 14px;
}

@media screen and (max-width: 1200px) {
    .check-container {
        width: 100%;
        padding: 0 20px;
        flex-direction: column;
    }
    .check-left, .check-right {
        width: 100%;
    }
    .check-banner {
        height: 240px;
    }
}

/* Result Failure/Success Styles */
.result-overlay-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
    min-height: 300px;
}

.blurred-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/receipt/s1@2x.png") center center repeat;
    background-size: 200px;
    filter: blur(5px);
    opacity: 0.1;
    z-index: 1;
}

.check-failure {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
}

.failure-icon {
    width: 60px;
    height: 60px;
    background: #ff4d4f;
    color: #fff;
    font-size: 40px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-weight: bold;
}

.failure-text {
    font-size: 18px;
    color: #303133;
    font-weight: bold;
    margin-bottom: 10px;
}

.failure-desc {
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
}

.failure-desc span {
    color: #ff4d4f;
    font-weight: bold;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e6cff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success State - New Layout */
.check-success-result {
    width: 100%;
    padding: 20px;
    background: #fff;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.result-header .label {
    color: #606266;
}

.result-header .status-normal {
    color: #67c23a;
    font-weight: bold;
    margin-left: 5px;
    flex: 1;
}

.result-header .view-cert-link {
    color: #1e6cff;
    text-decoration: none;
    cursor: pointer;
}
.result-header .view-cert-link:hover {
    text-decoration: underline;
}

.receipt-image-container {
    width: 100%;
    background: #f5f7fa;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.receipt-image-container img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

.receipt-info {
    text-align: center;
    color: #909399;
    padding: 40px;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .check-banner {
        height: 180px;
    }
    
    .check-banner-content {
        width: 100%;
    }
    
    .check-banner-content h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .check-banner-content p {
        font-size: 14px;
    }
    
    .check-container {
        margin: 30px auto;
        gap: 40px;
    }
    
    .check-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .btn-actions {
        flex-direction: column;
    }
    
    .btn-check-submit, .btn-check-reset {
        width: 100%;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-area {
        min-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .check-banner-content h2 {
        font-size: 24px;
    }
    
    /* Stack code input on very small screens for better usability */
    .code-input-row {
        flex-wrap: wrap;
        height: auto;
        border: none;
    }
    
    .code-input-row input {
        width: 100%;
        border: 1px solid #e4e7ed;
        border-radius: 4px;
        margin-bottom: 10px;
        height: 48px;
    }
    
    .code-img-wrapper {
        border: 1px solid #e4e7ed;
        flex: 2;
        border-radius: 4px 0 0 4px;
        height: 48px;
    }
    
    .change-code {
        border: 1px solid #e4e7ed;
        border-left: none;
        flex: 1;
        border-radius: 0 4px 4px 0;
        height: 48px;
    }
    
    /* Stack file input similarly if needed, though usually OK */
    .file-input-row {
        flex-wrap: wrap;
        height: auto;
        border: none;
    }
    
    .file-text {
        width: 100%;
        border: 1px solid #e4e7ed;
        border-radius: 4px;
        margin-bottom: 10px;
        height: 48px;
    }
    
    .btn-select {
        width: 100%;
        border-radius: 4px;
        height: 40px;
    }
}
