:root {
    --primary: #25b79f; /* 青绿色 */
    --primary-600: #1fa18b;
    --text: #112d4e; /* 正文 */
    --muted: #f5f7fa; /* 浅灰背景 */
    --cta: tomato; /* 橙色 CTA */
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

html,
body {
    height: 100%;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #fff;
    font-size: 16px;
    line-height: 1.8rem;
}
a{
    text-decoration: none;
}
/* 顶部导航 */
header {
    position: fixed;
    inset: .5rem 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: var(--text);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    width: 40rem;
    margin: auto;
    border-radius: 99px;
}
nav{
    display: flex;
    gap: 1.5rem;
}

nav a{
    display: block;
    color: var(--text);
    padding: 1rem;
}

nav a:hover {
    color: #fff;
    background: var(--primary);
}
.burger{
    display: none;
}
section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.container {
    max-width: 65rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.container .header{
    text-align: center;
}
.container .header h1 {
    font-size: 2.5rem;
    line-height: 2rem;
    margin: 2rem 0;
}

.container .header p {
    margin: 1.5rem 0;
    opacity: 0.95;
}

.grid-box-2{
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

.grid-box-4{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.grid-item{
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.grid-item h3 {
    color: var(--text);
    margin: 6px 0 8px 0;
}

.grid-item p {
    margin: 0;
    color: #555;
}
/* 首屏 */
.hero {
    color: #fff;
    background: var(--primary);
}
.hero-description{
    padding: 2rem;
}
.hero-description h1{
    margin: 2rem 0;
    font-size: 2rem;
    font-weight: 700;
}
.hero-description p{
    margin: 1.5rem 0;
}
.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card{
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    background: rgba(255,255,255,0.1);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid #ffffff33;
    color: #fff;
    padding: .8rem 2rem;
    border-radius: 999px;
    margin: 2rem 0;
    font-weight: 600;
}

.cta {
    display: block;
    max-width: 6rem;
    text-align: center;
    align-items: center;
    margin: 2rem 0;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: var(--cta);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

.cta:hover {
    font-weight: 800;
    opacity: .9;
}

.solutions {
    background: #fff;
    flex-direction: column;
}

.cases{
    color: #fff;
    background: #0e243a;
}

/* 关于 */
.about{
    background: #fff;
}

.about .panel {
    color: #fff;
    background: var(--primary);
    border-radius: .5rem;
    padding: 22px;
}

/* 联系我们 */
.contact{
    color: #fff;
    background: var(--primary);
}
.information{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2.5rem;
}
.contact-form{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 30rem;
}

input,
textarea {
    width: 100%;
    padding: .5rem;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    font: inherit;
    background: #fff;
    outline: none;
}
input:focus,
textarea:focus{
    border: 1px solid var(--primary);
}
textarea {
    min-height: 5rem;
    resize: vertical;
}
.submit {
    background: #fff;
    color: var(--text);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
}

.submit:hover{
    opacity: 0.8;
}

/* 页脚 */
footer {
    padding: .5rem 1.5rem;
    text-align: center;
    background: #0e243a;
    color: #cfe8ff;
}

footer a {
    color: #cfe8ff;
}


/* 响应式 */
@media (max-width: 768px) {
    header{
        display: flex;
        justify-content: left;
        position: relative;
        border-radius: 0;
        inset: 0;
        width: 100%;
        padding: 1rem;
    }
    nav{
        display: none;
        position: fixed;
        inset: 3rem 0 auto 1.5rem;
        background: #fff;
        max-width: 6rem;
    }
    nav.active{
        display: block;
    }
    .burger{
        width: 1.5rem;
        height: 1.5rem;
        display: block;
    }
    section{
        height: 100%;
    }
    .grid-box-2,
    .grid-box-4 {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}
@media (max-width: 640px) {
    header{
        display: flex;
        justify-content: left;
        position: relative;
        border-radius: 0;
        inset: 0;
        padding: 1rem;
        width: 100%;
    }
    nav{
        position: fixed;
        display: none;
        inset: 3rem 0 auto 1.5rem;
        max-width: 6rem;
    }
    nav.active{
        display: block;
    }
    .burger{
        width: 1.5rem;
        height: 1.5rem;
        display: block;
    }
    section{
        height: 100%;
    }
    .grid-box-2,
    .grid-box-4 {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* 无障碍：减少动画时尊重系统设置 */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
