html {
    scroll-behavior: smooth;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", "SimHei", system-ui, sans-serif;
    color: #777269;
    background-color: #F7F3EB;
    overflow-x: hidden;
    line-height:1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "KaiTi", "SimSun", system-ui, serif;
    color: #1A1A1A;
}
a{
    text-decoration:none;
    color:inherit;
}
ul{
    list-style:none;
}
/* 颜色别名类 */
.text-ink{color:#1A1A1A;}
.text-rice{color:#ffffff;}
.text-ochre{color:#C47D4B;}
.text-stone{color:#777269;}
.bg-ink{background-color:#1A1A1A;}
.bg-white{background:#ffffff;}
.bg-white-half{background:rgba(255,255,255,0.5);}
.bg-ochre-light{background:rgba(196,125,75,0.1);}

/* 容器 */
.container{
    width:94%;
    max-width:1200px;
    margin:0 auto;
}
/* 按钮 */
.btn-primary {
    background-color: #C47D4B;
    color: white;
    border-radius:999px;
    transition: all 0.3s ease;
    border: none;
    cursor:pointer;
}
.btn-primary:hover {
    background-color: #a86639;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(196, 125, 75, 0.25);
}
.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius:999px;
    transition: all 0.3s ease;
    cursor:pointer;
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.12);
}

/* 导航栏 */
#navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:56px;
    background:rgba(26,26,26,0.95);
    box-shadow:0 2px 8px #00000026;
    z-index:50;
    display:flex;
    align-items:center;
}
.nav-wrap{
    width:94%;
    max-width:1200px;
    margin:0 auto;
    height:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.nav-logo{
    display:flex;
    align-items:center;
    font-size:20px;
    font-weight:bold;
    color:#fff;
    font-family: "KaiTi",serif;
}
.nav-logo .dot{
    color:#C47D4B;
}
.desktop-menu{
    display:flex;
    gap:28px;
    align-items:center;
}
.nav-link{
    position: relative;
    transition: all 0.3s ease;
    line-height: 1;
    font-size:14px;
    color:#fff;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #C47D4B;
    transition: width 0.4s ease;
}
.nav-link:hover::after{
    width:100%;
}
.mobile-menu-btn{
    display:none;
    background:transparent;
    border:none;
    color:#fff;
    font-size:22px;
    cursor:pointer;
}
.mobile-menu{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#1A1A1A;
    box-shadow:0 4px 12px #0000002b;
    display:flex;
    flex-direction:column;
    align-items:center;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition: all 0.3s ease;
    pointer-events:none;
}
.mobile-menu.active{
    max-height:800px;
    opacity:1;
    pointer-events:auto;
}
.mobile-menu a{
    width:100%;
    text-align:center;
    padding:12px 0;
    color:#fff;
}

/* 首页横幅 */
.hero-section {
    /* 删除铺满全屏的100vh，高度由内部卡片内容自动撑开 */
    background: linear-gradient(160deg, rgba(26,26,26,0.92), rgba(26,26,26,0.75));
    background-size: cover;
    background-attachment: fixed;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    /* 改成上下内边距控制留白，不再强制整屏高度 */
    padding:60px 0;
}
.hero-inner{
    width:94%;
    max-width:1200px;
    margin:0 auto;
    text-align:center;
    color:#ffffff;
}
.hero-top-text{
    letter-spacing:3px;
    margin-bottom:16px;
    opacity:0.7;
    font-size:14px;
}
.hero-title{
    font-size:clamp(2.5rem,5vw,4.5rem);
    font-weight:bold;
    margin-bottom:24px;
    line-height:1.25;
    color:#fff;
}
.hero-title span{
    color:#C47D4B;
}
.hero-desc{
    font-size:clamp(1rem,2vw,1.25rem);
    max-width:700px;
    margin:0 auto 40px;
    opacity:0.9;
    font-weight:300;
}
.hero-buttons{
    display:flex;
    gap:24px;
    justify-content:center;
    flex-wrap:wrap;
}
.hero-buttons a{
    padding:12px 32px;
    font-weight:bold;
}

.scroll-indicator{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    color:#fff;
    font-size:28px;
    opacity:0.7;
    animation:bounce 2s infinite;
}
@keyframes bounce {
    0%,20%,50%,80%,100%{transform:translateY(0) translateX(-50%);}
    40%{transform:translateY(-18px) translateX(-50%);}
    60%{transform:translateY(-8px) translateX(-50%);}
}

/* 通用区块间距 */
.section-padding{
    padding:96px 0;
}
.section-head{
    text-align:center;
    margin-bottom:64px;
}
.section-tag{
    color:#C47D4B;
    letter-spacing:3px;
    font-size:14px;
    margin-bottom:12px;
}
.section-title{
    font-size:36px;
    font-weight:bold;
    margin-bottom:16px;
}
.section-desc{
    max-width:700px;
    margin:0 auto;
}

/* 服务卡片 */
.service-wrap{
    display:grid;
    grid-template-columns:1fr;
    gap:32px;
}
.service-card{
    background:#fff;
    padding:28px;
    border:1px solid rgba(0,0,0,0.06);
    border-radius:16px;
    transition:all 0.4s ease;
}
.service-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}
.service-icon{
    width:64px;
    height:64px;
    border-radius:50%;
    background:rgba(196,125,75,0.1);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:24px;
    color:#C47D4B;
    font-size:22px;
}
.service-card h3{
    font-size:20px;
    font-weight:bold;
    margin-bottom:12px;
}
.service-card p{
    margin-bottom:20px;
}
.service-link{
    color:#C47D4B;
    display:flex;
    align-items:center;
    gap:8px;
}

/* 作品区域 */
.filter-group{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    justify-content:center;
    margin-bottom:48px;
}
.filter-btn{
    padding:8px 24px;
    border-radius:999px;
    border:none;
    cursor:pointer;
    transition:0.3s;
}
.filter-btn.active{
    background:#1A1A1A;
    color:#fff;
}
.works-wrap{
    display:grid;
    grid-template-columns:1fr;
    gap:32px;
}
.project-card{
    position:relative;
    overflow:hidden;
    border-radius:16px;
    cursor:pointer;
}
.project-card img{
    width:100%;
    height:320px;
    object-fit:cover;
    transition:transform 0.6s ease;
}
.project-card:hover img{
    transform:scale(1.06);
}
.project-overlay{
    position:absolute;
    bottom:-100%;
    left:0;
    width:100%;
    height:100%;
    background: linear-gradient(to top, rgba(26,26,26,0.92), transparent);
    padding:40px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    transition:bottom 0.5s ease;
    color:#fff;
}
.project-card:hover .project-overlay{
    bottom:0;
}
.project-overlay h3{
    color:#fff;
    font-size:22px;
    font-weight:bold;
    margin-bottom:8px;
}
.project-overlay p{
    opacity:0.9;
    margin-bottom:16px;
}
.overlay-link{
    border:1px solid #fff;
    padding:8px 16px;
    border-radius:999px;
    display:inline-block;
}

/* 团队 */
.team-wrap{
    display:grid;
    grid-template-columns:1fr;
    gap:32px;
}
.team-item{
    position:relative;
    overflow:hidden;
    border-radius:16px;
}
.team-item img{
    width:100%;
    height:320px;
    object-fit:cover;
}
.team-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:rgba(26,26,26,0.85);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:0.4s ease;
    color:#fff;
}
.team-item:hover .team-overlay{
    opacity:1;
}
.team-info{
    background:#fff;
    padding:20px;
}

/* 数字计数器 */
.num-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}
.counter-box{
    text-align:center;
}
.counter-num{
    font-size:2.5rem;
    font-weight:bold;
    color:#1A1A1A;
}

/* 表单 */
.form-wrap{
    background:#ffffff;
    padding:32px;
    border-radius:16px;
    box-shadow:0 4px 16px #0000001c;
}
.form-row-two{
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
}
.form-item{
    margin-bottom:24px;
}
.form-item label{
    display:block;
    margin-bottom:8px;
    font-weight:500;
}
.form-input{
    width:100%;
    padding:13px 18px;
    border:1px solid #d3cdc2;
    border-radius:12px;
    background-color:#fffdf8;
    transition:0.3s;
}
.form-input:focus{
    outline:none;
    border-color:#C47D4B;
    box-shadow:0 0 0 3px rgba(196,125,75,0.15);
}
.submit-btn{
    width:100%;
    padding:16px;
    border-radius:8px;
    font-weight:bold;
    font-size:18px;
    border:none;
}

/* 页脚 */
footer{
    background:#1A1A1A;
    color:#fff;
    padding:56px 0;
}
.footer-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:40px;
}

/* 响应式大屏适配 */
@media(min-width:768px){
    .desktop-menu{
        display:flex;
    }
    .mobile-menu-btn{
        display:none;
    }
    .service-wrap{grid-template-columns:1fr 1fr;}
    .works-wrap{grid-template-columns:1fr 1fr;}
    .team-wrap{grid-template-columns:1fr 1fr;}
    .num-row{grid-template-columns:1fr 1fr 1fr 1fr;}
    .form-row-two{grid-template-columns:1fr 1fr;}
    .footer-grid{grid-template-columns:1fr 1fr;}
}
@media(min-width:1024px){
    .service-wrap{grid-template-columns:repeat(4,1fr);}
    .works-wrap{grid-template-columns:repeat(3,1fr);}
    .team-wrap{grid-template-columns:repeat(4,1fr);}
    .footer-grid{grid-template-columns:repeat(4,1fr);}
}
