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

:root {
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --primary-light: #e8f0fe;
  --accent: #ff6b35;
  --text: #333333;
  --text-light: #666666;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  list-style: none;
}

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

/* ===== 顶部导航 ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 6px 0;
}

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

.header-top a {
  color: var(--white);
  opacity: 0.9;
}

.header-top a:hover {
  opacity: 1;
}

.header-main {
  padding: 15px 0;
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

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

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== 横幅区域 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #e55a2b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.hero-feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.hero-feature-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* ===== 行动号召按钮条（底部固定悬浮） ===== */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-top: 1px solid rgba(26, 115, 232, 0.15);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
}

.cta-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 1px;
  min-width: 170px;
}

.cta-btn-primary {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(26, 115, 232, 0.35), 0 0 20px rgba(26, 115, 232, 0.1);
}

.cta-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(26, 115, 232, 0.45), 0 0 30px rgba(26, 115, 232, 0.2);
}

.cta-btn-secondary {
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.35), 0 0 20px rgba(255, 107, 53, 0.1);
}

.cta-btn-secondary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.45), 0 0 30px rgba(255, 107, 53, 0.2);
}

/* ===== 通用区块 ===== */
.section {
  padding: 60px 0;
}

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

.section-title h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 10px;
}

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

.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== 产品卡片 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  width: 100%;
  height: 200px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.product-card-body h3 a {
  color: inherit;
}

.product-card-body h3 a:hover {
  color: var(--primary);
}

.product-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-card-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  border-radius: 20px;
}

/* ===== 三栏特色区域 ===== */
.features-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--primary-light);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== 新闻卡片 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.news-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), #d4e4fc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
}

.news-card-body {
  padding: 20px;
}

.news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.news-card-body h3 a {
  color: var(--text);
}

.news-card-body h3 a:hover {
  color: var(--primary);
}

.news-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 0.85rem;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

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

.breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

/* ===== 文章详情 ===== */
.article-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.article-content h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 25px 0 12px;
}

.article-body p {
  margin-bottom: 15px;
  text-indent: 2em;
  line-height: 2;
}

.article-body ul,
.article-body ol {
  margin: 15px 0;
  padding-left: 2em;
}

.article-body li {
  margin-bottom: 8px;
  list-style: disc;
}

.article-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== 产品详情 ===== */
.product-detail {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.product-detail-img {
  width: 100%;
  height: 350px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
}

.product-detail-info h1 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.product-detail-price {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}

.product-detail-specs {
  margin: 20px 0;
}

.product-detail-specs dt {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.product-detail-specs dd {
  color: var(--text-light);
  margin-bottom: 15px;
  padding-left: 0;
}

/* ===== 侧边栏 ===== */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  color: var(--text);
  font-size: 0.95rem;
}

.sidebar-widget ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-info-text p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  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 rgba(26, 115, 232, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* ===== 页脚 ===== */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== 关于我们 ===== */
.about-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.about-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--primary-dark);
}

.about-content p {
  margin-bottom: 15px;
  line-height: 2;
  text-indent: 2em;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.about-stat-item {
  text-align: center;
  padding: 25px 15px;
  background: var(--primary-light);
  border-radius: var(--radius);
}

.about-stat-item .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.about-stat-item .label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 75px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.3);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: block;
  }

  .hero {
    padding: 50px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .article-content,
  .product-detail,
  .about-content {
    padding: 25px;
  }

  .header-top {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .cta-bar {
    padding: 10px 0;
  }

  .cta-bar-inner {
    gap: 10px;
  }

  .cta-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
    min-width: 140px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
