
/* Banner styles */
.banner {
    height: 100vh;
    background: url('../images/banner-bg.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease forwards;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 4px 0 0 4px;
    background: #fff;
    font-size: 16px;
}

.search-btn {
    padding: 15px 30px;
    background: #f0a500;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #e09600;
}

/* Service types styles */
.service-types {
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.service-item img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

.service-item .more {
    color: #f0a500;
    margin-top: 15px;
    display: inline-block;
}

/* Cases styles */
.cases {
    padding: 80px 0;
    background: #f8f8f8;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.case-item img {
    width: 100%;
    transition: transform 0.3s ease;
}

.case-item:hover img {
    transform: scale(1.05);
}

.case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

/* Designers styles */
.designers {
    padding: 80px 0;
}

.designer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.designer-item {
    text-align: center;
}

.designer-item img {
    width: 200px;
    height: 240px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

/* Process styles */
.process {
    padding: 80px 0;
    background: #f8f8f8;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    padding: 0 40px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 150px;
    right: 150px;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    max-width: 160px;
}

.step::after {
    content: '—';
    position: absolute;
    top: 40px;
    right: -35px;
    color: #ddd;
    font-size: 24px;
    font-weight: bold;
    z-index: 2;
}

.step:last-child::after {
    display: none;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: #f0a500;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-icon img {
    width: 30px;
    height: 40px;
    filter: none;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.step p {
    color: #666;
    font-size: 14px;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step {
        flex: 0 0 calc(33.333% - 40px);
    }
    
    .step::after {
        display: none;
    }
}

@media screen and (max-width: 992px) {
    .step {
        flex: 0 0 calc(50% - 40px);
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav ul li {
        width: 100%;
        text-align: left;
    }

    .nav ul li a {
        display: block;
        padding: 15px 20px;
        color: #333;
        border-bottom: 1px solid #eee;
        transition: all 0.3s ease;
    }

    .nav ul li a:hover,
    .nav ul li a.active {
        background: #f0a500;
        color: #fff;
    }

    .contact {
        display: none;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-btn {
        border-radius: 4px;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .designer-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex: 0 0 100%;
    }
}

/* 装修报价样式 */
.pricing {
    padding: 80px 0;
    background: #fff;
}

.pricing-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.calculator-form {
    padding: 30px;
    background: #f8f8f8;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: #f0a500;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.calculate-btn:hover {
    background: #e09600;
}

.price-result {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-item {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 4px;
}

.result-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #666;
}

.result-item p {
    font-size: 24px;
    color: #f0a500;
    font-weight: bold;
}

.result-item.total {
    grid-column: span 2;
    background: #f0a500;
}

.result-item.total h3,
.result-item.total p {
    color: #fff;
}

.pricing-note {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 新闻资讯样式 */
.news {
    padding: 80px 0;
    background: #f8f8f8;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}
.news-content p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-date {
    display: inline-block;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #f0a500;
    font-size: 14px;
    font-weight: 500;
}

.read-more:hover {
    color: #e09600;
}



/* 响应式调整 */
@media screen and (max-width: 992px) {
    .pricing-calculator {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .price-result {
        grid-template-columns: 1fr;
    }
    
    .result-item.total {
        grid-column: auto;
    }
}

@media screen and (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动端菜单样式 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 20px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .header .container {
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav ul li {
        width: 100%;
        text-align: left;
    }

    .nav ul li a {
        display: block;
        padding: 15px 20px;
        color: #333;
        border-bottom: 1px solid #eee;
        transition: all 0.3s ease;
    }

    .nav ul li a:hover,
    .nav ul li a.active {
        background: #f0a500;
        color: #fff;
    }

    .contact {
        display: none;
    }
}