/* ============================================================
   上海宏腾律师事务所 · 全局样式
   使用说明：所有页面共用此样式文件
   ============================================================ */

/* ----- 全局重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #2d2d2d;
    background: #f8f9fa;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- 顶部导航（所有页面共用） ----- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1a2a3a;
}

.logo .logo-icon {
    background: #1a2a3a;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.logo .logo-sub {
    font-size: 10px;
    font-weight: 300;
    color: #999;
    display: block;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav a {
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: #1a2a3a;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b8860b;
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: #1a2a3a;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: #1a2a3a;
    border-radius: 2px;
}

/* ----- 页面标题（每个页面的顶部标题区） ----- */
.page-header {
    margin-top: 66px;
    padding: 50px 0 36px;
    background: linear-gradient(135deg, #f0f2f5, #e6e9ef);
    text-align: center;
}

.page-header h1 {
    font-size: 34px;
    font-weight: 600;
    color: #1a2a3a;
}

.page-header h1 span {
    color: #b8860b;
}

.page-header p {
    color: #888;
    font-size: 16px;
    margin-top: 8px;
}

/* ----- 通用按钮 ----- */
.btn {
    display: inline-block;
    background: #1a2a3a;
    color: #fff;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #2c4056;
    transform: translateY(-2px);
}

.btn-gold {
    background: #b8860b;
}

.btn-gold:hover {
    background: #d4a017;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a2a3a;
    color: #1a2a3a;
}

.btn-outline:hover {
    background: #1a2a3a;
    color: #fff;
}

/* ----- 通用标题区 ----- */
.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a2a3a;
}

.section-title h2 span {
    color: #b8860b;
}

.section-title .line {
    width: 40px;
    height: 3px;
    background: #b8860b;
    margin: 10px auto 0;
}

/* ----- 底部（所有页面共用） ----- */
footer {
    background: #f0f1f3;
    color: #555;
    padding: 40px 0 20px;
    margin-top: 20px;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

footer h4 {
    color: #1a2a3a;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

footer p,
footer li {
    font-size: 13px;
    line-height: 2;
    color: #777;
}

footer ul {
    list-style: none;
}

footer ul a:hover {
    color: #1a2a3a;
}

footer .copyright {
    grid-column: 1 / -1;
    border-top: 1px solid #e0e0e0;
    padding-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #bbb;
}

footer .copyright a {
    color: #1a2a3a;
}

/* ----- 响应式（手机适配） ----- */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        gap: 14px;
    }
    nav.open {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .page-header h1 {
        font-size: 26px;
    }
    footer .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 15px;
    }
    .logo .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .page-header {
        padding: 36px 0 24px;
    }
    .page-header h1 {
        font-size: 22px;
    }
}