/*
 * 云南瑞音科技有限责任公司 - 官网样式
 * GEO优化版本 - 语义化HTML + 结构化数据
 * 品牌色: 红 #DC2626 / 深炭 #1C1917 / 白 #FFFFFF
 */

/* ============ 重置 & 变量 ============ */
:root {
  --primary: #DC2626;
  --primary-dark: #B91C1C;
  --primary-light: #FEE2E2;
  --dark: #1C1917;
  --gray-900: #292524;
  --gray-700: #78716C;
  --gray-500: #A8A29E;
  --gray-300: #D6D3D1;
  --gray-100: #F5F5F4;
  --white: #FFFFFF;
  --success: #16A34A;
  --warning: #D97706;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --max-w: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

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

/* ============ 导航栏 ============ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-300);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--dark);
}
.brand .brand-icon {
  width: 38px; height: 38px; background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px; font-weight: 800;
}

.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.nav-links a {
  display: block; padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--gray-700); font-size: 15px; font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary); background: var(--primary-light);
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--dark);
  padding: 4px;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
  color: var(--white); padding: 80px 0 64px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(220,38,38,0.15), transparent 60%);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 800;
  margin-bottom: 16px; position: relative;
}
.hero h1 span { color: #FCA5A5; }
.hero p {
  font-size: clamp(16px, 2.5vw, 18px); opacity: 0.85;
  max-width: 680px; margin: 0 auto 32px; position: relative;
}
.hero-cta {
  display: inline-flex; gap: 12px; position: relative; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all .2s;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ============ Section ============ */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-100); }
.section-title {
  font-size: clamp(24px, 4vw, 32px); font-weight: 800;
  margin-bottom: 8px; color: var(--dark); text-align: center;
}
.section-subtitle {
  font-size: 16px; color: var(--gray-700); text-align: center;
  max-width: 600px; margin: 0 auto 48px;
}

/* ============ 卡片网格 ============ */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: all .3s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.card-icon.red { background: var(--primary-light); color: var(--primary); }
.card-icon.gray { background: var(--gray-100); color: var(--gray-700); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.card p { font-size: 14px; color: var(--gray-700); line-height: 1.7; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; font-size: 14px; font-weight: 600;
}

/* ============ 数字亮点 ============ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; text-align: center;
}
.stat-item .stat-number {
  font-size: clamp(28px, 5vw, 40px); font-weight: 800; color: var(--primary);
  line-height: 1.1;
}
.stat-item .stat-label { font-size: 14px; color: var(--gray-700); margin-top: 6px; }

/* ============ 服务详情页 ============ */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--gray-900));
  color: var(--white); padding: 48px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.page-hero p { opacity: 0.85; margin-top: 8px; max-width: 600px; margin-left: auto; margin-right: auto; }

.breadcrumb {
  font-size: 14px; color: var(--gray-500); padding: 12px 0;
}
.breadcrumb a { color: var(--gray-700); }
.breadcrumb span { color: var(--primary); }

/* ============ 场景卡片 ============ */
.scene-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.scene-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all .3s;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scene-card-body { padding: 24px; }
.scene-card-body h3 { font-size: 20px; margin-bottom: 8px; }
.scene-card-body ul {
  list-style: none; margin: 16px 0;
}
.scene-card-body ul li {
  padding: 6px 0; font-size: 14px; color: var(--gray-700);
  display: flex; align-items: center; gap: 8px;
}
.scene-card-body ul li::before {
  content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0;
}

/* ============ 设备表格 ============ */
.table-wrap { overflow-x: auto; margin-top: 16px; }
table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
thead th {
  background: var(--gray-100); padding: 12px 16px;
  text-align: left; font-weight: 600; color: var(--gray-700);
  border-bottom: 2px solid var(--gray-300);
}
tbody td {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
}
tbody tr:hover { background: var(--gray-100); }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.tag-green { background: #DCFCE7; color: #166534; }
.tag-red { background: var(--primary-light); color: var(--primary); }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; }
details {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 12px;
  overflow: hidden;
}
details summary {
  padding: 18px 24px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+'; font-size: 20px; color: var(--primary);
  font-weight: 400; transition: transform .3s;
}
details[open] summary::after { content: '−'; }
details .faq-answer {
  padding: 0 24px 20px; font-size: 14px; color: var(--gray-700); line-height: 1.8;
}

/* ============ 联系信息 ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: start;
}
.contact-info dl {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  font-size: 15px;
}
.contact-info dt { font-weight: 600; color: var(--gray-700); }
.contact-info dd { margin: 0; }

.contact-form label {
  display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14px;
  margin-bottom: 16px; transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ============ 页脚 ============ */
.site-footer {
  background: var(--dark); color: var(--gray-500);
  padding: 48px 0 24px; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--gray-500); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px; padding-top: 16px;
  text-align: center; font-size: 13px;
}

/* ============ 面包屑 ============ */
.breadcrumb-nav { background: var(--gray-100); padding: 10px 0; }
.breadcrumb-nav .container {
  display: flex; gap: 8px; font-size: 14px; align-items: center;
}

/* ============ Highlight Box ============ */
.highlight-box {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.highlight-box p { font-size: 14px; color: var(--gray-700); }

/* ============ 移动端响应式 ============ */
@media (max-width: 768px) {
  .site-header .container { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column;
    padding: 8px 0 16px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; }

  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }

  .card { padding: 24px; }
  .scene-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn { padding: 10px 20px; font-size: 14px; }
  .hero h1 { font-size: 24px; }
}
