/* 明德律师事务所 - 企业站样式 */

:root {
    --ink-dark: #0a0f1a;
    --ink-navy: #0f1c2e;
    --ink-blue: #1a2d4a;
    --gold: #c9a962;
    --gold-light: #e8d5a3;
    --paper: #f7f3eb;
    --paper-warm: #ede6d6;
    --text-primary: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-light: rgba(255, 255, 255, 0.85);
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
    --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --nav-height: 72px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--paper);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

/* ========== 导航 ========== */
.lf-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.lf-nav.scrolled {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201, 169, 98, 0.15);
}

.lf-nav__inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lf-nav__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lf-nav__logo {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.lf-nav__name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
}

.lf-nav__name span {
    display: block;
    font-size: 10px;
    letter-spacing: 6px;
    color: var(--gold);
    font-weight: 400;
    margin-top: 2px;
}

.lf-nav__menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.lf-nav__menu a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 2px;
    position: relative;
    padding: 4px 0;
}

.lf-nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.lf-nav__menu a:hover,
.lf-nav__menu a.active {
    color: var(--gold);
}

.lf-nav__menu a:hover::after,
.lf-nav__menu a.active::after {
    width: 100%;
}

.lf-nav__cta {
    padding: 10px 28px;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    font-size: 13px;
    letter-spacing: 3px;
    transition: all var(--transition);
}

.lf-nav__cta:hover {
    background: var(--gold);
    color: var(--ink-dark) !important;
}

.lf-nav__cta::after {
    display: none !important;
}

.lf-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.lf-nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: var(--transition);
}

/* ========== 首屏 Canvas 水墨擦除 ========== */
.lf-ink-hero {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.lf-ink-hero__color {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.05);
    transition: transform 12s ease;
}

.lf-ink-hero.is-active .lf-ink-hero__color {
    transform: scale(1.01);
}

.lf-ink-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

/* ========== 通用图片悬停（卡片/团队） ========== */
.lf-media {
    position: relative;
    overflow: hidden;
}

.lf-media__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: saturate(0.88) brightness(0.92);
    transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.65s ease;
}

.lf-media__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.05) 0%, rgba(10, 15, 26, 0.35) 100%);
    transition: opacity 0.65s ease;
    pointer-events: none;
}

.lf-media__shade--card {
    background: linear-gradient(to top, rgba(10, 15, 26, 0.88) 0%, rgba(10, 15, 26, 0.15) 55%, rgba(10, 15, 26, 0.25) 100%);
}

.lf-media:hover .lf-media__img,
.lf-service-card:hover .lf-media__img {
    transform: scale(1);
    filter: saturate(1.05) brightness(1);
}

.lf-media:hover .lf-media__shade,
.lf-service-card:hover .lf-media__shade {
    opacity: 0.55;
}

/* ========== Hero 首屏 ========== */
.lf-hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: var(--ink-dark);
}

.lf-hero__content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px;
    pointer-events: none;
}

.lf-hero__tag {
    font-size: 13px;
    letter-spacing: 8px;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
}

.lf-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 8px;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

.lf-hero__title em {
    font-style: normal;
    color: var(--gold);
}

.lf-hero__subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 4px;
    margin-top: 28px;
    max-width: 520px;
    line-height: 2;
    opacity: 0;
    animation: fadeUp 1s 0.7s forwards;
}

.lf-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    letter-spacing: 4px;
    animation: float 2.5s ease-in-out infinite;
}

.lf-hero__scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.lf-hero__hint {
    position: absolute;
    bottom: 100px;
    right: 80px;
    z-index: 4;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 4px;
    writing-mode: vertical-rl;
    opacity: 0.7;
}

/* ========== 通用区块 ========== */
.lf-section {
    padding: 120px 40px;
    position: relative;
}

.lf-section--dark {
    background: var(--ink-navy);
    color: var(--text-light);
}

.lf-section--paper {
    background: var(--paper);
}

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

.lf-section__header {
    text-align: center;
    margin-bottom: 72px;
}

.lf-section__label {
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

.lf-section--dark .lf-section__label {
    color: var(--gold-light);
}

.lf-section__title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 600;
    letter-spacing: 6px;
    line-height: 1.4;
}

.lf-section__divider {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 24px auto 0;
}

.lf-section__desc {
    max-width: 640px;
    margin: 24px auto 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 2;
}

.lf-section--dark .lf-section__desc {
    color: rgba(255, 255, 255, 0.55);
}

/* ========== 关于我们 ========== */
.lf-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lf-about__visual {
    position: relative;
}

.lf-about__img-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.lf-about__frame {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--gold);
    z-index: 0;
    pointer-events: none;
}

.lf-about__text h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.lf-about__text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 2;
    text-align: justify;
}

.lf-about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.lf-stat__num {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.lf-stat__num small {
    font-size: 18px;
    font-weight: 400;
}

.lf-stat__label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 2px;
}

/* ========== 业务领域 ========== */
.lf-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.lf-service-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.lf-service-card__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lf-service-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 32px 28px;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.95) 0%, transparent 100%);
    pointer-events: none;
}

.lf-service-card__icon {
    font-size: 28px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.lf-service-card__title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.lf-service-card__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    letter-spacing: 1px;
}

/* ========== 律师团队 ========== */
.lf-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.lf-team-card {
    text-align: center;
    group: lf-team;
}

.lf-team-card__photo {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 24px;
}

.lf-team-card__name {
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 6px;
}

.lf-team-card__title {
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.lf-team-card__bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    padding: 0 8px;
}

.lf-section--dark .lf-team-card__bio {
    color: rgba(255, 255, 255, 0.45);
}

/* ========== 荣誉数据 ========== */
.lf-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.lf-number-item {
    padding: 40px 20px;
    border: 1px solid rgba(201, 169, 98, 0.15);
    position: relative;
}

.lf-number-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.lf-number-item__value {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.lf-number-item__value span {
    font-size: 24px;
}

.lf-number-item__label {
    margin-top: 16px;
    font-size: 14px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== 联系我们 ========== */
.lf-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.lf-contact__info h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 32px;
}

.lf-contact__item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.lf-contact__icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(201, 169, 98, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    flex-shrink: 0;
}

.lf-contact__item h4 {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 6px;
}

.lf-contact__item p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

.lf-contact__form {
    background: #fff;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(10, 15, 26, 0.06);
}

.lf-form__group {
    margin-bottom: 24px;
}

.lf-form__group label {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.lf-form__group input,
.lf-form__group textarea,
.lf-form__group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0dcd4;
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color var(--transition);
    outline: none;
}

.lf-form__group input:focus,
.lf-form__group textarea:focus,
.lf-form__group select:focus {
    border-color: var(--gold);
}

.lf-form__group textarea {
    resize: vertical;
    min-height: 120px;
}

.lf-form__submit {
    width: 100%;
    padding: 16px;
    background: var(--ink-navy);
    color: #fff;
    border: none;
    font-size: 14px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background var(--transition);
    font-family: var(--font-sans);
}

.lf-form__submit:hover {
    background: var(--gold);
    color: var(--ink-dark);
}

/* ========== 页脚 ========== */
.lf-footer {
    background: var(--ink-dark);
    color: rgba(255, 255, 255, 0.45);
    padding: 64px 40px 32px;
}

.lf-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lf-footer__brand .lf-nav__logo {
    margin-bottom: 20px;
}

.lf-footer__brand p {
    font-size: 13px;
    line-height: 2;
    max-width: 280px;
}

.lf-footer__col h4 {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 20px;
}

.lf-footer__col ul {
    list-style: none;
}

.lf-footer__col li {
    margin-bottom: 10px;
}

.lf-footer__col a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition);
}

.lf-footer__col a:hover {
    color: var(--gold);
}

.lf-footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.lf-footer__bottom a {
    color: rgba(255, 255, 255, 0.35);
}

.lf-footer__bottom a:hover {
    color: var(--gold);
}

/* ========== 水墨装饰 ========== */
.lf-ink-deco {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
    font-family: var(--font-serif);
    font-size: 200px;
    color: var(--ink-dark);
    writing-mode: vertical-rl;
    letter-spacing: 20px;
    user-select: none;
}

/* ========== 动画 ========== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.lf-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lf-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .lf-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .lf-team {
        grid-template-columns: repeat(2, 1fr);
    }

    .lf-numbers {
        grid-template-columns: repeat(2, 1fr);
    }

    .lf-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .lf-nav__menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 15, 26, 0.97);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
    }

    .lf-nav__menu.open {
        display: flex;
    }

    .lf-nav__toggle {
        display: flex;
    }

    .lf-hero__content {
        padding: 0 32px;
    }

    .lf-hero__hint {
        display: none;
    }

    .lf-section {
        padding: 80px 24px;
    }

    .lf-about,
    .lf-contact {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .lf-about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .lf-stat__num {
        font-size: 32px;
    }

    .lf-services {
        grid-template-columns: 1fr;
    }

    .lf-team {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .lf-contact__form {
        padding: 32px 24px;
    }

    .lf-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lf-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
