/* ============================================
   玉祥客服中心 - 主样式表
   SEO优化：语义化命名 + 高性能CSS
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a56db;
  --primary-dark: #1042a3;
  --primary-light: #e8f0fe;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'WenQuanYi Micro Hei', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.logo img { width: 42px; height: 42px; border-radius: 8px; }
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .9rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero Section ---------- */
.hero {
  margin-top: 72px;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,32,39,.85), rgba(44,83,100,.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px;
  color: #fff;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: .9rem;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero h1 .highlight {
  color: var(--accent);
}
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 700px;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-gray { background: var(--bg-gray); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: .95rem; }
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: .9rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.team-info { padding: 20px; }
.team-info h3 { margin-bottom: 4px; }
.team-role {
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.team-desc { color: var(--text-light); font-size: .85rem; }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.news-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .75rem;
}
.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card p {
  color: var(--text-light);
  font-size: .9rem;
  flex: 1;
}
.news-card .read-more {
  margin-top: 16px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--primary);
}

/* ---------- VIP Section ---------- */
.vip-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vip-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.vip-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.vip-text h2 { color: #fff; margin-bottom: 20px; }
.vip-text p { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.vip-features {
  list-style: none;
  margin-top: 28px;
}
.vip-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: rgba(255,255,255,.9);
}
.vip-features li::before {
  content: '✓';
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.vip-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.vip-image img { width: 100%; height: 400px; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 4px; }
.contact-item p { color: var(--text-light); margin: 0; }

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  user-select: none;
  transition: var(--transition);
}
.faq-question:hover { background: var(--primary-light); }
.faq-question .toggle {
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}
.faq-item.open .toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  color: #fff;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; }
.cta-banner .btn { background: var(--accent); }
.cta-banner .btn:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.footer-brand p { font-size: .9rem; }
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--bg-gray);
  padding: 100px 0 20px;
  margin-top: 72px;
}
.breadcrumb-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .9rem;
  color: var(--text-light);
}
.breadcrumb-nav a { color: var(--text-light); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .sep { color: var(--border); }

/* ---------- Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  padding: 140px 0 60px;
  color: #fff;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ---------- News List Page ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.news-list-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-list-item:hover { box-shadow: var(--shadow-lg); }
.news-list-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}
.news-list-body { padding: 28px 28px 28px 0; }
.news-list-body h3 { margin-bottom: 10px; }
.news-list-body p { color: var(--text-light); font-size: .95rem; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.pagination a, .pagination span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .news-list-item { grid-template-columns: 1fr; }
  .news-list-item img { min-height: 180px; }
  .news-list-body { padding: 20px; }
  section { padding: 60px 0; }
  .cta-banner { padding: 40px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
