/* components.css —— 导航、卡片、轮播、表单、模态框、Toast 等组件样式 */

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 6px;
  padding-top: 2px;
}

.nav-logo-text > span {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
  transform: translateY(4px);
}

.nav-logo span { display: block; }
.nav-menu { display: flex; gap: 8px; align-items: center; }

.nav-link {
  padding: 8px 14px;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  position: relative;
}

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

.nav-link.active { color: var(--primary); font-weight: 600; }

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px;
}

.nav-cta:hover { background: var(--accent); }

.nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== 酒店介绍 ===== */
.intro-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.intro-brief-text h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.intro-brief-text p { color: var(--text-muted); margin-bottom: 16px; }

.intro-brief-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.intro-brief-img img { width: 100%; height: 100%; object-fit: cover; }

.intro-subtitle {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 36px;
  font-weight: 600;
}

/* 企业文化 · 左侧金线串联 */
.culture-stack {
  position: relative;
  margin-bottom: 72px;
  padding-left: 36px;
}

.culture-stack::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 2px;
}

.culture-band {
  position: relative;
  padding: 28px 0 32px;
}

.culture-band:last-child {
  padding-bottom: 0;
}

.culture-band::after {
  content: "";
  position: absolute;
  left: -27px;
  top: 34px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #fff;
}

.culture-band-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.culture-glyph { font-size: 1.15rem; color: var(--accent); }

.culture-band-head h4 {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.culture-band p {
  color: var(--text-muted);
  line-height: 1.95;
  font-size: 0.96rem;
  max-width: 860px;
}

.culture-pills { display: flex; flex-wrap: wrap; gap: 12px; }

.culture-pills span {
  padding: 7px 18px;
  background: var(--bg-light);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--primary);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .culture-stack { padding-left: 28px; }
  .culture-stack::before { left: 7px; }
  .culture-band { padding: 24px 0 28px; }
  .culture-band::after {
    left: -21px;
    top: 30px;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px #fff;
  }
  .culture-band-head h4 { font-size: 1.2rem; }
}

/* 地理位置 */
.intro-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.location-text h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 16px; }

.location-text p { color: var(--text-muted); margin-bottom: 12px; }

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  position: relative;
}

.location-map img { width: 100%; height: 100%; object-fit: cover; }

.location-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  z-index: 2;
}

.location-zoom-btn:hover {
  background: #fff;
  color: var(--accent);
  transform: scale(1.05);
}

.service-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.service-item {
  text-align: center;
  padding: 24px 16px;
}

.service-item .service-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-item h4 { color: var(--primary); margin-bottom: 8px; font-size: 1.05rem; }

.service-item p { color: var(--text-muted); font-size: 0.9rem; }

/* 荣誉资质 */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.honor-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.honor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }

.honor-icon { font-size: 2.4rem; color: var(--accent); margin-bottom: 14px; }

.honor-card h4 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; min-height: 2.6em; }

.honor-card .honor-org { color: var(--text-muted); font-size: 0.88rem; }

.honor-card .honor-year {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 12px;
  background: var(--bg-light);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ===== 环境展示轮播 ===== */
.env-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.env-tab {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: 24px;
  font-size: 0.92rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
}

.env-tab:hover { border-color: var(--accent); color: var(--accent); }

.env-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  margin-bottom: 28px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 480px;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 32px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover { background: var(--accent); color: #fff; }

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active { background: var(--accent); width: 26px; border-radius: 5px; }

.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.env-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.env-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.env-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }

.env-thumb:hover img { transform: scale(1.06); }

.env-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.85rem;
}

/* ===== 新闻 ===== */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.news-filters { display: flex; flex-wrap: wrap; gap: 8px; }

.news-filter {
  padding: 7px 18px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
}

.news-filter:hover { border-color: var(--accent); color: var(--accent); }

.news-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.news-search {
  position: relative;
  min-width: 240px;
}

.news-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease;
}

.news-search input:focus { border-color: var(--accent); }

.news-search::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }

.news-card-cover { aspect-ratio: 16 / 9; overflow: hidden; }

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

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

.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.news-category {
  display: inline-block;
  padding: 3px 12px;
  background: var(--bg-light);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  align-self: flex-start;
}

.news-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }

.news-card .news-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-date {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.news-empty p { font-size: 1.05rem; }

/* ===== 招贤纳士 ===== */
.career-list { display: flex; flex-direction: column; gap: 16px; }

.career-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.career-item:hover { box-shadow: var(--shadow-sm); }

.career-item.open { border-color: var(--accent); }

.career-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  gap: 16px;
}

.career-head-info { flex: 1; }

.career-head h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 8px; }

.career-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: 0.88rem; }

.career-meta span { display: inline-flex; align-items: center; gap: 5px; }

.career-meta .career-salary { color: var(--accent); font-weight: 600; font-family: "Helvetica Neue", Arial, sans-serif; }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

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

.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }

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

.contact-item .contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }

.contact-item p { color: var(--text-dark); font-size: 1rem; }

.contact-item .copy-btn {
  margin-left: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-item .copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.contact-item .wechat-qr {
  max-width: 160px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

@media (max-width: 480px) {
  .contact-item .wechat-qr { max-width: 120px; }
}

/* ===== 表单 ===== */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-card h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }

.form-card .form-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 24px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

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

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 7px;
  font-weight: 500;
}

.form-group label .req { color: var(--error); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

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

.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--error); }

.form-error {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 5px;
  min-height: 1em;
  display: none;
}

.form-group.has-error .form-error { display: block; }

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.form-actions .btn { min-width: 140px; }

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--error); color: #fff; }

/* 灯箱 */
.lightbox {
  background: none;
  max-width: 1000px;
  box-shadow: none;
}

.lightbox img {
  width: 100%;
  border-radius: var(--radius);
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 1rem;
}

/* 新闻详情模态 */
.news-detail-cover { aspect-ratio: 16 / 9; overflow: hidden; background: #f2f2f2; }

.news-detail-cover img { width: 100%; height: 100%; object-fit: contain; }

.news-detail-body { padding: 32px; }

.news-detail-body .news-category { margin-bottom: 14px; }

.news-detail-body h3 { font-size: 1.6rem; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }

.news-detail-body .news-date { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; font-family: "Helvetica Neue", Arial, sans-serif; }

.news-detail-content { color: var(--text-dark); line-height: 1.8; }

.news-detail-content p { margin-bottom: 14px; }

/* ===== Toast ===== */
.toast-root {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: #fff;
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  min-width: 300px;
  max-width: 380px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: slideInRight 0.3s ease;
  pointer-events: auto;
}

.toast.hide { animation: slideOutRight 0.3s ease forwards; }

.toast-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.toast-body p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .culture-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { padding: 12px 8px; width: 100%; }
  .nav-link.active::after { display: none; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .nav-logo-text > span { font-size: 0.55rem; letter-spacing: 0.15em; }
  .nav-logo-img { width: 40px; height: 40px; }

  .intro-brief, .intro-location, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .honor-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .carousel-slide { height: 320px; }
  .news-toolbar { flex-direction: column; align-items: stretch; }
  .news-search { min-width: 0; }
  .form-card { padding: 24px 20px; }
}
