/*=============================================
 * footer.css - Footer
 * 页脚样式，子页面共用
 *=============================================*/

.site-footer {
    background: #f5f5f5;
    color: #333;
}

.site-footer .container {
    
}

.footer-inner {
    display: flex;
    padding: 50px 0;
    gap: 40px;
    width: 94%;
    margin: 0 auto;
}

.footer-left {
    flex: 1 1 55%;
    min-width: 0;
    padding-right: 40px;
    border-right: 1px solid #ddd;
}

.footer-right {
    flex: 0 1 45%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 区块 */
.footer-block {
    margin-bottom: 0;
}

.footer-title {
    color: #0f3ba9;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-title-border {
    display: block;
    margin-bottom: 16px;
    height: auto;
    width: 94px;
}

/* 快速链接横排 */
.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links-row a {
    color: #000;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-row a:hover {
    color: #2b6fcf;
}

/* 分割线 */
.footer-divider {
    height: 1px;
    background: #ddd;
    margin: 28px 0;
}

/* 描述文字 */
.footer-desc {
    color: #000;
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

/* 订阅表单 */
.subscribe-form {
    display: flex;
    width: 100%;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #e8e8e8;
    color: #333;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.subscribe-form input::placeholder {
    color: #aaa;
}

.subscribe-form input:focus {
    border-color: #2b6fcf;
}

.subscribe-form .submit-btn {
    padding: 10px 28px;
    background: #0f3ba9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    margin-left: 8px;
}

.subscribe-form .submit-btn:hover {
    background: #0c2f8a;
}

/* Logo */
.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

/* 联系信息 */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.82rem;
    color: #000;
    line-height: 1.6;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
}

.contact-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    color: #000;
    font-weight: 600;
    margin-right: 4px;
}

/* 社交图标 */
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.footer-social-label {
    font-weight: 700;
    color: #000;
    font-size: 0.95rem;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    transition: background 0.2s, transform 0.2s;
}

.footer-social .social-link:hover {
    background: #ddd;
    transform: translateY(-2px);
}

.footer-social .social-link svg {
    width: 20px;
    height: 20px;
}

/* 微信图标点击弹出二维码 */
.footer-social .wechat-link {
    position: relative;
}

.wechat-qrcode {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: none;
    width: 154px;
    padding: 6px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wechat-qrcode::before,
.wechat-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
}

.wechat-qrcode::after {
    margin-left: -7px;
    border: 7px solid transparent;
    border-top-color: #e5e5e5;
}

.wechat-qrcode::before {
    top: calc(100% - 2px);
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #fff;
    z-index: 1;
}

.wechat-qrcode img {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: contain;
}

/* 版权区域 */
.footer-bottom {
    border-top: 1px solid #ddd;
    padding: 16px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #000;
    flex-wrap: wrap;
    gap: 8px;
    width: 80%;
    margin: 0 auto;
}

/*=============================================
 * Conference Page Footer (foot_conference.html)
 *=============================================*/

.conf-footer {
    background: #f5f6f8;
    color: #333;
    padding: 60px 0 0;
}

.conf-footer-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.conf-footer-left {
    flex: 0 0 38%;
    min-width: 0;
}

.conf-footer-main-title {
    font-family: 'MiSans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.conf-title-center {
    text-align: center;
}

.conf-footer-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.conf-contact-person {
    margin-bottom: 24px;
}

.conf-contact-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.conf-contact-line {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 4px;
}

.conf-footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.conf-footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.conf-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conf-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.conf-contact-row .conf-contact-icon {
    flex-shrink: 0;
    width: 18px;
    margin-top: 2px;
}

.conf-contact-row .conf-contact-icon img {
    width: 100%;
    height: auto;
}

.conf-contact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    flex-shrink: 0;
    min-width: 60px;
}

.conf-contact-value {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.conf-footer-divider-vertical {
    width: 1px;
    background: #06a8bf;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 300px;
}

.conf-footer-right {
    flex: 1;
    min-width: 0;
}

.conf-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.conf-form-group {
    width: 100%;
}

.conf-form-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: #e0e2e5;
    color: #333;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

.conf-form-input::placeholder {
    color: #888;
}

.conf-form-input:focus {
    background: #d5d7da;
}

.conf-form-row {
    display: flex;
    gap: 12px;
}

.conf-form-select-wrapper {
    flex: 0 0 110px;
}

.conf-form-select {
    width: 100%;
    padding: 12px 10px;
    border: none;
    background: #e0e2e5;
    color: #666;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.conf-form-group-flex {
    flex: 1;
    min-width: 0;
}

.conf-form-submit-wrap {
    text-align: center;
    margin-top: 10px;
}

.conf-form-submit {
    padding: 12px 48px;
    background: #0a93b5;
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
}

.conf-form-submit:hover {
    background: #087a96;
}

.conf-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 提交结果提示 */
.conf-form-msg {
    display: none;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}
.conf-form-msg.is-ok,
.conf-form-msg.is-error {
    display: block;
}
.conf-form-msg.is-ok {
    color: #12b76a;
}
.conf-form-msg.is-error {
    color: #ff4d4f;
}

.conf-footer-bottom {
    margin-top: 50px;
    padding: 16px 0;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

.conf-footer-bottom span {
    margin: 0 8px;
}

/* ===== New Energy Vehicle Page Overrides ===== */
.nev-page .conf-form-submit { background: #0525a3; }
.nev-page .conf-form-submit:hover { background: #041d82; }

@media (max-width: 991px) {
    .conf-footer-inner {
        flex-direction: column;
        gap: 40px;
    }
    .conf-footer-right {
        flex: auto;
        width: 100%;
    }
    .conf-footer-divider-vertical {
        width: 100%;
        height: 1px;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .conf-footer-logos {
        gap: 12px;
    }
    .conf-footer-logo-img {
        height: 32px;
    }
    .conf-form-row {
        flex-direction: column;
        gap: 14px;
    }
    .conf-form-select-wrapper {
        flex: auto;
    }
}
