/* 主要样式文件 */

/* 字体导入 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

/* 基础设置 */
:root {
  /* 颜色变量 */
  --primary-color: #f04e4e;
  --primary-dark: #d03e3e;
  --primary-light: #ff6e6e;
  --secondary-color: #1a2b3c;
  --text-color: #333333;
  --text-light: #777777;
  --light-bg: #f9f9f9;
  --border-color: #e5e5e5;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f4f4f4;
  --gray: #dddddd;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --info: #2196f3;

  /* 间距变量 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* 阴影变量 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* 圆角变量 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* 过渡变量 */
  --transition: all 0.3s ease;
}

/* 基本元素样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  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;
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 辅助类 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

.bg-light {
  background-color: var(--light-bg);
}

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

.bg-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  position: relative;
}

.bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.bg-image > * {
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-white {
  color: var(--white);
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--black);
  border-color: var(--black);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

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

.btn-light:hover {
  background-color: var(--gray-light);
  border-color: var(--gray-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 网格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* 顶部信息栏 */
.top-bar {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

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

.contact-info {
  display: flex;
}

.contact-info span {
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 0.5rem;
}

.social-links a {
  color: var(--white);
  margin-left: 1rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-light);
}

/* 主导航栏 */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
}

.nav-item {
  position: relative;
  margin: 0 0.5rem;
}

.nav-item a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 70%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--secondary-color);
  font-weight: 400;
}

.dropdown-menu li a:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* 页面部分通用样式 */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 1rem auto 0;
}

.light .section-title,
.light .section-subtitle {
  color: var(--white);
}

/* 页脚样式 */
.main-footer {
  background-color: var(--secondary-color);
  color: var(--white);
}

.footer-top {
  padding: var(--spacing-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col {
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-desc {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}

.footer-qrcode img {
  width: 100px;
  height: 100px;
  margin-bottom: 0.5rem;
}

.company-info {
  margin-top: 1.5rem;
}

.company-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.company-info i {
  margin-right: 0.5rem;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
}

.copyright p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

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


/* 页面标题 */
.page-title {
  background-color: var(--light-bg);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.page-title h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media screen and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
}

@media screen and (max-width: 991px) {
  .container {
    max-width: 720px;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

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

@media screen and (max-width: 767px) {
  .container {
    max-width: 540px;
  }

  .main-header .container {
    height: 70px;
  }

  .logo-img {
    height: 50px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    height: 0;
    overflow: hidden;
    transition: var(--transition);
    visibility: hidden;
    opacity: 0;
  }

  .main-nav.active {
    height: auto;
    visibility: visible;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-item {
    margin: 0;
    width: 100%;
  }

  .nav-item a {
    padding: 1rem 1.5rem;
  }

  .nav-item::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding-left: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 575px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

  .top-bar {
    display: none;
  }
}

/* 图标字体 */
@font-face {
  font-family: "sakura-icons";
  src: url("../fonts/sakura-icons.eot");
  src: url("../fonts/sakura-icons.eot?#iefix") format("embedded-opentype"), url("../fonts/sakura-icons.woff")
    format("woff"), url("../fonts/sakura-icons.ttf") format("truetype"), url("../fonts/sakura-icons.svg#sakura-icons")
    format("svg");
  font-weight: normal;
  font-style: normal;
}

.icon {
  font-family: "sakura-icons" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-arrow-up:before {
  content: "\e900";
}
.icon-phone:before {
  content: "\e901";
}
.icon-email:before {
  content: "\e902";
}
.icon-location:before {
  content: "\e903";
}
.icon-wechat:before {
  content: "\e904";
}
.icon-weibo:before {
  content: "\e905";
}
.icon-douyin:before {
  content: "\e906";
}
.icon-certificate:before {
  content: "\e908";
}
.icon-license:before {
  content: "\e909";
}

