/* ============================================
   Fuda Roofing - Global Styles
   福达屋面 - 全局样式
   Color Palette 配色方案：
     Primary:       #D4762A  深橙 (Deep Orange)
     Dark:          #2D3436  石板灰 (Slate Gray)
     White:         #FFFFFF  白色 (White)
     Light Gray:    #F5F5F5  浅灰 (Light Gray)
     Dark Text:     #1a1a1a  深色文字
     Border:        #e0e0e0  边框色
   ============================================ */

/* ===== Google Fonts 谷歌字体 ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS Variables CSS变量 ===== */
:root {
  --primary:       #D4762A;
  --primary-dark:  #b3621e;
  --dark:          #2D3436;
  --dark-light:    #3d4548;
  --white:         #FFFFFF;
  --light-gray:    #F5F5F5;
  --text:          #1a1a1a;
  --text-light:    #666666;
  --border:        #e0e0e0;
  --success:       #25D366;  /* WhatsApp Green / WhatsApp绿色 */
  --max-width:     1200px;
  --nav-height:    80px;
  --transition:    0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  padding-top: var(--nav-height);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== Section Titles 区块标题 ===== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.section-title p {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons 按钮样式 ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 118, 42, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

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

.btn-dark:hover {
  background: var(--dark-light);
  border-color: var(--dark-light);
}

/* ===== Header / Navigation 导航栏 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  height: var(--nav-height);
  overflow: visible;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 40px;
}

.logo-img {
  width: auto;
  height: 42px;
  border-radius: 4px;
  display: block;
}

.logo span {
  color: var(--primary);
}

/* Nav Menu 导航菜单 */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: #b0b0b0;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  border-bottom-color: var(--primary);
}

/* Header Right 右侧操作区 */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-right .btn {
  white-space: nowrap;
}

.lang-switch {
  font-size: 13px;
  font-weight: 600;
  color: #b0b0b0;
  padding: 6px 12px;
  border: 1px solid #555;
  border-radius: 4px;
  transition: all var(--transition);
}

.lang-switch:hover {
  color: var(--white);
  border-color: var(--primary);
  background: rgba(212, 118, 42, 0.1);
}

.header-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.header-phone .phone-icon {
  color: var(--primary);
  margin-right: 4px;
}

/* Mobile Menu Toggle 移动端菜单按钮 */
.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(--white);
  transition: all var(--transition);
}

/* ===== Hero Section 首屏 ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.35) 100%);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content .badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212, 118, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content .hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Stats 首屏数据 */
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.hero-stat .label {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ===== Section spacing 区块间距 ===== */
.section {
  padding: 100px 0;
}

.section-gray {
  background: var(--light-gray);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark .section-title h2 {
  color: var(--white);
}

.section-dark .section-title p {
  color: #aaa;
}

/* ===== Why Us Section 为什么选我们 ===== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-us-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.why-us-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.why-us-card .icon {
  width: 100%;
  height: 260px;
  background: var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  font-size: 30px;
  overflow: hidden;
}

.why-us-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-us-card .icon-sm {
  width: 70px;
  height: 70px;
  background: rgba(212, 118, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
}

.why-us-card .icon-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.why-us-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.why-us-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Product Grid 产品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.product-card .card-img {
  width: 100%;
  height: 250px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #aaa;
  overflow: hidden;
}

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

.product-card .card-body {
  padding: 24px;
}

.product-card .card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-card .card-body .card-subtitle {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card .card-body .card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.product-card .card-body .card-link:hover {
  color: var(--primary-dark);
}

/* ===== About Section 关于我们 ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.about-stat {
  text-align: center;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 8px;
}

.about-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.about-stat .lbl {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.about-img {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #aaa;
  overflow: hidden;
}

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

/* ===== Projects Section 案例 ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  background: var(--light-gray);
}

.project-card .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
}

.project-card .overlay .country {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.project-card .overlay .project-name {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

/* ===== CTA Banner 行动号召 ===== */
.cta-banner {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

/* ===== Footer 底部 ===== */
.footer {
  background: var(--dark);
  color: #b0b0b0;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p,
.footer-col li {
  font-size: 14px;
  line-height: 2;
}

.footer-col a {
  color: #b0b0b0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-col .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #666;
}

/* ===== WhatsApp Float 浮动按钮 ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition);
  color: var(--white);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ===== Chinese Text 中文文字缩小 ===== */
.cn {
  font-size: 0.82em;
}

/* ===== Floating Form 左侧漂浮表单 ===== */
.floating-form-trigger {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  padding: 16px 12px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  z-index: 998;
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  box-shadow: 2px 0 16px rgba(0,0,0,0.2);
  transition: all var(--transition);
  border: none;
  min-width: 44px;
}
.floating-form-trigger:hover {
  background: #d14900;
  padding-left: 16px;
}
.floating-form-panel {
  position: fixed;
  left: -400px;
  top: 0;
  width: 380px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
  transition: left 0.35s ease;
  padding: 30px 24px;
  overflow-y: auto;
}
.floating-form-panel.open {
  left: 0;
}
.floating-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.floating-form-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.floating-form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.floating-form-close:hover {
  background: #ddd;
}
.floating-form-panel h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.floating-form-panel .form-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}
.floating-form-panel input,
.floating-form-panel textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.floating-form-panel input:focus,
.floating-form-panel textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.floating-form-panel .submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.floating-form-panel .submit-btn:hover {
  background: #d14900;
}
@media (max-width: 480px) {
  .floating-form-panel {
    width: 100vw;
    left: -100vw;
  }
  .floating-form-trigger {
    font-size: 12px;
    padding: 10px 7px;
  }
}
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ===== Placeholder Image 占位图 ===== */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-gray) 0%, #e8e8e8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
  gap: 6px;
}

.img-placeholder .ph-icon {
  font-size: 36px;
}

.img-placeholder .ph-label {
  font-size: 12px;
}

/* ===== Responsive 响应式 ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; font-size: 15px; }

  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }

  .hero-content h1 { font-size: 32px; }
  .hero-stats { gap: 24px; }
  .hero-stat .number { font-size: 28px; }

  .section { padding: 60px 0; }
  .section-title h2 { font-size: 26px; }

  .about-section { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-buttons { flex-direction: column; align-items: center; }

  /* Product detail pages */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 30px !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:1fr 1fr"][style*="gap:60px"] { gap: 30px !important; }
  
  /* Hero stats mobile */
  .hero-stats { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 26px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .about-stat .num { font-size: 22px; }
}
