body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
    position: relative;
    transition: top 0.3s ease;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* 简约顶部区域 */
.header-top {
  text-align: center;
  background: #fdf6e3;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  min-height: 60px; /* 保持统一高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 精简科技感口号 */
.slogan {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1.2rem!important;
    font-weight: 600;
    color: #333;
    animation: fadeSlide 2.5s ease-out forwards;
    opacity: 0;
}

/* 出场动画：从上方淡入 */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* 导航栏主体 */
.nav-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.0rem;
    font-weight: bold;
    color: #1f4e5f;
    gap: 0.5rem;
}

.logo-icon {
    height: 4.0rem; /* 与字体高度匹配 */
    width: auto;
    display: inline-block;
}


nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

nav a {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #1f4e5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00f2fe;
}

.demo-btn {
    background: #fdd76e;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

main {
    padding: 6rem 2rem 2rem; /* 加了顶部空间避免被fixed header遮挡 */
}

footer {
    text-align: center;
    padding: 1rem;
    background: #eee;
    margin-top: 2rem;
}

.section {
    max-width: 800px;
    margin: 0 auto;
}

/* 移动端响应 */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    nav a, .demo-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* Google 翻译按钮样式 */
.google {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    box-shadow: 0 0 12px #00f2fe, 0 0 20px #4facfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.google:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px #00f2fe, 0 0 24px #4facfe;
}

.google img {
    width: 32px;
    height: 32px;
}

.translate-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9998;
    background: rgba(20, 20, 40, 0.95);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 0 10px #00f2fe;
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

/* 去除 Google 翻译框默认样式 */
.goog-te-banner-frame.skiptranslate,
.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}
body {
    top: 0px !important;
}


.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

nav.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1f4e5f;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    nav.nav-links.active {
        display: flex;
    }

    nav.nav-links a,
    nav.nav-links .demo-btn {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
.search-box {
  margin-left: auto;
  margin-right: 1rem;
}

.search-box input {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}
