/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #396fff;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-color2: #ffffff;
    --light-gray: #f5f6fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* 导航栏样式 */
.navbar {
    background: linear-gradient(90deg, #14244C 0%, #0F1312 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}


.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    color: var(--text-color2);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--secondary-color);
    font-weight: bold;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
}

/* 主页横幅样式 */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 150px 0 100px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #396fff;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #396fff;
}

/* 服务特点样式 */
.features {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background: #14244C;
    color: #fff;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    object-fit: contain;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
}

.social-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #14244C 0%, #0F1312 100%);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu li a {
        color: var(--text-color2);
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: var(--secondary-color);
    }

    .nav-toggle span {
        background-color: var(--text-color2);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-section h4 {
        font-size: 0.95rem;
    }
    .footer-section p {
        font-size: 0.85rem;
    }
    .footer-bottom {
        font-size: 0.8rem;
    }
    .social-links a {
        font-size: 1.3rem;
    }
    .social-icon {
        width: 80px;
        height: 80px;
    }
}

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

.feature-item {
    animation: fadeIn 0.5s ease-out;
}

/* 模估观察区"更多"按钮 */
.more-news-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(90deg, #396fff 0%, #1a2a6c 100%);
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(57,111,255,0.08);
}
.more-news-btn:hover {
    background: linear-gradient(90deg, #1a2a6c 0%, #396fff 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(57,111,255,0.15);
}

/* 右侧悬浮客服栏 */
.float-bar {
  position: fixed;
  right: 32px;
  top: 35%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 70px;
  min-width: 0;
}
.float-main {
  background: #396fff;
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(57,111,255,0.2);
  transition: all 0.3s;
  margin-bottom: 8px;
}

.float-main .float-svg-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}

.float-main .float-svg-icon svg {
  width: 28px;
  height: 28px;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.float-main:hover {
  background: #14244C;
}

.float-main span {
  font-size: 0.8rem;
  margin-top: 2px;
}

.float-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}
.float-actions {
  width: 70px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(57,111,255,0.10);
  padding: 8px 0;
  align-items: center;
}
.float-actions a {
  width: 100%;
  justify-content: center;
  padding: 0.5em 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #396fff;
  background: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.float-actions a:hover {
  background: #eaf1ff;
  color: #1a2a6c;
}
.float-actions a i {
  color: #bbb;
  transition: color 0.2s;
}
.float-actions a:hover i {
  color: #1a2a6c;
}
.float-top {
  width: 70px;
  min-width: 0;
  justify-content: center;
  padding: 0.4em 0;
  margin-top: 8px;
  background: #fff;
  color: #396fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(57,111,255,0.10);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.float-top:hover {
  background: #eaf1ff;
  color: #1a2a6c;
}
.float-top i {
  color: #bbb;
  transition: color 0.2s;
}
.float-top:hover i {
  color: #1a2a6c;
}
.float-main, .float-actions a, .float-top {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: #bbb;
  transition: background 0.2s, color 0.2s;
  border: none;
}
.float-main i, .float-actions a i, .float-top i {
  color: #bbb;
  transition: color 0.2s;
}
.float-main span, .float-actions a span, .float-top span {
  color: #bbb;
  transition: color 0.2s;
}
.float-main:hover, .float-actions a:hover, .float-top:hover {
  background: #396fff;
  color: #fff;
}
.float-main:hover i, .float-actions a:hover i, .float-top:hover i,
.float-main:hover span, .float-actions a:hover span, .float-top:hover span {
  color: #fff;
}
.float-bar i {
  font-size: 1.3em;
  margin-bottom: 0.15em;
}
.float-bar span {
  font-size: 0.95em;
  margin: 0;
  display: block;
  line-height: 1.1;
}
@media (max-width: 700px) {
  .float-bar { right: 8px; top: unset; bottom: 80px; width: 56px; }
  .float-main, .float-actions, .float-top { width: 56px; }
}

/* 在线咨询弹窗聊天框样式 */
#chatModal .modal-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(57,111,255,0.12);
    display: flex;
    flex-direction: column;
    height: 520px;
    max-height: 90vh;
    min-width: 320px;
    width: 380px;
    max-width: 95vw;
    padding: 0;
    position: relative;
}
#chatModal .modal-content > div:first-child {
    background: linear-gradient(90deg,#14244C 0%,#0F1312 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#chatModal .modal-content > div:first-child button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}
#chatMessages {
    flex: 1;
    padding: 1.2rem 1.5rem;
    overflow-y: auto;
    background: #f7f9fc;
    font-size: 1rem;
}
#chatForm {
    display: flex;
    border-top: 1px solid #eee;
    padding: 0.8rem 1rem;
    background: #fff;
}
#chatInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    background: #f2f4f8;
    margin-right: 0.7em;
}
#chatForm button[type="submit"] {
    background: #396fff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#chatForm button[type="submit"]:hover {
    background: #14244C;
}
@media (max-width: 500px) {
    #chatModal .modal-content {
        min-width: 0;
        width: 98vw;
        padding: 0;
    }
    #chatMessages {
        padding: 0.7rem 0.5rem;
    }
    #chatForm {
        padding: 0.5rem 0.3rem;
    }
    #chatModal .modal-content > div:first-child {
        padding: 0.7rem 1rem;
    }
}

/* 悬浮客服栏弹层样式 */
.float-action-group {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.float-tel-popup, .float-qr-popup {
  display: none;
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(57,111,255,0.18);
  padding: 18px 22px 18px 18px;
  min-width: 220px;
  z-index: 100;
  animation: fadeIn 0.2s;
}
.float-tel-popup::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 12px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}
.float-tel-icon {
  width: 38px;
  height: 38px;
  margin-right: 12px;
  float: left;
}
.float-tel-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1rem;
  color: #222;
}
.float-tel-info .tel-num {
  color: #396fff;
  font-weight: bold;
  margin-left: 6px;
}
.float-qr-popup {
  padding: 16px 16px;
  min-width: 120px;
  text-align: center;
}
.float-qr-popup::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 12px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}
.float-qr-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.float-action-group:hover .float-tel-popup,
.float-action-group:focus-within .float-tel-popup {
  display: flex;
  align-items: center;
}
.float-action-group:hover .float-qr-popup,
.float-action-group:focus-within .float-qr-popup {
  display: block;
}
@media (min-width: 701px) {
  .float-tel-popup, .float-qr-popup {
    left: auto;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
  }
  .float-tel-popup::after, .float-qr-popup::after {
    left: auto;
    right: -12px;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
  }
}
@media (max-width: 700px) {
  .float-tel-popup, .float-qr-popup {
    left: 110%;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
  }
  .float-tel-popup::after, .float-qr-popup::after {
    left: -12px;
    right: auto;
    border-width: 8px 12px 8px 0;
    border-color: transparent #fff transparent transparent;
  }
}

.float-svg-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}
.float-svg-icon svg {
  display: block;
  color: #396fff;
  transition: color 0.2s;
}
.float-tel:hover .float-svg-icon svg,
.float-qr:hover .float-svg-icon svg,
.float-ai:hover .float-svg-icon svg,
.float-tel:active .float-svg-icon svg,
.float-qr:active .float-svg-icon svg,
.float-ai:active .float-svg-icon svg {
  color: #396fff;
}

.float-main .float-svg-icon svg {
  width: 28px;
  height: 28px;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.float-main:hover .float-svg-icon svg {
  color: var(--white);
} 