/*
 * 崇来饰家网站样式表
 * 包含：导航栏 + 首页首屏Banner + 通用样式
 */

/* ==========================================================================
   首屏 Banner（轻奢整装风格）
   ========================================================================== */
.hero-banner {
  width: 100%;
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 2rem 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 顶部品牌区 */
.header { display: flex; align-items: center; gap: 10px; }
.hero-logo {
  width: 44px;
  height: 44px;
  background: #d4af37;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  border-radius: 4px;
  letter-spacing: 1px;
}

.hero-brand {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
}

/* 中间主体内容区 */
.main-content {
  flex-direction: row;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: auto 0;
}

/* 右侧列：团队+服务 */
.right-column {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.text-section {
  max-width: 50%;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, #fff, #f0d78c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-title {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.sub-title::before, .sub-title::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.team-section {
  display: flex;
  gap: 1.5rem;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 200px;
  height: 250px;
  background: #333;
  border: 2px solid #d4af37;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.team-tag {
  font-size: 0.85rem;
  color: #fff;
  background: rgba(212, 175, 55, 0.85);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  display: inline-block;
  white-space: nowrap;
}

.features-section {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  padding: 1.5rem 2rem;
  background: rgba(160, 160, 160, 0.35);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border: 2px solid #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-text {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
}

.cta-button {
  position: absolute;
  bottom: 3.5rem;
  right: 5%;
  background: #f0d78c;
  color: #333;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: 30px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  z-index: 3;
  letter-spacing: 2px;
}

.cta-button:hover {
  background: #d4af37;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
  color: #fff;
}

/* 响应式 */
@media (max-width: 1100px) {
  .main-content { flex-direction: column; align-items: center; gap: 2rem; }
  .right-column { align-items: center; }
  .text-section { max-width: 100%; }
  .main-title { font-size: 2.2rem; }
  .team-section { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .team-avatar { width: 150px; height: 190px; }
  .features-section { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .banner-content { padding: 1.5rem 4%; }
  .main-title { font-size: 1.8rem; }
  .sub-title { font-size: 1rem; flex-direction: column; gap: 0.5rem; }
  .sub-title::before, .sub-title::after { display: none; }
  .team-avatar { width: 120px; height: 155px; }
  .team-tag { font-size: 0.75rem; }
  .features-section { gap: 1.5rem; padding: 1.2rem 1.5rem; }
  .feature-text { font-size: 0.95rem; }
  .cta-button { bottom: 2.5rem; padding: 0.85rem 1.8rem; font-size: 1rem; }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  padding-top: 64px;
  
}
body:has(#hero-banner) { padding-top: 0; }
body:has(#hero-banner) .navbar { background: transparent; box-shadow: none; }
body:has(#hero-banner) .nav-brand-name,
body:has(#hero-banner) .nav-brand .brand-name,
body:has(#hero-banner) .nav-menu a { color: #fff; }
body:has(#hero-banner) .nav-toggle span { background: #fff; }

a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ==========================================================================
   导航栏
   ========================================================================== */
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  transition: background 0.4s, box-shadow 0.4s;
}

.navbar .container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 60px;
}

.navbar.bg-white {
  background: rgba(255,255,255,0.97);
  box-shadow: none;
}

.nav-brand { display: flex; align-items: center; margin-left: -250px; }

.nav-logo { height: 40px; width: auto; }
.nav-brand-name { color: #333; font-size: 24px; font-weight: bold; }
.navbar.bg-white .nav-brand-name { color: #333; }
.nav-brand .brand-name { color: #333; font-size: 24px; font-weight: bold; }
.navbar.bg-white .nav-brand .brand-name { color: #333; }

.nav-menu { display: flex; gap: 30px; margin-left: auto; padding-right: 20px; }
.nav-menu a { color: #555; font-weight: 500; font-size: 16px; padding: 8px 0; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: #d4af37; }
.navbar.bg-white .nav-menu a { color: #555; }
.navbar.bg-white .nav-menu a:hover,
.navbar.bg-white .nav-menu a.active { color: #d4af37; }

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: #d4af37;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 5px;
}
.nav-toggle span {
  width: 25px; height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.navbar.bg-white .nav-toggle span { background: #333; }

/* 移动端导航 */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(0,0,0,0.85);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.section { padding: 80px 0; }
.section-title { font-size: 32px; font-weight: bold; text-align: center; margin-bottom: 40px; }
.section-header { display: flex; justify-content: center; align-items: center; margin-bottom: 40px; }
.more-link { color: #d4af37; font-weight: 500; font-size: 16px; }
.more-link:hover { color: #b8942e; }

/* ==========================================================================
   快捷入口
   ========================================================================== */
.quick-entries { background: #f8f9fa; }
.entries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.entry-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
}
.entry-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.entry-icon { width: 80px; height: 80px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }
.entry-icon img { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.entry-card:nth-child(1) .entry-icon { background: linear-gradient(135deg, #1890ff, #722ed1); }
.entry-card:nth-child(2) .entry-icon { background: linear-gradient(135deg, #fa8c16, #faad14); }
.entry-card:nth-child(3) .entry-icon { background: linear-gradient(135deg, #52c41a, #73d13d); }
.entry-card:nth-child(4) .entry-icon { background: linear-gradient(135deg, #1890ff, #096dd9); }
.entry-text { font-size: 18px; font-weight: 600; color: #333; }

@media (max-width: 768px) {
  .entries-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ==========================================================================
   案例展示
   ========================================================================== */
.cases-section { background: #fff; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s; cursor: pointer;
}
.case-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(0,0,0,0.16); }
.case-image { height: 250px; overflow: hidden; }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-card:hover .case-image img { transform: scale(1.1); }
.case-info { padding: 20px; }
.case-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: #333; }
.case-meta { display: flex; justify-content: center; font-size: 14px; color: #999; }
.case-area { color: #d4af37; font-weight: 600; }

@media (max-width: 768px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ==========================================================================
   公司优势
   ========================================================================== */
.advantages-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
}
.advantages-section .section-title { color: #fff; }
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.advantage-card {
  text-align: center; padding: 40px 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.advantage-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-8px); }
.advantage-icon { font-size: 56px; margin-bottom: 20px; }
.advantage-card h3 { font-size: 20px; color: #fff; margin-bottom: 12px; }
.advantage-card p { font-size: 15px; color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ==========================================================================
   设计师展示
   ========================================================================== */
.designers-section { background: #f8f9fa; }
.designers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.designer-card {
  background: #fff; border-radius: 12px; padding: 30px 20px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s; cursor: pointer;
}
.designer-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(0,0,0,0.16); }
.designer-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; border: 3px solid #d4af37; }
.designer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.designer-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #333; }
.designer-title { font-size: 14px; color: #d4af37; margin-bottom: 15px; }
.designer-cases { font-size: 14px; color: #999; }

@media (max-width: 768px) {
  .designers-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ==========================================================================
   装修知识
   ========================================================================== */
.knowledge-section { background: #fff; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.knowledge-card {
  background: #fff; padding: 30px; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #d4af37;
  transition: all 0.3s; cursor: pointer;
}
.knowledge-card:hover { transform: translateX(8px); box-shadow: 0 8px 24px rgba(0,0,0,0.16); }
.knowledge-title { font-size: 18px; font-weight: 600; margin-bottom: 15px; color: #333; }
.knowledge-meta { display: flex; justify-content: center; font-size: 14px; color: #999; }

@media (max-width: 768px) {
  .knowledge-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ==========================================================================
   预约量房
   ========================================================================== */
.appointment-section {
  background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
  padding: 80px 0;
}
.appointment-content { max-width: 700px; margin: 0 auto; text-align: center; color: #fff; }
.appointment-content h2 { font-size: 42px; margin-bottom: 20px; font-weight: 700; }
.appointment-content p { font-size: 18px; margin-bottom: 40px; opacity: 0.95; }
.appointment-form { background: #fff; padding: 50px; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.appointment-form input,
.appointment-form textarea {
  width: 100%; padding: 16px 20px;
  border: 2px solid #e8e8e8; border-radius: 8px;
  font-size: 16px; transition: border-color 0.3s;
}
.appointment-form input:focus, .appointment-form textarea:focus { border-color: #d4af37; outline: none; }
.appointment-form textarea { resize: vertical; margin-bottom: 25px; }
.submit-btn {
  width: 100%; padding: 18px;
  background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
  color: #fff; font-size: 18px; font-weight: 600;
  border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(24,144,255,0.4); }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .appointment-form { padding: 30px 20px; }
  .appointment-content h2 { font-size: 28px; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer { background: #2c3e50; color: #fff; padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { font-size: 18px; margin-bottom: 20px; color: #d4af37; }
.footer-section p, .footer-section li { font-size: 14px; line-height: 2.2; opacity: 0.9; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; opacity: 0.8; }

@media (max-width: 768px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* ==========================================================================
   加载状态 & 工具类
   ========================================================================== */
.loading { text-align: center; padding: 40px; color: #999; font-size: 16px; }
.empty-state { text-align: center; padding: 60px 0; color: #999; font-size: 15px; }
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #d4af37; color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
  cursor: pointer; border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #b8942e; transform: translateY(-5px); }

/* 文字渐变工具类 */
.text-gradient {
  background: linear-gradient(90deg, #d4af37, #f0d78c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
