/*
Theme Name: Leizan AI Research Center
Theme URI: https://leizan.cn
Author: Leizan
Author URI: https://leizan.cn
Description: 雷赞 AI 前沿技术研究中心 WordPress 主题
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leizan
*/

:root {
    --bg: #f7f3ea;
    --bg-strong: #efe4d4;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #fffdf8;
    --surface-dark: #102023;
    --text: #182426;
    --muted: #59666a;
    --line: rgba(24, 36, 38, 0.12);
    --brand: #0f766e;
    --brand-deep: #0b4f4a;
    --brand-soft: #d8eee8;
    --accent: #b85c38;
    --accent-soft: #f2d8cc;
    --shadow: 0 24px 60px rgba(19, 28, 30, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --wrap: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(184, 92, 56, 0.16), transparent 24%),
        linear-gradient(180deg, #fbf7ef 0%, #f5efe3 58%, #efe6d9 100%);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.wrap {
    width: min(calc(100% - 40px), var(--wrap));
    margin: 0 auto;
}

.narrow-wrap {
    width: min(100%, 760px);
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px 0;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(251, 247, 239, 0.84);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(20, 29, 31, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
    flex: 0 0 auto;
}

.brand-mark__core {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
}

.brand-tagline {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu-list,
.footer-menu,
.contact-list,
.signal-list,
.side-list,
.bullet-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.menu-list a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.menu-list a:hover,
.menu-list .current-menu-item > a,
.menu-list .current_page_item > a {
    color: var(--text);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-cta,
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: 0 16px 26px rgba(15, 118, 110, 0.24);
}

.button-secondary {
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(15, 118, 110, 0.18);
}

.button-ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
}

.header-cta:hover,
.button:hover {
    transform: translateY(-1px);
}

.button-block {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero,
.page-hero {
    position: relative;
    padding: 42px 0 32px;
}

.hero-grid,
.detail-layout,
.footer-grid {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    align-items: stretch;
}

.hero-copy,
.hero-panel__inner,
.feature-card,
.info-card,
.cta-panel,
.side-card,
.empty-state,
.prose-block,
.page-hero--compact .wrap,
.page-hero--detail .wrap {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-copy {
    border-radius: var(--radius-xl);
    padding: 58px 56px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 4vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-subtitle {
    margin: 20px 0 0;
    color: var(--brand-deep);
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-description {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.section-kicker,
.footer-eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-panel__inner {
    height: 100%;
    border-radius: var(--radius-xl);
    padding: 34px 30px;
    background:
        linear-gradient(180deg, rgba(16, 32, 35, 0.88) 0%, rgba(11, 79, 74, 0.92) 100%);
    color: #ecf7f5;
}

.hero-panel__label {
    margin: 0 0 18px;
    color: rgba(236, 247, 245, 0.7);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.signal-list {
    display: grid;
    gap: 12px;
}

.signal-list li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.metrics-grid article {
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.metrics-grid strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.metrics-grid span {
    display: block;
    margin-top: 8px;
    color: rgba(236, 247, 245, 0.82);
    font-size: 0.92rem;
}

.content-section {
    padding: 22px 0 28px;
}

.content-section--tinted {
    padding-top: 34px;
}

.content-section--dark {
    color: #ecf7f5;
}

.content-section--dark .wrap {
    padding: 34px;
    border-radius: calc(var(--radius-xl) + 4px);
    background: linear-gradient(135deg, #16373a 0%, #0d5750 100%);
    box-shadow: var(--shadow);
}

.content-section--cta {
    padding-bottom: 60px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2,
.cta-panel h2,
.footer-column h3,
.side-card h3,
.empty-state h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-heading p {
    margin: 0;
    max-width: 420px;
    color: var(--muted);
}

.section-heading--light p,
.section-heading--light h2 {
    color: #ecf7f5;
}

.feature-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
}

.training-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
}

.about-stack {
    display: grid;
    gap: 22px;
}

.feature-card {
    border-radius: var(--radius-lg);
    padding: 28px;
}

.feature-index {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.feature-card h3,
.info-card h2,
.info-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.feature-card p,
.info-card p,
.footer-column p,
.empty-state p {
    margin: 16px 0 0;
    color: var(--muted);
}

.info-card {
    border-radius: var(--radius-lg);
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.profile-panel,
.contact-panel {
    border-radius: var(--radius-xl);
    padding: 34px;
    background: linear-gradient(180deg, rgba(16, 32, 35, 0.96) 0%, rgba(11, 79, 74, 0.92) 100%);
    color: #ecf7f5;
    box-shadow: var(--shadow);
}

.profile-panel p,
.contact-panel p {
    color: rgba(236, 247, 245, 0.78);
}

.profile-badge {
    display: inline-flex;
    min-height: 32px;
    padding: 0 12px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ecf7f5;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-panel h2,
.contact-panel h2,
.timeline-item h3,
.partner-card h3 {
    margin: 14px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.1;
}

.profile-role {
    margin: 10px 0 0;
    color: rgba(236, 247, 245, 0.64);
    font-size: 0.95rem;
    font-weight: 600;
}

.training-overview,
.training-highlight {
    border-radius: var(--radius-xl);
    padding: 34px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.training-highlight {
    background: linear-gradient(180deg, rgba(16, 32, 35, 0.96) 0%, rgba(11, 79, 74, 0.92) 100%);
    color: #ecf7f5;
}

.training-highlight p,
.training-highlight li,
.training-highlight h2,
.training-highlight h3 {
    color: inherit;
}

.training-highlight p {
    color: rgba(236, 247, 245, 0.78);
}

.info-card--dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ecf7f5;
    box-shadow: none;
}

.info-card--dark p {
    color: rgba(236, 247, 245, 0.76);
}

.info-card--accent::after {
    content: "";
    position: absolute;
    inset: auto 24px 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(184, 92, 56, 0.12) 100%);
}

.info-card__meta,
.tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.info-card__meta {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.85rem;
}

.info-card__meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
}

.tag-pill {
    color: var(--brand-deep);
    font-size: 0.83rem;
}

.content-section--dark .tag-pill,
.content-section--dark .info-card__meta span {
    background: rgba(255, 255, 255, 0.12);
    color: #ecf7f5;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--brand-deep);
    font-weight: 600;
}

.text-link--light {
    color: #ecf7f5;
}

.section-heading--compact {
    margin-bottom: 18px;
}

.cta-panel {
    border-radius: calc(var(--radius-xl) + 4px);
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-hero--compact .wrap,
.page-hero--detail .wrap {
    border-radius: var(--radius-xl);
    padding: 42px;
}

.page-hero--compact p,
.page-hero--detail p {
    margin: 16px 0 0;
    max-width: 780px;
    color: var(--muted);
}

.prose-block {
    border-radius: var(--radius-lg);
    padding: 34px;
}

.prose-block > :first-child {
    margin-top: 0;
}

.prose-block > :last-child {
    margin-bottom: 0;
}

.prose-block h2,
.prose-block h3,
.prose-block h4 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.18;
}

.prose-block ul,
.prose-block ol {
    padding-left: 1.4rem;
}

.detail-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
    align-items: start;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.side-card {
    border-radius: var(--radius-lg);
    padding: 24px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.training-ladder {
    display: grid;
    gap: 18px;
}

.ladder-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.ladder-item:first-child {
    border-top: 0;
    padding-top: 4px;
}

.ladder-item span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 700;
}

.ladder-item h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.12;
}

.ladder-item p {
    margin: 10px 0 0;
    color: var(--muted);
}

.timeline-item,
.partner-card,
.contact-cards li,
.mini-timeline > div {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    border-radius: var(--radius-lg);
    padding: 24px;
}

.timeline-year {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 700;
}

.timeline-item p,
.partner-card p,
.mini-timeline p {
    margin: 12px 0 0;
    color: var(--muted);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.partner-card {
    border-radius: var(--radius-lg);
    padding: 26px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.partner-card p,
.partner-card h3 {
    color: #ecf7f5;
}

.side-list,
.contact-list {
    display: grid;
    gap: 14px;
}

.side-list li,
.contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

.side-list span,
.contact-list span {
    color: var(--muted);
    font-size: 0.92rem;
}

.bullet-list {
    display: grid;
    gap: 10px;
}

.bullet-list li {
    position: relative;
    padding-left: 18px;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

.contact-cards,
.mini-timeline {
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-cards li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.contact-cards span {
    color: rgba(236, 247, 245, 0.7);
}

.contact-cards a,
.contact-cards strong {
    color: #ecf7f5;
}

.contact-panel--accent {
    background: linear-gradient(180deg, rgba(184, 92, 56, 0.94) 0%, rgba(124, 57, 33, 0.95) 100%);
}

.mini-timeline > div {
    border-radius: var(--radius-md);
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.mini-timeline strong {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    padding: 12px 0 30px;
}

.site-footer {
    padding: 42px 0 30px;
}

.footer-column h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.08;
}

.footer-menu {
    display: grid;
    gap: 10px;
}

.footer-menu a {
    color: var(--muted);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.empty-state {
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
}

.pagination-block {
    margin-top: 28px;
}

.pagination-block .nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-block .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(24, 36, 38, 0.08);
}

.pagination-block .current {
    background: var(--brand);
    color: #fff;
}

@media (max-width: 1120px) {
    .hero-grid,
    .feature-grid,
    .card-grid,
    .about-grid,
    .contact-grid,
    .training-hero-grid,
    .detail-layout,
    .footer-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel,
    .section-heading,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-block;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px;
        border-radius: 22px;
        background: rgba(255, 253, 248, 0.96);
        box-shadow: var(--shadow);
        border: 1px solid rgba(24, 36, 38, 0.08);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .menu-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hero-copy,
    .hero-panel__inner,
    .cta-panel,
    .page-hero--compact .wrap,
    .page-hero--detail .wrap,
    .prose-block,
    .side-card,
    .empty-state {
        padding: 28px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(calc(100% - 24px), var(--wrap));
    }

    .site-header {
        padding: 12px 0;
    }

    .brand-name {
        font-size: 0.98rem;
    }

    .brand-tagline {
        font-size: 0.75rem;
    }

    .hero,
    .page-hero,
    .content-section {
        padding-top: 16px;
    }

    .hero-actions,
    .tag-row {
        width: 100%;
    }

    .hero-actions .button,
    .hero-actions .header-cta {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .info-card,
    .feature-card {
        padding: 22px;
    }

    .timeline-item,
    .ladder-item,
    .contact-cards li {
        grid-template-columns: 1fr;
    }

    .side-list li,
    .contact-list li,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
