/* ========== 基础设置 ========== */
body {
    height: 100%;
    font-style: normal;
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;

}

*,
*:focus {
    outline: none;
    box-shadow: none;
}

p {
    margin: 0;
}

a,
a:focus,
a:hover {
    text-decoration: none;
    transition: all 0.3s ease-out;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

:root {
    --accent-color: #64ffda;
    --primary-teal: #2bb961;
    --primary-blue: #3e8ecf;
    --secondary-teal: #00d494;
    --secondary-blue: #23a844;
    --dark-blue: #1a5276;
    --light-teal: #e8f8f5;
    --gradient-bg: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    --gradient-bg-reverse: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* ========== 导航栏 ========== */
.navbar-brand img {
    height: 60px;
}
.navbar-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    transition: all 0.3s ease-out;
    padding: 0 10%;
}

.navbar {
    position: relative;
    padding: 20px;
    border-radius: 5px;
    transition: all 0.3s ease-out;
}

.navbar-brand img {
    max-width: 180px;
}

.navbar-toggler {
    padding: 0;
    background: none;
    border: none;
}

.navbar-toggler .toggler-icon {
    width: 30px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    display: block;
    transition: all 0.3s ease-out;
    position: relative;
}

.navbar-toggler.active .toggler-icon:nth-child(1) {
    transform: rotate(45deg);
    top: 7px;
}

.navbar-toggler.active .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-child(3) {
    transform: rotate(135deg);
    top: -7px;
}

/* sticky 状态 */
.sticky {
    position: fixed;
    background-color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    z-index: 99;
    transition: all 0.3s ease-out;
}

.sticky .navbar {
    padding: 17px 0;
}

.sticky .navbar .nav-item a {
    color: #222;
}

.sticky .navbar .nav-item a::after {
    background-color: var(--gradient-bg);
}

.sticky .navbar-toggler .toggler-icon {
    background: #1d2a5d;
}

/* ========== 导航菜单 ========== */
.navbar-nav .nav-item {
    position: relative;
    margin-left: 60px;
}

.navbar-nav .nav-item a {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease-out;
    text-decoration: none;
}

/* 替代圆点为底部绿色线条 */
.navbar-nav .nav-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gradient-bg);
    transition: width 0.3s ease-out;
}

.navbar-nav .nav-item a:hover::after,
.navbar-nav .nav-item a.active::after {
    width: 100%;
}

.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item a.active {
    color: #3e8ecf;
}

/* 移除圆点原样式 */
.navbar-nav .nav-item a::before {
    display: none !important;
}

/* 子菜单 */
.navbar-nav .nav-item .sub-menu {
    border: none;
    width: 250px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 110%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.navbar-nav .nav-item:hover .sub-menu {
    border-radius: 15px;
    left: -85%;
    top: 50px;
    opacity: 1;
    visibility: visible;
    text-align: center;
}

.navbar-nav .sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: #222;
    transition: padding 0.3s;
}

.navbar-nav .sub-menu li a:hover,
.navbar-nav .sub-menu li a.active {
    color: #487cff;
    padding-left: 25px;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background: var(--gradient-bg);
    transition: width 0.3s;
}

/* 遮罩层 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* 文字阴影增强 */
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 1100px;
  margin: 0 auto 30px;
  opacity: 0.95;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

/* 小屏幕（手机） */
@media (max-width: 576px) {
    .navbar-nav .nav-item {
        margin-left: 10px;
    }
}

/* 大屏幕（桌面） */
@media (min-width: 993px) {
    .navbar-nav .nav-item {
        margin-left: 60px;
    }
}