:root {
    --primary: #1a3a6c;
    --secondary: #2c5282;
    --accent: #4c7db5;
    --light: #f0f4f8;
    --dark: #0d1b2a;
    --gray: #718096;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --warning: #e67e22;
    --success: #27ae60;
    --lang-bg: #f8fafc;
    --error: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* 全局去掉所有点击/聚焦蓝色框 */
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
.faq-question:focus,
a:focus,
div:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 联系我们头部 */
.contact-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* 联系信息卡片 */
.contact-info-section {
    margin-bottom: 80px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 58, 108, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 32px;
}

.contact-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-card a.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

.contact-card a.card-link:hover {
    text-decoration: underline;
    color: var(--primary);
}

.contact-card a.card-link i {
    margin-left: 6px;
    font-size: 14px;
}

/* 联系表单和地图区域 */
.contact-form-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

/* 联系表单 */
.contact-form {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-title {
    margin-bottom: 30px;
}

.form-title h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-title p {
    color: var(--gray);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none !important;
    border-color: var(--light-gray);
    box-shadow: none !important;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-group.error .form-control {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 地图区域 */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 500px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--gray);
    text-align: center;
    padding: 40px;
}

.map-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--accent);
    opacity: 0.6;
}

.map-placeholder p {
    font-size: 16px;
    margin-bottom: 20px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ============================== */
/* 🔥 FAQ 样式 - 保留圆角 + 无蓝框 + 分割线版 🔥 */
/* ============================== */
.faq-section {
    background: var(--white);
    padding: 60px 0;
    margin-bottom: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 0;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 🔥 仅第一条保留完整圆角 */
.faq-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* 🔥 仅最后一条保留底部圆角 */
.faq-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* 🔥 分割线：除了最后一条，都加底部横线 */
.faq-item:not(:last-child) {
    border-bottom: 1px solid var(--light-gray);
}

.faq-item:hover {
    background: var(--light);
}

/* FAQ 问题区域 */
.faq-question {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 24px !important;
    cursor: pointer !important;
    font-weight: 600;
    color: var(--dark);
    font-size: 16px;
    background: var(--white);
    transition: all 0.3s ease;
    user-select: none;
    outline: none !important;
    border: none !important;
}

.faq-question:hover {
    background: var(--light);
    color: var(--primary);
}

.faq-question span {
    flex: 1;
    padding-right: 15px;
}

/* FAQ 图标 */
.faq-icon {
    color: var(--accent);
    font-size: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* FAQ 答案区域 - 默认隐藏 */
.faq-answer {
    display: none !important;
    padding: 0 24px 24px 24px !important;
    color: var(--gray);
    line-height: 1.8;
    border-top: none;
    background: var(--white);
}

/* FAQ 答案内部段落 */
.faq-answer p {
    margin: 0;
    line-height: 1.8;
}

/* 展开状态 - 显示答案 */
.faq-item.active .faq-answer {
    display: block !important;
}

/* 展开状态 - 旋转图标 */
.faq-item.active .faq-icon {
    transform: rotate(180deg) !important;
}

/* 展开状态 - 仅背景高亮，无蓝色外框 */
.faq-item.active {
    background: var(--light);
}
.faq-item.active .faq-question {
    background: transparent;
    color: var(--primary);
}

/* 成功提示浮层 */
.success-message {
    background-color: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    color: var(--success);
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
}

.success-message i {
    font-size: 20px;
}

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

/* 留言成功提示 */
.msg-success {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.msg-success i {
    font-size: 18px;
}

/* 紧急联系按钮 */
.emergency-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.emergency-btn {
    background: var(--warning);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.emergency-btn:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.emergency-btn i {
    font-size: 18px;
}

/* 管理入口按钮 */
.admin-entry {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.admin-entry.hidden {
    display: none;
}

.admin-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.admin-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.admin-btn i {
    font-size: 20px;
}

/* 响应式设计 - 992px */
@media (max-width: 992px) {
    .contact-header h1 {
        font-size: 2.2rem;
    }
    .contact-header {
        padding: 50px 0;
        margin-bottom: 50px;
    }
    .contact-form-map {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .map-container {
        min-height: 400px;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .contact-cards {
        gap: 25px;
    }
}

/* 响应式设计 - 768px */
@media (max-width: 768px) {
    .contact-header {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    .contact-header h1 {
        font-size: 1.8rem;
    }
    .contact-header p {
        font-size: 1rem;
    }
    .contact-form {
        padding: 25px 20px;
    }
    .form-title h2 {
        font-size: 1.5rem;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
    .section-title {
        margin-bottom: 35px;
    }
    .faq-section {
        padding: 40px 0;
    }
    .faq-question {
        padding: 15px 18px !important;
        font-size: 15px;
    }
    .faq-answer {
        padding: 0 18px 18px 18px !important;
        font-size: 14px;
    }
    .emergency-contact {
        bottom: 20px;
        right: 20px;
    }
    .emergency-btn {
        padding: 12px 18px;
    }
    .emergency-btn span {
        font-size: 14px;
    }
    .msg-success {
        white-space: normal;
        text-align: center;
        max-width: 90%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* 响应式设计 - 576px */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .contact-header h1 {
        font-size: 1.5rem;
    }
    .contact-header p {
        font-size: 0.9rem;
    }
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-card {
        padding: 30px 20px;
    }
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .contact-card h3 {
        font-size: 1.2rem;
    }
    .map-container {
        min-height: 300px;
    }
    .section-title h2 {
        font-size: 1.3rem;
    }
    .section-title p {
        font-size: 0.9rem;
    }
    .faq-question {
        padding: 12px 15px !important;
        font-size: 14px;
    }
    .faq-answer {
        padding: 0 15px 15px 15px !important;
        font-size: 13px;
    }
    .emergency-btn {
        padding: 10px 15px;
    }
    .emergency-btn span {
        display: none;
    }
    .emergency-btn i {
        font-size: 20px;
        margin: 0;
    }
    .submit-btn {
        padding: 12px 20px;
    }
    .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 响应式设计 - 400px */
@media (max-width: 400px) {
    .contact-header {
        padding: 30px 0;
    }
    .contact-header h1 {
        font-size: 1.3rem;
    }
    .faq-question {
        padding: 10px 12px !important;
        font-size: 13px;
    }
}

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

.contact-card, .contact-form, .map-container, .faq-item {
    animation: fadeInUp 0.5s ease forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

/* 打印样式 */
@media print {
    .emergency-contact,
    .admin-entry,
    .submit-btn,
    .map-link {
        display: none;
    }
    .contact-card {
        break-inside: avoid;
    }
    .faq-answer {
        display: block !important;
    }
    .faq-icon {
        display: none;
    }
}