/* 华纳公司客服 - 企业官网样式表 */
/* 轻量级、高性能、秒加载优化 */

:root {
  --primary: #0d4a9e;
  --primary-dark: #08336d;
  --accent: #e60012;
  --text: #333;
  --text-light: #666;
  --bg: #f8f9fb;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, .08);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.nav a {
  margin-left: 28px;
  color: var(--text);
  font-size: 15px;
  transition: color .2s;
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  opacity: .95;
  margin-bottom: 28px;
}

.hero-contact {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-contact a,
.hero-contact span {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 10px 22px;
  border-radius: 30px;
  color: var(--white);
  font-size: 15px;
}

/* Section */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 15px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  font-size: 14px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.team-member {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-member h5 {
  font-size: 16px;
  padding: 16px 0 4px;
  color: var(--primary-dark);
}

.team-member p {
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 16px;
}

/* Contact */
.contact-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 42px 0;
  text-align: center;
}

.contact-bar h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-size: 17px;
}

.contact-list a {
  color: var(--white);
  border-bottom: 1px dashed rgba(255, 255, 255, .4);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
}

.footer-cr {
  color: var(--accent);
  font-weight: 700;
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .header .container {
    height: auto;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav {
    margin-top: 10px;
  }

  .nav a {
    margin: 0 10px;
    font-size: 14px;
  }

  .hero {
    padding: 50px 0 45px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .section-title h2 {
    font-size: 22px;
  }
}
