/* ========== 丹阳富雅装饰 首页配色 ========== */
:root {
    --deco-dark: #2b2b2b;
    --deco-gray: #999999;
    --deco-light: #f9f9f9;
    --deco-gold: #c4a265;
    --deco-white: #ffffff;
    --deco-radius: 8px;
    --deco-shadow: 0 8px 24px rgba(0,0,0,0.06);
    --deco-transition: 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Banner ---- */
.hero-banner {
    position: relative;
    overflow: hidden;
}
.hero-banner__slide img {
    width: 100%;
    height: auto;
}
.hero-banner__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}
.hero-banner__btn {
    pointer-events: auto;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    transition: background var(--deco-transition);
}
.hero-banner__btn:hover {
    background: var(--deco-gold);
    color: #222;
}

/* ---- 搜索栏 ---- */
.search-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.search-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.search-bar__hot span {
    color: var(--deco-dark);
    font-weight: 600;
}
.search-bar__hot a {
    color: var(--deco-gray);
    margin-right: 10px;
    font-size: 14px;
    transition: color var(--deco-transition);
}
.search-bar__hot a:hover {
    color: var(--deco-gold);
}
.search-bar__form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
}
.search-bar__input {
    border: none;
    padding: 8px 18px;
    width: 220px;
    outline: none;
}
.search-bar__submit {
    background: var(--deco-dark);
    border: none;
    color: #fff;
    padding: 0 24px;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--deco-transition);
}
.search-bar__submit:hover {
    background: var(--deco-gold);
    color: #222;
}

/* ---- 通用板块 ---- */
.section {
    padding: 64px 0;
}
.section--light {
    background: var(--deco-light);
}
.section--dark {
    background: var(--deco-dark);
    color: #fff;
}
.section__title {
    text-align: center;
    margin-bottom: 40px;
}
.section__title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--deco-dark);
    display: inline-block;
    position: relative;
}
.section__title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--deco-gold);
    margin: 10px auto 0;
}
.section__title span {
    display: block;
    color: var(--deco-gray);
    font-size: 14px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section__title--light h2 { color: #fff; }
.section__title--light span { color: #ccc; }
.section__more {
    text-align: center;
    margin-top: 30px;
}
.section__more a {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--deco-dark);
    color: var(--deco-dark);
    font-weight: 600;
    transition: all var(--deco-transition);
}
.section__more a:hover {
    background: var(--deco-dark);
    color: #fff;
}

/* 业务领域网格 */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}
.filter-bar__item {
    padding: 8px 20px;
    border: 1px solid #ddd;
    color: var(--deco-dark);
    border-radius: 20px;
    font-size: 14px;
    transition: all var(--deco-transition);
}
.filter-bar__item--active,
.filter-bar__item:hover {
    background: var(--deco-dark);
    color: #fff;
    border-color: var(--deco-dark);
}
.grid-business {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.grid-business__item {
    background: #fff;
    border-radius: var(--deco-radius);
    overflow: hidden;
    box-shadow: var(--deco-shadow);
    transition: transform var(--deco-transition);
}
.grid-business__item:hover {
    transform: translateY(-5px);
}
.grid-business__img {
    height: 220px;
    overflow: hidden;
}
.grid-business__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.grid-business__name {
    text-align: center;
    padding: 14px;
    font-weight: 600;
    color: var(--deco-dark);
}

/* 成功案例网格 */
.grid-case {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-case__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--deco-radius);
    box-shadow: var(--deco-shadow);
}
.grid-case__item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s;
}
.grid-case__item:hover img {
    transform: scale(1.05);
}
.grid-case__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 服务流程 */
.process-step {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}
.process-step__img {
    flex: 1;
}
.process-step__img img {
    width: 100%;
    border-radius: var(--deco-radius);
}
.process-step__text {
    flex: 1;
}
.process-step__text h3 span {
    display: inline-block;
    width: 36px; height: 36px;
    background: var(--deco-gold);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    font-weight: 700;
}
.process-step__text--highlight {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: var(--deco-radius);
}

/* 关于我们 */
.about-us {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-us__text { flex: 1; }
.about-us__img { flex: 1; }
.btn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 28px;
    background: var(--deco-dark);
    color: #fff;
    font-weight: 600;
    transition: background var(--deco-transition);
}
.btn-more:hover {
    background: var(--deco-gold);
    color: #222;
}

/* 新闻中心 */
.news-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}
.news-block__featured {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: var(--deco-radius);
    box-shadow: var(--deco-shadow);
}
.news-block__featured img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}
.news-block__item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 16px;
    border-radius: var(--deco-radius);
    box-shadow: var(--deco-shadow);
    margin-bottom: 15px;
}
.news-block__date {
    text-align: center;
    min-width: 60px;
}
.news-block__date .day {
    font-size: 28px;
    font-weight: 700;
    color: var(--deco-gold);
    display: block;
}

/* 合作伙伴滚动 */
.partner-scroll {
    overflow: hidden;
}
.partner-scroll ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
}
.partner-scroll li img {
    height: 80px;
    object-fit: contain;
}

/* 响应式 */
@media (max-width: 768px) {
    .grid-business { grid-template-columns: repeat(2, 1fr); }
    .grid-case { grid-template-columns: 1fr; }
    .about-us { flex-direction: column; }
    .process-step { flex-direction: column; }
    .news-block { grid-template-columns: 1fr; }
    .search-bar__inner { flex-direction: column; align-items: flex-start; }
}