/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-divider {
    height: 4px;
    width: 70px;
    background: var(--primary-color);
    margin: 0 auto 1.5rem;
}

section {
    padding: 6rem 0;
}

/* 导航栏 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--dark-color);
}

/* 首页英雄区 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* 关于我们 */
.about {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* 产品服务 */
.products {
    background-color: #f9f9f9;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.product-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-card p {
    margin-bottom: 1.5rem;
    color: #555;
}

.product-showcase {
    background-color: var(--dark-color);
    padding: 4rem 0;
    color: #fff;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.showcase-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.showcase-text p {
    margin-bottom: 1.5rem;
}

.showcase-features {
    margin-bottom: 2rem;
}

.showcase-features li {
    margin-bottom: 0.8rem;
}

.showcase-features i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* 服务案例 */
.cases {
    background-color: #fff;
}

.cases-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    color: var(--dark-color);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.case-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-item:hover .case-img img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.case-item:hover .case-overlay {
    opacity: 1;
}

.case-info {
    text-align: center;
    padding: 2rem;
    color: #fff;
}

.case-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.case-info p {
    margin-bottom: 1.5rem;
}

.case-info .btn {
    border-color: #fff;
    color: #fff;
}

.case-info .btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* 服务案例 - 平铺式布局 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.case-card {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.case-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    z-index: 10;
}

.case-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-image {
    overflow: hidden;
    height: 200px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.case-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.case-tag {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.case-text {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.case-highlights {
    margin-bottom: 1.5rem;
}

.case-highlights li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.case-highlights i {
    color: var(--success-color);
    margin-right: 0.5rem;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.case-text .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* 联系我们 */
.contact {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0) 100%);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    background-color: #fff;
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 123, 255, 0.2);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form {
    background-color: #fff;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feedback-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feedback-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feedback-header i {
    font-size: 2rem;
}

.feedback-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.feedback-content {
    padding: 2rem;
    text-align: center;
}

.feedback-content p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
}

.feedback-content .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.feedback-features {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.feedback-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feedback-feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
    background-color: rgba(0, 123, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-feature span {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 0 0 25%;
    margin-bottom: 1.5rem;
}

.footer-links {
    flex: 0 0 20%;
    margin-bottom: 1.5rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-logo-container img {
    margin-right: 10px;
}

.footer-logo h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
}

.footer-bottom a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .about-content,
    .showcase-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .case-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-logo {
        flex: 0 0 100%;
    }
    
    .footer-links {
        flex: 0 0 30%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .contact-content,
    .contact-info,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .feedback-features {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .feedback-feature {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    
    .feedback-content {
        padding: 2rem 1.5rem;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
    
    .footer-links,
    .footer-social {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .case-items {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .feedback-feature {
        width: 100%;
    }
    
    .info-item {
        padding: 1.5rem;
    }
    
    .info-item i {
        font-size: 2rem;
    }
}

/* 微信二维码弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.modal-content img {
    max-width: 220px;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
} 