:root {
    /* 可爱风格配色 */
    --color-pink: #ffc0cb; /* 柔和粉 */
    --color-blue-light: #b0e0e6; /* 浅蓝色 */
    --color-purple-light: #e6e6fa; /* 浅紫色 */
    --color-mint: #bbf0d2; /* 薄荷绿 */
    --color-text-dark: #4b4b4b; /* 柔和深色文字 */
    --color-text-light: #6c757d;
    --bg-light: #fefefe; /* 极浅背景 */
    --border-radius-lg: 20px; /* 大圆角 */
    --border-radius-xl: 30px; /* 超大圆角 */
    --shadow-cute: 0 6px 15px rgba(255, 192, 203, 0.4); /* 粉色柔和阴影 */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --max-content-width: 1100px; /* 定义最大内容宽度 */
}

* { margin:0; padding:0; box-sizing: border-box; }
body { 
    font-family: 'Noto Sans SC', sans-serif; 
    color: var(--color-text-dark); 
    background: var(--bg-light); 
    line-height: 1.6; 
    font-weight: 400;
}
a { text-decoration: none; color: inherit; }
/* 核心修改：确保所有主内容区域最大宽度一致 */
.container { max-width: var(--max-content-width); margin: auto; padding: 0 20px; } 

/* --- Topbar / Navbar --- */
.topbar {
    position: sticky; top: 0; 
    background: var(--bg-light);
    box-shadow: none;
    z-index: 1000;
    height: 80px; 
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(240, 240, 240, 0.9);
}
.topbar .container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
}
.topbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-pink);
    flex-shrink: 0; 
}
.topbar .nav-links {
    flex-shrink: 1; 
    min-width: 0; 
}
.topbar .nav-links ul {
    list-style: none; display: flex; gap: 15px; 
}
.topbar .nav-links ul li a {
    padding: 8px 15px;
    font-weight: 500;
    color: var(--color-text-dark);
    border-radius: 15px;
    transition: var(--transition);
    white-space: nowrap;
}
.topbar .nav-links ul li a:hover {
    background: var(--color-pink);
    color: white;
}

main { padding-top: 20px; }

/* --- Hero / Banner --- */
.hero {
    background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-blue-light) 100%);
    padding: 80px 20px;
    margin-bottom: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* 核心修改：让 Hero 区域的样式与容器对齐 */
    max-width: var(--max-content-width); 
    margin-left: auto;
    margin-right: auto;
}
.hero .inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
/* ... 保持 Hero 内部样式不变 ... */

.hero .left {
    flex: 1;
    position: relative;
}
.hero .left .image-box {
    background: white;
    padding: 10px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-cute);
}
.hero .left img {
    width: 100%; max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}

.hero .right {
    flex: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}
.hero .right h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero .right h1 span { font-size: 1.5rem; color: var(--color-pink); }

.hero .services-list { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero .services-list li a {
    font-size: 0.9rem;
    padding: 8px 15px;
    background: var(--color-pink);
    border-radius: 20px;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: inline-block;
}
.hero .services-list li a:hover {
    background: #e6a8b1;
    transform: translateY(-2px);
}

/* --- Sections & Cards --- */
section {
    padding: 60px 0;
}
section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;       /* 调整标题和内容间距 */
    text-align: left;           /* 靠左对齐 */
    color: var(--color-text-dark);
    position: relative;         /* 为 ::after 定位做准备 */
    display: inline-block;      /* 让分割线宽度可控制 */
}

section h2 .decor {
    font-size: 1.5rem;
    color: var(--color-pink);
    margin-left: 10px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden; /* 保留裁剪效果 */
    border: 4px solid var(--color-pink); /* 用 border 替代 inset box-shadow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 外部阴影 */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-blue-light); /* hover 时改变 border 颜色 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block; /* 避免图片底部多余空隙 */
    border-radius: 0;
}

.card .content {
    padding: 20px;
    flex-grow: 1;
}
.card .content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-text-dark);
    font-weight: 700;
    border-bottom: 3px dashed var(--color-pink);
    padding-bottom: 5px;
    display: inline-block;
}
.card .content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}
.card .action-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: var(--color-mint);
    color: var(--color-text-dark);
    border-radius: 15px;
    font-weight: 500;
    transition: background 0.2s;
}
.card .action-link:hover {
    background: #9ee1b9;
}

/* --- Contact Section (柔和渐变) --- */
.contact-us-wrapper {
    padding: 40px 0;
    /* 确保 Contact Section 本身与 container 宽度一致 */
}
.contact-us-wrapper .contact-us {
    background: linear-gradient(90deg, var(--color-blue-light) 0%, var(--color-purple-light) 100%);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center; 
    padding: 40px 20px; /* 调整内部填充 */
}
.contact-us-wrapper .contact-us h2 {
    color: white;
    margin-bottom: 30px;
}
.contact-us-wrapper .contact-us form {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* 确保表单居中 */
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    gap: 20px;
    /* 核心修改：确保输入框宽度一致 */
    width: 100%;
}
.contact-us-wrapper .contact-us input, 
.contact-us-wrapper .contact-us select, 
.contact-us-wrapper .contact-us textarea {
    padding: 12px 15px;
    border: 2px solid var(--color-pink);
    border-radius: 12px;
    background: #fff;
    /* 确保输入框完全占用父容器的宽度 */
    width: 100%; 
    margin-bottom: 10px;
}
.contact-us-wrapper .contact-us input:focus, .contact-us-wrapper .contact-us select:focus, .contact-us-wrapper .contact-us textarea:focus {
    border-color: var(--color-blue-light);
}
.contact-us-wrapper .contact-us button {
    background-color: var(--color-pink);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    width: 100%; /* 确保按钮宽度一致 */
}
.contact-us-wrapper .contact-us button:hover {
    background-color: #e6a8b1;
}

/* --- Footer & Floating Button --- */
footer {
    background: var(--color-text-dark);
    color: white;
    text-align: center;
    padding: 30px 20px;
}
.footer-content {
    max-width: var(--max-content-width);
    margin: auto;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    background: var(--color-text-dark); /* 确保背景在容器内 */
    padding-top: 10px;
}

/* ... 浮动按钮样式不变 ... */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-pink);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}
.floating-contact svg {
    color: white;
    width: 24px;
    height: 24px;
    margin-right: 0 !important;
}
.floating-contact:hover {
    background: var(--color-blue-light);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 900px) {
    .hero .inner { flex-direction: column; text-align: center; }
    .hero .right { text-align: center; }
    .hero .services-list { justify-content: center; }
    .topbar .container { 
        flex-direction: column;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .topbar .nav-links { margin-top: 10px; }
    .topbar .nav-links ul { justify-content: center; flex-wrap: wrap; }
    main { padding-top: 100px; }
    .hero .left .image-box { margin: auto; max-width: 300px; }
}

.section-divider {
    border: none;                  /* 去掉默认边框 */
    height: 4px;                   /* 分割线厚度 */
    background: var(--color-pink); /* 分割线颜色，可改渐变 */
    border-radius: 2px;            /* 圆角效果 */
    margin-bottom: 16px;                /* 上下间距，可调 */
    margin-top: -10px; 
}

/* 如果想用渐变 */
.section-divider.gradient {
    background: linear-gradient(90deg, var(--color-pink), var(--color-blue-light));
}

img {
    width: 100%;
    border-radius: 16px;
}