
/* 聯絡我們板塊樣式 */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/contact-bg-pattern.png') repeat;
    opacity: 0.03;
    pointer-events: none;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: 42px;
    font-weight: 700;
    color: #D00D09;
    margin-bottom: 20px;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D00D09 0%, #ff4444 100%);
    border-radius: 2px;
    display: none;
}

.contact-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

/* 表單樣式 - 基於layui */
.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(208, 13, 9, 0.1);
    border: 1px solid rgba(208, 13, 9, 0.1);
}

.contact-form .layui-form-item {
    margin-bottom: 24px;
}

.contact-form .layui-form-label {
    width: auto;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    position: static;
    text-align: left;
    background: none;
}

.contact-form .layui-input-block {
    margin-left: 0;
}

.contact-form .layui-input,
.contact-form .layui-select,
.contact-form .layui-textarea {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.contact-form .layui-select{
    border: none;
}

.contact-form .layui-input:focus,
.contact-form .layui-select:focus,
.contact-form .layui-textarea:focus {
    border-color: #D00D09 !important;
    box-shadow: 0 0 0 3px rgba(208, 13, 9, 0.1);
}

.contact-form .layui-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 表單行布局 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row .layui-form-item {
    margin-bottom: 0;
}

.form-group-full {
    grid-column: 1 / -1;
}

/* 下拉選單樣式 */
.contact-form .layui-form-select {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.contact-form .layui-form-select:hover {
    border-color: #D00D09;
}

.contact-form .layui-form-selected .layui-form-select {
    border-color: #D00D09;
    box-shadow: 0 0 0 3px rgba(208, 13, 9, 0.1);
}

/* 複選框樣式 */
.contact-form .layui-form-checkbox {
    margin: 0;
    padding-left: 30px;
}

.contact-form .layui-form-checkbox i {
    border: 2px solid #e1e5e9;
    background: #ffffff;
    border-radius: 4px;
}

.contact-form .layui-form-checked i {
    border-color: #D00D09;
    background-color: #D00D09;
}

.contact-form .layui-form-checkbox span {
    font-size: 14px;
    line-height: 1.5;
}

.privacy-link,
.terms-link {
    color: #D00D09;
    text-decoration: none;
    font-weight: 600;
}

.privacy-link:hover,
.terms-link:hover {
    text-decoration: underline;
}

/* 提交按鈕 */
.form-submit {
    margin-top: 32px;
    text-align: center;
}

.contact-form .layui-btn {
    background: linear-gradient(135deg, #D00D09 0%, #ff4444 100%);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    min-width: 160px;
    height: auto;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(208, 13, 9, 0.3);
    transition: all 0.3s ease;
}

.contact-form .layui-btn:hover {
    background: linear-gradient(135deg, #b8090a 0%, #e63939 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 13, 9, 0.4);
}

.contact-form .layui-btn:active {
    transform: translateY(0);
}

/* 聯絡資訊樣式 */
.contact-info-wrapper {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(208, 13, 9, 0.1);
    border: 1px solid rgba(208, 13, 9, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    color: #D00D09;
    margin-bottom: 30px;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(208, 13, 9, 0.05);
    transform: translateY(-2px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #D00D09 0%, #ff4444 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.info-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.info-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.info-content p + p {
    margin-top: 4px;
}

/* 社交媒體連結 */
.social-links {
    margin-top: 40px;
    text-align: center;
}

.social-links h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #D00D09;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(208, 13, 9, 0.3);
}

.social-link img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.social-link:hover img {
    filter: brightness(0) invert(1);
}

/* 表單驗證樣式 */
.contact-form .layui-form-danger {
    border-color: #FF5722 !important;
}

.contact-form .layui-form-danger:focus {
    border-color: #FF5722 !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-wrapper {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-header {
        margin-bottom: 40px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-item {
        padding: 16px;
        margin-bottom: 20px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
    }

    .info-icon img {
        width: 20px;
        height: 20px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-subtitle {
        font-size: 14px;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 24px 16px;
        margin: 0 0px;
        border-radius: 12px;
    }

    .contact-form .layui-input,
    .contact-form .layui-select,
    .contact-form .layui-textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .contact-form .layui-textarea {
        min-height: 100px;
    }

    .contact-form .layui-btn {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        min-width: auto;
    }

    .info-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .info-icon {
        align-self: center;
        margin-bottom: 12px;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-section.animate-in .contact-header,
.contact-section.animate-in .contact-form-wrapper,
.contact-section.animate-in .contact-info-wrapper {
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-section.animate-in .contact-header {
    animation-delay: 0.1s;
}

.contact-section.animate-in .contact-form-wrapper {
    animation-delay: 0.2s;
}

.contact-section.animate-in .contact-info-wrapper {
    animation-delay: 0.3s;
}


@media (max-width: 480px) {
    .info-content{
        width: 100%;
    }


}