/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
}

/* 头部导航 */
header {
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    position: relative;
    padding: 5px 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #8a2be2; /* 紫色 */
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8a2be2;
}

.register-btn {
    background-color: #8a2be2;
    padding: 8px 20px;
    border-radius: 20px;
}

.register-btn:hover, .register-btn.active {
    background-color: #7621bc;
    color: #fff;
}
.register-btn:hover::after, .register-btn.active::after {
    display: none;
}

/* 主题部分 */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    width: 60%;
}

.hero-content h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.news-btn a {
    display: inline-block;
    background-color: #00ca72; /* 绿色 */
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.news-btn a:hover {
    background-color: #00a55e;
}

.hero-image {
    width: 40%;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* 服务部分 */
.services {
    padding: 40px 0 80px;
    background-color: #0a0a0a;
}

.service-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-item {
    width: 22%;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
}

.service-icon img {
    width: 50px;
    height: 50px;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.service-item p {
    color: #aaa;
    font-size: 14px;
}

/* 网站开发部分 */
.website-dev, .app-dev {
    padding: 60px 0;
}

.website-dev h2, .app-dev h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #8a2be2;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.card img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.card-btn {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
}

.card-btn a {
    display: inline-block;
    background-color: #8a2be2;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.card-btn a:hover {
    background-color: #7621bc;
    transform: scale(1.05);
}

/* 页脚 */
footer {
    background-color: #0a0a0a;
    padding: 50px 0;
    margin-top: 20px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
}

.footer-col {
    width: 22%;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #8a2be2;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .service-item {
        width: 48%;
        margin-bottom: 30px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 10px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-col {
        width: 48%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .service-item {
        width: 100%;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        width: 100%;
    }
} 