const { useState, useEffect, useRef } = React;

/* =========================================================
   SVG 图标组件
   ========================================================= */
const Icon = {
  Tower: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M12 2L8 6l4 4 4-4-4-4z"/>
      <path d="M9 10l-3 2 3 2 3-2-3-2z"/>
      <path d="M15 10l3 2-3 2-3-2 3-2z"/>
      <path d="M12 14l-2 3h4l-2-3z"/>
      <path d="M12 17v5"/>
      <path d="M9 22h6"/>
    </svg>
  ),
  Code: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <polyline points="16 18 22 12 16 6"/>
      <polyline points="8 6 2 12 8 18"/>
    </svg>
  ),
  Design: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <circle cx="12" cy="12" r="10"/>
      <circle cx="12" cy="12" r="4"/>
      <line x1="12" y1="2" x2="12" y2="6"/>
      <line x1="12" y1="18" x2="12" y2="22"/>
      <line x1="2" y1="12" x2="6" y2="12"/>
      <line x1="18" y1="12" x2="22" y2="12"/>
    </svg>
  ),
  Shield: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
      <path d="M9 12l2 2 4-4"/>
    </svg>
  ),
  Signal: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M2 20h.01"/>
      <path d="M7 20v-4"/>
      <path d="M12 20v-8"/>
      <path d="M17 20V8"/>
      <path d="M22 20V4"/>
    </svg>
  ),
  Check: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <polyline points="20 6 9 17 4 12"/>
    </svg>
  ),
  MapPin: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/>
      <circle cx="12" cy="10" r="3"/>
    </svg>
  ),
  Phone: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"/>
    </svg>
  ),
  Mail: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>
      <polyline points="22,6 12,13 2,6"/>
    </svg>
  ),
  User: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/>
      <circle cx="12" cy="7" r="4"/>
    </svg>
  ),
  Building: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <rect x="4" y="2" width="16" height="20" rx="2" ry="2"/>
      <path d="M9 22v-4h6v4"/>
      <path d="M8 6h.01"/>
      <path d="M16 6h.01"/>
      <path d="M12 6h.01"/>
      <path d="M12 10h.01"/>
      <path d="M12 14h.01"/>
      <path d="M16 10h.01"/>
      <path d="M16 14h.01"/>
      <path d="M8 10h.01"/>
      <path d="M8 14h.01"/>
    </svg>
  ),
  FileText: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
      <polyline points="14 2 14 8 20 8"/>
      <line x1="16" y1="13" x2="8" y2="13"/>
      <line x1="16" y1="17" x2="8" y2="17"/>
      <polyline points="10 9 9 9 8 9"/>
    </svg>
  ),
  Briefcase: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>
      <path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>
    </svg>
  ),
  Lightbulb: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M9 18h6"/>
      <path d="M10 22h4"/>
      <path d="M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14"/>
    </svg>
  ),
  Cpu: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <rect x="4" y="4" width="16" height="16" rx="2" ry="2"/>
      <rect x="9" y="9" width="6" height="6"/>
      <line x1="9" y1="1" x2="9" y2="4"/>
      <line x1="15" y1="1" x2="15" y2="4"/>
      <line x1="9" y1="20" x2="9" y2="23"/>
      <line x1="15" y1="20" x2="15" y2="23"/>
      <line x1="20" y1="9" x2="23" y2="9"/>
      <line x1="20" y1="14" x2="23" y2="14"/>
      <line x1="1" y1="9" x2="4" y2="9"/>
      <line x1="1" y1="14" x2="4" y2="14"/>
    </svg>
  ),
  Target: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <circle cx="12" cy="12" r="10"/>
      <circle cx="12" cy="12" r="6"/>
      <circle cx="12" cy="12" r="2"/>
    </svg>
  ),
  Clock: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <circle cx="12" cy="12" r="10"/>
      <polyline points="12 6 12 12 16 14"/>
    </svg>
  ),
  Users: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/>
      <circle cx="9" cy="7" r="4"/>
      <path d="M23 21v-2a4 4 0 0 0-3-3.87"/>
      <path d="M16 3.13a4 4 0 0 1 0 7.75"/>
    </svg>
  ),
  Award: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <circle cx="12" cy="8" r="7"/>
      <polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"/>
    </svg>
  ),
  Menu: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <line x1="3" y1="12" x2="21" y2="12"/>
      <line x1="3" y1="6" x2="21" y2="6"/>
      <line x1="3" y1="18" x2="21" y2="18"/>
    </svg>
  ),
  X: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <line x1="18" y1="6" x2="6" y2="18"/>
      <line x1="6" y1="6" x2="18" y2="18"/>
    </svg>
  ),
  ArrowRight: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <line x1="5" y1="12" x2="19" y2="12"/>
      <polyline points="12 5 19 12 12 19"/>
    </svg>
  ),
  DollarSign: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <line x1="12" y1="1" x2="12" y2="23"/>
      <path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/>
    </svg>
  ),
  Calendar: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <rect x="3" y="4" width="18" height="18" rx="2" ry="2"/>
      <line x1="16" y1="2" x2="16" y2="6"/>
      <line x1="8" y1="2" x2="8" y2="6"/>
      <line x1="3" y1="10" x2="21" y2="10"/>
    </svg>
  ),
  Globe: (props) => (
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props}>
      <circle cx="12" cy="12" r="10"/>
      <line x1="2" y1="12" x2="22" y2="12"/>
      <path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
    </svg>
  ),
};

/* =========================================================
   数据
   ========================================================= */
const navLinks = [
  { label: '首页', href: '#home' },
  { label: '关于我们', href: '#about' },
  { label: '业务板块', href: '#business' },
  { label: '企业优势', href: '#advantages' },
  { label: '联系我们', href: '#contact' },
];

const businessAreas = [
  {
    id: 1,
    icon: <Icon.Code />,
    title: '技术服务',
    desc: '提供全面的信息技术服务，覆盖从技术开发到运维保障的全生命周期，助力企业数字化转型。',
    tags: ['技术开发', '技术咨询', '信息系统集成', '运维服务'],
  },
  {
    id: 2,
    icon: <Icon.Design />,
    title: '工程设计',
    desc: '专业的工程设计与项目管理团队，提供规划设计、工程造价、工程管理等一站式解决方案。',
    tags: ['规划设计', '专业设计', '工程造价', '工程管理'],
  },
  {
    id: 3,
    icon: <Icon.Signal />,
    title: '通信业务',
    desc: '深耕5G与物联网通信领域，提供通信技术服务、设备制造与销售，构建万物互联的数字世界。',
    tags: ['5G通信', '物联网', '通讯设备', '光通信'],
  },
  {
    id: 4,
    icon: <Icon.Shield />,
    title: '需审批项目',
    desc: '具备建筑智能化、建设工程、电力设施等领域的专业资质与能力，项目均在取得相关部门批准后规范开展。',
    tags: ['建筑智能化', '建设工程', '电力设施', '基础电信'],
  },
];

const advantages = [
  {
    num: '01',
    icon: <Icon.Target />,
    title: '专业技术实力',
    desc: '核心团队拥有多年通信与工程行业经验，技术储备深厚，能够快速响应并解决各类复杂技术问题。',
  },
  {
    num: '02',
    icon: <Icon.Award />,
    title: '品质严格把控',
    desc: '建立完善的质量管理体系，从方案设计到项目落地全流程严格把关，确保交付成果符合行业标准。',
  },
  {
    num: '03',
    icon: <Icon.Clock />,
    title: '高效项目交付',
    desc: '科学的项目管理方法论与标准化流程，保障项目按时、按质、按量完成，让客户安心省心。',
  },
  {
    num: '04',
    icon: <Icon.Users />,
    title: '全程贴心服务',
    desc: '以客户需求为中心，提供前期咨询、方案定制、项目实施、售后运维一站式全流程服务。',
  },
  {
    num: '05',
    icon: <Icon.Lightbulb />,
    title: '创新驱动发展',
    desc: '持续关注行业前沿技术动态，积极拥抱5G、物联网、人工智能等新兴技术，赋能客户业务创新。',
  },
  {
    num: '06',
    icon: <Icon.Shield />,
    title: '安全合规保障',
    desc: '严格遵守国家法律法规与行业规范，需审批项目均在取得资质后开展，确保经营合法合规。',
  },
];

const processSteps = [
  { icon: <Icon.Phone />, title: '需求沟通', desc: '深入了解客户需求，明确项目目标与核心痛点' },
  { icon: <Icon.Lightbulb />, title: '方案设计', desc: '量身定制专业技术方案，合理规划实施路径' },
  { icon: <Icon.FileText />, title: '合同签订', desc: '明确项目范围、工期与交付标准，保障双方权益' },
  { icon: <Icon.Briefcase />, title: '项目实施', desc: '专业团队按计划推进，全程管控质量与进度' },
  { icon: <Icon.Check />, title: '验收交付', desc: '严格测试验收，提供完整交付文档与售后支持' },
];

/* =========================================================
   导航栏
   ========================================================= */
function NavBar({ onMobileMenuToggle }) {
  const [scrolled, setScrolled] = useState(false);

  useEffect(() => {
    const handleScroll = () => {
      setScrolled(window.scrollY > 30);
    };
    window.addEventListener('scroll', handleScroll);
    return () => window.removeEventListener('scroll', handleScroll);
  }, []);

  return (
    <nav className={`nav-bar ${scrolled ? 'scrolled' : ''}`}>
      <div className="nav-logo">
        <div className="logo-mark">
          <Icon.Tower />
        </div>
        <span>畅通工程</span>
      </div>
      <ul className="nav-links">
        {navLinks.map((link) => (
          <li key={link.href}>
            <a href={link.href}>{link.label}</a>
          </li>
        ))}
      </ul>
      <button className="nav-cta" onClick={() => document.querySelector('#contact')?.scrollIntoView({ behavior: 'smooth' })}>
        立即咨询
      </button>
      <button className="nav-mobile-btn" onClick={onMobileMenuToggle}>
        <Icon.Menu width={24} height={24} />
      </button>
    </nav>
  );
}

function MobileMenu({ open, onClose }) {
  return (
    <>
      <div className={`mobile-menu-overlay ${open ? 'open' : ''}`} onClick={onClose}></div>
      <div className={`mobile-menu ${open ? 'open' : ''}`}>
        {navLinks.map((link) => (
          <a key={link.href} href={link.href} onClick={onClose}>
            {link.label}
          </a>
        ))}
      </div>
    </>
  );
}

/* =========================================================
   Hero Section
   ========================================================= */
function HeroSection() {
  return (
    <section className="hero" id="home">
      <div className="hero-bg">
        <div className="hero-bg-image"></div>
        <div className="hero-bg-overlay"></div>
        <div className="hero-grid"></div>
      </div>

      <div className="hero-content">
        <div className="hero-text">
          <div className="hero-eyebrow">
            <span className="dot"></span>
            淮北市畅通工程技术有限公司
          </div>
          <h1>
            <span className="line">连接未来的</span>
            <span className="line"><span className="gradient-text">5G智慧工程</span>解决方案</span>
          </h1>
          <p className="hero-sub">
            专注于通信技术、工程设计与智能化系统集成服务。以专业的技术实力和严谨的工程态度，
            为客户提供一站式工程技术解决方案，助力城市数字化基础设施建设。
          </p>
          <div className="hero-actions">
            <a href="#business" className="btn-primary">
              了解业务
              <Icon.ArrowRight width={18} height={18} />
            </a>
            <a href="#contact" className="btn-ghost">
              <Icon.Phone width={16} height={16} />
              联系我们
            </a>
          </div>
          <div className="hero-stats">
            <div className="hero-stat">
              <div className="stat-num">淮北·全国</div>
              <div className="stat-label">服务区域</div>
            </div>
            <div className="hero-stat">
              <div className="stat-num">4+</div>
              <div className="stat-label">核心业务板块</div>
            </div>
            <div className="hero-stat">
              <div className="stat-num">100%</div>
              <div className="stat-label">品质保障承诺</div>
            </div>
          </div>
        </div>

        <div className="hero-visual">
          <div className="visual-particles">
            <div className="particle p1"></div>
            <div className="particle p2"></div>
            <div className="particle p3"></div>
            <div className="particle p4"></div>
            <div className="particle p5"></div>
          </div>
          <div className="visual-orbit">
            <div className="orbit-ring r1">
              <div className="orbit-node"></div>
            </div>
            <div className="orbit-ring r2">
              <div className="orbit-node"></div>
            </div>
            <div className="orbit-ring r3">
              <div className="orbit-node"></div>
            </div>
            <div className="visual-core">
              <Icon.Globe />
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

/* =========================================================
   关于我们
   ========================================================= */
function AboutSection() {
  return (
    <section className="section about-section" id="about">
      <div className="section-inner">
        <div className="section-head">
          <span className="section-tag">ABOUT US</span>
          <h2>关于 <span className="gradient-text">畅通工程</span></h2>
          <p className="section-desc">
            淮北市畅通工程技术有限公司是一家专注于工程技术与通信服务的综合性企业，致力于为客户提供高品质的技术解决方案
          </p>
        </div>

        <div className="about-grid">
          <div className="about-visual">
            <div className="about-image-wrap">
              <img src="assets/images/tower1.jpg" alt="通信基站铁塔" />
              <div className="about-image-overlay"></div>
            </div>
            <div className="about-floating-card glass-panel glow-border">
              <div className="fc-icon">
                <Icon.Award />
              </div>
              <div className="fc-title">专业品质保障</div>
              <div className="fc-desc">严格遵循行业规范 确保每个项目品质</div>
            </div>
          </div>

          <div className="about-content">
            <p className="about-text">
              淮北市畅通工程技术有限公司注册地位于安徽省淮北市相山区，
              是一家专注于工程技术与通信服务的综合性企业。
              公司始终秉持"专业、创新、诚信、共赢"的经营理念，
              专注于技术服务、工程设计、5G通信及物联网等核心业务领域。
              <br /><br />
              我们拥有一支经验丰富、技术过硬的专业团队，能够为客户提供从需求咨询、
              方案设计到项目实施、运维保障的全流程服务。公司注重技术创新与品质管理，
              严格遵守国家法律法规与行业标准，确保每个项目都能高质量交付。
              <br /><br />
              <strong style={{ color: 'var(--text-primary)' }}>公司地址：</strong>
              安徽省淮北市相山区南黎街道南黎路86号2层众创空间2010号
            </p>

            <div className="about-cta">
              <a href="#business" className="btn-primary">
                查看业务范围
                <Icon.ArrowRight width={18} height={18} />
              </a>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

/* =========================================================
   业务板块
   ========================================================= */
function BusinessSection() {
  return (
    <section className="section business-section" id="business">
      <div className="section-inner">
        <div className="section-head">
          <span className="section-tag">BUSINESS AREAS</span>
          <h2>核心业务板块</h2>
          <p className="section-desc">
            四大业务领域协同发展，为客户提供全方位、一站式的工程技术与通信服务解决方案
          </p>
        </div>

        <div className="business-grid">
          {businessAreas.map((item, idx) => (
            <div
              key={item.id}
              className="business-card glass-panel card-3d glow-border"
              style={{ transformDelay: `${idx * 0.1}s` }}
            >
              <div className="card-corner">0{idx + 1}</div>
              <div className="card-icon">{item.icon}</div>
              <h3>{item.title}</h3>
              <p className="card-desc">{item.desc}</p>
              <div className="card-tags">
                {item.tags.map((tag) => (
                  <span key={tag} className="card-tag">{tag}</span>
                ))}
              </div>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
}

/* =========================================================
   企业优势
   ========================================================= */
function AdvantagesSection() {
  return (
    <section className="section advantages-section" id="advantages">
      <div className="section-inner">
        <div className="section-head">
          <span className="section-tag">OUR ADVANTAGES</span>
          <h2>我们的核心优势</h2>
          <p className="section-desc">
            凭借专业的技术团队、严谨的质量管理和高效的服务体系，为客户创造持续价值
          </p>
        </div>

        <div className="advantages-grid">
          {advantages.map((adv) => (
            <div key={adv.num} className="advantage-item glass-panel glow-border card-3d">
              <div className="adv-num">{adv.num}</div>
              <h4>{adv.title}</h4>
              <p>{adv.desc}</p>
            </div>
          ))}
        </div>

        {/* 服务流程 */}
        <div style={{ marginTop: '120px' }}>
          <div className="section-head">
            <span className="section-tag">SERVICE PROCESS</span>
            <h2>标准化服务流程</h2>
            <p className="section-desc">
              五步标准化服务流程，确保每个项目规范推进、高效交付
            </p>
          </div>

          <div className="process-timeline">
            <div className="process-line"></div>
            {processSteps.map((step, idx) => (
              <div key={idx} className="process-step">
                <div className="step-icon">
                  {step.icon}
                  <span className="step-num">{idx + 1}</span>
                </div>
                <h4>{step.title}</h4>
                <p>{step.desc}</p>
              </div>
            ))}
          </div>
        </div>
      </div>
    </section>
  );
}

/* =========================================================
   联系我们
   ========================================================= */
function ContactSection() {
  return (
    <section className="section contact-section" id="contact">
      <div className="section-inner">
        <div className="section-head">
          <span className="section-tag">CONTACT US</span>
          <h2>联系我们</h2>
          <p className="section-desc">
            欢迎咨询洽谈，我们将以专业的态度和优质的服务，为您提供满意的解决方案
          </p>
        </div>

        <div className="contact-grid">
          <div className="contact-info-card glass-strong glow-border card-3d">
            <h3>联系我们</h3>
            <div className="contact-info-list">
              <div className="contact-info-item">
                <div className="cii-icon">
                  <Icon.User />
                </div>
                <div className="cii-text">
                  <div className="cii-label">联系人</div>
                  <div className="cii-value">张强</div>
                </div>
              </div>
              <div className="contact-info-item">
                <div className="cii-icon">
                  <Icon.Phone />
                </div>
                <div className="cii-text">
                  <div className="cii-label">联系电话</div>
                  <div className="cii-value">138-0000-0000</div>
                  <div style={{ fontSize: '11px', color: 'var(--text-tertiary)', marginTop: '4px' }}>
                    （占位号码，后续将替换为真实号码）
                  </div>
                </div>
              </div>
              <div className="contact-info-item full-width">
                <div className="cii-icon">
                  <Icon.MapPin />
                </div>
                <div className="cii-text">
                  <div className="cii-label">公司地址</div>
                  <div className="cii-value">安徽省淮北市相山区南黎街道南黎路86号2层众创空间2010号</div>
                </div>
              </div>
            </div>
          </div>

          <div className="contact-visual">
            <div className="map-card">
              <img src="assets/images/city4.jpg" alt="城市夜景" />
              <div className="map-overlay"></div>
              <div className="map-pin">
                <div className="pin-pulse"></div>
                <div className="pin-body">
                  <div className="pin-head"></div>
                  <div className="pin-tail"></div>
                </div>
                <div className="pin-label">畅通工程 · 淮北</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

/* =========================================================
   页脚
   ========================================================= */
function Footer() {
  return (
    <footer className="footer">
      <div className="footer-inner">
        <div className="footer-top">
          <div className="footer-brand">
            <div className="footer-logo">
              <div className="logo-mark">
                <Icon.Tower />
              </div>
              <span>淮北市畅通工程技术有限公司</span>
            </div>
            <p>
              专注于工程技术与通信服务领域，以专业品质和创新精神，为客户提供一站式解决方案，
              助力数字基础设施建设与产业升级。
            </p>
          </div>
          <div className="footer-col">
            <h5>业务板块</h5>
            <ul>
              <li><a href="#business">技术服务</a></li>
              <li><a href="#business">工程设计</a></li>
              <li><a href="#business">5G通信</a></li>
              <li><a href="#business">物联网服务</a></li>
            </ul>
          </div>
          <div className="footer-col">
            <h5>关于我们</h5>
            <ul>
              <li><a href="#about">公司简介</a></li>
              <li><a href="#advantages">企业优势</a></li>
              <li><a href="#advantages">服务流程</a></li>
              <li><a href="#contact">联系我们</a></li>
            </ul>
          </div>
          <div className="footer-col">
            <h5>联系我们</h5>
            <ul>
              <li><a>联系人：张强</a></li>
              <li><a>电话：138-0000-0000</a></li>
            </ul>
          </div>
        </div>
        <div className="footer-bottom">
          <div className="copyright">
            © 2026 淮北市畅通工程技术有限公司 版权所有
          </div>
          <div className="credit-code">
            地址：安徽省淮北市相山区南黎街道南黎路86号2层众创空间2010号
          </div>
        </div>
      </div>
    </footer>
  );
}

/* =========================================================
   主应用
   ========================================================= */
function App() {
  const [mobileMenuOpen, setMobileMenuOpen] = useState(false);

  return (
    <div className="app">
      <NavBar onMobileMenuToggle={() => setMobileMenuOpen(true)} />
      <MobileMenu open={mobileMenuOpen} onClose={() => setMobileMenuOpen(false)} />

      <HeroSection />
      <AboutSection />
      <BusinessSection />
      <AdvantagesSection />
      <ContactSection />
      <Footer />
    </div>
  );
}

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
