:root {
  --primary: #0a2540;
  --secondary: #d4af37;
  --accent: #1e3a5f;
  --light: #f8f9fa;
  --dark: #212529;
  --text: #333;
  --gray: #6c757d;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Noto Sans SC", "Roboto", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 37, 64, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

.logo img {
  height: 48px;
  width: auto;
  margin-right: 10px;
}

.logo h1 {
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

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

.lang-switch {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: 5px;
  padding: 8px 15px;
  margin-left: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.lang-switch:hover {
  background: var(--secondary);
  color: white;
}

.mobile-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 首屏样式 */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(10, 37, 64, 0.7), rgba(10, 37, 64, 0.9)),
    url("images/banner.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 40px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid var(--secondary);
  cursor: pointer;
  border-radius: 5px;
}

.btn:hover {
  background: transparent;
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 搜索框样式 */
.search-box {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  width: 90%;
  margin: -50px auto 0;
  position: relative;
  z-index: 100;
}

.search-box h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--accent);
}

.form-group select,
.form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.search-btn {
  grid-column: 1 / -1;
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--accent);
}

/* 内容区块样式 */
.section {
  padding: 100px 5%;
  position: relative;
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
}

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

/* 关于我们 */
.about {
  background: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.stat-text {
  color: var(--accent);
  font-weight: 500;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

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

/* 精选楼盘 */
.featured-properties {
  background: var(--light);
}

.properties-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.property-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.property-image {
  height: 250px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-info {
  padding: 20px;
}

.property-type {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.property-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.property-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 10px 0;
}

.property-features {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.feature {
  text-align: center;
}

.feature i {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 5px;
}

/* 服务优势 */
.services {
  background: white;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.service-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--light);
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background: var(--primary);
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
  color: white;
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

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

/* 经纪人团队 */
.agents {
  background: var(--light);
}

.agents-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.agent-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.agent-image {
  height: 300px;
  overflow: hidden;
}

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

.agent-info {
  padding: 20px;
}

.agent-name {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.agent-title {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 15px;
}

.agent-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.agent-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.agent-contact a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* 客户评价 */
.testimonials {
  background: linear-gradient(rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.9)),
    url("images/footer.jpg") center/cover no-repeat;
  color: white;
}

.testimonials .section-title h2,
.testimonials .section-title p {
  color: white;
}

.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content:before {
  content: "";
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -15px;
  opacity: 0.3;
}

.client-info {
  display: flex;
  align-items: center;
}

.client-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid var(--secondary);
}

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

.client-details h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.client-details p {
  color: #ccc;
  margin: 0;
}

/* 联系方式 */
.contact {
  background: white;
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-methods {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--secondary);
  font-size: 1.2rem;
}

.contact-details h4 {
  margin-bottom: 5px;
  color: var(--accent);
}

.contact-form {
  flex: 1;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group-full {
  flex: 1;
  margin-bottom: 1em;
}

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

.form-group-full input,
.form-group-full textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group-full textarea {
  height: 150px;
  resize: vertical;
}

/* 页脚 */
.footer {
  background: var(--primary);
  color: white;
  padding: 70px 5% 30px;
}

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

.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
}

.footer-col p {
  margin-bottom: 15px;
  color: #ccc;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2.8rem;
  }

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

  .about-content {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .lang-switch {
    margin-left: 10px;
    padding: 6px 12px;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

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

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 70px 5%;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}
