/* ==================== 基础变量 ==================== */
:root {
  --primary: #3d7c47;
  --primary-dark: #2d5c35;
  --primary-light: #5b9e67;
  --accent: #d4a853;
  --accent-dark: #b8923a;
  --bg: #f5f7fa;
  --bg-alt: #f5f2ed;
  --text: #3d3526;
  --text-light: #6b6355;
  --white: #ffffff;
  --border: #e5e0d5;
  --shadow: 0 4px 20px rgba(61, 53, 38, 0.08);
  --shadow-lg: 0 8px 30px rgba(61, 53, 38, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* ==================== 重置样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==================== 容器 ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

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

.btn-full {
  width: 100%;
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* 登录/注册按钮 */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.btn-login {
  padding: 8px 16px;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  border-radius: var(--radius);
  text-decoration: none;
}

.btn-login:hover {
  color: var(--primary);
  background: rgba(61, 124, 71, 0.1);
}

.btn-register {
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}

.btn-register:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* 用户菜单（登录后） */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-weight: 500;
  color: var(--primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

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

/* 移动端样式 */
.mobile-auth {
  display: none;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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


/* ==================== 首屏 ==================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  /* 确保 hero 区域不覆盖下面的内容 */
  margin-bottom: 0;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61, 53, 38, 0.4), rgba(61, 53, 38, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 40px;
  opacity: 0.95;
}

/* ==================== 板块通用 ==================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== 产品展示 ==================== */
.products {
  padding: 100px 0;
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
}

.product-badge.badge-new {
  background: var(--accent);
  color: var(--text);
}

.product-content {
  padding: 28px;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.product-desc {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.product-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ==================== 关于我们 ==================== */
.about {
  padding: 100px 0;
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 124, 71, 0.1);
  border-radius: 50%;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ==================== 联系我们 ==================== */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 124, 71, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.info-item p {
  color: var(--text-light);
}

.contact-form {
  background: var(--bg);
  padding: 36px;
  border-radius: var(--radius-lg);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 124, 71, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  transition: var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ==================== 弹窗样式 ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  animation: modalSlideUp 0.4s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  line-height: 1;
  background: none;
  border: none;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  transform: rotate(90deg);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 124, 71, 0.1);
  border-radius: 50%;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

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

.modal .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.modal .form-group label svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

.modal .form-group input,
.modal .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: all 0.3s ease;
}

.modal .form-group input:focus,
.modal .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(61, 124, 71, 0.1);
}

/* 密码输入框 */
.password-input {
  position: relative;
}

.password-input input {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.toggle-password:hover {
  color: var(--primary);
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* 密码强度 */
.password-strength {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-bar.weak {
  background: #ff4d4f;
}

.strength-bar.medium {
  background: #faad14;
}

.strength-bar.strong {
  background: #52c41a;
}

/* 表单选项 */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 24px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  margin: 0;
}

.forgot-password {
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* 协议条款 */
.form-terms {
  margin: 20px 0;
  padding: 12px;
  background: var(--bg);
  border-radius: 12px;
}

.form-terms .checkbox {
  color: var(--text);
}

.form-terms a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.form-terms a:hover {
  text-decoration: underline;
}

/* 按钮加载状态 */
.btn-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 模态框底部 */
.modal-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
}

.modal-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* 角色选择样式 */
.role-group {
  margin-bottom: 20px;
}

.role-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text);
}

.role-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.role-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}

.role-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.role-option.selected {
  border-color: var(--primary);
  background: #f0f9f1;
}

.role-icon {
  font-size: 1.8rem;
}

.role-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* ==================== Toast提示 ==================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3000;
  font-size: 0.95rem;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  background: #ff4d4f;
}

.toast.success {
  background: var(--primary);
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
  .product-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
    display: none;
  }

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

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-link::after {
    display: none;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

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

  .contact-form {
    padding: 24px;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

  /* 移动端登录图标 */
  .mobile-auth {
    display: block;
    margin-left: auto;
    margin-right: 10px;
  }

  .btn-login-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text);
    text-decoration: none;
  }

  .btn-login-mobile svg {
    width: 24px;
    height: 24px;
  }

  .nav-auth {
    display: none;
  }

  /* 移动端用户菜单 */
  .user-menu-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 20px;
  }

  .user-menu-mobile .user-name {
    font-size: 0.9rem;
    max-width: 80px;
  }

  .user-menu-mobile .btn-logout {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 32px 20px;
    width: 95%;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .role-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==================== Hero内部顶部新闻滚动横幅 ==================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61, 53, 38, 0.4), rgba(61, 53, 38, 0.7));
}

/* 顶部新闻横幅 - 放在 hero 内部顶部，往下移动 */
.hero-top-news {
  position: absolute;
  top: 80px;  /* 从 20px 改为 80px，往下移动 */
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-top-news-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.hero-top-news-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(61, 124, 71, 0.8);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
}

.hero-top-news-label svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.hero-top-news-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 36px;
}

.hero-top-news-list {
  position: relative;
  animation: scrollNewsUp 18s linear infinite;
}

.hero-top-news-list:hover {
  animation-play-state: paused;
}

.hero-top-news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.3s;
  color: #fff;
  text-decoration: none;
}

.hero-top-news-item:hover {
  opacity: 0.9;
  transform: translateX(5px);
}

.hero-top-news-title {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.hero-top-news-date {
  font-size: 0.7rem;
  opacity: 0.8;
  white-space: nowrap;
}

.hero-top-news-more {
  white-space: nowrap;
}

.hero-top-news-more a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

.hero-top-news-more a:hover {
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding: 20px;
}

@keyframes scrollNewsUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-top-news {
    top: 70px;
    padding: 6px 15px;
    border-radius: 30px;
    max-width: 95%;
  }
  
  .hero-top-news-container {
    gap: 8px;
  }
  
  .hero-top-news-label span {
    display: none;
  }
  
  .hero-top-news-title {
    max-width: 180px;
    font-size: 0.75rem;
  }
  
  .hero-top-news-date {
    display: none;
  }
  
  .hero-top-news-more a {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-top-news-title {
    max-width: 120px;
  }
}

/* ==================== 轮播图样式 ==================== */
.banner-section {
  padding: 40px 0;
  background: #f5f7fa;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.banner-swiper {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.banner-swiper .swiper-slide {
  position: relative;
}

.banner-swiper .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

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

.banner-title {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: #3d7c47;
  opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
  .banner-swiper {
    height: 250px;
  }
  
  .banner-title {
    bottom: 15px;
    left: 15px;
    font-size: 0.8rem;
    padding: 4px 12px;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 30px;
    height: 30px;
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 14px;
  }
}
/* ==================== 专家介绍模块 ==================== */
.expert-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e5e0d5; /* 匹配变量色值 */
}
.expert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
/* 专家卡片样式 */
.expert-card.double-expert {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.expert-card.double-expert:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.expert-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #8b5a2b; /* 匹配棕金色调 */
  margin-bottom: 20px;
  flex-shrink: 0;
}
.expert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expert-info h3 {
  font-size: 24px;
  color: #8b5a2b;
  margin: 0 0 8px;
  font-weight: 600;
}
.expert-tag {
  color: var(--text-light);
  font-size: 16px;
  margin: 0 0 15px;
  font-style: italic;
}
/* 专家资质列表 */
.expert-achieve {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}
.expert-achieve li {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.6;
  padding-left: 0; /* 清空左内边距，避免位置偏移 */
  list-style: none !important;
  white-space: normal;
}
.expert-achieve li::before {
  content: "★"; 
  color: #d97706; /* 金色星星*/
  margin-right: 8px; /* 星星与文字的间距 */
  display: inline-block;
  width: 16px;
  text-align: center;/* 防止伪元素被覆盖 */
  position: relative;
  z-index: 1;
}

/* 额外防护：如果HTML里自带了黑色星星字符，强制隐藏 */
.expert-achieve li span,
.expert-achieve li strong {
  display: inline;
}
.expert-achieve li::after {
  content: "";
  display: none;
}

/* 团队合影*/
.expert-group-photo.full-width {
  grid-column: 1 / 3; /* 跨两列显示 */
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  margin: 0 -20px; /* 突破容器内边距限制 */
  padding-left: 40px;
  padding-right: 40px;
}
.expert-group-photo h3 {
  font-size: 20px;
  color: #8b5a2b;
  margin: 0 0 20px;
}
.group-img-box {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  height: 850px; /*可根据需要调整 */
}
.group-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 完整显示图片*/
  object-position: center; /* 居中显示 */
  display: block;
}
.expert-group-photo p {
  color: var(--text-light);
  font-size: 16px; 
  font-weight: 500;
  margin: 0;
  padding-top: 10px; /* 增加和图片的间距 */
  line-height: 1.8; /* 优化行高，更易读 */
}

/* 优化合影标题的字体大小*/
.expert-group-photo h3 {
  font-size: 22px;
  color: #8b5a2b;
  margin: 0 0 20px;
  font-weight: 600;
}
/* 移动端适配 */
@media (max-width: 768px) {
  .expert-grid {
    grid-template-columns: 1fr;
  }
  .expert-group-photo.full-width {
    grid-column: 1 / 2; /* 移动端单列 */
    margin: 0 -10px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .group-img-box {
    height: 280px; 
  }
  .expert-group-photo p {
    font-size: 15px; /* 移动端稍小一点，适配屏幕 */
  }
  .expert-group-photo h3 {
    font-size: 20px;
  }
}
