/* 重置样式 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 导航栏样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  height: 50px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-item {
  font-size: 18px;
  font-weight: 500;
  color: #607f56;
  text-decoration: none;
  padding: 8px 12px;
  position: relative;
  transition: color 0.3s;
}

.nav-item:hover {
  color: #567b5c;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background-color: #567b5c;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  position: relative;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: #607f56;
  margin: 3px 0;
  transition: 0.3s;
}

/* 通用样式 */
.section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 15px;
}

.section-title p {
  font-size: 16px;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
}

/* 页脚 */
.footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 48px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-section h3 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-section.brand h3 {
  font-family: 'Pacifico', cursive;
  font-size: 20px;
}

.footer-section p,
.footer-section span {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links .social-item {
  position: relative;
  display: inline-block;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-links img {
  width: 20px;
  height: 20px;
}

/* 二维码弹出样式 */
.qrcode-wrapper .qrcode-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 10px;
  min-width: 150px;
  text-align: center;
  display: none;
}

.qrcode-wrapper:hover .qrcode-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  display: block;
}

.qrcode-popup::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.qrcode-popup img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.qrcode-popup span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 30px;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 16px;
  color: #9ca3af;
}

/* 确保所有元素不超出屏幕宽度 */
* {
  max-width: 100%;
}

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

/* 大屏幕优化 */
@media screen and (min-width: 1441px) {
  .container, 
  .nav-container,
  .footer-content {
    max-width: 1200px;
  }
}

/* 平板设备适配 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding: 0 30px;
  }
}

/* 响应式设计 */
@media screen and (max-width: 900px){
  .nav-menu {
    gap: 10px;
  }

}
@media screen and (max-width: 780px){
  .nav-menu {
    gap: 0px;
  }

}
@media screen and (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .nav-container {
    padding: 0 15px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* 移动设备二维码调整 */
  .qrcode-popup img {
    width: 100px;
    height: 100px;
  }
  
  .qrcode-wrapper .qrcode-popup {
    min-width: 130px;
    padding: 12px;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #567b5c;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(86, 123, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: #4a6b50;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(86, 123, 92, 0.4);
}

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