/* ========================================================
   山东诚泉律师事务所 — 深蓝 + 金色，微信公众号模板风格
   ======================================================== */

/* 无外部字体依赖：使用系统自带字体，完全离线和版权安全 */
:root {
    --blue:       #003366;
    --blue-light: #004080;
    --blue-dark:  #001f3f;
    --gold:       #C5A059;
    --gold-light: #D4B06A;
    --gold-dark:  #A8863F;
    --white:      #ffffff;
    --off-white:  #f4f6f9;
    --light-bg:   #f8f9fc;
    --dark-bg:    #001a33;
    --text:       #333333;
    --text-mid:   #555555;
    --text-soft:  #888888;
    --border:     #e0e4ec;
    --shadow-sm:  0 2px 12px rgba(0, 51, 102, 0.08);
    --shadow-md:  0 4px 24px rgba(0, 51, 102, 0.14);
    --shadow-lg:  0 8px 40px rgba(0, 51, 102, 0.20);
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

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

h1, h2, h3 {
    font-family: "Noto Serif SC", "PingFang SC", "STFangsong", "SimSun", serif;
    font-weight: 700;
    line-height: 1.3;
}

/* ── wrap ── */
.wrap {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

/* ── 顶部栏 ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.topbar-logo:hover {
    text-decoration: none;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.topbar-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.logo-name {
    font-family: "Noto Serif SC", "PingFang SC", "STFangsong", serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--blue);
    letter-spacing: 0.04em;
}

.logo-en {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--text-soft);
    text-transform: uppercase;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
}

.topnav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.topnav a:hover {
    color: var(--blue);
    border-bottom-color: var(--gold);
    text-decoration: none;
}

.topbar-cta {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gold);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.topbar-cta:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── 英雄区 ── */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--blue);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 80% 50%, rgba(197,160,89,0.18) 0%, transparent 60%),
        linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 45%, var(--blue-light) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 2.5rem;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

@media (min-width: 860px) {
    .hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

.hero-text {
    color: var(--white);
}

.hero-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    opacity: 0.9;
}

.hero-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--white);
    line-height: 1.15;
}

.hero-title .gold {
    color: var(--gold);
    margin: 0 0.1em;
}

.hero-sub {
    margin: 0 0 2rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(197,160,89,0.4);
}

.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
}

/* Hero card */
.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(197,160,89,0.35);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    backdrop-filter: blur(8px);
    color: var(--white);
}

.hc-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.hc-main {
    margin: 0;
    font-family: "Noto Serif SC", "PingFang SC", "STFangsong", serif;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--white);
}

.hc-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 1.25rem 0;
    border-radius: 2px;
}

.hc-note {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}

/* ── Section 公用 ── */
.section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-light {
    background: var(--light-bg);
}

.section-dark {
    background: var(--blue);
    color: var(--white);
}

.section-dark .section-title,
.section-dark .section-label {
    color: var(--white);
}

.section-dark .section-label {
    border-color: rgba(197,160,89,0.5);
    color: var(--gold-light);
}

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin: 0 0 0.6rem;
}

.section-title {
    margin: 0 0 2.5rem;
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    color: var(--blue);
}

.section-title.light {
    color: var(--white);
}

/* ── 关于我们 ── */
.about-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 860px) {
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

.about-body p {
    margin: 0 0 1.1rem;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-mid);
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-body strong {
    color: var(--blue);
    font-weight: 600;
}

.about-aside {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.about-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.75rem;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.badge-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.badge-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-mid);
}

/* ── 核心理念 ── */
.phil-quote-wrap {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.phil-quote {
    margin: 0;
    padding: 0;
    border: none;
    font-family: "Noto Serif SC", "PingFang SC", "STFangsong", serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.65;
    color: var(--white);
    letter-spacing: 0.04em;
}

.phil-cards {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .phil-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.phil-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(197,160,89,0.3);
    border-radius: var(--radius-md);
}

.phil-num {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-family: "Noto Serif SC", "PingFang SC", "STFangsong", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(197,160,89,0.2);
    line-height: 1;
}

.phil-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.08rem;
    color: var(--gold-light);
}

.phil-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.78);
}

/* ── 业务领域 ── */
.svc-grid {
    display: grid;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.svc-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.svc-item:last-child {
    border-bottom: none;
}

.svc-item:hover {
    background: var(--off-white);
}

.svc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.svc-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
}

.svc-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* ── 我们的优势 ── */
.adv-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.adv-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.adv-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.adv-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.adv-icon svg {
    width: 100%;
    height: 100%;
}

.adv-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue);
}

.adv-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.highlight {
    color: var(--gold-dark);
    font-weight: 700;
}

/* ── 分割标语 ── */
.divider-slogan {
    padding: 2.5rem 0;
    background: var(--blue);
    text-align: center;
}

.divider-slogan p {
    margin: 0;
    font-family: "Noto Serif SC", "PingFang SC", "STFangsong", serif;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold-light);
}

/* ── 联系我们 ── */
.contact-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.contact-dl {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-row {
    display: grid;
    gap: 0.5rem 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 520px) {
    .contact-row {
        grid-template-columns: 5rem 1fr;
    }
}

.contact-row:first-child {
    border-top: 1px solid var(--border);
}

.contact-row dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
    padding-top: 0.15rem;
}

.contact-row dd {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.contact-row dd a {
    color: var(--blue);
}

.contact-row dd a:hover {
    color: var(--gold-dark);
}

.contact-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 200px;
}

.contact-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.contact-logo-name {
    margin: 0;
    font-family: "Noto Serif SC", "PingFang SC", "STFangsong", serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--blue);
}

.contact-logo-en {
    margin: 0;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* ── 页脚 ── */
.site-footer {
    background: var(--blue-dark);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    opacity: 0.85;
}

.footer-text {
    color: rgba(255,255,255,0.8);
}

.footer-name {
    margin: 0 0 0.25rem;
    font-family: "Noto Serif SC", "PingFang SC", "STFangsong", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.footer-slogan {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 0.1em;
}

.footer-copy {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

/* ── 响应式 ── */
@media (max-width: 720px) {
    .topnav {
        display: none;
    }

    .topbar-cta {
        margin-left: auto;
    }
}
