/**
 * 橙电网站统一设计规范 v1.0
 * 基于定版风格：#FF7A00橙 + #1A1A1A深黑 + #FAFAFA背景
 * 
 * 核心原则：
 * - 极简300权重字体
 * - 禁止渐变/复杂卡片/花哨效果
 * - 单列居中布局，大留白
 * - hover上浮+柔和阴影
 */

/* ===== 1. CSS变量定义 ===== */
:root {
  /* 品牌主色 */
  --orange: #FF7A00;
  --orange-light: #FF9933;
  --orange-dark: #E66A00;
  
  /* 深黑系 */
  --black: #1A1A1A;
  --black-light: #333333;
  --gray: #666666;
  --gray-light: #999999;
  
  /* 背景色 */
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --border: #F0F0F0;
  
  /* 状态色 */
  --blue: #1890FF;
  --green: #52C41A;
  --red: #FF4D4F;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  
  /* 阴影 - 柔和不花哨 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  
  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 字体 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 2. 基础重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--black);
  line-height: 1.7;
  font-weight: 300;  /* 定版要求：300权重极简 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 3. 容器与布局 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 80px 32px;
}

/* 单列居中 */
.center-column {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* 大留白 */
.spacer-lg {
  margin-bottom: 80px;
}

.spacer-md {
  margin-bottom: 48px;
}

.spacer-sm {
  margin-bottom: 24px;
}

/* ===== 4. 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .icon {
  color: var(--orange);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--black);
  border-bottom-color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity var(--transition);
}

.nav-cta:hover {
  opacity: 0.85;
  color: var(--white);
}

/* 移动端菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  z-index: 99;
}

.mobile-menu.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: var(--gray);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== 5. Hero 区域 ===== */
.hero {
  padding: 160px 32px 100px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;  /* 定版要求：300权重 */
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--black);
}

.hero-title span {
  color: var(--orange);
  font-weight: 400;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* 分割线 */
.divider {
  width: 48px;
  height: 2px;
  background: var(--orange);
  margin: 0 auto 80px;
}

/* ===== 6. 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--black);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ===== 7. 卡片组件 ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

/* 定版核心：hover上浮+柔和阴影 */
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}

/* 产品卡片 */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-thumb {
  height: 200px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-info {
  padding: 24px;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange);
}

.product-price .unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-light);
}

/* 类别卡片 */
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}

.category-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
  background: var(--bg);
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.category-desc {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 特性卡片 */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== 8. 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== 9. Section 头部 ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 300;  /* 300权重 */
  color: var(--black);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== 10. CTA 区域 ===== */
.cta-section {
  background: var(--black);
  color: var(--white);
  padding: 100px 32px;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.cta-btn {
  background: var(--orange);
  color: var(--white);
  padding: 16px 48px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: var(--white);
}

/* ===== 11. 页脚 ===== */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 60px 32px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .icon {
  color: var(--orange);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--black);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray-light);
}

/* ===== 12. 表单 ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--black);
  transition: all var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== 13. 徽章标签 ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-orange {
  background: var(--orange);
  color: var(--white);
}

.badge-gray {
  background: var(--bg);
  color: var(--gray);
}

.spec-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--bg);
  color: var(--gray);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ===== 14. 禁止项（显式） ===== */
/* 定版要求：禁止渐变 */
.no-gradient,
[class*="gradient"] {
  background: none !important;
  background-image: none !important;
}

/* 禁止复杂阴影 */
.no-complex-shadow,
[class*="complex"] {
  box-shadow: none !important;
}

/* 禁止花哨动画 */
.no-animation,
[class*="animate"] {
  animation: none !important;
}

/* ===== 15. 响应式 ===== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .container,
  .section,
  .section-full {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .hero {
    padding: 140px 16px 80px;
  }
  
  .hero-title {
    font-size: 1.875rem;
  }
}
