/* ===== 共享样式 - 咪网科技官网 ===== */

/* 基础重置和变量 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #FA6400;
  --primary-light: #FF8A33;
  --primary-dark: #E55A00;
  --white: #FFFFFF;
  --bg-light: #F7F7F7;
  --text: #222;
  --text2: #666;
  --text3: #999;
  --border: #eee;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-tap-highlight-color: transparent;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1000;
}

.logo img { height: 32px; }

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.3s;
  padding: 8px 0;
  position: relative;
}

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

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  font-size: 14px;
  color: var(--text3);
}

.nav-phone span {
  color: var(--primary);
  font-weight: 600;
}

/* ===== 按钮样式 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(250,100,0,0.3);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== 汉堡菜单 ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  color: var(--text2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  background: #FFF5EB;
}

.mobile-menu.open {
  display: block;
}

/* ===== 页脚 ===== */
.footer {
  background: #222;
  color: rgba(255,255,255,0.8);
  padding: 60px 60px 40px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .navbar { padding: 0 30px; }
  .nav-menu { gap: 24px; }
  .section { padding: 80px 30px; }
  .footer { padding: 50px 30px 30px; }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar { height: 64px; padding: 0 20px; }
  .logo img { height: 28px; }

  .nav-menu,
  .nav-phone,
  .nav-right .btn {
    display: none;
  }

  .hamburger { display: flex; }

  .section { padding: 60px 20px; }

  .footer { padding: 40px 20px 20px; }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
