:root {
    --primary: #0F172A;
    --accent: #E11D48;
    --accent-hover: #BE123C;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

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

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    z-index: 2000;
}

.skip-link:focus {
    left: 12px;
}

.nav {
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    padding: 0 6%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav.scrolled {
    height: 70px;
    background-color: rgba(15, 23, 42, 0.95);
}

.logo {
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.logo-dot {
    color: var(--accent);
}

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

.nav-menu a,
.nav-action-btn {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-action-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.nav-menu a::after,
.nav-action-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.nav-menu a:hover,
.nav-action-btn:hover {
    color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after,
.nav-action-btn:hover::after,
.nav-action-btn.is-active::after {
    transform: scaleX(1);
}

.nav-menu a.is-active,
.nav-action-btn.is-active {
    color: var(--white);
}

.phone-btn {
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: 100px 6% 60px;
    overflow: hidden;
    background: var(--primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
    opacity: 0.8;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    background: rgba(225, 29, 72, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--white);
    font-weight: 900;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    padding: 16px 30px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 16px 30px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.section {
    padding: 18px 6% 36px;
    scroll-margin-top: 90px;
}

/* 紧跟在 hero 后面的 section，顶部再压一次 */
.hero + .section {
    padding-top: 16px;
}

.section-header {
    margin-bottom: 28px;
    max-width: 600px;
    position: relative;
}

.section-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    line-height: 1;
}

.section-index {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--accent);
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 4px;
    line-height: 1;
}

.section-header-meta .section-subtitle {
    margin: 0;
    line-height: 1;
    font-size: 13px;
}

.lead {
    color: var(--text-muted);
    margin-top: 8px;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.25;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    transform: translateY(-5px);
}

.service-card i {
    color: var(--accent);
    margin-bottom: 18px;
    display: block;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 700;
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
}

.card-span-7 {
    grid-column: span 7;
}

.card-span-5 {
    grid-column: span 5;
}

.card-span-4 {
    grid-column: span 4;
}

.card-span-6 {
    grid-column: span 6;
}

.service-card ul {
    margin-top: 14px;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 15px;
}

.service-card li {
    margin: 0 0 8px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.note-card {
    grid-column: span 6;
    background: var(--bg-light);
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 28px;
}

.note-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 800;
}

.note-card ul {
    margin-top: 10px;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 15px;
}

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

.faq-list {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

details.faq-item {
    grid-column: span 6;
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 18px 16px;
}

details.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: var(--primary);
    font-size: 15px;
    line-height: 1.5;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 15px;
}

.about {
    background-color: var(--bg-light);
    display: flex;
    align-items: flex-start;
    gap: 44px;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 维保场景轮播 */
.about-carousel {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
}

.about-carousel-track {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
}

.about-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.about-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.about-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 100px;
    z-index: 2;
}

.about-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.about-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.about-carousel-dot.is-active {
    width: 22px;
    border-radius: 100px;
    background: var(--accent);
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--text-muted);
}

.bullets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    margin-top: 18px;
}

.bullet {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 15px;
}

.bullet i {
    color: var(--accent);
    margin-top: 2px;
    flex: 0 0 auto;
}

.contact-card {
    background: var(--primary);
    border-radius: 24px;
    padding: 48px;
    color: var(--white);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.contact-left {
    grid-column: span 5;
}

.contact-info {
    grid-column: span 3;
}

.contact-left h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-left p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-map {
    grid-column: span 4;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
}

.fuque-map-container {
    width: 100%;
    height: 240px;
    z-index: 1;
}

.contact-map-caption {
    padding: 12px 14px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    background: rgba(15, 23, 42, 0.85);
}

/* 福鹊自定义地图标记样式 */
.fuque-marker {
    background: transparent;
    border: none;
}

.fuque-marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--accent);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.4);
}

.fuque-marker-pin::after {
    content: '';
    width: 12px;
    height: 12px;
    margin: 9px 0 0 9px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

.fuque-marker-shadow {
    width: 30px;
    height: 30px;
    background: rgba(15, 23, 42, 0.15);
    position: absolute;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    margin: 5px 0 0 -15px;
    z-index: -1;
}

/* Leaflet 弹窗适配深色背景 */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.leaflet-popup-tip {
    background: #fff;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
}

.contact-item i {
    color: var(--accent);
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.home-article-section {
    padding-top: 0;
}

.home-article-shell {
    border-top: 1px solid #E2E8F0;
    padding-top: 34px;
}

.home-article-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.home-article-column {
    grid-column: span 6;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: var(--white);
    padding: 24px;
}

.home-article-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.home-article-head h3 {
    font-size: 22px;
    color: var(--primary);
}

.home-article-more {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.home-article-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.home-article-item {
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}

.home-article-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.home-article-item a {
    text-decoration: none;
}

.home-article-item strong {
    display: block;
    color: var(--primary);
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.home-article-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.home-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.home-article-empty {
    color: var(--text-muted);
    font-size: 14px;
}

.footer {
    padding: 44px 6% 24px;
    background: var(--white);
    border-top: 1px solid #E2E8F0;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    padding-bottom: 22px;
}

.footer-col {
    grid-column: span 4;
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 22px;
    border-top: 1px solid #F1F5F9;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-icp {
    margin: 0;
    font-size: 13px;
}

.footer-icp a {
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-icp a:hover {
    opacity: 0.7;
}

.page-shell {
    padding-top: 80px;
}

.page-hero {
    padding: 56px 6% 36px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(248, 250, 252, 0) 100%);
    border-bottom: 1px solid #E2E8F0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
    align-items: end;
}

.page-hero-main {
    grid-column: span 8;
}

.page-hero-side {
    grid-column: span 4;
}

.page-hero-main h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--primary);
}

.page-hero-main p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 17px;
}

.hero-meta-card {
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: var(--white);
    padding: 20px 22px;
}

.hero-meta-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 15px;
}

.hero-meta-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.article-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
}

.article-main {
    grid-column: span 8;
}

.article-side {
    grid-column: span 4;
    display: grid;
    gap: 18px;
    align-content: start;
}

.category-panel,
.toc-panel,
.contact-panel,
.related-panel {
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: var(--white);
    padding: 22px;
}

.category-panel h2,
.toc-panel h2,
.contact-panel h2,
.related-panel h2 {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--primary);
}

.category-list,
.toc-list,
.related-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.category-list a,
.toc-list a,
.related-list a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.6;
}

.category-list a:hover,
.toc-list a:hover,
.related-list a:hover {
    color: var(--primary);
}

.article-grid {
    display: grid;
    gap: 18px;
}

.article-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.article-card:hover {
    border-color: rgba(225, 29, 72, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.article-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #E2E8F0;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.article-card h3,
.article-title {
    color: var(--primary);
}

.article-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.article-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.article-card-more {
    margin-top: 16px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.article-section-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.prose {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: var(--white);
    padding: 34px;
}

.prose > * + * {
    margin-top: 18px;
}

.prose h2 {
    font-size: 28px;
    line-height: 1.3;
    color: var(--primary);
    margin-top: 28px;
}

.prose h3 {
    font-size: 20px;
    line-height: 1.4;
    color: var(--primary);
    margin-top: 24px;
}

.prose p,
.prose li {
    color: var(--text-main);
    font-size: 16px;
}

.prose a,
.article-auto-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    padding-left: 20px;
}

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: var(--text-muted);
}

.article-cover {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}

.article-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.pager {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.pager a {
    flex: 1;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.pager a:hover {
    border-color: rgba(225, 29, 72, 0.35);
}

.pager a[aria-disabled="true"] {
    color: var(--text-muted);
    pointer-events: none;
    background: #F8FAFC;
}

.contact-panel p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.contact-panel .phone-btn {
    justify-content: center;
}

@media (max-width: 1024px) {
    .hero-bg {
        width: 100%;
        opacity: 0.3;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .service-card,
    .card-span-7,
    .card-span-5,
    .card-span-4 {
        grid-column: span 12;
    }
    .about {
        flex-direction: column;
    }
    .contact-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 28px;
        text-align: center;
    }
    .contact-left,
    .contact-info,
    .contact-map {
        grid-column: 1 / -1;
    }
    .contact-map {
        max-width: 640px;
        justify-self: center;
    }
    .contact-item {
        justify-content: center;
    }
    .home-article-column {
        grid-column: span 12;
    }
    .footer-col {
        grid-column: span 12;
    }
    .note-card {
        grid-column: span 12;
    }
    details.faq-item {
        grid-column: span 12;
    }
    .page-hero-main,
    .page-hero-side,
    .article-main,
    .article-side {
        grid-column: 1 / -1;
    }
    .article-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero h1 {
        font-size: 40px;
    }
    .section {
        padding: 56px 6%;
    }
    .page-hero {
        padding: 42px 6% 28px;
    }
    .page-hero-main h1 {
        font-size: 32px;
    }
    .prose {
        padding: 24px;
    }
    .pager {
        flex-direction: column;
    }
    .recruit-modal {
        padding: 16px;
    }
    .recruit-modal-dialog {
        padding: 24px 18px;
    }
    .recruit-modal-head h2 {
        font-size: 24px;
    }
    .recruit-form-grid {
        grid-template-columns: 1fr;
    }
    .recruit-field-full {
        grid-column: auto;
    }
    .recruit-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .recruit-submit-btn {
        width: 100%;
    }
}

/* 福鹊 IP 形象：左侧固定 */
.fuque-mascot {
    position: fixed;
    left: 16px;
    bottom: 80px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0;
    pointer-events: none;
}

.fuque-mascot-btn {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    outline: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fuque-mascot-btn:hover,
.fuque-mascot-btn:focus-visible {
    transform: translateY(-3px);
}

.fuque-mascot-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.fuque-mascot-img {
    display: block;
    height: auto;
    max-height: 180px;
}

.fuque-mascot-bubble {
    position: relative;
    margin-left: 12px;
    padding: 10px 16px;
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    white-space: nowrap;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(-8px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fuque-mascot-bubble.is-open {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.fuque-mascot-bubble-text {
    display: inline-block;
}

.fuque-mascot-bubble-arrow {
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    box-shadow: -2px 2px 4px rgba(15, 23, 42, 0.06);
    border-radius: 2px;
}

/* 小屏：IP 形象缩小 */
@media (max-width: 768px) {
    .fuque-mascot {
        left: 8px;
        bottom: 16px;
    }
    .fuque-mascot-img {
        max-height: 130px;
    }
}

/* 图片查看模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    animation: modalImageIn 0.3s ease;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.image-modal-close i {
    width: 24px;
    height: 24px;
}

.recruit-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.recruit-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.recruit-modal-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(88vh, 860px);
    overflow-y: auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    padding: 32px;
    animation: modalImageIn 0.28s ease;
}

.recruit-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.recruit-modal-close:hover {
    background: #E2E8F0;
}

.recruit-modal-head {
    max-width: 520px;
    margin-bottom: 24px;
}

.recruit-modal-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
    margin-bottom: 12px;
}

.recruit-modal-head h2 {
    font-size: 30px;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 10px;
}

.recruit-modal-head p {
    color: var(--text-muted);
    font-size: 15px;
}

.recruit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.recruit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recruit-field span {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.recruit-field input,
.recruit-field textarea {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text-main);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recruit-field input:focus,
.recruit-field textarea:focus {
    outline: none;
    border-color: rgba(225, 29, 72, 0.7);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.recruit-field textarea {
    resize: vertical;
    min-height: 132px;
}

.recruit-field-full {
    grid-column: 1 / -1;
}

.recruit-form-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.recruit-form-tip {
    color: var(--text-muted);
    font-size: 14px;
}

.recruit-submit-btn {
    min-width: 180px;
}

.recruit-submit-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.recruit-form-feedback {
    margin-top: 14px;
    color: #15803D;
    font-size: 14px;
    font-weight: 600;
}

.recruit-form-feedback.is-error {
    color: #B42318;
}



@keyframes modalImageIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nav-menu a::after,
    .nav-action-btn::after {
        transition: none;
    }
}
