/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
}

/* 页面容器 - 限制最大宽度并居中 */
.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
}

/* 图片通用样式 */
img {
    display: block;
    width: 100%;
    height: auto;
}

/* 预登记按钮链接 */
.content-section-2 a {
    display: block;
}

.content-section-2 a img {
    width: 100%;
}

/* 区块通用样式 */
section,
header,
footer {
    position: relative;
    width: 100%;
}

/* 顶部导航 */
.header {
    position: relative;
    z-index: 100;
}

/* 主视觉区 */
.hero {
    position: relative;
}

/* 展商展示区 */
.exhibitors-showcase {
    background: #f8f9fa;
}

/* 展商列表区 */
.exhibitors-list,
.exhibitors-list-2,
.exhibitors-list-3,
.more-exhibitors {
    background: #fff;
}

/* 合作伙伴 */
.partners {
    background: #f8f9fa;
}

/* 底部Footer */
.footer {
    background: #1a1a1a;
    position: relative;
    margin-top: 30px;
}

.footer-cta-wrapper {
    width: 86%;
    margin: 0 auto;
    position: absolute;
    z-index: 99999;
    top: -20px;
    left: 7%;
}

.footer-cta-wrapper img {
    width: 100%;
}

.footer img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
}

/* ==================== 预登记按钮区 ==================== */
.register-btn-section {
    width: 75%;
    margin: 20px auto 0;
}

.register-btn-section a,
.register-btn-section .toggle-form-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s;
}

.register-btn-section a:hover,
.register-btn-section .toggle-form-btn:hover {
    transform: scale(1.02);
}

.register-btn-section a img,
.register-btn-section .toggle-form-btn img {
    width: 100%;
}

.register-btn-section.footer-cta {
    width: 70%;
}

/* ==================== 展商列表卡片区 ==================== */
.exhibitor-cards-section {
    width: 80%;
    margin: -26px auto 20px;
}

.exhibitor-cards-section .card {
    /* 使用背景图代替img标签 */
    background-image: url(../images/resource-18@4x.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    margin-top: -15px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.exhibitor-cards-section .card:first-child {
    margin-top: 0;
}

.exhibitor-cards-section .card:last-child {
    margin-bottom: 0;
}

.exhibitor-cards-section .card-content {
    padding: 20px 20px 20px 20px;
}

.exhibitor-cards-section .card-header {
    display: flex;
    align-items: center;
}

.exhibitor-cards-section .card-icon {
    flex-shrink: 0;
}

.exhibitor-cards-section .card-title {
    color: #313372;
    font-weight: bold;
    margin-left: 8px;
}

.exhibitor-cards-section .card-text {
    margin-left: 38px;
    line-height: 1.6;
}

/* ==================== 响应式适配 ==================== */
/* 移动端 */
@media (max-width: 768px) {
    .exhibitor-cards-section {
        width: 80%;
        margin: -26px auto 20px;
    }

    .exhibitor-cards-section .card {
        margin-top: -10px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .exhibitor-cards-section .card-content {
        padding: 14px 14px 14px 20px;
    }

    .exhibitor-cards-section .card-icon {
        width: 30px;
        height: 30px;
    }

    .exhibitor-cards-section .card-title {
        font-size: 14px;
    }

    .exhibitor-cards-section .card-text {
        font-size: 13px;
        margin-left: 38px;
    }
}

/* PC端 */
@media (min-width: 769px) {
    .exhibitor-cards-section {
        width: 80%;
        margin-top: -50px;
    }

    .exhibitor-cards-section .card {
        margin-top: -10px;
    }

    .exhibitor-cards-section .card-content {
        padding: 25px 20px 30px 25px;
    }

    .exhibitor-cards-section .card-icon {
        width: 40px;
        height: 40px;
    }

    .exhibitor-cards-section .card-title {
        font-size: 30px;
        margin-left: 10px;
    }

    .exhibitor-cards-section .card-text {
        font-size: 28px;
        margin-left: 50px;
    }

    .footer {
        background: #1a1a1a;
        position: relative;
        margin-top: 60px;
    }

    /* PC端底部调整 */
    .footer-cta-wrapper {
        top: -50px;
    }
}

/* ==================== 预登记表单 ==================== */
.register-form-section {
    width: 75%;
    margin: 30px auto 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
}

.register-form-section.form-visible {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in, margin 0.3s ease-in;
}

.form-container {
    background: transparent;
    padding: 25px 20px;
}

.register-form .form-field {
    margin-bottom: 16px;
}

.register-form .field-label {
    display: block;
    color: #333;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.register-form .field-label::after {
    content: '*';
    color: #F48304;
    margin-left: 2px;
}

.register-form .field-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.register-form .field-input:focus {
    border-color: #F48304;
}

.register-form .mobile-code-group {
    display: flex;
    gap: 10px;
}

.register-form .mobile-code-group .field-input {
    flex: 1;
}

.register-form .field-input-with-btn {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    background: #fff;
    gap: 8px;
}

.register-form .field-input-inner {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    padding: 0;
}

.register-form .code-btn {
    width: 100px;
    height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 20px;
    background: url(../images/send-btn-bg.png) no-repeat center;
    background-size: cover;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
}

.register-form .code-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.register-form .code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.register-form .submit-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.register-form .submit-btn {
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.3s;
    flex-shrink: 0;
    display: block;
}

.register-form .submit-btn img {
    display: block;
    height: 60px;
    width: auto;
}

.register-form .submit-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.register-form .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.register-form .submit-tip {
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

/* 移动端表单样式 */
@media (max-width: 768px) {
    .register-form-section {
        width: 90%;
        margin: 20px auto 0;
    }

    .form-container {
        padding: 20px 15px;
    }

    .register-form .form-field {
        margin-bottom: 14px;
    }

    .register-form .field-label {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .register-form .field-input {
        height: 38px;
        font-size: 13px;
        border-radius: 22px;
    }

    .register-form .mobile-code-group {
        gap: 8px;
    }

    .register-form .field-input-with-btn {
        height: 38px;
        padding: 0 10px;
        gap: 6px;
    }

    .register-form .code-btn {
        width: 90px;
        height: 30px;
        font-size: 14px;
        border-radius: 18px;
    }

    .register-form .submit-section {
        margin-top: 30px;
    }

    .register-form .submit-tip {
        font-size: 13px;
        margin-left: 10px;
    }
}

/* PC端表单样式 */
@media (min-width: 769px) {
    .register-form-section {
        width: 75%;
        margin: 35px auto 0;
    }

    .form-container {
        padding: 30px 25px;
    }

    .register-form .form-field {
        margin-bottom: 18px;
    }

    .register-form .field-label {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .register-form .field-input {
        height: 44px;
        font-size: 16px;
        border-radius: 25px;
    }

    .register-form .mobile-code-group {
        gap: 12px;
    }

    .register-form .field-input-with-btn {
        height: 44px;
        padding: 0 14px;
        gap: 10px;
    }

    .register-form .code-btn {
        width: 110px;
        height: 34px;
        font-size: 16px;
        border-radius: 20px;
    }

    .register-form .submit-section {
        margin-top: 40px;
    }

    .register-form .submit-tip {
        font-size: 18px;
        margin-left: 18px;
    }
}
