/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

/* 全局样式 */
body {
    font-family: "Outfit", sans-serif;
    background-color: #262626 !important;
    color: #333;
    line-height: 1.5;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Header */
.header {
    background-color: #1f1f1f;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 99;
    backdrop-filter: blur(20px);
}

/* 导航菜单样式 */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.nav-menu ul li a:hover {
    color: #ff9436;
}

/* 下拉菜单 */
.dropdown-menu {
    background-color: #333;
    color: #fff;
    border: none;
    display: none !important;
    position: absolute;
    top: 100%;
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #635d58;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
}

/* Footer */
.footer {
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    color: #ff9436;
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    opacity: 0.8;
}

/* Hero Section 样式 */
.hero-section {
    background-image: url("../images/banner-bg.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    width: 100%;
}

.hero-section p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
}

/* Grid 布局样式 */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    width: 100%;
}

.grid-item {
    text-align: center;
    width: 100%;
}

/* Section 样式 */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.section p {
    font-size: 1rem;
    text-align: center;
    color: #666;
}

/* 页面内容 */
.intro-section,
.features-section,
.cta-section {
    padding: 60px 0;
}

.intro-title,
.feature-title,
.cta-title {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.intro-description,
.feature-description {
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* 功能项容器 */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #333;
    border-radius: 8px;
}

.feature-title h3,
.feature-title h4,
.cta-title h3 {
    color: #ff9436;
}

/* 图片部分 */
.feature-image img,
.intro-image img,
.cta-section img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* 重叠文案 */
.feature-overlay,
.intro-overlay,
.cta-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明背景 */
    padding: 10px;
    border-radius: 8px;
}

.feature-overlay h5,
.cta-overlay h4 {
    font-size: 16px;
    font-weight: bold;
}

/* 按钮样式 */
.cta-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
}

.cta-btn:hover {
    background-color: #0056b3;
}

/* 小屏幕样式 */
@media (max-width: 768px) {
    .feature-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .cta-btn {
        width: 100%;
    }

    .feature-item {
        width: 100%;
    }

    .hero-section {
        padding: 60px 0;
    }
}

/* 新增叠加效果 */
.intro-image,
.feature-image,
.cta-section {
    position: relative;
}

.intro-image img,
.feature-image img {
    width: 100%;
    height: auto;
}

.intro-overlay,
.feature-overlay,
.cta-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
}

.intro-overlay h4,
.feature-overlay h4,
.cta-overlay h4 {
    font-size: 20px;
    font-weight: bold;
}

.intro-overlay p,
.feature-overlay p,
.cta-overlay p {
    font-size: 14px;
}

/* Feature Item 样式 */
.feature-item {
    display: inline-block;
    width: 30%;
    margin: 10px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.cta-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.cta-btn:hover {
    background-color: #0056b3;
}