/* Navigation */
header {
    position: sticky;
    width: 100%;
    background: var(--bg-color);
    z-index: 10000;
    top: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.header-container-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 48px;
    min-height: 64px;
    background: var(--bg-color);
}

@media (max-width: 768px) {
    .header-container-inner {
        padding: 0 16px;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-container-inner .logo {
    color: #007BFF; /* 改为蓝色标志 */
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    width: 120px;
    height: 40px;
    margin-right: 100px;
}

.header-container-inner .logo a {
    display: flex;
}

.header-container-inner .logo img {
    height: 40px;
}

.header-container-inner .logo-light {
    display: inline-block;
}

.header-container-inner .logo-dark {
    display: none;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 2rem;
    order: 0;
}

.header-nav a {
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* ========================================
   Hero / 轮播区 - 完整响应式
   ======================================== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 轮播容器 - 多断点自适应高度 */
.hero-container {
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

/* PC 大屏：保持 16:9 宽高比 */
@media (min-width: 1025px) {
    .hero-container {
        aspect-ratio: 16 / 9;
        max-height: 720px;
    }
}

/* 平板 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        height: clamp(400px, 55vw, 550px);
    }
}

/* 手机 */
@media (max-width: 768px) {
    .hero-container {
        height: clamp(460px, 120vw, 560px);
    }
}

/* 幻灯片背景 */
#hero-carousel .slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 暗色模式下轮播图不叠加遮罩 */

/* 内容包裹器 - 流式左右padding */
.hero-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    height: 100%;
}

/* 左半区：文字内容 */
.hero-left {
    flex: 1;
}

@media (max-width: 768px) {
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 右半区：配图（静态版已注释，保留备用） */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-right {
        display: none;
    }
}

/* ---- 标签 ---- */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #007bff, #00b3b3);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 12px rgba(0,127,128,0.3), inset 0 2px 4px rgba(255,255,255,0.3);
    user-select: none;
}

.hero-tag.ribbon {
    padding: 0.4rem 1.2rem 0.4rem 0.8rem;
    background: linear-gradient(120deg, #ff416c, #ff4b2b);
    box-shadow: 0 3px 6px rgba(255,69,104,0.2), 0 6px 15px rgba(255,75,110,0.3);
}

.hero-tag::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(45deg,
        rgba(255,255,255,0.1), rgba(255,255,255,0.1) 5px,
        transparent 5px, transparent 10px);
    z-index: -1;
    border-radius: 30px;
}

.hero-tag::after {
    content: '✨';
    position: absolute;
    right: -8px;
    top: -8px;
    font-size: 1rem;
    transform: rotate(15deg);
}

.hero-tag.ribbon::after {
    content: 'NEW';
    right: -8px;
    top: -4px;
    background: #fff;
    color: #ff4b2b;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    font-weight: bold;
    transform: rotate(30deg);
}

.hero-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15), 0 8px 20px rgba(0,127,128,0.35);
}

/* ---- 标题：流式字号 + 渐变文字 ---- */
.hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    line-height: 1.15;
    margin-top: clamp(0.6rem, 1.5vw, 1rem);
    background: linear-gradient(90deg, #106af1 0%, #00a6ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

.hero .hero-subTitle {
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    margin: clamp(0.6rem, 1.2vw, 1.2rem) 0;
    color: var(--text-color);
}

.hero .hero-desc {
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    margin: clamp(0.5rem, 1vw, 1rem) 0;
    color: var(--text-color-secondary);
}

/* ---- 按钮组 ---- */
.btn-group {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    margin-top: clamp(16px, 2.5vw, 32px);
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .btn-group {
        gap: 8px;
    }
}

/* ---- 轮播底部分页 ---- */
.hero-container .carousel-pagination {
    bottom: clamp(40px, 8vw, 70px);
}

/* ---- 轮播底部快捷入口 ---- */
.hero-footer {
    position: relative;
    width: 100%;
    z-index: 99;
}

@media (min-width: 769px) {
    .hero-footer {
        top: -42px;
    }
}

@media (max-width: 768px) {
    .hero-footer {
        top: -28px;
    }
}

.hero-footer .footer-wrapper {
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero-footer .footer-item {
    color: var(--text-color);
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .hero-footer .grid-container {
        gap: 8px;
        padding: 0 16px;
    }

    .hero-footer .footer-item {
        padding: 8px;
        gap: 4px;
    }
}

.footer-item .footer-item-title {
    font-size: clamp(13px, 1.6vw, 16px);
}

.footer-item .footer-item-desc {
    font-size: clamp(11px, 1.3vw, 14px);
    color: var(--text-color-secondary);
}

/* Features */
.section {
    padding: 3rem 0;
    overflow: hidden;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

/* Features Grid */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: 32px;
}

.section-header h2 {
    color: #007BFF;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.section-header.left {
    text-align: left;
}

.section-header.left h2 {
    color: var(--text-color);
    font-size: 2.5rem;
}

.section-header.left .section-subtitle {
    max-width: initial;
    text-align: left;
    font-size: 16px;
}

@media (max-width: 768px) {
    .section-header.left h2 {
        font-size: 24px;
    }

    .section-header.left .section-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .hero .hero-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        align-items: stretch;
        z-index: 999;
    }

    .hero .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

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

.feature {
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer; /* 鼠标变为小手 */
    background: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: translateY(0);
}

.feature:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* 浮动装饰点 */
.feature::before,
.feature::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #007BFF;
    opacity: 0.2; /* 降低基础透明度 */
    z-index: -1; /* 移到内容下方 */
}

.feature::after {
    bottom: 20%;
    right: 20%;
    width: 10px;
    height: 10px;
    background: #ff00ff;
    opacity: 0.15; /* 更低的透明度 */
    animation: float 8s infinite ease-in-out 1s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px);
        opacity: 0.3;
    }
}

/* 新增特性列表样式 */
.feature-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-color-secondary);
}

.feature-list li {
    margin-bottom: 0.4rem;
}

/* 悬停时不改变粒子颜色 */
.feature:hover::before,
.feature:hover::after {
    animation-play-state: paused;
}

/* 确保文字层级 */
.feature h3, .feature p {
    position: relative;
    z-index: 2;
}

.feature h3 {
    color: #007BFF; /* 蓝色标题 */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #007BFF;
    border-radius: 1px;
    position: absolute;
    left: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger span:nth-child(1) {
    top: 3px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 13px;
}

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .header-container-inner {
        overflow: hidden;
    }

    .header-right {
        gap: 0.5rem;
    }

    .header-container-inner .logo {
        margin-right: 0;
        width: auto;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px;
    }

    .hamburger {
        display: inline-flex;
    }

    .header-nav {
        position: fixed;
        top: -20px;
        left: 0;
        width: 100%;
        /*backdrop-filter: blur(10px);*/
        transform: translateY(-100%);
        /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
        z-index: 1000;
    }

    .header-nav.active {
        transform: translateY(0);
        top: 60px;
        background: var(--bg-color);
        padding: 0 16px;
    }

    .header-nav a {
        display: block;
        padding: 0 1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        margin: 0;
        font-size: 1rem;
    }

    .header-nav a:last-child {
        border-bottom: none;
    }

    .feature {
        padding: 1.5rem;
    }

    .section-header {
        padding: 1.5rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* 升级版回到顶部按钮样式 */
#back-to-top {
    position: fixed;
    bottom: 50px;
    right: 30px;
    display: none;
    width: 48px;
    height: 48px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    animation: float 2s ease-in-out infinite;
    justify-content: center;
    align-items: center;
}

#back-to-top:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#back-to-top:active {
    transform: scale(0.95) rotate(-2deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* 添加浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* SVG图标样式 */
#back-to-top svg {
    color: var(--text-color);
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* 文字流动效果 */
.hero .hero-title {
    background: linear-gradient(90deg, #007BFF, #66b2ff, #007BFF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 0 center;
    }
    100% {
        background-position: 200% center;
    }
}

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

/* 点击涟漪效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 鼠标粒子跟随 */
.cursor-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #007BFF;
    pointer-events: none;
    opacity: 0.3;
    animation: cursorTrail 1s forwards;
}

@keyframes cursorTrail {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(20px, -20px) scale(0);
        opacity: 0;
    }
}

/* 客户案例样式 */

.case-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    width: 500px;
    cursor: pointer; /* 添加悬浮小手 */
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

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

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-content h4 {
    color: #007BFF;
    margin-bottom: 0.5rem;
}

.case-client {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.case-result {
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.case-link {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
}

.case-link:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .case-content {
        padding: 1rem;
    }

    .case-result {
        margin-bottom: 0.8rem;
    }
}

/* 案例区域最大宽度限制 */
.cases-carousel-container {
    width: 1200px;
    position: relative;
    margin: 2rem auto 0;
}

/* 重构轮播样式 */
.cases-carousel {
    display: flex;
    gap: 2rem;
    min-width: 100%;
    /* 使用三倍克隆确保完全覆盖 */
    animation: scroll 25s linear infinite;
    animation-play-state: running; /* 默认运行 */
}

/* 精确控制动画关键帧 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 移动端触摸交互优化 */
@media (hover: none) {
    .cases-carousel {
        animation: scroll 25s linear infinite;
    }
}

.cases-carousel-container:hover .cases-carousel {
    animation-play-state: paused; /* 悬停时暂停 */
}

/* 在线客服悬浮卡片样式 */
#online-service {
    position: fixed;
    right: 30px;
    bottom: 25vh;
    z-index: 999;
    width: 220px;
    background: var(--card-bg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

#online-service.folded {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* 保留基本悬停效果 */
.service-trigger:hover::after {
    opacity: 1;
}

.service-content {
    padding: 16px;
    position: relative;
}

.service-content h4 {
    margin: 0 0 8px;
    color: #1a73e8;
}

.service-content p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-color-secondary);
}

.service-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .service-content .close-btn {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .service-content .close-btn {
    background: rgba(255, 255, 255, 0.1)
}

/* 优化图标与光效的尺寸匹配 */
.service-trigger {
    position: absolute;
    left: -44px;
    top: 0;
    width: 44px;
    height: 44px;
    background: #1a73e8;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
    overflow: visible; /* 确保光效可见 */
}

/* 优化对话气泡图标光效 */
.service-trigger::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(26, 115, 232, 0.8);
    animation: pulse 2s infinite;
}

/* 微交互增强 */
.service-trigger:hover svg circle[opacity] {
    opacity: 0.9;
    transform: scale(1.2);
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* 悬停放大效果 */
.service-trigger:hover svg {
    transform: scale(1.2);
    filter: brightness(1.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(26, 115, 232, 0.7);
    }
    50% {
        box-shadow: 0 0 14px rgba(26, 115, 232, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(26, 115, 232, 0.7);
    }
}

/* 折叠状态样式 */
#online-service.folded {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: visible;
}

#online-service.folded .service-content {
    display: none;
}

#online-service.folded > .service-trigger {
    display: flex;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

/* 对header进行响应式 限制最大宽度 */
@media (min-width: 1440px) {
    .header-container-inner {
        max-width: 1440px;
    }
}

/* 横幅广告样式 */
.banner-ad {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #007bff, #00b3b3);
    color: white;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    z-index: 999;
    position: relative;
    height: 45px;
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    margin: 0 auto;
    color: #fff;
}

.ad-text {
    font-weight: 600;
}

.ad-link {
    background: white;
    color: #007bff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
}

.ad-link:hover {
    background: #f1f3f5;
    color: #0056b3;
}

.ad-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.ad-close svg {
    width: 16px;
    height: 16px;
}

.ad-close:hover {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-ad {
        padding: 0.8rem 1rem;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
        display: flex;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
        display: none;
    }
}

.join-banner {
    background-image: url(./assets/images/footer-banner.png);
    background-size: 100% 100%;
    background-blend-mode: overlay;
    color: #fff;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-banner h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.join-banner p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .join-banner h2 {
        font-size: 1.8rem;
    }

    .join-banner p {
        font-size: 1.2rem;
        margin: 0 auto 1.8rem;
    }

    .join-banner button {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .join-banner h2 {
        font-size: 1.5rem;
    }

    .join-banner p {
        font-size: 1.1rem;
        margin: 0 auto 1.5rem;
    }

    .join-banner button {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 400px) {
    .join-banner h2 {
        font-size: 1.2rem;
    }

    .join-banner p {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
    }

    .join-banner button {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

/* 现代风格底部栏样式 */
.modern-footer {
    background: var(--footer-bg);
    color: #ffffff;
    padding: 36px 24px 24px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.brand-section {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 1rem;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .brand-section {
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }
}

.links-section,
.support-section {
    grid-column: span 1;
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1.2rem;
}

.footer-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0 0 0 1.2rem;
    margin: 0;
}

.footer-links li {
    margin: 0.6rem 0;
}

.footer-links a {
    color: #fff;
    font-weight: 500;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
}

.contact-info {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 1.2rem 0;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.contact-item span {
    color: #cccccc;
    line-height: 1.4;
}

/* 友情链接 */
.footer-friend-links {
    padding-top: 16px;
    border-top: 1px solid var(--footer-border-color);
    text-align: center;
}

.footer-friend-links h4 {
    color: #cccccc;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
}

.friend-links-list a {
    color: #aaaaaa;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.friend-links-list a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--footer-border-color);
}

.footer-bottom .copyright {
    text-align: center;
}

.footer-bottom .copyright .company {
    display: inline-block;
}

.footer-bottom .copyright .desc {
    display: inline-block;
}

@media (max-width: 768px) {
    .footer-bottom .copyright .desc {
        display: block;
        text-align: center;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.footer-legal a {
    color: #888888;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .brand-section {
        grid-column: span 4; /* 联系信息保持满屏宽度 */
    }

    .links-section,
    .support-section {
        /*    一行两列*/
        grid-column: span 2;
    }

    .contact-section {
        grid-column: span 4; /* 联系信息保持满屏宽度 */
    }

    .social-icons {
        justify-content: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-logo h3 {
        font-size: 1.2rem;
    }

    .footer-description {
        font-size: 0.95rem;
    }
}


/* 解决方案容器 */
.solution-container {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--card-bg);
    color: var(--text-color);
}


/* 左侧导航 */
.solution-nav {
    width: 20%;
    padding: 1rem;
}

.solution-nav ul {
    list-style: none;
    padding: 0;
}

.solution-nav li {
    margin-bottom: 12px;
}

.solution-nav li:last-child {
    margin-bottom: 0;
}

.solution-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
}

.solution-nav a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 导航图标样式 */
.nav-icon {
    width: 24px;
    height: 24px;
    fill: currentColor; /* 使用当前颜色 */
}

@media (max-width: 768px) {
    .nav-icon {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }
}

@media (max-width: 768px) {
    .solution-nav {
        width: 100%;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* iOS 动态滚动 */
        scroll-behavior: smooth;
        white-space: nowrap;
    }

    .solution-nav::-webkit-scrollbar {
        display: none; /* 隐藏滚动条 */
    }

    .solution-nav ul {
        display: inline-block;
        list-style: none;
        padding: 0;
    }

    .solution-nav li {
        display: inline-block;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
}

/* 右侧内容 */
.solution-content {
    width: 100%;
    padding: 24px;
}

.solution-content h2 {
    margin-bottom: 16px;
}

.solution-content p {
    margin-bottom: 24px;
}

.solution-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.icon {
    font-size: 1.2rem;
    color: #007bff;
}

.solution-buttons {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

/* 行业案例 */
.solution-case {
    width: 20%;
    padding: 1rem;
}

.solution-case h3 {
    margin-bottom: 12px;
}

.case-logos img {
    max-width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .solution-container {
        flex-direction: column;
        gap: 0;
    }

    .solution-nav,
    .solution-case {
        width: 100%;
    }

    .solution-content {
        width: 100%;
    }

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

    .solution-content p {
        font-size: 14px;
    }
}

#solutions {
    background-image: url("./assets/images/section-bg.svg");
    background-repeat: no-repeat;
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

/* ========================================
   Header 右侧按钮组 - 搜索 & 用户
   ======================================== */

/* 搜索按钮 */
.header-search-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-color);
    transition: all 0.25s ease;
}

.header-search-btn:hover {
    background: rgba(0, 123, 255, 0.08);
    color: var(--primary-color);
}

.header-search-btn svg {
    width: 18px;
    height: 18px;
}

/* 登录按钮 — 圆形图标，与用户头像按钮一致 */
.header-login-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    color: var(--text-color);
    background: transparent;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-login-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.header-login-btn svg {
    width: 20px;
    height: 20px;
}

/* 注册按钮 — 圆形图标，与用户头像按钮一致 */
.header-reg-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    color: var(--text-color);
    background: transparent;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-reg-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.header-reg-btn svg {
    width: 18px;
    height: 18px;
}

/* 用户头像按钮 */
.header-user-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    background: transparent;
    transition: border-color 0.25s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.header-user-btn .user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========================================
   用户下拉菜单 — 子比主题风格
   ======================================== */

.header-user-dropdown {
    position: relative;
    line-height: normal;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    right: -12px;
    width: 270px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: all 0.22s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10001;
    overflow: visible;
}

.header-user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 下拉小三角箭头 */
.user-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 22px;
    width: 16px;
    height: 16px;
    background: var(--card-bg);
    transform: rotate(45deg);
    border-radius: 3px 0 0 0;
    box-shadow: -1px -1px 0 rgba(0, 0, 0, 0.06);
}

.dropdown-user-card {
    word-break: break-word;
    white-space: normal;
}

.dropdown-user-top {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.dropdown-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.dropdown-user-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    margin: 8px 0 10px;
}

.user-role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.user-role-badge.role-administrator {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
}

.user-role-badge.role-editor {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.user-role-badge.role-author {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    color: #fff;
}

.user-role-badge.role-contributor {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}

.user-role-badge.role-subscriber {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.dropdown-user-sig {
    font-size: 0.78rem;
    color: var(--text-color-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-user-divider {
    position: relative;
    height: 1px;
    margin: 10px 0 4px;
    background: var(--border-color);
    opacity: 0.65;
}

.dropdown-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2px;
}

.dropdown-quick-grid > a {
    display: block;
    min-width: 54px;
    padding: 10px 2px 4px;
    color: var(--text-color-secondary);
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown-quick-grid > a:hover {
    opacity: 0.72;
    transform: translateY(-1px);
}

.dropdown-quick-grid > a > span:last-child {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
}

.quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(0, 123, 255, 0.1);
}

.quick-icon svg {
    width: 18px;
    height: 18px;
}

.quick-icon.c-blue {
    color: #2997f7;
    background: rgba(41, 151, 247, 0.12);
}

.quick-icon.c-purple {
    color: #8657ff;
    background: rgba(134, 87, 255, 0.12);
}

.quick-icon.c-green {
    color: #20b26c;
    background: rgba(32, 178, 108, 0.12);
}

.quick-icon.c-red {
    color: #e6534f;
    background: rgba(230, 83, 79, 0.12);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: fixed;
        top: 70px;
        right: 12px;
        width: min(270px, calc(100vw - 24px));
    }
}

/* 移动端调整 */
@media (max-width: 768px) {
    .header-login-btn,
    .header-reg-btn {
        width: 32px;
        height: 32px;
    }
    .header-login-btn svg {
        width: 18px;
        height: 18px;
    }
    .header-reg-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   搜索弹层
   ======================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.search-overlay-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin-top: 64px;
    padding: 32px 24px;
    align-self: flex-start;
    transform: translateY(-24px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-overlay-header h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.search-overlay-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}

.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.search-overlay-form {
    display: flex;
    gap: 12px;
}

.search-overlay-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #aaa;
    pointer-events: none;
}

.search-overlay-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.25s ease;
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.18);
}

.search-overlay-submit {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.search-overlay-submit:hover {
    background: var(--primary-color-hover);
    transform: translateY(-1px);
}

.search-hot-tags {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-hot-tags span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.search-hot-tags a {
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.search-hot-tags a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (max-width: 768px) {
    .search-overlay-content {
        margin-top: 60px;
        padding: 24px 16px;
    }

    .search-overlay-form {
        flex-direction: column;
    }

    .search-overlay-submit {
        width: 100%;
    }
}

/* ========================================
   分类导航
   ======================================== */

.cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.cat-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color-secondary);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-nav-item:hover {
    color: #007BFF;
    border-color: #007BFF;
    background: rgba(0, 123, 255, 0.04);
}

.cat-nav-item.active {
    color: #fff;
    background: #007BFF;
    border-color: #007BFF;
}

/* 子分类导航 */
.cat-sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding-left: 8px;
}

.cat-sub-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--text-color-secondary);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.cat-sub-item:hover {
    color: #007BFF;
    border-color: #007BFF;
}

.cat-sub-item.active {
    color: #007BFF;
    border-color: #007BFF;
    background: rgba(0, 123, 255, 0.06);
    font-weight: 500;
}

.cat-sub-count {
    font-size: 0.75rem;
    color: var(--text-color-secondary);
    opacity: 0.7;
}

.cat-sub-item.active .cat-sub-count {
    color: #007BFF;
    opacity: 1;
}

/* 移动端 */
@media (max-width: 768px) {
    .cat-nav {
        gap: 6px;
    }
    .cat-nav-item {
        padding: 6px 14px;
        font-size: 0.82rem;
    }
    .cat-sub-nav {
        gap: 4px;
    }
    .cat-sub-item {
        padding: 4px 12px;
        font-size: 0.78rem;
    }
}

/* ========================================
   最新文章卡片（首页 & 归档页共用）
   ======================================== */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}


.post-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--border-color);
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.post-card-date {
    color: var(--text-color-secondary);
}

.post-card-cats {
    color: #007BFF;
    font-weight: 500;
}

.post-card-cats a {
    color: #007BFF;
    text-decoration: none;
}

.post-card-cats a:hover {
    text-decoration: underline;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-color-secondary);
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.section-more {
    text-align: center;
    margin-top: 32px;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border-radius: 24px;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.more-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 分页导航 */
.pagination {
    margin-top: 36px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    margin: 0 3px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    border-color: var(--primary-color, #007BFF);
    color: var(--primary-color, #007BFF);
}

.pagination .page-numbers.current {
    background: var(--primary-color, #007BFF);
    border-color: var(--primary-color, #007BFF);
    color: #fff;
    font-weight: 600;
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.pagination .page-numbers.dots:hover {
    color: var(--text-color);
    border-color: transparent;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
    color: var(--text-color-secondary);
}

.no-posts p {
    margin: 0;
}

/* ========================================
   横向文章列表（新闻列表 / 子比风格）
   ======================================== */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.post-item {
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border-radius: var(--main-radius, 8px);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.post-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-item-thumb {
    flex-shrink: 0;
    width: 220px;
    position: relative;
    overflow: hidden;
    display: block;
}

.post-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.post-item:hover .post-item-thumb img {
    transform: scale(1.06);
}

.post-item-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    min-height: 150px;
}

.post-item-thumb-icon {
    width: 48px;
    height: 48px;
    color: var(--text-color-secondary);
    opacity: 0.5;
}

.post-item-thumb-icon svg {
    width: 100%;
    height: 100%;
}

.post-item-body {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-item-cats {
    margin-bottom: 8px;
}

.post-item-cats a {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary-color, #007BFF);
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(0, 123, 255, 0.08);
    margin-right: 6px;
    transition: background 0.2s;
}

.post-item-cats a:hover {
    background: rgba(0, 123, 255, 0.15);
}

.post-item-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.post-item-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-item-title a:hover {
    color: var(--primary-color, #007BFF);
}

.post-item-excerpt {
    font-size: 0.88rem;
    color: var(--text-color-secondary);
    line-height: 1.65;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.post-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-color-secondary);
}

.post-item-meta .meta-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-item-meta .meta-author img {
    border-radius: 50%;
}

.post-item-meta .meta-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-color-secondary);
    margin-right: 12px;
    vertical-align: middle;
    opacity: 0.4;
}

.post-item-meta .meta-comments::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-color-secondary);
    margin-right: 12px;
    vertical-align: middle;
    opacity: 0.4;
}

/* 响应式：手机端纵向堆叠 */
@media (max-width: 640px) {
    .post-item {
        flex-direction: column;
    }

    .post-item-thumb {
        width: 100%;
        height: 200px;
    }

    .post-item-body {
        padding: 16px;
    }

    .post-item-title {
        font-size: 1.05rem;
    }

    .post-item-meta {
        gap: 10px;
        font-size: 0.78rem;
    }
}

/* ========================================
   文章页 / 归档页 双栏布局（子比主题风格）
   ======================================== */

.archive-layout,
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .archive-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- 侧边栏 ---- */
.article-sidebar {
    position: sticky;
    top: 80px;
    width: 300px;
}

/* 侧边栏内小工具继承全局 .widget 样式，此处仅覆写间距 */
.article-sidebar .widget {
    margin-bottom: 20px;
}

/* ---- 文章卡片（子比风格：白底 + 柔和阴影） ---- */
.article-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    margin-bottom: 20px;
}

/* 分类标签 */
.article-cats {
    margin-bottom: 12px;
}

.article-cats a {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    background: rgba(0, 123, 255, 0.07);
    color: #007BFF;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 4px;
}

.article-cats a:hover {
    background: #007BFF;
    color: #fff;
}

/* 文章标题 */
.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.45;
    margin-bottom: 12px;
}

/* 元信息（子比风格：小号 + 圆点分隔） */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta .meta-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta .meta-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.article-meta .meta-date::before,
.article-meta .meta-comments::before {
    content: "·";
    margin-right: 6px;
    color: #ccc;
}

/* 特色图 */
.article-thumbnail {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 正文排版 */
.article-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-color);
    word-wrap: break-word;
}

.article-body h2 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
    padding-left: 10px;
    border-left: 3px solid #007BFF;
    color: var(--text-color);
}

.article-body h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.article-body h4 {
    font-size: 1rem;
    margin: 16px 0 8px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 12px auto;
}

.article-body blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 4px solid #007BFF;
    color: #666;
    font-size: 0.95rem;
    border-radius: 0 4px 4px 0;
}

.article-body pre {
    background: #f5f7fb;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px 16px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.article-body ul,
.article-body ol {
    margin-bottom: 16px;
    padding-left: 1.5em;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body a {
    color: #007BFF;
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.article-body table th,
.article-body table td {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    text-align: left;
}

.article-body table th {
    background: rgba(0, 123, 255, 0.05);
    font-weight: 600;
}

/* 标签 */
.article-tags {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.article-tags a {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    background: rgba(0, 123, 255, 0.06);
    color: #007BFF;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 4px;
}

.article-tags a:hover {
    background: #007BFF;
    color: #fff;
}

/* 分页链接 */
.article-pages {
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    color: #999;
    font-size: 0.88rem;
}

.article-pages a {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: #007BFF;
    text-decoration: none;
    margin: 0 3px;
}

.article-pages a:hover {
    background: #007BFF;
    color: #fff;
    border-color: #007BFF;
}

/* ---- 相关推荐 ---- */
.article-related {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.related-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.related-card {
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    background: var(--body-bg);
    transition: transform 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.related-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8edf5 0%, #dce3ef 100%);
}

.related-title {
    display: block;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- 评论区（子比风格） ---- */
.comments-area {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.comments-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* 评论列表 */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 40px;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
    padding-top: 12px;
}

/* 评论头部（头像 + 作者 + 日期） */
.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.comment-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.comment-author a {
    color: var(--text-color);
    text-decoration: none;
}

.comment-author a:hover {
    color: #007BFF;
}

.comment-date {
    font-size: 0.78rem;
    color: #999;
}

/* 评论正文 */
.comment-content {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 52px; /* 对齐头像 */
}

.comment-content p {
    margin-bottom: 8px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* 评论操作（回复 / 编辑） */
.comment-actions {
    display: flex;
    gap: 14px;
    padding-left: 52px;
    font-size: 0.8rem;
}

.comment-actions .reply-link a,
.comment-actions .edit-link a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-actions .reply-link a:hover,
.comment-actions .edit-link a:hover {
    color: #007BFF;
}

.comment-awaiting-moderation {
    margin: 8px 0 0 52px;
    padding: 4px 10px;
    background: #fff8e1;
    border-radius: 3px;
    color: #b7791f;
    font-size: 0.78rem;
}

/* 评论翻页 */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.85rem;
}

.comment-navigation a {
    color: #007BFF;
    text-decoration: none;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* ---- 评论表单（子比风格） ---- */
.comment-respond {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comment-reply-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.comment-reply-title small {
    margin-left: 8px;
    font-weight: 400;
}

.comment-reply-title small a {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
}

.comment-reply-title small a:hover {
    color: #007BFF;
}

/* 评论表单 — 玄灵风格 */
.comment-form {
    display: flex;
    flex-direction: column;
}

.comment-form p {
    margin-bottom: 12px;
}

.comment-form .logged-in-as {
    display: none;
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--body-bg);
    color: var(--text-color);
    font-size: 0.92rem;
    line-height: 1.7;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.comment-form-comment textarea::placeholder {
    color: #bbb;
}

.comment-form-comment textarea:focus {
    border-color: #007BFF;
    background: var(--card-bg);
}

.form-submit {
    margin-top: 4px;
}

.form-submit .btn {
    display: inline-block;
    padding: 8px 28px;
    border: none;
    border-radius: 4px;
    background: #007BFF;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-submit .btn:hover {
    background: #0066d9;
}

.form-submit .btn-primary {
    background: #007BFF;
}

.no-comments {
    text-align: center;
    padding: 24px 0;
    color: #999;
    font-size: 0.9rem;
}

/* 未登录评论提示 */
.comment-login-prompt {
    text-align: center;
    padding: 32px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.comment-login-prompt svg {
    display: block;
    margin: 0 auto 12px;
}

.comment-login-prompt p {
    color: #999;
    font-size: 0.95rem;
}

.comment-login-prompt a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
}

.comment-login-prompt a:hover {
    text-decoration: underline;
}

.widget {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 24px;
    overflow: hidden;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* 搜索表单（通用） */
.search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field {
    flex: 1;
    height: 44px;
    padding: 0 52px 0 18px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 24px;
    background: var(--card-bg, #fff);
    color: var(--text-color, #333);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-field::placeholder {
    color: #a0aec0;
}

.search-field:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.10);
}

.search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 36px;
    border: none;
    border-radius: 20px;
    background: var(--primary-color, #007bff);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.search-submit:hover {
    background: var(--primary-color-hover, #0056b3);
}

.search-submit:active {
    transform: translateY(-50%) scale(0.95);
}

.search-submit svg {
    width: 16px;
    height: 16px;
}

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

/* 评论小工具 */
.widget_recent_comments ul li {
    color: var(--text-color-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.widget_recent_comments ul li a {
    font-weight: 500;
}

.widget_recent_comments .comment-author-link {
    color: var(--text-color);
    font-weight: 500;
}

/* 日历小工具 */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.widget_calendar caption {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.widget_calendar th,
.widget_calendar td {
    padding: 4px;
    text-align: center;
    color: var(--text-color);
}

.widget_calendar td a {
    color: var(--primary-color);
    font-weight: 600;
}

/* 标签云 */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 123, 255, 0.06);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem !important;
    transition: all 0.2s ease;
}

.widget_tag_cloud a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* hero-widget-area 通用样式 */
.hero-widget-area,
.home-widget-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-widget-area .widget,
.pre-footer-widget-area .widget,
.home-widget-area .widget {
    background: transparent;
    border: none;
    padding: 0;
}

/* site-top-widget-area */
.site-top-widget-area {
    max-width: 1200px;
    margin: 12px auto;
    padding: 0 24px;
}

/* archive / single / page widget areas */
.archive-widget-top,
.archive-widget-bottom,
.single-widget-area,
.page-widget-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 16px;
}

.single-widget-area {
    margin-bottom: 16px;
}

/* article-widget-area */
.article-widget-area {
    margin-top: 32px;
}

@media (max-width: 768px) {
    #solutions {
        padding: 1rem 0 4rem;
    }
}

/* ========================================
   用户中心页面
   ======================================== */

.user-center {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .user-center {
        grid-template-columns: 1fr;
    }
}

/* 左侧边栏卡片 */
.user-center-sidebar {
    position: sticky;
    top: 80px;
}

.user-sidebar-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 28px 20px;
    text-align: center;
}

.user-sidebar-avatar {
    margin-bottom: 12px;
}

.user-sidebar-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.user-sidebar-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.user-sidebar-role {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    margin-bottom: 16px;
}

.user-sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-color-secondary);
}

.user-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, #5b8cff, #7a5cff);
    box-shadow: 0 8px 20px rgba(91, 140, 255, 0.22);
}

.user-nav-icon svg {
    width: 20px;
    height: 20px;
}

.user-nav-label {
    flex: 1;
    line-height: 1.35;
}

.user-sidebar-nav .user-nav-item:nth-child(2) .user-nav-icon {
    background: linear-gradient(135deg, #ff9a44, #fc6076);
    box-shadow: 0 8px 20px rgba(252, 96, 118, 0.22);
}

.user-sidebar-nav .user-nav-item:nth-child(3) .user-nav-icon {
    background: linear-gradient(135deg, #3ccf91, #18a0fb);
    box-shadow: 0 8px 20px rgba(24, 160, 251, 0.2);
}

.user-sidebar-nav .user-nav-item:nth-child(4) .user-nav-icon {
    background: linear-gradient(135deg, #f6b73c, #ff7b54);
    box-shadow: 0 8px 20px rgba(255, 123, 84, 0.2);
}

.user-nav-item:hover {
    background: rgba(0, 123, 255, 0.06);
    color: var(--primary-color);
}

.user-nav-item.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.user-nav-item.active .user-nav-icon {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.user-nav-logout {
    margin-top: 8px;
    color: #e74c3c !important;
}

.user-nav-logout .user-nav-icon {
    background: linear-gradient(135deg, #ff8a8a, #ff5f6d);
    box-shadow: 0 8px 20px rgba(255, 95, 109, 0.2);
}

.user-nav-logout:hover {
    background: rgba(231, 76, 60, 0.06) !important;
    color: #e74c3c !important;
}

/* 右侧内容区 */
.user-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 28px;
}

.user-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.user-profile-form .form-group {
    margin-bottom: 18px;
}

.user-profile-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.user-profile-form input[type="text"],
.user-profile-form input[type="email"],
.user-profile-form input[type="url"],
.user-profile-form input[type="password"],
.user-profile-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.user-profile-form input:focus,
.user-profile-form textarea:focus {
    border-color: var(--primary-color);
}

.user-profile-form input.disabled {
    background: var(--body-bg);
    color: var(--text-color-secondary);
    cursor: not-allowed;
}

.user-profile-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color-secondary);
    margin-top: 4px;
}

.user-profile-form .btn-primary {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-form .btn-primary:hover {
    background: var(--primary-color-hover);
}

.user-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-color-secondary);
}

/* 文章列表 */
.user-posts-list {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.user-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

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

.user-post-item:hover {
    background: rgba(0, 123, 255, 0.03);
}

.user-post-title {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.user-post-title:hover {
    color: var(--primary-color);
}

.user-post-meta {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-color-secondary);
}

.post-status {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.status-publish {
    background: rgba(0, 123, 255, 0.08);
    color: #007BFF;
}

.status-draft {
    background: rgba(0, 123, 255, 0.05);
    color: #999;
}

.status-pending {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* 评论列表 */
.user-comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-content {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-color-secondary);
    display: flex;
    gap: 14px;
}

/* ========================================
   登录/注册页面
   ======================================== */

.login-page-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.login-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.login-tab.active {
    color: #007BFF;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007BFF;
}

.login-tab:hover {
    color: #007BFF;
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-form .form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
}

.login-form .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.login-form .form-input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-password-wrap {
    position: relative;
}

.form-password-wrap .form-input {
    padding-right: 42px;
}

.form-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.form-password-toggle:hover {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .form-password-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.form-password-toggle svg {
    width: 18px;
    height: 18px;
}

.form-group-inline {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem !important;
    cursor: pointer;
    color: var(--text-color-secondary) !important;
}

.form-checkbox-label input[type="checkbox"] {
    accent-color: #007BFF;
}

.login-forgot {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    text-decoration: none;
}

.login-forgot:hover {
    color: #007BFF;
}

.login-submit-btn {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background: #007BFF;
    color: #fff;
    transition: background 0.2s ease;
}

.login-submit-btn:hover {
    background: #0066d9;
}

.login-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.login-message-error {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.login-message-info {
    background: rgba(0, 123, 255, 0.08);
    color: #007BFF;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.login-form-desc {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.login-form-footer {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-color-secondary);
    text-align: center;
}

.login-form-footer a {
    color: #007BFF;
    text-decoration: none;
}

.login-form-footer a:hover {
    text-decoration: underline;
}

.login-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

/* 移动端 */
@media (max-width: 768px) {
    .login-page-card {
        padding: 1.5rem;
        border-radius: 10px;
        margin: 0 8px;
    }
}

/* ========================================
   自定义小工具样式
   ======================================== */

/* 热门文章 */
.widget-hot-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-hot-posts li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-hot-posts li:last-child {
    border-bottom: none;
}

.hot-rank {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--border-color);
    color: var(--text-color-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hot-rank.rank-top {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
}

.widget-hot-posts li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-hot-posts li a:hover {
    color: var(--primary-color);
}

.widget-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--text-color-secondary);
    font-size: 0.85rem;
}

/* 作者信息卡片 */
.widget-author-card {
    text-align: center;
}

.author-avatar {
    margin-bottom: 12px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.author-bio {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-color-secondary);
}

/* 广告位 */
.widget-ad {
    border-radius: 8px;
    overflow: hidden;
}

.widget-ad img {
    transition: transform 0.3s ease;
}

.widget-ad a:hover img {
    transform: scale(1.02);
}

/* ========================================
   View Transition API — 主题切换丝滑过渡
   ======================================== */

/* 给整个页面启用 view-transition-name */
:root {
    view-transition-name: root;
}

/* 旧主题淡出 */
::view-transition-old(root) {
    animation: theme-fade-out 0.3s ease;
}

/* 新主题淡入 */
::view-transition-new(root) {
    animation: theme-fade-in 0.3s ease;
}

@keyframes theme-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes theme-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 尊重用户动效偏好 */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

/* ========================================
   极验验证容器
   ======================================== */

.geetest-container {
    margin: 12px 0;
    min-height: 48px;
}

/* ========================================
   xl-btn 按钮样式（Web Component 依赖）
   ======================================== */

.xl-btn {
    padding: 0 15px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid var(--bg-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xl-btn.xl-btn-primary {
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.xl-btn.xl-btn-primary:hover {
    border-color: var(--primary-color-hover);
    background: var(--primary-color-hover);
}

.xl-btn.xl-btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.xl-btn.xl-btn-ghost:hover {
    background: rgba(0,0,0,0.04);
}

/* ========================================
   404 错误页面
   ======================================== */

.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.error-content {
    text-align: center;
    max-width: 480px;
}

.error-icon {
    color: var(--primary-color);
    opacity: 0.4;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
}

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

.error-title {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin: 0 0 8px;
}

.error-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0 0 16px;
    font-weight: 500;
}

.error-message {
    color: #888;
    margin: 0 0 24px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions a {
    text-decoration: none;
}

.error-search {
    margin: 32px 0 0;
    text-align: left;
}

.error-search h3 {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 8px;
    font-weight: 500;
}

.error-suggestions {
    margin: 24px 0 0;
    text-align: left;
}

.error-suggestions h3 {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 8px;
    font-weight: 500;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.error-suggestions ul li a {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
}

.error-suggestions ul li a:hover {
    text-decoration: underline;
}
