/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Roboto Mono', monospace;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}
/* 导航栏 */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0; /* 上下内边距 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px; /* 限制容器宽度 */
    margin: 0 auto; /* 水平居中 */
    display: flex;
    justify-content: space-between; /* 确保内容左右分布 */
    align-items: center; /* 垂直对齐 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Logo和公司名称之间的间距 */
}

.logo img {
    width: 50px;
}

.company-name {
    font-size: 24px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

nav {
    display: flex;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end; /* 确保菜单右对齐 */
    margin: 0; /* 移除默认的外边距 */
}

nav ul li {
    margin-left: 20px; /* 调整菜单项之间的间距 */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00ffcc;
}

.hamburger {
    display: none; /* 如果不需要汉堡菜单，可以隐藏它 */
}




/* 主视觉区域 */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}
.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ffcc;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #ccc;
}
.explore-btn {
    background-color: #00ffcc;
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffcc;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.explore-btn:hover {
    background-color: #00ccb3;
    box-shadow: 0 0 20px #00ffcc;
}
.hero-decoration {
    position: absolute;
    bottom: 30px;
    display: flex;
}
.hero-decoration .dot {
    width: 10px;
    height: 10px;
    background-color: #00ffcc;
    border-radius: 50%;
    margin: 0 5px;
    animation: dot-blink 2s infinite alternate;
}
.hero-decoration .dot:nth-child(2) {
    animation-delay: 0.2s;
}
.hero-decoration .dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes dot-blink {
    from {
        opacity: 0.5;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* 服务区域 */
.services {
    display: flex;
    flex-wrap: wrap; /* 允许在不足宽度时换行 */
    justify-content: center;
    align-items: flex-start; /* 内容垂直靠上 */
    gap: 20px; /* 卡片间的间距 */
    padding: 50px 0; /* 上下间距 */
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service {
    width: calc(20% - 20px); /* 每个卡片占 20%，间距为 20px */
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex-basis: calc(20% - 20px); /* 确保卡片宽度一致 */
}

.service:hover {
    transform: translateY(-10px);
}

.service-inner {
    position: relative;
    z-index: 10;
    padding: 30px;
    text-align: center;
}

.service-icon img {
    width: 80px;
    margin-bottom: 20px;
}

.service h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6; /* 改善段落的行高 */
    overflow: hidden; /* 防止文字溢出 */
    text-overflow: ellipsis; /* 如果内容过多显示省略号 */
    display: -webkit-box; /* 兼容部分老浏览器 */
    -webkit-line-clamp: 12; /* 限制最多显示 3 行 */
    -webkit-box-orient: vertical;
}

.service::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, #00ffcc, #ff00cc);
    transform: rotate(-45deg);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.service:hover::before {
    opacity: 0.5;
}

/* 案例展示区域 */
.portfolio {
    text-align: center;
    padding: 100px 0;
}
.portfolio h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    margin-bottom: 50px;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item:hover img {
    transform: scale(1.1);
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 15px;
}
.portfolio-overlay p {
    font-size: 16px;
    color: #ccc;
}
/* 关于我们区域 */
.about-section {
    padding: 50px 0;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.about-card {
    width: calc(33% - 20px);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex-basis: calc(33% - 20px);
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card-inner {
    position: relative;
    padding: 30px;
    text-align: center;
}

.about-icon img {
    width: 80px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.about-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 20; /* 根据需要调整行数 */
    -webkit-box-orient: vertical;
}

.about-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, #00ffcc, #ff00cc);
    transform: rotate(-45deg);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.about-card:hover::before {
    opacity: 0.5;
}


/* 联系我们区域 */
.contact {
    text-align: center;
    padding: 100px 0;
}
.contact h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    margin-bottom: 50px;
}
.contact form {
    max-width: 500px;
    margin: 0 auto;
}
.contact form input,
.contact form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
}
.contact form textarea {
    height: 150px;
}
.submit-btn {
    background-color: #00ffcc;
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #00ccb3;
}
/* 页脚 */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 30px 0;
}
footer ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}
footer ul li {
    margin: 0 20px;
}
footer ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer ul li a:hover {
    color: #00ffcc;
}
