/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 图标字体 */
.icon-task:before {
    content: "📝";
    font-size: 2em;
}

.icon-paper:before {
    content: "📄";
    font-size: 2em;
}

.icon-project:before {
    content: "💻";
    font-size: 2em;
}

.icon-support:before {
    content: "🎤";
    font-size: 2em;
}

.icon-quality:before {
    content: "🏆";
    font-size: 2em;
}

.icon-time:before {
    content: "⏱️";
    font-size: 2em;
}

.icon-original:before {
    content: "📃";
    font-size: 2em;
}

.icon-service:before {
    content: "👨‍💼";
    font-size: 2em;
}

.icon-wechat:before {
    content: "📱";
    font-size: 2em;
}

.icon-qq:before {
    content: "💬";
    font-size: 2em;
}

.icon-email:before {
    content: "📧";
    font-size: 2em;
}

.icon-phone:before {
    content: "📞";
    font-size: 2em;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

/* PC端布局 - 默认状态 */
.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 50px;
}

nav {
    flex: 1 1 auto;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #1e88e5;
}

/* 毕设源码库高亮样式 */
nav ul li a.highlight {
    color: #e53935;
    font-weight: bold;
    position: relative;
}

nav ul li a.highlight::before {
    content: "";
}

nav ul li a.highlight:hover {
    color: #c62828;
}

nav ul li a.highlight::after {
    background-color: #e53935;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e88e5;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.consultation {
    flex: 0 0 auto;
}

.consult-btn {
    background-color: #1e88e5;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.consult-btn:hover {
    background-color: #1565c0;
    color: #fff;
}

/* Banner样式 */
.banner {
    /* background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/banner.jpg') no-repeat center center; */
    background: url(../images/banner.jpg) no-repeat center;
    background-size: cover;
    height: 500px;
    display: flex;
    align-items: center;
    margin-top: 80px;
    color: #fff;
    text-align: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-btn {
    background-color: #1e88e5;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    font-size: 1.1em;
}

.cta-btn:hover {
    background-color: #1565c0;
    color: #fff;
}

/* 页面横幅 */
.page-banner {
    /* background: linear-gradient(rgba(0,0,0.6,0.6), rgba(0,0,0,0.6)), url('../images/banner.jpg') no-repeat center center; */
    background: url(../images/banner.jpg) no-repeat center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 100px 0 50px;
    margin-top: 80px;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 1.2em;
}

/* 服务区域样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #1e88e5;
}

.section-title p {
    color: #777;
    font-size: 1.1em;
}

section {
    padding: 80px 0;
    background-color: #fff;
}

section:nth-child(even) {
    background-color: #f5f5f5;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item h3 {
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #777;
}

.service-more {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    border: 2px solid #1e88e5;
    color: #1e88e5;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.more-btn:hover {
    background-color: #1e88e5;
    color: #fff;
}

/* 服务详情页样式 */
.service-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-img {
    flex: 0 0 100%;
    margin-bottom: 30px;
}

.service-text {
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .service-img {
        flex: 0 0 45%;
        margin-bottom: 0;
    }
    
    .service-text {
        flex: 0 0 50%;
        padding: 0 20px;
    }
    
    .service-content > div:first-child {
        margin-right: auto;
    }
    
    .service-content.reverse > div:first-child {
        margin-left: auto;
        margin-right: 0;
    }
}

.service-text h3 {
    color: #1e88e5;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.service-text ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.service-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e88e5;
}

.service-consult {
    margin-top: 20px;
}

/* 优势区域样式 */
.advantage-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.advantage-item {
    padding: 30px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.advantage-item h3 {
    color: #1e88e5;
    margin-bottom: 15px;
}

.advantage-item p {
    color: #777;
}

/* 服务保障区域 */
.guarantee-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.guarantee-item {
    padding: 30px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.guarantee-icon {
    margin-bottom: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-item h3 {
    color: #1e88e5;
    margin-bottom: 15px;
}

.guarantee-item p {
    color: #777;
}

/* 关于我们页面样式 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-img {
    flex: 0 0 100%;
    margin-bottom: 30px;
}

.about-text {
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .about-img {
        flex: 0 0 40%;
        margin-bottom: 0;
    }
    
    .about-text {
        flex: 0 0 55%;
        margin-left: 5%;
    }
}

.about-text h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.about-text p {
    margin-bottom: 15px;
    color: #666;
}

/* 团队样式 */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.team-member {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background-color: #eee;
}

.team-member h3 {
    margin-bottom: 15px;
    color: #333;
}

.team-member p {
    color: #777;
}

/* 联系我们页面样式 */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-bottom: 50px;
}

.contact-method {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    margin-bottom: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method h3 {
    margin-bottom: 15px;
    color: #333;
}

.contact-method p {
    margin-bottom: 10px;
    color: #777;
}

.qr-code {
    max-width: 150px;
    margin: 20px auto;
}

.contact-note {
    font-size: 0.9em;
    color: #999;
    margin-top: 15px;
}

/* 留言表单 */
.message-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e88e5;
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #1e88e5;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background-color: #1565c0;
}

/* FAQ样式 */
.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #1e88e5;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 300px;
}

/* 成功案例页面样式 */
.case-filter {
    margin-bottom: 40px;
}

.filter-options ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-options ul li {
    margin: 0 10px 10px;
}

.filter-options ul li a {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    color: #666;
}

.filter-options ul li a:hover,
.filter-options ul li a.active {
    background-color: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.cases {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 30px;
}

@media (min-width: 992px) {
    .cases {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-item {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-img {
    height: 200px;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-info {
    padding: 20px;
    flex: 1;
}

.case-info h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.case-category {
    color: #1e88e5;
    margin-bottom: 15px;
    font-weight: 500;
}

.case-desc {
    margin-bottom: 20px;
}

.case-feedback {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.case-feedback h4 {
    margin-bottom: 10px;
    color: #555;
}

.rating {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* 评价区域 */
.testimonial-items {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 30px;
}

@media (min-width: 768px) {
    .testimonial-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonial-quote {
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3em;
    line-height: 1;
    color: #1e88e5;
    opacity: 0.3;
}

.testimonial-quote p {
    color: #666;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.author-info p {
    color: #777;
    font-size: 0.9em;
}

/* 号召行动区域 */
.cta {
    /* background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/banner.jpg') no-repeat center center; */
    background: url(../images/banner.jpg) no-repeat center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 30px;
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .footer-logo {
        flex: 0 0 30%;
    }
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .footer-links {
        flex: 0 0 65%;
    }
}

.link-group {
    flex: 1;
    margin-bottom: 30px;
    min-width: 120px;
}

.link-group h3 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.link-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #1e88e5;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #bbb;
}

.link-group ul li a:hover {
    color: #1e88e5;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #bbb;
}

/* 咨询弹窗 */
.consult-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-btn:hover {
    color: #333;
}

.qrcode {
    margin: 20px 0;
}

.qrcode img {
    max-width: 200px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 2em;
    }
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    margin-right: 15px;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #1e88e5;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

@media (max-width: 767px) {
    header .container {
        flex-wrap: wrap;
    }
    
    /* 移动端布局顺序 */
    .menu-toggle {
        display: block;
        order: 1;
    }
    
    .logo {
        order: 2;
        margin: 0 auto;
    }
    
    .consultation {
        order: 3;
    }
    
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin: 0;
        order: 4;
    }
    
    nav.active {
        max-height: 300px;
        margin-top: 15px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .consult-btn {
        padding: 8px 15px;
        width: auto;
    }
    
    .banner {
        height: 350px;
        margin-top: 80px;
    }
    
    .banner-content h1 {
        font-size: 1.8em;
    }
    
    .page-banner {
        padding: 150px 0 50px;
    }
    
    .service-items, .advantage-items {
        grid-template-columns: 1fr;
    }
} 