:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --background-light: #ffffff;
    --success-color: #10b981;
    --border-radius: 12px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: #f8fafc;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题区域 */
header {
    text-align: center;
    padding: 100px 0 60px;
    color: var(--text-light);
    background: linear-gradient(135deg, rgba(154, 178, 255, 0.729), rgba(59, 116, 239, 0.611));
    margin-bottom: 50px;
    position: relative;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

h1 {
    font-size: 3.2em !important;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    font-weight: 300;
}

/* 主要内容区域 */
.main-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 50px;
    margin: 30px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section {
    margin-bottom: 60px;
}

h2 {
    color: var(--primary-dark);
    font-size: 2em;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 600;
}

h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background: var(--primary-color);
    border-radius: 3px;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #334155;
}

/* 业务区域卡片 */
.business-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
}

.business-item {
    flex-basis: calc(33.33% - 25px);
    margin-bottom: 25px;
    padding: 30px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.business-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.business-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.business-item:hover:before {
    opacity: 1;
}

/* 成就列表样式 */
.achievements {
    list-style: none;
    padding: 0;
}

.achievements li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.achievements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* 联系我们样式 */
.contact-section {
    background: linear-gradient(to right, #f0f9ff, #e0f2fe);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.contact-section:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(219, 234, 254, 0.4);
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 0;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 1;
    justify-content: space-between;
    gap: 15px;
}

.contact-item {
    flex: 1;
    min-width: calc(33.33% - 15px);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
    box-sizing: border-box;
}



.contact-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.4em;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-dark);
    transition: var(--transition);
    z-index: -1;
    border-radius: 50px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.cta-button:hover:before {
    width: 100%;
}

/* 悬浮联系按钮 */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
}

.floating-contact:hover {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-dark);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .business-item {
        flex-basis: calc(50% - 20px);
    }

    h1 {
        font-size: 2.5em;
    }

    .main-content {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .business-item {
        flex-basis: 100%;
    }

    .contact-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

header {
    padding: 70px 0 50px;
}

h1 {
    font-size: 2em;
}

.subtitle {
    font-size: 1.2em;
}

.main-content {
    padding: 25px;
}

.contact-section {
    padding: 30px 20px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    display: flex;
    align-items: center; /* 居中对齐 */
    justify-content: center;
    padding: 20px 0;
}

.modal::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.modal-content {
    background-color: #fefefe;
    margin: min(10vh, 40px) auto; /* 使用 min() 函数确保边距不会太大 */
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    height: auto;
    overflow-y: visible;
}

/* 在较小高度的屏幕上调整 */
@media (max-height: 600px) {
    .modal {
        align-items: flex-start; /* 在小屏幕上靠上对齐 */
    }
    .modal-content {
        margin: 20px auto; /* 在小屏幕上使用固定边距 */
    }
}

/* 表单样式 */
#consultationForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* 减小标签和输入框之间的间距 */
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px;
    /* 减小内边距 */
    border: 1px solid #ddd;
    border-radius: 8px;
    /* 增加输入框圆角 */
    font-size: 14px;
    /* 稍微减小字体大小 */
    line-height: 1.4;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.submit-btn {
    background-color: #1565c0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0d47a1;
}

.submit-btn:disabled {
    background-color: #90caf9;
    cursor: not-allowed;
}

/* 响应消息样式 */
.response-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.response-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.response-message.error {
    background-color: #ffebee;
    color: #c62828;
}

/* 确保CTA按钮样式一致 */
.cta-button {
    background-color: #1565c0;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    text-align: center;
}

.cta-button:hover {
    background-color: #0d47a1;
}