/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f9;
    scroll-behavior: smooth; /* 平滑滚动效果 */
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: transparent; /* 初始背景透明 */
    transition: background 0.3s ease, color 0.3s ease; /* 平滑过渡效果 */
    color: #fff;
}
header.scrolled {
    background: rgba(26, 26, 26, 1); /* 滚动时的背景色 */
}

/* Logo and Navigation */
header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

header .logo a {
    display: flex;
    align-items: center;
    color:#fff;
    text-decoration:none;
}

header .logo img {
    height: 40px;
    width: auto;
}

header .logo span {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 80px;
    margin-right: 20px;
    flex-wrap: wrap; /* 在屏幕较小时自动换行 */
}
header nav ul li a {
    color: inherit;
    text-decoration:solid;
}
header nav ul li a:hover {
    color:#ff6600;
}

/* Welcome Section */
.welcome {
    position: relative;
    height: 100vh;
    background: url('../img/welcome_bg.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}
.welcome-overlay {
    position: relative;
    height: 100vh;
    width:100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.btn_Detail {
    width: 100%;
    padding-top:100px;
    display: flex;
}

.QRcode {
    display: flex;
    margin-top:90px;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.welcome h1 {
    font-size: 4.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.welcome p {
    font-size: 1.5rem;
    color:rgba(255,255,255,0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.welcome button {
    padding: 10px 20px;
    margin-top: 40px;
    font-size: 1rem;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.welcome button:hover {
    background: #005abb;
}

/* Remaining Styles */
.services {
    margin-top: 40px;
    padding: 50px 20px;
    text-align: center;
}
.services h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color:#007BFF;
}
.service-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.service-card {
    background: #fff;
    border-radius:10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.services h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color:#000;
}
.service-card p {
    padding: 20px;
    text-align: left;
    font-size: 1rem;
    color:#666;
    margin-bottom: 10px;
}

.service-card img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

/* About Section */
.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 40px auto;
    padding: 50px 20px;
    max-width: 900px; /* 限制最大宽度 */
    margin-bottom: 60px;
}

.about h2 {
    font-size: 1.5rem;
    color: #007BFF;
    margin-bottom: 20px;
}

.about-card {
    width: 100%;
}

.about-card p {
    text-align: left; /* 左对齐文本 */
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Footer Section */
footer {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    color: #fff;
}

footer span {
    text-align:justify;
    margin-right: 30px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    header nav ul {
        gap: 20px;
    }
    .welcome h1 {
        font-size: 2.5rem;
    }
    .welcome p {
        font-size: 1.2rem;
    }
}
