/* 全局样式 */
:root {
  --primary-color: #0066CC;
  --secondary-color: #003366;
  --accent-color: #3399FF;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #EEEEEE;
  --white: #FFFFFF;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

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

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

/* 卡片样式 */
.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/* 导航栏样式 */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 40px;
  margin-right: 10px;
}

.navbar-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-item {
  margin-left: 30px;
}

.navbar-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-gray);
  position: relative;
}

.navbar-link:hover {
  color: var(--primary-color);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 10px 20px;
  display: block;
  color: var(--dark-gray);
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

/* 页脚样式 */
.footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-description {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-contact-icon {
  width: 20px;
  text-align: center;
  color: var(--accent-color);
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* 首屏样式 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  color: var(--white);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* 部分样式 */
.section {
  padding: 100px 0;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--medium-gray);
}

/* 特性部分样式 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 30px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
  font-size: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.feature-description {
  color: var(--medium-gray);
}

/* 解决方案部分样式 */
.solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 产品部分样式 */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 关于我们部分样式 */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--medium-gray);
}

.about-features {
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.about-feature-icon {
  margin-right: 15px;
  color: var(--success-color);
}

/* 统计部分样式 */
.stats {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 80px 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.stat-title {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* 联系部分样式 */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-icon {
  width: 20px;
  text-align: center;
  color: var(--accent-color);
}

.contact-info-text {
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  padding: 40px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .about {
    grid-template-columns: 1fr;
  }
  
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }
  
  .navbar-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .navbar-item {
    margin: 10px 0;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
  }
  
  .dropdown-item {
    padding: 10px 0;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* 动画类 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3D场景容器 */
#three-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 102, 204, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 工具页面样式 */
.tool-container {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tool-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
}

.tool-body {
  padding: 30px;
}

.tool-footer {
  background-color: var(--light-gray);
  padding: 20px;
  text-align: right;
}

/* 点位图生成工具样式 */
.map-generator {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
}

.map-tools {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
}

.map-canvas {
  background-color: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  min-height: 500px;
  position: relative;
}

.device-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.device-item {
  padding: 10px;
  background-color: var(--white);
  border-radius: 4px;
  text-align: center;
  cursor: grab;
  transition: all 0.3s ease;
}

.device-item:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.device-item:active {
  cursor: grabbing;
}

/* 预算计算器样式 */
.budget-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calculator-form {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calculator-result {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.result-item:last-child {
  border-bottom: none;
  font-weight: 700;
}

/* 服务商地图样式 */
.service-map {
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.service-providers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.provider-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.provider-image {
  height: 150px;
  overflow: hidden;
}

.provider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-info {
  padding: 20px;
}

.provider-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.provider-location {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--medium-gray);
}

.provider-location i {
  margin-right: 10px;
  color: var(--primary-color);
}

.provider-services {
  margin-bottom: 15px;
}

.provider-service {
  display: inline-block;
  background-color: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* 资讯列表样式 */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
}

.news-date {
  color: var(--medium-gray);
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-excerpt {
  color: var(--medium-gray);
  margin-bottom: 15px;
}

/* AI推荐系统样式 */
.ai-recommendation {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.ai-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.ai-body {
  padding: 30px;
}

.ai-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ai-result {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.ai-loading-text {
  margin-left: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

/* 城市合伙人样式 */
.partner-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.benefit-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
  font-size: 2rem;
}

.partner-process {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #ddd;
  z-index: -1;
}

.process-step:first-child::before {
  left: 50%;
  width: 50%;
}

.process-step:last-child::before {
  width: 50%;
}

.process-step-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.process-step-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step-description {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .map-generator {
    grid-template-columns: 1fr;
  }
  
  .budget-calculator {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    flex-direction: column;
  }
  
  .process-step::before {
    top: 0;
    left: 25px;
    width: 2px;
    height: 100%;
  }
  
  .process-step:first-child::before,
  .process-step:last-child::before {
    width: 2px;
    height: 50%;
  }
  
  .process-step:first-child::before {
    top: 50%;
  }
  
  .process-step:last-child::before {
    top: 0;
  }
}