/* 联系我们页面样式 */

/* 面包屑导航 */
.breadcrumb-nav {
    background: transparent;
    border-bottom: none;
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    line-height: 1;
}

.breadcrumb-item {
    font-size: 14px;
    color: #999;
    line-height: 1;
}

.breadcrumb-item a {
    color: #666;
    line-height: 1;
}

.breadcrumb-item a:hover {
    color: #1890ff;
}

.breadcrumb-item.active {
    color: #333;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    margin: 0 6px;
    color: #ccc;
    line-height: 1;
}

/* 页面头部 */
.page-header {
    position: relative;
    height: 300px;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #555;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 16px;
    opacity: .85;
}

/* 联系信息 */
.contact-info {
    padding: 100px 0;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 10px;
}

.contact-intro-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.contact-intro-text {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 40px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.contact-card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.contact-card-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.contact-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
}

.contact-social .social-icon:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* 联系表单 */
.contact-form-section {
    padding: 100px 0;
    background-color: #f8f8f8;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.form-subtitle {
    color: #999;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a1a1a;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accent {
    background-color: #1a1a1a;
    color: #fff;
}

.btn-accent:hover {
    background-color: #333;
}

/* 常见问题 */
.faq-section {
    padding: 100px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}

.faq-question h4 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.faq-icon {
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon i {
    transition: all 0.3s ease;
}

.faq-question:hover .faq-icon i.fa-plus {
    transform: rotate(45deg);
}

.faq-item.active .faq-icon i.fa-plus {
    transform: rotate(45deg);
}

.faq-item.active .faq-icon i.fa-minus {
    transform: rotate(0deg);
}

.faq-answer {
    padding: 0 0 20px;
    display: none;
    color: #666;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .page-header {
        height: 200px;
        padding-top: 60px;
    }

    .contact-info,
    .contact-form-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .form-container {
        padding: 30px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .faq-question h4 {
        font-size: 16px;
    }
    
    .contact-intro-title,
    .form-title,
    .faq-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-section,
    .faq-section {
        padding: 40px 0;
    }
    
    .form-container {
        padding: 20px;
    }
}

/* Toast 提示框 */
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-container.toast-show {
    opacity: 1;
    visibility: visible;
}

.toast-content {
    background: #fff;
    padding: 30px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.toast-container.toast-show .toast-content {
    transform: scale(1);
}

.toast-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.toast-success .toast-icon {
    color: #52c41a;
}

.toast-error .toast-icon {
    color: #ff4d4f;
}

.toast-message {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.6;
}
