/*!
 * Start Bootstrap - Stylish Portfolio v5.0.7 (https://startbootstrap.com/template-overviews/stylish-portfolio)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-stylish-portfolio/blob/master/LICENSE)
 */

/* 更新全局配色 */
:root {
  --primary-color: #2d3436;  /* 深灰色代替深蓝色 */
  --secondary-color: #00b894;  /* 清新绿色代替浅蓝色 */
  --accent-color: #00cec9;    /* 青色作为强调色 */
  --dark-color: #2d3436;      /* 深灰色 */
  --light-color: #f5f6fa;     /* 浅灰色 */
  --gradient-primary: linear-gradient(135deg, #2d3436 0%, #636e72 100%);  /* 灰度渐变 */
  --gradient-secondary: linear-gradient(135deg, #00b894 0%, #00cec9 100%); /* 绿青渐变 */
}

/* 更新背景和整体样式 */
body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--light-color);
}

/* 更新头部样式 */
.masthead {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  min-height: 30rem;
  position: relative;
  display: table;
  width: 100%;
  height: auto;
  padding-top: 8rem;
  padding-bottom: 8rem;
  background: url("../img/bg-masthead.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}

.masthead:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 更新服务图标样式 */
.service-icon {
  background: var(--gradient-secondary);
  color: white;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.service-icon:hover {
  transform: translateY(-5px);
}

/* 更新按钮样式 */
.btn {
  border-radius: 30px;
  padding: 0.8rem 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover:after {
  transform: translateX(0);
}

/* 更新卡片样式 */
.portfolio-item {
  border-radius: 0;
  margin: 1rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.portfolio-item img {
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* 更新导航菜单样式 */
#sidebar-wrapper {
  position: fixed;
  z-index: 1050;
  right: 0;
  width: 250px;
  height: 100%;
  transition: all 0.4s ease 0s;
  transform: translateX(250px);
  background: var(--gradient-primary);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  width: 50px;
  height: 50px;
  text-align: center;
  color: #fff;
  background: rgba(52, 58, 64, 0.5);
  line-height: 50px;
  z-index: 1051;
}

/* 更新页脚样式 */
footer.footer {
  background: var(--dark-color);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* 统一页脚所有文字和链接的颜色 */
footer.footer p,
footer.footer a,
footer.footer .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;  /* 使用统一的半透明白色 */
  text-decoration: none;
}

/* 悬停效果 */
footer.footer a:hover {
  color: rgba(255, 255, 255, 0.7) !important;  /* 悬停时稍微亮一点 */
  text-decoration: none;
}

/* 二维码说明文字 */
.qrcode-container p {
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 1rem;
}

/* 添加全局动效 */
.content-section {
  position: relative;
  z-index: 1;
}

.content-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(52, 152, 219, 0.05) 0%, rgba(26, 188, 156, 0.05) 100%);
  z-index: -1;
}

/* 优化文字样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body,
html {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Source Sans Pro';
}

.btn-xl {
  padding: 1.25rem 2.5rem;
}

.content-section {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.content-section-heading h2 {
  font-size: 3rem;
}

.content-section-heading h3 {
  font-size: 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.text-faded {
  color: rgba(255, 255, 255, 0.7);
}

/* Map */
.map {
  height: 30rem;
}

@media (max-width: 992px) {
  .map {
    height: 75%;
  }
}

.map iframe {
  pointer-events: none;
}

.scroll-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  display: none;
  width: 50px;
  height: 50px;
  text-align: center;
  color: white;
  background: rgba(52, 58, 64, 0.5);
  line-height: 45px;
}

.scroll-to-top:focus, .scroll-to-top:hover {
  color: white;
}

.scroll-to-top:hover {
  background: #343a40;
}

.scroll-to-top i {
  font-weight: 800;
}

.masthead {
  min-height: 30rem;
  position: relative;
  display: table;
  width: 100%;
  height: auto;
  padding-top: 8rem;
  padding-bottom: 8rem;
  background: url("../img/bg-masthead.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}

.masthead h1 {
  font-size: 4rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .masthead {
    height: 100vh;
  }
  .masthead h1 {
    font-size: 5.5rem;
  }
}

/* Side Menu */
#sidebar-wrapper {
  position: fixed;
  z-index: 2;
  right: 0;
  width: 250px;
  height: 100%;
  transition: all 0.4s ease 0s;
  transform: translateX(250px);
  background: #1D809F;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 250px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav li.sidebar-nav-item a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 15px;
}

.sidebar-nav li a:hover {
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
  text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
  font-size: 1.2rem;
  background: rgba(52, 58, 64, 0.1);
  height: 80px;
  line-height: 50px;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 15px;
}

.sidebar-nav > .sidebar-brand a {
  color: #fff;
}

.sidebar-nav > .sidebar-brand a:hover {
  color: #fff;
  background: none;
}

#sidebar-wrapper.active {
  right: 250px;
  width: 250px;
  transition: all 0.4s ease 0s;
}

.menu-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  width: 50px;
  height: 50px;
  text-align: center;
  color: #fff;
  background: rgba(52, 58, 64, 0.5);
  line-height: 50px;
  z-index: 999;
}

.menu-toggle:focus, .menu-toggle:hover {
  color: #fff;
}

.menu-toggle:hover {
  background: #343a40;
}

.service-icon {
  background-color: #fff;
  color: #1D809F;
  height: 7rem;
  width: 7rem;
  display: block;
  line-height: 7.5rem;
  font-size: 2.25rem;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.callout {
  padding: 15rem 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%), url("https://longjingshop.oss-cn-shanghai.aliyuncs.com/production/data/images/spacenodes_img/bg-callout.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.callout h2 {
  font-size: 3.5rem;
  font-weight: 700;
  display: block;
  max-width: 30rem;
}

.portfolio-item {
  display: block;
  position: relative;
  overflow: hidden;
  max-width: 530px;
  margin: auto auto 1rem;
}

.portfolio-item .caption {
  display: flex;
  height: 100%;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.2);
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.portfolio-item .caption .caption-content {
  color: #fff;
  margin: 0;
  padding: 1.5rem;
  text-align: left;
  align-self: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  width: 100%;
}

.portfolio-item .caption .caption-content h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.portfolio-item .caption .caption-content p {
  font-weight: 300;
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (min-width: 992px) {
  .portfolio-item {
    max-width: none;
    margin: 0;
  }
  .portfolio-item .caption {
    -webkit-transition: -webkit-clip-path 0.25s ease-out, background-color 0.7s;
    -webkit-clip-path: inset(0px);
    clip-path: inset(0px);
  }
  .portfolio-item .caption .caption-content {
    transition: opacity 0.25s;
    padding: 3rem;
    margin: 0;
  }
  .portfolio-item img {
    -webkit-transition: -webkit-clip-path 0.25s ease-out;
    -webkit-clip-path: inset(-1px);
    clip-path: inset(-1px);
  }
  .portfolio-item:hover img {
    -webkit-clip-path: inset(2rem);
    clip-path: inset(2rem);
  }
  .portfolio-item:hover .caption {
    background-color: rgba(29, 128, 159, 0.9);
    -webkit-clip-path: inset(2rem);
    clip-path: inset(2rem);
  }
}

footer.footer {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

footer.footer .social-link {
  display: block;
  height: 4rem;
  width: 4rem;
  line-height: 4.3rem;
  font-size: 1.5rem;
  background-color: #1D809F;
  transition: background-color 0.15s ease-in-out;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}

footer.footer .social-link:hover {
  background-color: #155d74;
  text-decoration: none;
}

a {
  color: #1D809F;
}

a:hover, a:focus, a:active {
  color: #155d74;
}

.btn-primary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #fff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

.btn-secondary {
  background-color: #ecb807 !important;
  border-color: #ecb807 !important;
  color: #fff !important;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background-color: #ba9106 !important;
  border-color: #ba9106 !important;
}

.btn-dark {
  color: #fff !important;
}

.btn {
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

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

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

.text-secondary {
  color: #ecb807 !important;
}

/* 添加微信二维码样式 */
.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qrcode-img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

/* 更新粒子效果容器样式 */
.particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

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

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

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

.portfolio-item:hover .caption {
  background-color: rgba(33, 37, 41, 0.4);
}

.portfolio-item:hover .caption-content {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

/* 修改案例标题和描述的位置样式 */
.portfolio-item .caption .caption-content {
  color: #fff;
  margin: 0;
  padding: 1.5rem;
  text-align: left;
  align-self: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  width: 100%;
}

.portfolio-item .caption .caption-content h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.portfolio-item .caption .caption-content p {
  font-weight: 300;
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 移动端适配 */
@media (min-width: 992px) {
  .portfolio-item .caption .caption-content {
    padding: 2rem;
  }
}

.masthead h1,
.masthead h3,
.masthead p {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 调整案例四宫格间距 */
.portfolio-item {
  margin: 15px;  /* 增加间距 */
}

.row.no-gutters {
  margin: -15px;  /* 抵消容器边距 */
}

@media (min-width: 992px) {
  .portfolio-item {
    margin: 20px;  /* 大屏幕时增加更大间距 */
  }
  
  .row.no-gutters {
    margin: -20px;
  }
}

/* 更新服务图标颜色 */
.service-icon {
  color: var(--secondary-color);
}

/* 更新链接颜色 */
a {
  color: var(--secondary-color);
}

a:hover, a:focus, a:active {
  color: var(--accent-color);
}

/* 更新导航菜单背景 */
#sidebar-wrapper {
  background: var(--gradient-primary);
}

/* 更新页脚样式 */
footer.footer {
  background: var(--dark-color);
}

footer.footer .social-link {
  background-color: var(--secondary-color);
}

footer.footer .social-link:hover {
  background-color: var(--accent-color);
}

/* 更新背景色 */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

/* 更新portfolio hover效果 */
.portfolio-item:hover .caption {
  background-color: rgba(0, 184, 148, 0.9) !important;  /* 使用绿色 */
}

/* 更新二维码容器样式 */
.qrcode-container p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
}
