/* --- KAI STYLE style.css --- */
:root {
    /* 参考网站核心配色 */
    --primary-green: #34ba98; /* 核心蓝绿色 */
    --primary-green-dark: #2a967a;
    --text-black: #333333;
    --text-grey: #777777;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    
    /* 布局变量 */
    --max-width: 1170px; /* 标准商务网站宽度 */
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-grey);
    line-height: 1.8;
    background-color: var(--white);
    font-size: 15px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif; /* 参考网站用的是无衬线体 */
    color: var(--text-black);
    font-weight: 700;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 1. Top Bar (顶部黑条) --- */
.top-bar {
    background-color: #2c2c2c; /* 深色背景 */
    color: #ccc;
    font-size: 0.8rem;
    padding: 12px 0;
}
.top-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-contact-item i { color: #fff; }

/* --- 2. 导航栏 --- */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.2rem 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-black);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}
.logo span { color: var(--primary-green); } /* Logo 包含绿色元素 */

.nav-links a {
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase; /* 大写导航 */
    color: var(--text-black);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
}

/* --- 3. Hero Section (大图区域) --- */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}
.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}
.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}
.btn-green {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-green);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.btn-green:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
}

/* --- 4. 服务简介 (Services) --- */
.section { padding: 5rem 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 强制4列 */
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}
.service-icon-box {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.service-icon-box i {
    font-size: 3.5rem;
    color: var(--primary-green); /* 绿色图标 */
}
.service-item h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.service-item p { font-size: 0.95rem; line-height: 1.6; }

/* 更多服务按钮 */
.btn-outline-green {
    display: inline-block;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 3rem;
    font-size: 0.9rem;
}
.btn-outline-green:hover {
    background: var(--primary-green);
    color: #fff;
}

/* --- 5. Call to Action (CTA) --- */
.cta-section {
    background-color: var(--bg-light); /* 浅灰背景 */
    padding: 4rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cta-text h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #3b3b3b;
    margin-bottom: 0;
}
.cta-text h3 span {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 5px;
}

/* --- 6. 底部联系表单 (重要特征) --- */
.footer-form-section {
    background: #222; /* 深色背景 */
    padding: 4rem 0;
    color: #fff;
}
.form-container {
    background: #fff;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: -80px; /* 向上覆盖一点，增加层次感 */
    position: relative;
    z-index: 10;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
}
.form-group textarea { height: 120px; resize: vertical; }
.form-submit { text-align: center; }
.btn-submit {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}
.btn-submit:hover { background: #268a70; }

/* --- 7. Footer Info --- */
.site-footer {
    background: #222;
    color: #888;
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid #333;
}
.footer-contact p { margin-bottom: 0.5rem; }
.footer-contact a { color: var(--primary-green); font-weight: bold; }

/* 响应式调整 */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; } /* 移动端暂隐 */
    .top-bar { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-flex { flex-direction: column; text-align: center; gap: 20px; }
    .form-container { margin-top: 0; padding: 1.5rem; }
}
/* --- 追加到 style.css 末尾 --- */

/* 通用网格控制 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 奖项部分 (Awards) - 模仿参考网站 */
.award-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: var(--transition);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.award-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--primary-green);
}
.award-img-box {
    height: 100px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 模拟奖项徽章的颜色 */
.award-icon {
    font-size: 4rem;
    color: #d4af37; /* 金色 */
}
.award-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.award-desc {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
}

/* 律师团队 (Attorneys) */
.team-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.team-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%); /* 默认黑白，更显专业 */
    transition: var(--transition);
}
.team-card:hover .team-img {
    filter: grayscale(0%); /* 悬停变彩色 */
}
.team-info {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-green);
}
.team-name {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 5px;
}
.team-role {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* 响应式补充 */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
}
/* --- 追加到 style.css 末尾 (Services Page) --- */

/* 服务页面的双列布局 */
.services-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列 */
    gap: 40px; /* 卡片之间的间距 */
    margin-bottom: 4rem;
}

/* 详细服务卡片 */
.service-detail-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid #eaeaea; /* 很淡的边框 */
    border-left: 4px solid transparent; /* 左侧预留绿色条 */
    border-radius: 4px;
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-left-color: var(--primary-green); /* 悬停时左侧变绿 */
}

.service-detail-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-detail-card p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* 服务卡片里的链接 */
.read-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.read-more-link i {
    margin-left: 8px;
    transition: margin-left 0.3s;
    color: var(--primary-green);
}
.service-detail-card:hover .read-more-link i {
    margin-left: 12px; /* 箭头移动动画 */
}

/* 响应式：手机变为单列 */
@media (max-width: 768px) {
    .services-page-grid {
        grid-template-columns: 1fr;
    }
}
/* --- 追加到 style.css 末尾 (Insights / Blog Page) --- */

/* 页面布局：左内容 + 右侧边栏 */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2:1 比例 */
    gap: 50px;
    margin-bottom: 4rem;
}

/* --- 左侧：文章列表 --- */
.blog-card {
    display: flex; /* 左图右文 */
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.blog-card:last-child { border-bottom: none; }

.blog-img-link {
    flex-shrink: 0;
    width: 35%; /* 图片占宽 */
    display: block;
    overflow: hidden;
    border-radius: 4px;
}
.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.blog-card:hover .blog-img {
    transform: scale(1.05); /* 图片轻微放大 */
}

.blog-content {
    flex-grow: 1;
}

/* 文章元数据 (日期/分类) */
.blog-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.blog-category {
    color: var(--primary-green);
    margin-left: 10px;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}
.blog-title a:hover {
    color: var(--primary-green);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制显示3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}
.read-more-btn:hover {
    border-bottom-color: var(--primary-green);
}

/* --- 右侧：侧边栏 (Sidebar) --- */
.sidebar-widget {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.widget-title {
    font-size: 1.1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
}
.widget-title::after { /* 绿色短横线装饰 */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-green);
}

/* 搜索框 */
.search-form { display: flex; }
.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-right: none;
    outline: none;
}
.search-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* 标签云 (Tags) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
    font-size: 0.85rem;
    padding: 5px 10px;
    background: #f4f4f4;
    color: #555;
    border-radius: 3px;
    transition: var(--transition);
}
.tag-link:hover {
    background: var(--primary-green);
    color: #fff;
}

/* 最新文章列表 (Recent Posts) */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}
.recent-post-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}
.recent-post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}
.recent-post-info h4 a:hover { color: var(--primary-green); }

/* 响应式：手机变为单列 */
@media (max-width: 992px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-card { flex-direction: column; }
    .blog-img-link { width: 100%; }
    .blog-img { height: 250px; }
}
/* --- 追加到 style.css 末尾 (Contact Page) --- */

/* 1. 全宽地图区域 */
.contact-map-section {
    width: 100%;
    height: 450px;
    background-color: #eee;
    position: relative;
    /* 地图上方的阴影遮罩，让过渡更自然 */
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.05);
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    /* 让地图呈现黑白灰风格，看起来更高级、不杂乱 */
    filter: grayscale(100%) contrast(1.1); 
}

/* 2. 联系信息卡片网格 (3列) */
.contact-info-section {
    position: relative;
    margin-top: -80px; /* 让卡片向上浮动，盖住一点地图，增加层次感 */
    z-index: 10;
    margin-bottom: 4rem;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-box {
    background: #fff;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* 强阴影，产生悬浮感 */
    transition: var(--transition);
    border-bottom: 4px solid transparent; /* 底部预留线条 */
}

.contact-box:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-green); /* 悬停底部变绿 */
}

.contact-box-icon {
    width: 70px;
    height: 70px;
    background: rgba(52, 186, 152, 0.1); /* 浅绿色背景圆圈 */
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: var(--transition);
}

.contact-box:hover .contact-box-icon {
    background: var(--primary-green);
    color: #fff;
}

.contact-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-box p, .contact-box a {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    display: block;
}

/* 响应式 */
@media (max-width: 992px) {
    .contact-details-grid { grid-template-columns: 1fr; }
    .contact-info-section { margin-top: 30px; } /* 移动端取消上浮 */
}
/* --- 追加到 style.css (Single Article Styles) --- */

/* 文章详情页容器 */
.article-container {
    background: #fff;
    padding-bottom: 2rem;
}

/* 文章头部大图 */
.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* 文章正文排版 */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-green);
    background: #f9f9f9;
    padding: 1.5rem;
    font-style: italic;
    color: #555;
    margin: 2rem 0;
}

/* 返回按钮 */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
}
.back-link:hover {
    color: var(--primary-green);
}