* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1b1b1b;
    color: #fff;
    overflow-x: hidden;
}

/* 顶部 */
header {
    background: linear-gradient(135deg, #f90, #d68a00);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-size: 1.35rem;
    color: #fff;
    margin-left: 1px;
    transition: transform 0.3s ease-in-out;
}

header h1:hover {
    transform: scale(1.05);
}

header ul {
    display: flex;
    list-style: none;
}

header ul li {
    margin-left: 20px;
}

header ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

header ul li a:hover {
    color: #f90;
}

.logo {
    width: 50px;
    height: 50px;
}

/* hero */
.hero {
    /*background: linear-gradient(135deg, #f90, #ffbb33);*/
    background: linear-gradient(217deg, #f90, #ffbb33 20%, #f90 47%, #ffbb33 71%, #f90 99%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 45vh;
    transition: background 0.3s ease-in-out;
}

.gradient-text {
    -webkit-background-clip: text;
    font-weight: bold;
    font-size: 1.6em;
    color: white;
    font-style: italic;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.hero h2:hover {
    transform: scale(1.1);
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin-bottom: 30px;
}

.hero a {
    background: #fff;
    color: #f90;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hero a:hover {
    background: #f90;
    color: #fff;
    transform: scale(1.05);
}

/* 核心功能 */
.service h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #f90;
    transition: color 0.3s ease-in-out;
}

.services {
    padding: 30px 20px;
    background-color: #1b1b1b;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background: linear-gradient(135deg, #1f2933, #2e3b4e);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.service-item i {
    font-size: 3rem;
    color: #f90;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-item p {
    font-size: 1.1rem;
    color: #aaa;
}

/* 作品展示 */
.gallery {
    padding: 20px 20px;
    background-color: #1b1b1b;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #f90;
    transition: color 0.3s ease-in-out;
}

.gallery h2:hover {
    color: #f90;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 300px));
    gap: 30px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    /*border-radius: 15px;*/
    background: #24272b;
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
    border: 1px solid #939597;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    /*border-radius: 15px;*/
    display: block;
    margin: auto;
    object-fit: contain;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 解决方案 */
.solutions {
    padding: 60px 20px;
}

.solutions h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #f90;
    transition: color 0.3s ease-in-out;
}

.solutions h2:hover {
    color: #f90;
}

.solution-cards {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    /* 隐藏滚动条，仅在需要时显示 */
    scrollbar-width: thin; /* 对 Firefox */
    scrollbar-color: #ccc #f4f4f4; /* 对 Firefox */
}

.solution-cards::-webkit-scrollbar {
    height: 8px; /* 对 Chrome、Safari、Edge */
}

.solution-cards::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.solution-cards::-webkit-scrollbar-track {
    background-color: #f4f4f4;
}

.solution-card {
    flex: 0 0 400px; /* 保持卡片固定宽度，防止缩小 */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.solution-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.solution-card-content {
    padding: 20px;
}

.solution-card-content h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ff9900;
}

.solution-card-content p {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

.solution-card-content img {
    margin-top: 8px;
    border-radius: 0.5rem;
    border: 1px solid #939597;
}

.solution-card-content a {
    display: inline-block;
    margin-top: 15px;
    padding: 0;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

/* 常见问题 */
.faq {
    background-color: #24272b;
    padding: 80px 20px;
    color: #fff;
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #f90;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.faq-item h3:hover {
    color: #f90;
}

.faq-item p {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #ccc;
}

/* 浮窗 */
.floating-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 250px;
    padding: 20px;
    background: rgba(36, 39, 43, 0.8); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 背景模糊效果 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* 阴影效果 */
    border-radius: 15px;
    z-index: 1000;
    text-align: center;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    overflow: hidden; /* 防止溢出 */
}

.qrcode-container {
    position: relative;
    width: 100%;
    height: 0; /* 初始隐藏二维码 */
    overflow: hidden;
    transition: height 0.5s ease; /* 高度过渡效果 */
}

.qrcode {
    width: 100%;
    height: auto;
    transform: translateY(100%); /* 初始位置：滑出屏幕 */
    transition: transform 0.5s ease; /* 平滑滑动 */
}

.floating-window:hover .qrcode-container {
    height: 280px; /* 鼠标移入时，调整容器高度以显示二维码 */
}

.floating-window:hover .qrcode {
    transform: translateY(0); /* 鼠标移入时，二维码向上滑动显示 */
}

.floating-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin: 10px 0;
    background-color: #ff9900; /* 按钮背景颜色 */
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.floating-button:hover {
    background-color: #cc7a00; /* 悬停按钮颜色 */
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.6); /* 按钮悬停时的光影效果 */
}

.email {
    font-size: 14px;
    margin-top: 10px;
    color: #a9a9a9; /* 邮箱文本的淡灰色 */
}

.email a {
    color: #00ffff; /* 邮箱链接颜色 */
    text-decoration: none;
    transition: color 0.3s;
}

.email a:hover {
    color: #87ceeb; /* 邮箱悬停颜色 */
}

/* 底部 */
footer {
    background-color: #141e30;
    padding: 40px;
    text-align: center;
    color: #fff;
}

footer p {
    font-size: 1.2rem;
    margin: 0;
}

/* 移动端 */
@media (max-width: 768px) {

    header ul {
        display: none; /* 在小屏幕上隐藏导航菜单 */
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .gallery-items {
        grid-template-columns: 1fr;
    }

    .solution-cards {
        display: block;
        overflow-x: visible; /* 移动端不需要水平滚动 */
        padding: 10px;
    }

    .solution-card {
        flex: none;
        width: 100%; /* 卡片占满移动端屏幕宽度 */
        margin-bottom: 20px;
    }
}

/* PC 端一直悬浮 */
@media only screen and (min-width: 1024px) {
    .floating-window {
        display: block; /* PC 端显示 */
    }
}

/* 移动端隐藏浮窗 */
@media only screen and (max-width: 1023px) {
    .floating-window {
        display: none; /* 移动端隐藏 */
    }
}
