/* 联系我们页面增强样式 - 绿色主题 */

:root {
    --contact-primary: #10b981;
    --contact-primary-dark: #059669;
    --contact-secondary: #34d399;
    --contact-light: #d1fae5;
}

/* 联系信息区域 */
.contact-info-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

/* 区域标题 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #1f2937;
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-header h2 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--contact-primary), transparent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* 联系卡片 */
.contact-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    margin-bottom: 2rem;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--contact-primary) 0%, var(--contact-secondary) 100%);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.2);
}

/* 图标包装器 */
.contact-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.contact-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-secondary) 100%);
    opacity: 0.2;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--color-white);
}

/* 卡片标题 */
.contact-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

/* 卡片值（电话号码/邮箱等） */
.contact-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--contact-primary);
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

/* 卡片描述 */
.contact-card-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 联系按钮 */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: var(--color-white);
}

/* 聊天区域 */
.chat-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fafafa 0%, var(--color-white) 100%);
    position: relative;
}

/* 聊天容器 */
.chat-container {
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.1);
}

/* 聊天头部 */
.chat-header {
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-white);
}

.chat-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-title i {
    font-size: 1.5rem;
}

/* 在线状态 */
.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: statusBlink 2s ease-in-out infinite;
    box-shadow: 0 0 10px #4ade80;
}

@keyframes statusBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 聊天消息区域 */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, var(--color-white) 100%);
}

/* 消息气泡 */
.message {
    display: flex;
    margin-bottom: 1.5rem;
    animation: messageSlideIn 0.4s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
}

.message-bubble > div:first-child {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message.bot .message-bubble {
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    color: var(--color-white);
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    white-space: nowrap;
}

/* 输入状态指示器 */
.typing-indicator {
    padding: 0 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.typing-indicator.show {
    opacity: 1;
}

.typing-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: 20px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--contact-primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* 聊天输入区域 */
.chat-input {
    padding: 1.5rem 2rem;
    background: var(--color-white);
    border-top: 1px solid #e5e7eb;
}

.chat-input-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chat-input-field {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.chat-input-field:focus {
    outline: none;
    border-color: var(--contact-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* 快捷操作按钮 */
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-action-btn {
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--contact-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* 联系表单区域 */
.contact-form-section {
    padding: 80px 0;
    background: var(--color-white);
    position: relative;
}

/* 表单容器 */
.contact-form-container {
    background: var(--color-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(16, 185, 129, 0.1);
}

/* 表单组 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: var(--color-white);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--contact-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* FAQ区域 */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, var(--color-white) 100%);
    position: relative;
}

/* FAQ项 */
.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: var(--color-white);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-question:hover {
    border-color: var(--contact-primary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.faq-question.active {
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    border-color: var(--contact-primary);
    color: var(--color-white);
}

.faq-question-text {
    font-size: 1.0625rem;
    font-weight: 700;
    flex: 1;
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-question.active .faq-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* FAQ答案 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer.show {
    max-height: 500px;
}

.faq-answer-content {
    padding: 1.5rem 2rem;
    background: rgba(16, 185, 129, 0.03);
    border-left: 4px solid var(--contact-primary);
    border-radius: 0 0 16px 16px;
    margin-top: -8px;
    color: #374151;
    line-height: 1.8;
}

/* 装饰元素 */
.corner-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.corner-decoration.top-left {
    top: -75px;
    left: -75px;
}

.corner-decoration.bottom-right {
    bottom: -75px;
    right: -75px;
}

/* 响应式优化 */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .chat-messages {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .contact-info-section {
        padding: 32px 0 20px;
        background: #ffffff;
    }

    .section-header {
        text-align: left;
        margin-bottom: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        text-align: left;
    }

    .contact-card {
        text-align: left;
        padding: 1.25rem;
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .contact-icon-wrapper {
        width: 52px;
        height: 52px;
        margin: 0;
        box-shadow: none;
    }

    .contact-icon {
        font-size: 1.4rem;
    }

    .contact-card-title {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
        text-align: left;
    }

    .contact-card-value {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        font-family: inherit;
    }

    .contact-card-desc {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .chat-section,
    .contact-form-section,
    .faq-section {
        padding: 24px 0;
        background: #ffffff;
    }

    .chat-container {
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .chat-header {
        padding: 1rem 1.25rem;
    }

    .chat-messages {
        height: 220px;
        padding: 1rem;
    }

    .message-bubble {
        max-width: 85%;
    }

    .chat-input {
        padding: 1rem;
    }

    .chat-input-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .chat-input-field {
        padding: 0.75rem 1.1rem;
    }

    .chat-send-btn {
        width: 100%;
        height: 44px;
        border-radius: 12px;
    }

    .chat-quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .quick-action-btn {
        width: 100%;
    }

    .contact-form-container {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .submit-btn {
        padding: 0.85rem 1rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 1rem 1.25rem;
    }
}

/* ========================================
   联系我们页面重构补充样式
   ======================================== */

.contact-info-section {
    padding: 90px 0 70px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.contact-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px dashed rgba(16, 185, 129, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-btn {
    border: none;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25);
}

.chat-section {
    background: #f8fafc;
}

.chat-container {
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.contact-form-section {
    background: #ffffff;
}

.contact-form-container {
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.faq-section {
    background: #f8fafc;
}

@media (max-width: 768px) {
    .contact-info-section {
        padding: 28px 0 16px;
    }

    .contact-card {
        border-radius: 14px;
        padding: 1rem;
    }

    .contact-icon-wrapper {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .contact-card-value {
        font-size: 0.95rem;
    }

    .contact-card-desc {
        font-size: 0.78rem;
    }

    .contact-btn {
        border-radius: 12px;
    }

    .chat-container {
        border-radius: 14px;
    }

    .chat-messages {
        height: 200px;
    }

    .contact-form-container {
        padding: 1rem;
    }

    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .faq-question {
        padding: 0.9rem 1rem;
    }

    .faq-answer-content {
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 576px) {
    .contact-card {
        gap: 0.6rem;
    }

    .contact-icon-wrapper {
        width: 46px;
        height: 46px;
    }

    .contact-icon {
        font-size: 1.2rem;
    }

    .chat-header {
        padding: 0.85rem 1rem;
    }

    .chat-input {
        padding: 0.85rem 1rem;
    }

    .chat-send-btn {
        height: 42px;
    }

    .contact-btn {
        font-size: 0.8rem;
    }
}


