/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
}

/* 头部样式 */
header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
    padding: 0;
}

header h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

nav {
    margin: 0;
    line-height: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* 英雄区域 */
#hero {
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=software%20development%20team%20working%20on%20code%20in%20modern%20office&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

/* 通用章节样式 */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #fff;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5rem;
}

/* 团队介绍 */
#about .content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* 技术展厅 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tech-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tech-item h3 {
    margin-bottom: 15px;
    color: #4CAF50;
}

.tech-item ul {
    list-style: none;
}

.tech-item ul li {
    margin-bottom: 10px;
}

.tech-item ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.tech-item ul li a:hover {
    color: #4CAF50;
}

/* 开发案例 */
.case-category {
    margin-bottom: 40px;
}

.case-category h3 {
    margin-bottom: 20px;
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.case-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.case-item h4 {
    margin-bottom: 10px;
    color: #333;
    cursor: pointer;
}

.case-detail {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: none;
}

.case-item.expanded .case-detail {
    display: block;
}

.case-detail h5 {
    margin-bottom: 10px;
    color: #4CAF50;
}

/* 定制开发 */
.custom-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.process-step {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.process-step h3 {
    margin-bottom: 10px;
    color: #4CAF50;
}



/* 商业合作 */
.cooperation-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cooperation-content h3 {
    margin-bottom: 10px;
    color: #4CAF50;
}

/* 联系方式 */
#contact {
    background-color: #333;
    color: #fff;
}

#contact h2 {
    color: #fff;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    margin-bottom: 10px;
}

.contact-content a {
    color: #4CAF50;
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

/* 页脚 */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

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

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }

    nav {
        float: none;
        text-align: center;
    }

    nav ul li {
        display: block;
        margin: 5px 0;
    }

    #hero h2 {
        font-size: 2rem;
    }

    .container {
        width: 90%;
    }

    section h2 {
        font-size: 2rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.8s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}