/* ========================================
   联系我们页面样式 - 从LxWm.html提取
   ======================================== */

/* 小屏：导航栏默认有色；大屏：默认透明，滚动时由脚本加.scrolled变有色 */
@media (max-width: 768px) {
    .header {
        background: rgba(6, 45, 75, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* 联系我们页面特定样式 */
.contact-page {
    padding-top: 75px;
    padding-bottom: 40px;
    position: relative; /* 作为返回按钮的定位上下文 */
}

.contact-page .contact {
    padding: 30px 0;
    background: transparent;
    box-shadow: none;
}

.contact-page .contact::before {
    display: none;
}

/* 返回按钮样式 */
.back-btn {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 1001;
    background: #00c6ff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.3), 0 0 20px rgba(0, 198, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 114, 255, 0.4), 0 0 30px rgba(0, 198, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: #0099cc;
}

.back-btn:active {
    transform: translateY(-1px);
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    color: #a0a0c0;
    max-width: 600px;
    margin: 0 auto;
}

/* 输入框样式 - 修复颜色冲突 */
.contact-form input,
.contact-form textarea {
    color: #ffffff !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(160, 160, 192, 0.6) !important;
}

/* 表单验证样式 - 使用最高优先级确保红色星号不被覆盖 */
.contact-form .form-group label .required,
.form-group label .required,
.required {
    color: #ff0000 !important;
    font-weight: bold !important;
}

/* 新的必填星号样式 - 更高优先级 */
.contact-form .form-group label .required-asterisk,
.form-group label .required-asterisk,
.required-asterisk {
    color: #dc2626 !important;
    font-weight: bold !important;
    margin-left: 4px;
    font-size: 1.1em;
    vertical-align: top;
    line-height: 1;
    display: inline-block;
    position: relative;
    top: -2px;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .contact-form .form-group label .required-asterisk,
    .form-group label .required-asterisk,
    .required-asterisk {
        font-size: 1em;
        margin-left: 3px;
        top: -1px;
    }
}

.form-error {
    color: #ff4757;
    font-size: 0.80rem;
    margin-top: 5px;
    min-height: 1px;
    display: none;
}

.contact-info-text {
    margin-top: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 0;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-text p {
    margin: 4px 0;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
    text-indent: 0 !important;
}

.contact-info-text p:first-child {
    margin-top: 0;
}

.contact-info-text p:last-child {
    margin-bottom: 0;
}

.form-error.show {
    display: block;
}

.form-control.error {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2) !important;
}

.form-control.success {
    border-color: #00ff88 !important;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2) !important;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #a0a0c0;
    margin-top: 5px;
}

.char-count.warning {
    color: #ffa500;
}

.char-count.error {
    color: #ff4757;
}

/* 按钮加载状态 */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 成功消息样式 */
.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

/* 错误消息样式 */
.error-message {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .back-btn {
        position: fixed;
        top: auto;
        left: auto;
        right: 20px;
        bottom: max(20px, env(safe-area-inset-bottom));
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* 移动端社交媒体布局调整 - 微信二维码在上，联系方式在下 */
    .social-links {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
    }
    
    .mobile-qr-first {
        order: 1 !important;
        width: 100% !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
    
    .mobile-contact-second {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }
}

@media (max-width: 480px) {
    .back-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* 超小屏幕社交媒体布局进一步优化 */
    .mobile-qr-first {
        max-width: 150px !important;
    }
    
    .mobile-contact-second {
        padding: 12px !important;
    }
    
    .mobile-contact-second p {
        font-size: 13px !important;
        margin: 3px 0 !important;
    }
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: #0a0a14;
    border: 2px solid rgba(0, 198, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 198, 255, 0.2), 0 0 40px rgba(0, 114, 255, 0.1);
    backdrop-filter: blur(20px);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.modal-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-message {
    font-size: 1rem;
    color: #a0a0c0;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-close {
    background: #00c6ff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.modal-close:hover {
    background: #0099cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.4);
}

/* 社交媒体链接样式 */
.social-media-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 198, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.social-media-section h4 {
    color: #00c6ff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 198, 255, 0.3);
}

.social-media-section h4::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(0, 198, 255, 0.5);
    border-radius: 1px;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    min-width: 120px;
    height: 120px;
    min-height: 120px;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 198, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.2);
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-item:hover .social-icon {
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 6px 16px rgba(0, 198, 255, 0.3);
}

.social-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #a0a0c0;
    text-align: center;
    transition: color 0.3s ease;
}

.social-item:hover span {
    color: #ffffff;
}
