/* ============================================
   旭达电脑 xudanet.com 全站全局样式
   上海本地上门IT服务商
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 全站主色调：深蓝 #10375C（与首页 home.css 保持一致） */
  --primary: #10375C;
  --primary-dark: #0A2540;
  --primary-light: #E9F0F7;
  --accent: #F57C00;
  --accent-dark: #E06A00;
  --text-main: #1E2B3A;
  --text-sub: #5A6B7D;
  --text-light: #95A3B2;
  --bg-white: #ffffff;
  --bg-gray: #F5F8FA;
  --bg-dark: #0A2540;
  --border: #E2E9F0;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 6px 22px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 44px rgba(10, 37, 64, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.35s ease;
  --max-width: 1200px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text-main); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 70px 0; }
.section-gray { background: var(--bg-gray); }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-sub);
  font-size: 1.05rem;
  margin-top: 20px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.5;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}
.logo-text span { color: var(--accent); }

/* ---------- Logo 旁的中文品牌名 ---------- */
.logo-cn {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}
.logo-cn span { color: var(--accent); }
@media (max-width: 640px) {
  .logo-cn { font-size: 0.95rem; letter-spacing: 1px; padding-left: 9px; }
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.header-phone .phone-icon { font-size: 1.2rem; }

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0A2540 0%, #10375C 50%, #164B7A 100%);
  color: #fff;
  padding: 100px 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-content h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 20px;
  line-height: 1.25;
}
.hero-content h1 span { color: #ffd166; }
.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.8;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 35px;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}
.hero-feature .check { color: #4ade80; font-weight: 700; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}
.hero-card-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}
.hero-card h3 { color: #fff; margin-bottom: 10px; }
.hero-card p { opacity: 0.85; font-size: 0.95rem; margin-bottom: 0; }

/* ---------- 业务卡片 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
}
.service-card:hover .service-card-icon {
  background: var(--primary);
  transform: scale(1.1);
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.6;
}
.service-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card-link:hover { color: var(--accent); }

/* ---------- 服务优势 ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.advantage-item {
  text-align: center;
  padding: 30px 20px;
}
.advantage-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.advantage-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.advantage-item p {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* ---------- 服务区域 ---------- */
.district-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.district-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  cursor: pointer;
}
.district-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- 品牌 Logo 图片（替换原「旭」字占位） ---------- */
.site-logo { height: 40px; width: auto; display: block; }
.site-logo-footer { height: 34px; width: auto; display: block; }

/* ---------- 业务详情页通用 ---------- */
.page-banner {
  background: linear-gradient(135deg, #0A2540, #10375C);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: 2.2rem; margin-bottom: 12px; }
.page-banner p { opacity: 0.9; font-size: 1.1rem; margin-bottom: 0; }
.breadcrumb {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.breadcrumb a { color: #ffd166; }
.breadcrumb span { margin: 0 8px; }

/* 业务子板块 */
.service-section { padding: 60px 0; }
.service-section-alt { background: var(--bg-gray); }
.service-section h2 {
  font-size: 1.7rem;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.service-detail-content h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.service-detail-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.98rem;
  color: var(--text-sub);
}
.service-detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-detail-visual {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border-radius: var(--radius-lg);
  padding: 50px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.service-detail-visual .visual-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.service-detail-visual h4 {
  color: var(--primary);
  margin-bottom: 8px;
}
.service-detail-visual p {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 服务流程 */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 34px);
  width: calc(100% - 68px);
  height: 2px;
  background: var(--border);
}
.process-step h4 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 0; }

/* ---------- 预约区块 ---------- */
.booking-section {
  background: linear-gradient(135deg, #0A2540, #10375C);
  color: #fff;
  padding: 70px 0;
}
.booking-section .section-title h2 { color: #fff; }
.booking-section .section-title p { color: rgba(255,255,255,0.85); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #b0bec5;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.footer-about p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #b0bec5;
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-contact .contact-icon {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.footer-contact a { color: #ffd166; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #78909c;
}
.footer-bottom a { color: #90a4ae; }

/* ---------- 移动端悬浮拨号按钮 ---------- */
.mobile-call-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(245,124,32,0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(245,124,32,0.4); }
  50% { box-shadow: 0 4px 30px rgba(245,124,32,0.7); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .district-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3)::after { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 50px 0; }
  .header-phone { display: none; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 999;
  }
  .main-nav.open { max-height: 500px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px;
    gap: 0;
  }
  .main-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .main-nav li:last-child a { border-bottom: none; }
  .hero { padding: 60px 0; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-card { padding: 24px 16px; }
  .advantage-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .district-grid { grid-template-columns: repeat(3, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .mobile-call-btn { display: flex; }
  .page-banner { padding: 40px 0; }
  .page-banner h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-features { gap: 10px; }
  .hero-feature { font-size: 0.85rem; padding: 6px 14px; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
}

/* ---------- 页脚服务区域（内链，利于SEO） ---------- */
.footer-areas {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 4px;
  font-size: 0.85rem;
  color: #9fb0c0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.footer-areas span { opacity: 0.8; }
.footer-areas a { color: #b9c8d6; text-decoration: none; transition: all 0.3s ease; }
.footer-areas a:hover { color: #fff; text-decoration: underline; }
