.img-placeholder { background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html { scroll-behavior: smooth; }

/* Hero banner — responsive background + text overlay */
.hero-section {
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}
.hero-swiper {
    width: 100%;
    /* 1920×1280 = 3:2；全宽铺满，高度随屏宽等比 */
    height: min(88.89vw, 77vh);
    min-height: 293px;
    max-height: 1137px;
}
@media (max-width: 767px) {
    .hero-swiper {
        height: min(100vw, 64vh);
        min-height: 267px;
        max-height: none;
    }
}
.hero-swiper .swiper-wrapper,
.hero-slide {
    height: 100%;
}
.hero-slide {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}
.hero-slide__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0f172a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease;
}
.swiper-slide-active .hero-slide__bg {
    transform: scale(1.03);
}
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-slide__overlay--blue {
    background: linear-gradient(105deg, rgba(15, 23, 42, 0.58) 0%, rgba(37, 99, 235, 0.32) 55%, rgba(37, 99, 235, 0.08) 100%);
}
.hero-slide__overlay--amber {
    background: linear-gradient(105deg, rgba(30, 20, 10, 0.58) 0%, rgba(180, 83, 9, 0.32) 55%, rgba(234, 88, 12, 0.08) 100%);
}
.hero-slide__overlay--emerald {
    background: linear-gradient(105deg, rgba(10, 30, 25, 0.58) 0%, rgba(5, 150, 105, 0.32) 55%, rgba(20, 184, 166, 0.08) 100%);
}
.hero-slide__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    color: #fff;
    pointer-events: none;
}
.hero-slide__inner {
    pointer-events: auto;
    width: 100%;
}
.hero-slide__title {
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.875rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    max-width: 38rem;
}
.hero-slide__desc {
    font-size: clamp(0.9375rem, 1.65vw, 1.125rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.375rem;
    max-width: 34rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.hero-slide__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.hero-slide__btn--primary {
    background: #fff;
    color: #2563eb;
}
.hero-slide__btn--primary:hover { background: #eff6ff; }
.hero-slide__btn--outline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
}
.hero-slide__btn--outline:hover { background: rgba(255, 255, 255, 0.15); }
.hero-slide__btn--amber {
    background: #fff;
    color: #d97706;
}
.hero-slide__btn--amber:hover { background: #fffbeb; }
.hero-slide__btn--emerald {
    background: #fff;
    color: #047857;
}
.hero-slide__btn--emerald:hover { background: #ecfdf5; }
.hero-pagination {
    bottom: 0.875rem !important;
    z-index: 10;
}
.hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}
.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 22px;
    border-radius: 9999px;
}

/* Blog — classic layout */
.blog-breadcrumb {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}
.blog-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb__sep { margin: 0 0.35rem; color: #cbd5e1; }
.blog-breadcrumb__current { color: #475569; }

.blog-page {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}
.blog-page__header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.blog-page__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.375rem;
}
.blog-page__desc {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.55;
}

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.blog-grid__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-grid__card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
.blog-grid__media {
    display: block;
    aspect-ratio: 16 / 9;
    max-height: 132px;
    overflow: hidden;
    background: #e2e8f0;
}
.blog-grid__img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block;
}
.blog-grid__body {
    padding: 0.875rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-grid__date {
    font-size: 0.6875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}
.blog-grid__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.375rem;
}
.blog-grid__title a {
    color: #0f172a;
    text-decoration: none;
}
.blog-grid__title a:hover { color: #2563eb; }
.blog-grid__excerpt {
    font-size: 0.75rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 0.625rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-grid__more {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.blog-grid__more:hover { text-decoration: underline; }

/* Blog article detail */
.blog-article {
    background: #fff;
    border-top: 1px solid #e2e8f0;
}
.blog-article__container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}
.blog-article__meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}
.blog-article__dot { margin: 0 0.35rem; }
.blog-article__title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 0.75rem;
}
@media (min-width: 768px) {
    .blog-article__title { font-size: 1.5rem; }
}
.blog-article__lead {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid #e2e8f0;
}
.blog-article__cover {
    margin: 1.25rem 0;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #f1f5f9;
}
.blog-article__cover-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}
.blog-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #334155;
    word-wrap: break-word;
}
.blog-content > *:first-child { margin-top: 0 !important; }
.blog-content h2 {
    display: block;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    margin: 1.5rem 0 0.625rem !important;
    padding-top: 0.125rem;
}
.blog-content h3 {
    display: block;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    margin: 1.125rem 0 0.5rem !important;
}
.blog-content h4 {
    display: block;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin: 1rem 0 0.375rem !important;
}
.blog-content p {
    display: block;
    margin: 0 0 0.875rem !important;
}
.blog-content ul,
.blog-content ol {
    display: block;
    margin: 0 0 0.875rem !important;
    padding-left: 1.25rem !important;
}
.blog-content ul { list-style-type: disc !important; }
.blog-content ol { list-style-type: decimal !important; }
.blog-content li {
    display: list-item !important;
    margin-bottom: 0.375rem !important;
}
.blog-content strong {
    font-weight: 600 !important;
    color: #0f172a;
}
.blog-content em { font-style: italic !important; }
.blog-content a {
    color: #2563eb !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-content a:hover { color: #1d4ed8 !important; }
.blog-content blockquote {
    margin: 1rem 0 !important;
    padding: 0.625rem 0.875rem !important;
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    color: #475569;
    font-style: italic;
}
.blog-table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0 1.125rem;
    -webkit-overflow-scrolling: touch;
}
.blog-content table {
    display: table !important;
    width: 100%;
    min-width: 480px;
    border-collapse: collapse !important;
    font-size: 0.8125rem;
    margin: 0;
}
.blog-content thead { display: table-header-group !important; }
.blog-content tbody { display: table-row-group !important; }
.blog-content tr { display: table-row !important; }
.blog-content th,
.blog-content td {
    display: table-cell !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.625rem 0.75rem !important;
    text-align: left;
    vertical-align: top;
}
.blog-content th {
    background: #f8fafc !important;
    font-weight: 600 !important;
    color: #0f172a;
}
.blog-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.375rem;
    margin: 0.75rem 0;
}
.blog-article__footer {
    margin-top: 1.75rem;
    padding-top: 1.125rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
}
.blog-article__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
}
.blog-article__share a {
    color: #2563eb;
    text-decoration: none;
}
.blog-article__share a:hover { text-decoration: underline; }
.blog-article__back {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.blog-article__back:hover { text-decoration: underline; }

.blog-related {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 1rem 2rem;
}
.blog-related__inner {
    max-width: 640px;
    margin: 0 auto;
}
.blog-related__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
}
.blog-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-related__item {
    border-bottom: 1px solid #e2e8f0;
}
.blog-related__item:last-child { border-bottom: none; }
.blog-related__link {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.375rem;
    padding: 0.625rem 0;
    text-decoration: none;
    color: inherit;
}
.blog-related__link:hover .blog-related__post-title { color: #2563eb; }
.blog-related__post-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.45;
}
.blog-related__date {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
}

/* Home latest blog — classic rows */
.home-blog-list { margin-top: 1rem; }
.home-blog-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.home-blog-item:last-child { border-bottom: none; }
.home-blog-item__thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 64px;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #e2e8f0;
}
.home-blog-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-blog-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.125rem 0;
    line-height: 1.35;
}
.home-blog-item__title a { color: #0f172a; text-decoration: none; }
.home-blog-item__title a:hover { color: #2563eb; }
.home-blog-item__date { font-size: 0.75rem; color: #64748b; }
.home-blog-item__excerpt {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 640px) {
    .home-blog-item__thumb { flex: 0 0 80px; width: 80px; height: 54px; }
}

#site-header.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,.1); }
#mobile-drawer.open { display: block; }
#mobile-drawer.open #drawer-panel { transform: translateX(0); }
.toast { animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
