:root {
    --bg: #0b0d17;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(14, 17, 27, 0.72);
    --text: #0f172a;
    --text-light: #f8fafc;
    --primary: #ff8f3f;
    --primary-dark: #e56d12;
    --muted: #64748b;
    --border: rgba(148, 163, 184, 0.25);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.18);
    --shadow-hard: 0 16px 40px rgba(0, 0, 0, 0.35);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-family: var(--font-sans);
}

/* 中文注释：功能名称【全局居中弹窗样式】；用法：为 hy-modal- 开头类提供遮罩与卡片样式，仅在需要显示提示弹窗时生效，避免影响其他页面布局 */
.hy-modal-mask {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .35);
    z-index: 2000;
    opacity: 0;
    transition: opacity .18s ease-out;
}

.hy-modal-mask-show {
    opacity: 1;
}

.hy-modal-shell {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    transform: translateY(8px);
    animation: hyModalPop .22s ease-out forwards;
}

.hy-modal-body {
    padding: 20px 24px 10px;
}

.hy-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.hy-modal-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    word-break: break-all;
}

.hy-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px 16px;
}

.hy-modal-btn {
    min-width: 82px;
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
    transition: background-color .14s ease-out, color .14s ease-out, box-shadow .14s ease-out, border-color .14s ease-out;
}

.hy-modal-btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
    border-color: #2563eb;
}

.hy-modal-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.hy-modal-btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.hy-modal-btn-secondary:hover {
    background: #cbd5f5;
}

.hy-share-mask {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .4);
    z-index: 2100;
    opacity: 0;
    transition: opacity .2s ease-out;
}

.hy-share-mask-show {
    opacity: 1;
}

.hy-share-sheet {
    width: min(360px, 86vw);
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
    transform: translateY(8px);
    animation: hyModalPop .22s ease-out forwards;
}

.hy-share-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    margin-bottom: 12px;
}

.hy-share-actions {
    display: grid;
    gap: 10px;
}

.hy-share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.hy-share-action img,
.hy-share-action svg {
    width: 16px;
    height: 16px;
}

.hy-share-action:hover {
    border-color: rgba(148, 163, 184, 0.4);
    background: #eef2f7;
}

.hy-share-cancel {
    width: 100%;
    height: 38px;
    margin-top: 12px;
    border-radius: 10px;
    border: none;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.hy-share-cancel:hover {
    background: #cbd5f5;
}

.hy-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 8px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.hy-share-trigger img,
.hy-share-trigger svg {
    width: 14px;
    height: 14px;
}

.hy-share-trigger:hover {
    background: #ffffff;
}

.tutorial-thumb .hy-share-trigger {
    position: absolute;
    top: auto;
    right: 28px;
    bottom: 16px;
    z-index: 4;
}

@media (min-width: 641px) {
    .tutorial-section .tutorial-thumb .hy-share-trigger {
        right: 28px;
        bottom: 16px;
    }
}

@keyframes hyModalPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: #f3f4f6;
}

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

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

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

.container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

/* 中文注释：仅下载页加宽容器；功能：为三列产品提供更舒适的横向空间；用法：不影响其他页面的 .container */
.download-section .container {
    width: min(1400px, 92vw);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(245, 245, 248, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: env(safe-area-inset-top);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand img {
    height: 52px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    border-radius: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
}

.main-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav .nav-parent {
    position: relative;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
    font-weight: 700;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.main-nav .nav-parent:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
    opacity: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.main-nav .nav-item.active .nav-parent {
    color: #0f172a;
    opacity: 1;
    font-weight: 600;
}

.main-nav .nav-caret {
    font-size: 12px;
    transform: translateY(1px);
}

.main-nav .nav-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

.main-nav .nav-submenu a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    white-space: nowrap;
}

.main-nav .nav-submenu a::before,
.main-nav .nav-submenu a::after {
    display: none;
}

.main-nav .nav-submenu a:hover {
    background: rgba(0, 0, 0, 0.06);
}

.main-nav .has-submenu.open .nav-submenu,
.main-nav .has-submenu:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav a {
    position: relative;
    padding: 6px 14px;
    border-radius: 8px; /* 中文注释：功能名称：导航按钮苹果风样式；用法：增加圆角到8px */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
    font-weight: 700;
    opacity: 0.8;
    overflow: hidden; /* 确保流光动画不溢出 */
}

/* 中文注释：功能名称：导航 Hover 液态流光；用法：增强流光亮度与不透明度，使效果更明显 */
.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    transition: left 0.6s;
    z-index: 0;
    pointer-events: none;
}

.main-nav a:hover {
    background: rgba(0, 0, 0, 0.08); /* 加深悬停背景色 */
    color: #0f172a;
    opacity: 1;
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* 增加微阴影提升立体感 */
}

.main-nav a:hover::before {
    left: 100%; /* 触发流光动画 */
}

/* 中文注释：功能名称：导航 Active 下划线；用法：选中状态显示底部颜色条 */
.main-nav a.active {
    background: transparent;
    color: #0f172a;
    opacity: 1;
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary); /* 使用主色调 */
    border-radius: 2px;
    box-shadow: 0 -1px 4px rgba(255, 143, 63, 0.4); /* 微光效果 */
}

.main-nav .admin-link {
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.3);
    cursor: pointer;
    padding: 4px 16px;
    border-radius: 24px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.nav-toggle:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.menu-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
    justify-content: center;
}

.hamburger-icon span {
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
}

.nav-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 中文注释：功能名称【首页 Banner 轮播样式】；用法：采用主流整屏横幅布局，统一在不同分辨率下的视觉比例与裁切方式 */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: clamp(240px, 32vh, 420px);
    min-height: 0;
}

@media (max-width: 768px) {
    /* 中文注释：功能名称【移动端 Banner 高度优化】；用法：在手机竖屏下仅按 16:9 比例计算高度，不再施加额外最小高度，保证在最小可视画面内也能完整显示横幅区域 */
    .carousel-container {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    /* 中文注释：功能名称【移动端横幅统一裁切方式】；用法：保持 cover 居中裁切，但高度由 16:9 容器控制，避免出现被最小高度硬撑导致的异常裁切 */
    .hero-slide {
        background-size: cover;
        background-position: center center;
        background-color: #050816;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    /* 中文注释：功能名称【统一背景裁切方式】；用法：所有横幅统一使用 cover 居中裁切，避免不同分辨率下出现上下留白或填充模糊背景 */
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 中文注释：功能名称【官网在线客服悬浮窗样式】；用法：右下角固定展示客服按钮，点击后弹出独立聊天面板，使用 hy-chat-* 前缀避免污染全局样式 */
.hy-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* 中文注释：功能名称【在线客服颜色模式锁定】；用法：限制在线客服悬浮窗在移动端始终采用浅色配色，避免浏览器跟随系统深色模式自动反转输入框和按钮样式。 */
.hy-chat-widget,
.hy-chat-panel {
    color-scheme: light;
}

.hy-chat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.hy-chat-unread {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    margin-left: 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #f9fafb;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hy-chat-unread-hidden {
    display: none;
}

.hy-chat-toggle-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hy-chat-toggle-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.hy-chat-panel {
    position: relative;
    width: 380px;
    height: 460px;
    max-height: 80vh;
    background: rgba(250, 250, 252, 0.98);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hy-chat-hidden {
    display: none;
}

/* 中文注释：功能名称【在线客服头部深色背景】；用法：将对话窗口头部改为深灰渐变纯色背景，提升整体质感并与下方浅色对话区域形成层次对比。 */
.hy-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: linear-gradient(135deg, #111827, #020617);
    color: #f9fafb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.hy-chat-header-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hy-chat-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hy-chat-title-main {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
}

.hy-chat-title-sub {
    font-size: 11px;
    color: #e5e7eb;
}

/* 中文注释：功能名称【品牌副标题与在线徽章同行布局】；用法：将“绘影｜花生国风｜幻象Cos”与“当前客服在线”徽章排在同一行，品牌文案靠左、在线状态徽章靠右对齐。 */
.hy-chat-title-sub-row {
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hy-chat-title-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.hy-chat-title-status-text {
    font-size: 11px;
    color: #e5e7eb;
}

.hy-chat-status {
    margin-top: 4px;
}

.hy-chat-status-title {
    font-size: 13px;
    font-weight: 600;
}

.hy-chat-status-sub {
    margin-top: 2px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hy-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.hy-chat-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
}

.hy-chat-messages {
    padding: 12px 14px 16px;
    flex: 1;
    overflow-y: auto;
    background: #f5f5f7;
}

.hy-chat-msg-row {
    display: flex;
    margin-bottom: 10px;
}

.hy-chat-msg-row.user {
    justify-content: flex-end;
}

.hy-chat-msg-row.agent {
    justify-content: flex-start;
}

.hy-chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.hy-chat-msg-row.user .hy-chat-bubble {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fefce8;
    border-bottom-right-radius: 6px;
}

.hy-chat-msg-row.agent .hy-chat-bubble {
    background: #ffffff;
    color: #111827;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
}

.hy-chat-image {
    max-width: 220px;
    max-height: 180px;
    display: block;
    border-radius: 10px;
}

.hy-chat-agent-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hy-chat-input-row {
    display: flex;
    align-items: center;
    padding: 8px 10px 10px;
    gap: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.98);
}

.hy-chat-input-wrapper {
    padding: 0 8px 8px;
    background: rgba(248, 250, 252, 0.9);
}

.hy-chat-input-tools {
    display: flex;
    gap: 6px;
}

.hy-chat-tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(156, 163, 175, 0.9);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    color: #111827;
}

/* 中文注释：功能名称【在线客服底部按钮 SVG 适配】；用法：统一控制表情、图片、发送按钮内联 SVG 的尺寸和对齐方式，确保与输入框高度协调。 */
.hy-chat-tool-btn svg,
.hy-chat-send svg {
    width: 20px;
    height: 20px;
    display: block;
}

.hy-chat-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
    background-color: #ffffff;
    color: #111827;
}

.hy-chat-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.28);
}

.hy-chat-send {
    border: 1px solid rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hy-chat-send:disabled {
    opacity: 0.6;
    cursor: default;
}

.hy-chat-emoji-panel {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 68px;
    padding: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.hy-chat-emoji-hidden {
    display: none;
}

.hy-chat-emoji-item {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
}

.hy-chat-emoji-item:hover {
    background: rgba(248, 250, 252, 0.9);
}

@media (max-width: 640px) {
    .hy-chat-widget {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
    }
    .hy-chat-panel {
        width: min(420px, 100vw - 24px);
        height: 78vh;
        max-height: calc(100vh - 72px - env(safe-area-inset-bottom));
    }
    .hy-chat-input-wrapper {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* 中文注释：功能名称【横幅整块可点击区域】；用法：当后台配置了跳转链接但关闭按钮时，为整块横幅增加绝对定位的点击层 */
.hero-slide-link {
    position: absolute;
    inset: 0;
    z-index: 6;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(7, 11, 20, 0.85), rgba(15, 23, 42, 0.35));
}

.hero-content {
    position: relative;
    padding: 56px 0; /* 中文注释：功能名称【Banner 文案上下留白】；用法：收紧文案上下留白，让标题和按钮更集中地落在画面中部 */
    max-width: 640px;
}

/* 轮播控制器 */
.carousel-controls {
    position: absolute;
    bottom: 18px;
    right: 24px;
    transform: none;
    display: flex;
    align-items: center;
    z-index: 10;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* 保持原有hero样式作为兼容 */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(7, 11, 20, 0.85), rgba(15, 23, 42, 0.35));
    backdrop-filter: blur(4px);
}

.hero-content {
    position: relative;
    padding: 72px 0;
    max-width: 640px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.08em;
    background: rgba(248, 250, 252, 0.12);
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(36px, 4vw, 52px);
    margin: 18px 0 12px;
    line-height: 1.1;
}

.hero .lead {
    font-size: 18px;
    color: rgba(248, 250, 252, 0.88);
    line-height: 1.7;
}

.actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #ffb347, #ff7a3d);
    color: #0b0d17;
    box-shadow: var(--shadow-soft);
}

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

.btn.ghost {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn.danger {
    background: rgba(239, 68, 68, 0.16);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.section {
    padding: 96px 0;
}

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

.section-head h2 {
    margin: 12px 0;
    font-size: clamp(28px, 3vw, 40px);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-head .cta {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.compare-section {
    padding: 24px 0 80px;
}

.compare-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.compare-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 12px;
}

.compare-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.compare-info-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.compare-badge {
    position: static;
    top: auto;
    left: auto;
    display: inline-flex;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
    color: #1f2937;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    text-transform: none;
    letter-spacing: 0.04em;
}

.compare-info-text {
    font-size: 13px;
    color: #475569;
    white-space: nowrap;
}

.compare-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 36px;
}

.compare-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px;
}

.compare-slider {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/2;
    background: #0f172a;
}

.compare-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-slider img.after {
  clip-path: inset(0 0 0 35%);
  transition: none;          /* 去掉动画，避免滞后 */
  will-change: clip-path;    /* 提前优化绘制 */
}

.compare-slider .handle,
.compare-slider .divider {
  transition: none !important;
}

.compare-slider input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
}

.compare-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.compare-meta .tag {
    align-self: flex-start;
}

.compare-meta h3 {
    margin: 0;
    font-size: 20px;
}

.tag.subtle {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feature-matrix {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-group {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.feature-group-head {
    display: grid;
    gap: 10px;
}

.feature-group-head p {
    margin: 0;
    color: var(--muted);
}

.feature-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 14px;
}

.highlight {
    background: linear-gradient(140deg, #f8fafc, #e2e8f0);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.highlight-card {
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-hard);
}

.highlight-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card li {
    border-bottom: 1px solid rgba(248, 250, 252, 0.1);
    padding-bottom: 16px;
}

.highlight-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
}

.tutorials-preview {
    background: #f8fafc;
}

.tutorial-category-section {
    margin-bottom: 48px;
}

.tutorial-category-section:last-child {
    margin-bottom: 0;
}

.tutorial-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tutorial-category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.cta-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cta-more:hover {
    color: var(--primary-dark);
}

.tutorial-section .tutorial-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.tutorial-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.tutorial-card img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.tutorial-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-size: 32px;
    font-weight: 700;
}

.tutorial-meta {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.tutorial-meta .cta {
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
}

.page-hero {
    padding: 120px 0 56px;
    background: radial-gradient(circle at top right, rgba(255, 153, 102, 0.28), transparent 55%), #f8fafc;
}

.page-hero.slim {
    padding-top: 96px;
}

.page-hero .lead {
    max-width: 640px;
    color: var(--muted);
}

/* 教程页面头部样式 */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
}

.section-subtitle {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* 中文注释：功能名称【下载卡片容器】；用法：作为插件、本地部署等下载卡片的基础样式，并启用相对定位，便于在卡片内部右下角放置价格徽章等绝对定位元素。 */
.download-section .product-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

/* 中文注释：下载页产品列表栅格；功能：移动端1列，普通桌面2列，宽屏3列且平分空间；用法：自适应不同分辨率，不写死两列 */
.download-list {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr; /* 默认移动端单列 */
}
@media (min-width: 960px) {
    .download-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 中等屏幕两列 */
    }
}
/* 中文注释：提高三列断点到更宽屏；功能：避免在容器较窄时勉强三列挤压文字；用法：1360px 以上再启用三列 */
@media (min-width: 1360px) {
    .download-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 宽屏三列，平分横向空间 */
    }
}

/* 中文注释：三列时紧凑排版；功能：缩小图标与间距，给文本留出空间；用法：仅在三列断点下生效 */
@media (min-width: 1360px) {
    .product-header {
        gap: 16px;
    }
    .product-header img {
        width: 160px;
        height: 160px;
        padding: 2px;
    }
    .download-section .product-card {
        padding: 24px;
    }
}

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

.product-header img {
    width: 200px;               /* 放大图标 */
    height: 200px;
    object-fit: contain;        /* 完整显示，不裁剪 */
    background: #fff;           /* 纯白底 */
    padding: 4px;               /* 缩小留白，视觉更大 */
    border-radius: 24px;
    display: block;
}
@media (max-width: 960px) {
    .product-header img {
        width: 120px;           /* 小屏保持适中 */
        height: 120px;
        padding: 2px;
    }
}

.product-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.08);
    font-size: 32px;
    font-weight: 700;
    color: var(--muted);
}

.product-description {
    color: var(--muted);
    margin: 0;
}

/* 中文注释：下载容器等宽左右排列；功能：mac 与 windows 下载容器并排、等宽；用法：桌面端两列，移动端一列 */
.release-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.downloads-tabs-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}

.downloads-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #f8fafc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.downloads-tabs-hint {
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
  text-align: center;
  margin: 24px 0 12px;
}

.downloads-tab-btn {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #0f172a;
  font-weight: 600;
  opacity: 0.8;
  border: 1px solid transparent;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  appearance: none;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
}

.downloads-tab-btn:hover {
  border-color: rgba(15, 23, 42, 0.2);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.downloads-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.35);
  border-color: transparent;
}

@media (max-width: 860px) {
  .downloads-tabs {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
  }
}

@media (max-width: 640px) {
  .downloads-tabs-wrap {
    margin: 8px 0 6px;
    padding: 0 14px;
  }

  .downloads-tabs {
    width: 100%;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  }

  .downloads-tab-btn {
    flex: 1 1 45%;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
  }

  .downloads-tabs-hint {
    margin: 18px 0 10px;
    font-size: 13px;
  }

  .download-share-bar {
    justify-content: stretch;
    gap: 8px;
    margin-bottom: 10px;
  }

  .download-share-bar .btn {
    width: 100%;
    padding: 0 14px;
    height: 36px;
    font-size: 14px;
  }
}

@media (min-width: 1360px) {
  .release-columns {
    gap: 16px;
  }
  .release-column {
    padding: 18px;
    gap: 14px;
    min-width: 0;
  }
}

.download-local-center {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.download-local-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.release-column {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(248, 250, 252, 0.94);
    box-shadow: var(--shadow-soft);
}

.release-column h3 {
    margin: 0;
    font-size: 18px;
}

/* 中文注释：取消内层容器边框；功能：精简结构，避免套两层；用法：保留类但去掉外观以兼容旧结构 */
.release-card {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    display: contents; /* 使内部元素按父容器布局 */
}

.release-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.release-head .version {
    font-weight: 600;
}

.release-head .date {
    color: var(--muted);
    font-size: 14px;
}

.release-card .changelog {
    color: var(--muted);
    line-height: 1.7;
}

.release-card .btn {
    align-self: start;
}

.empty {
    color: var(--muted);
    background: rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-md);
    padding: 16px;
}

.tutorial-section .tutorial-card {
    flex-direction: row;
    gap: 24px;
}

.tutorial-section .tutorial-card img,
.tutorial-section .tutorial-placeholder {
    flex: 1;
    max-width: 320px;
    border-radius: var(--radius-md);
}

.tutorial-section .tutorial-meta {
    flex: 1.4;
}

.tutorial-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tutorial-tile {
    display: flex;
    flex-direction: row;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    height: 160px;
}

.tutorial-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    text-decoration: none;
    color: inherit;
}

.tutorial-thumb {
    position: relative;
    width: auto;
    height: 160px;
    background: rgba(15, 23, 42, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.tutorial-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 20% center;
}

.tutorial-thumb .tutorial-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 72px;
    font-weight: bold;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.05));
    text-align: left;
    padding-left: 10px;
    overflow: hidden;
}

.tutorial-tile-meta {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
    height: 160px;
}

.tutorial-tile-meta .tag {
    align-self: flex-start;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.tutorial-tile-meta h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tutorial-tile-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.3;
    font-size: 11px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tutorial-tile-meta .cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    flex-shrink: 0;
    align-self: flex-end;
}

.about-section {
    background: #ffffff;
}

.about-grid {
    display: grid;
    gap: 36px;
}

.about-card {
    background: linear-gradient(140deg, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.85));
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    gap: 24px;
    align-items: center;
}

.about-card img {
    border-radius: var(--radius-md);
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.site-footer {
    margin-top: 120px;
    background: #0b0d17;
    color: rgba(226, 232, 240, 0.88);
}

.footer-brand-block {
    display: grid;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo img {
    width: 140px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
}

.footer-brand-text span {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.72);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.72);
}

.footer-column h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: rgba(248, 250, 252, 0.92);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-column a {
    color: rgba(226, 232, 240, 0.8);
    font-size: 14px;
}

.footer-column a:hover {
    color: #f8fafc;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 20px 0;
    background: rgba(11, 13, 23, 0.94);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(148, 163, 184, 0.7);
    font-size: 14px;
}

.footer-meta-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-meta-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

.mps-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mps-link img {
    width: 20px;
    height: 20px;
}

/* 中文注释：功能名称【官网底部栅格响应布局】；用法：footer-grid 在桌面端最多展示四列，在中等视口自动收缩为两列，在移动端纵向单列堆叠，保证四个功能区既规整又不拥挤 */
.footer-top.footer-grid {
    display: grid;
    gap: 24px;
    padding: 40px 0 28px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .footer-top.footer-grid {
        gap: 16px;
    }
}

@media (max-width: 980px) {
    .footer-top.footer-grid {
        gap: 10px;
    }
}

.footer-contact {
    align-items: center;
}

.footer-contact-wechat img {
    max-width: 120px;
    border-radius: 8px;
}

.footer-column.footer-column-contact,
.footer-column.footer-column-douyin {
    text-align: center;
}

.footer-meta-main {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-meta-split {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-column.footer-column-douyin {
        display: none !important;
    }
    .footer-top.footer-grid {
        padding: 28px 0 20px;
        gap: 6px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow-x: auto;
    }
    
    .footer-column {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .footer-brand-block {
        grid-column: auto;
        display: grid;
        grid-template-columns: auto;
        gap: 8px;
        align-items: center;
        justify-content: start;
    }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .footer-brand-block p {
        margin: 0;
        font-size: 12px;
        line-height: 1.4;
        max-height: calc(52px * 1.4);
        overflow: hidden;
        display: none;
    }

    .footer-brand-text {
        gap: 2px;
        display: none;
    }

    .footer-logo {
        display: none;
    }

    .footer-brand-text strong {
        font-size: 16px;
        line-height: 1.2;
    }

    .footer-brand-text span {
        font-size: 12px;
        line-height: 1.2;
    }

    .footer-meta-main {
        width: 100%;
        justify-content: center;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        font-size: 10px;
        line-height: 1.4;
        white-space: nowrap;
        text-align: center;
    }

    .footer-meta-links {
        width: 100%;
        justify-content: center;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        font-size: 10px;
        white-space: nowrap;
        text-align: center;
    }

    .footer-meta-split {
        display: none;
    }

    .mps-link img {
        width: 14px;
        height: 14px;
    }

    .footer-column h4 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .footer-column ul {
        gap: 6px;
    }

    .footer-column a {
        font-size: 11px;
    }

    .footer-contact {
        align-items: center;
        overflow: visible;
    }

    .footer-contact-wechat img {
        max-width: 72px;
    }

    .footer-column.footer-column-contact {
        text-align: center;
    }

    .footer-wechat-copy {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background: rgba(255, 255, 255, 0.08);
        color: rgba(226, 232, 240, 0.92);
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .footer-wechat-copy {
        display: none;
    }
}

/* Admin layout */
body.admin {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-sidebar {
    background: #0f172a;
    color: rgba(248, 250, 252, 0.88);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 100vh;
}

.admin-sidebar .brand {
    color: inherit;
}

.admin-sidebar nav {
    display: grid;
    gap: 12px;
}

.admin-sidebar nav a {
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(226, 232, 240, 0.72);
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-sidebar .logout {
    margin-top: auto;
    color: rgba(248, 250, 252, 0.7);
}

.admin-main {
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content {
    padding: 40px;
    flex: 1;
}

.form {
    display: grid;
    gap: 24px;
}

.form-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="date"],
input[type="file"],
textarea,
select {
    font: inherit;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #fff;
}

textarea {
    resize: vertical;
}

.current-image {
    display: grid;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
}

.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.admin-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-card-media {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.admin-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.admin-card-body {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.admin-card-head {
    display: grid;
    gap: 8px;
}

.admin-card-head h3 {
    margin: 0;
    font-size: 20px;
}

.admin-card-head .muted {
    color: var(--muted);
}

/* Tutorial List Layout - 管理后台列表样式 */

.tutorial-list-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    gap: 16px;
    min-height: 80px;
    transition: all 0.2s ease;
    position: relative;
}

.tutorial-list-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tutorial-list-item .drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.tutorial-list-item .drag-handle:active {
    cursor: grabbing;
}

.tutorial-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.tutorial-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

.tutorial-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.tutorial-content .tutorial-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tutorial-content h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.tutorial-content .description {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.tutorial-content .muted {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.3;
}

.tutorial-content .muted a {
    color: #3b82f6;
    text-decoration: none;
}

.tutorial-content .muted a:hover {
    text-decoration: underline;
}

.tutorial-meta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.tutorial-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tutorial-actions form {
    margin: 0;
}

.tutorial-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-actions .btn.ghost {
    background: white;
    color: #6b7280;
    border-color: #d1d5db;
}

.tutorial-actions .btn.ghost:hover {
    background: #f9fafb;
    color: #374151;
}

.tutorial-actions .btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.tutorial-actions .btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.category-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.category-tag.quick-start {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-tag.advanced {
    background: #fef3c7;
    color: #d97706;
}

@media (max-width: 768px) {
    .tutorial-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }
    
    .tutorial-meta-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .tutorial-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* 拖动排序样式 */
.sortable-item {
    cursor: move;
    transition: all 0.2s ease;
}

.sortable-item:hover {
    transform: translateY(-1px);
}

.sortable-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.sortable-item.drag-over {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.placeholder {
    background: #f3f4f6 !important;
    border: 2px dashed #d1d5db !important;
    opacity: 0.7;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

.drag-handle {
    cursor: grab;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.sortable-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle svg {
    color: #666;
}

.drag-placeholder {
    border: 2px dashed #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    margin: 10px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

.placeholder-content {
    color: #007bff;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.admin-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.admin-sublist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.75);
}

.admin-sublist li span {
    font-weight: 600;
}

.subitem-meta {
    display: grid;
    gap: 4px;
}

.subitem-meta strong {
    font-size: 15px;
}

.subitem-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.actions-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.flash-wrapper {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.flash {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 500;
}

.flash.success {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.flash.error {
    background: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
}

.stat-card .label {
    color: var(--muted);
}

.dashboard-panels {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quick-links,
.recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.quick-links a {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
}

.recent-list li {
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 8px;
}

/* Login */
body.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.login-panel {
    background: rgba(15, 23, 42, 0.86);
    padding: 48px;
    border-radius: 28px;
    box-shadow: var(--shadow-hard);
    display: grid;
    gap: 28px;
    width: min(420px, 90vw);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-brand img {
    width: 56px;
    height: 56px;
}

.login-panel .form {
    gap: 18px;
}

.login-panel input {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #fff;
}

.login-panel .btn.primary {
    box-shadow: none;
}

.login-panel .back {
    color: rgba(248, 250, 252, 0.6);
    text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
    .nav-bar {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand login"
            "nav nav";
        align-items: center;
        row-gap: 8px;
        column-gap: 12px;
        padding: 16px 14px 12px;
    }
    .brand {
        grid-area: brand;
        min-width: 0;
    }
    .brand img {
        height: 46px;
        max-width: 260px;
    }
    .nav-toggle {
        display: none;
    }
    .main-nav {
        grid-area: nav;
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        background: transparent;
        padding: 5px 0 3px;
        border-radius: 0;
        box-shadow: none;
        min-width: 0;
        gap: 10px;
        overflow-x: auto;
        overflow-y: visible;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-right: 0;
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav a {
        white-space: nowrap;
        font-size: 14px;
        padding: 6px 9px;
        flex: 0 0 auto;
    }
    .main-nav .nav-item {
        flex: 0 0 auto;
    }
    .main-nav .nav-submenu {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 76px;
        min-width: 0;
    }
    .main-nav .has-submenu:hover .nav-submenu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }
    .main-nav .has-submenu.open .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .user-auth-area {
        grid-area: login;
        position: static;
        justify-self: end;
        align-self: center;
    }
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    .main-nav {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .hero {
        border-radius: 0;
    }
    .carousel-container {
        height: 360px; /* 中文注释：功能名称【平板端 Banner 高度】；用法：在 960px 以下视口进一步降低高度，避免首屏只看到横幅 */
    }
    .hero-slide {
        background-size: cover;
        background-position: center;
    }
    .section {
        padding: 72px 0;
    }
    .compare-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .release-columns {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    body.admin {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: fixed;
        inset: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 50;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }

}
    
    /* 教程页面移动端适配 */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 30px;
    }
    
    .page-hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .page-hero .lead {
        font-size: 15px;
    }

    /* 中文注释：功能名称【教程标签栏移动端优化】；用法：允许横向滚动，避免标签折行挤压，更符合移动端交互习惯 */
    .tutorial-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tutorial-tabs .tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .nav-bar {
        padding: 16px 0;
    }
    .carousel-container {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .hero-slide {
        background-size: cover;
        background-position: center;
    }
    .hero-content {
        padding: 40px 0;
        text-align: center;
    }
    .hero h1 {
        font-size: clamp(24px, 6vw, 36px);
    }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero h1 {
        font-size: 34px;
    }
    .actions {
        flex-direction: column;
        width: 100%;
    }
    .actions .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    /* 修复教程网格在手机上的显示 */
    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .tutorial-card {
        margin-bottom: 16px;
        padding: 16px;
    }
    .tutorial-card img {
        aspect-ratio: 16/9;
        height: 180px;
        object-fit: cover;
        width: 100%;
        height: auto;
    }
    .tutorial-placeholder {
        height: 180px;
        font-size: 24px;
    }
    .tutorial-meta {
        padding: 12px;
    }
    .tutorial-meta h3 {
        font-size: 16px;
        line-height: 1.3;
    }
    .tutorial-meta p {
        font-size: 14px;
        line-height: 1.4;
    }
    .tutorial-section .section-header {
        text-align: center;
        margin-bottom: 24px;
    }
    .tutorial-section .section-title {
        font-size: clamp(20px, 5.5vw, 26px);
    }
    .tutorial-section .section-subtitle {
        font-size: clamp(13px, 3.5vw, 15px);
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
    .tutorial-section .tabbar {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .tutorial-section .tutorial-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tutorial-section .tutorial-tile {
        position: relative;
        flex-direction: column;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .tutorial-section .tutorial-tile:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .tutorial-section .tutorial-thumb {
        height: 100%;
        width: 100%;
        position: absolute;
        inset: 0;
        background: transparent;
    }
    .tutorial-section .tutorial-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(100deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0) 70%);
    }
    .tutorial-section .tutorial-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .tutorial-section .tutorial-tile-meta {
        display: none;
    }
    .tutorial-section .tutorial-thumb .hy-share-trigger {
        right: 12px;
        bottom: 12px;
    }
    .footer-meta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    
    .tutorial-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .tutorial-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    .tutorial-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* 轮播控制器移动端适配 */
    .carousel-controls {
        bottom: 14px;
        right: 16px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    /* 按钮移动端适配 */
    .actions {
        flex-direction: row;
        gap: 16px;
        margin-top: 24px;
        justify-content: center;
    }
    
    .actions .btn {
        flex: 1;
        max-width: 140px;
        padding: 10px 16px;
        font-size: 14px;
        justify-content: center;
    }
    
    /* 教程页面手机端适配 */
    .page-hero {
        padding: 60px 0 32px;
    }
    
    .page-hero.slim {
        padding-top: 48px;
    }
    
    .section-header {
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: clamp(20px, 6vw, 28px);
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .page-hero-downloads,
    .page-hero-tutorials {
        display: none;
    }
}
/* === 产品卡片右上角图标：完整显示、不中断、居中 === */
.product-card .icon,
.product-logo,
.product-card .logo {
  /* 统一一个正方形容器 */
  width: 72px !important;
  height: 72px !important;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* 防止溢出 */
  /* 若图标是背景图的情况 */
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* 若图标是 <img> 的情况 */
.product-card .icon img,
.product-logo img,
.product-card .logo img {
  max-width: 80% !important;
  max-height: 80% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}
.banner {
  border-radius: 0 !important;
  overflow: hidden;
}
/* 3 列网格；窄屏自动 1-2 列 */
.compare-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:24px;
}
@media (max-width: 1200px){
  .compare-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px){
  .compare-grid{ grid-template-columns: 1fr; }
}

/* 卡片与隐藏/展开 */
.compare-card{ background:#fff; border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,.06); overflow:hidden; }
.compare-card.is-hidden{ display:none; }
.compare-card.is-hidden.show{ display:block; }

/* 头部按钮风格（和你站内一致即可） */
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:16px; }
.btn.link{ background:transparent; color:#f97316; border:none; cursor:pointer; }

/* 你的对比滑块容器，保持原来的实现 */
.slider-wrap{ position:relative; }
/* .badge{ position:absolute; top:10px; padding:2px 8px; font-size:12px; border-radius:999px; background:rgba(0,0,0,.5); color:#fff; } */
.compare-info-row .badge{ position: static; }
.compare-info-row .compare-badge{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  color: #1f2937 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
}
.badge.left{ left:10px; }
.badge.right{ right:10px; }

.card-foot{ padding:14px 16px 18px; }
.card-foot .tag{ display:inline-block; padding:2px 8px; font-size:12px; border-radius:999px; background:#eef2ff; color:#4f46e5; margin-bottom:8px; }
.card-foot h3{ margin:4px 0 6px; font-size:16px; font-weight:700; }
.card-foot .muted{ color:#6b7280; font-size:13px; line-height:1.5; }
.compare-card.is-hidden { display: none; }
.compare-card.is-hidden.show { display: block; }
.text-center { text-align: center; }
/* 查看更多：隐藏/展开 */
.compare-card.is-hidden { display: none; }
.compare-card.is-hidden.show { display: block; }

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

/* 产品更新头部布局 */
.product-update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-title {
  flex: 1;
}

.platform-tags {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* 平台标签玻璃效果样式 */
.platform-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin: 0;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.platform-tag.mac {
  background: rgba(0, 122, 255, 0.15);
  color: #007AFF;
  border-color: rgba(0, 122, 255, 0.3);
}

.platform-tag.windows {
  background: rgba(0, 120, 212, 0.15);
  color: #0078D4;
  border-color: rgba(0, 120, 212, 0.3);
}

.platform-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tag.subtle {
  background: rgba(255, 255, 255, 0.15);  /* 半透明浅底 */
  color: #fff;                            /* 白字 */
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}
/* 对比图容器先占位，防止图片加载前高度塌陷 */
.compare-card .compare-slider{
  position: relative;
  aspect-ratio: 16 / 9;   /* 你是横图，16:9 合理 */
  height: auto;
  overflow: hidden;
}
/* 图片撑满容器 */
.compare-card .compare-slider img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 中文注释：功能名称【通用标签切换样式】，用法：直接定义 .tabbar 样式 */
.tabbar {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.tabbar .tab {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.tabbar .tab:hover {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.tabbar .tab.active {
  color: #0B5BD3;
  border-color: rgba(11, 91, 211, 0.35);
  background: rgba(11, 91, 211, 0.08);
}

/* 显式兼容首页对比区 */
.compare-section .tabbar {
  display: flex;
  flex-wrap: nowrap;
  width: fit-content;
  gap: 24px;
  align-items: center;
}
.compare-section .tabbar .tab {
  display: inline-block;
  white-space: nowrap;
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  padding: 6px 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.compare-section .tabbar .tab:hover {
  color: #0f172a;
}
.compare-section .tabbar .tab.active {
  color: #0f172a;
  border-color: #0B5BD3;
}

/* 显式兼容教程区 */
.tutorial-section .tabbar {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.tutorial-section .tabbar .tab {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.tutorial-section .tabbar .tab:hover {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.tutorial-section .tabbar .tab.active {
  color: #0B5BD3;
  border-color: rgba(11, 91, 211, 0.35);
  background: rgba(11, 91, 211, 0.08);
}
/* 中文注释：功能名称【教程页分组标题字体统一缩小】；用法：仅作用于教程页面(.tutorial-section)内部的分组标题(.tutorial-group .section-title)，不影响站点其他页面的 .section-title。 */
.tutorial-section .tutorial-group .section-title {
  font-size: clamp(20px, 2.2vw, 26px); /* 桌面端最高 26px，宽屏不再过大；移动端随视口缩放 */
  font-weight: 600;                     /* 相比全局 700 略低，视觉更柔和 */
  line-height: 1.25;                    /* 提升密度，避免占据过多竖向空间 */
  margin-bottom: 8px;                   /* 与卡片栅格的间距更紧凑 */
}
.release-layout {
  display: grid;
  grid-template-columns: 1fr; /* 中文注释：外层只一列，保证顶部下载区与下方日志等宽 */
  gap: 24px;
  align-items: start;
}

.release-changelog {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  /* 中文注释：默认仅显示固定区块（最新2条），不设置高度与滚动；展开时由 .changelog-more 控制滚动与高度 */
  grid-column: 1 / -1; /* 中文注释：日志区域跨两列全宽 */
}

.release-changelog h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.changelog-item + .changelog-item {
  border-top: 1px solid #eee;
  margin-top: 12px;
  padding-top: 12px;
}

/* 中文注释：更多日志容器；功能：展开后显示约6条并启用右侧滚动条；用法：与按钮 data-toggle="changelog" 配合使用 */
.changelog-more {
  max-height: 480px; /* 约6条，视内容高度略有浮动 */
  overflow-y: auto;
}

/* 中文注释：更新日志展开按钮蓝色高对比；功能：提升“展开更多/收起”可读性；用法：仅作用于下载页日志区的折叠按钮，避免影响全局按钮样式 */
.release-changelog .btn.ghost[data-toggle="changelog"] {
  color: #2563eb;                 /* 蓝色文字 */
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
}
.release-changelog .btn.ghost[data-toggle="changelog"]:hover {
  color: #1d4ed8;                 /* 悬停更深蓝 */
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.45);
}

/* 免费工具模块 */
.free-tool-section {
  padding-top: 24px;
  padding-bottom: 96px;
}

.free-tool-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.free-tool-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-weight: 600;
}

.free-tool-meta .pill-accent {
  background: rgba(255, 143, 63, 0.12);
  border-color: rgba(255, 143, 63, 0.35);
  color: #b45309;
}

.free-tool-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(420px, 42vw, 540px) minmax(380px, 1fr); /* 左列宽些贴合竖图，右列自适应 */
  gap: 36px;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 14% 12%, rgba(255, 143, 63, 0.22), transparent 34%), linear-gradient(135deg, #0f172a, #0c1424 60%, #0b0f1c);
  color: #e2e8f0;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  align-items: center; /* 让图片与文字区垂直对齐 */
}

.free-tool-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.free-tool-visual {
  position: relative;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.05), transparent 45%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 520px;
}

.free-tool-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.08), transparent 40%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(12, 18, 32, 0.38) 100%);
  pointer-events: none;
}

.free-tool-visual img {
  width: 100%;
  height: auto;
  max-height: 720px; /* 防止超出容器 */
  object-fit: contain; /* 保持原尺寸比例 */
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.free-tool-info {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  align-self: center; /* 右侧内容与图片水平居中 */
  z-index: 1;
}

.free-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  width: fit-content;
}

.free-tool-description {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.7;
}

.free-tool-info h3 {
  margin: 12px 0 6px;
}

.free-tool-features h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #f8fafc;
}

.free-tool-features ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.free-tool-features li {
  position: relative;
  padding-left: 18px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.5;
}

.free-tool-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb347, #ff7a3d);
  box-shadow: 0 0 0 6px rgba(255, 122, 61, 0.15);
}

.free-tool-features strong {
  color: #f8fafc;
}

.free-tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn.surface {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn.surface:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

/* 窄屏时上下排 */
@media (max-width: 960px) {
  .release-layout {
    grid-template-columns: 1fr;
  }
  .release-columns {
    grid-template-columns: 1fr; /* 中文注释：窄屏下下载容器改为单列堆叠 */
  }
  /* 中文注释：删除空规则集 .release-changelog 以消除语法诊断警告 */
  .free-tool-card {
    grid-template-columns: 1fr;
    padding: 26px;
    }
  .free-tool-visual {
    padding: 12px;
  }
  .free-tool-section {
    padding-top: 12px;
    padding-bottom: 72px;
  }
}
/* 产品动态下载按钮样式 */
.download-btn {
  background: var(--primary) !important;
  color: white !important;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.download-btn:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 143, 63, 0.3);
}

.product-update-actions {
  margin-top: 12px;
}

[hidden] { display: none !important; }

/* 5K显示器优化 - 仅调整高度，不再覆盖横幅缩放策略 */
@media (min-width: 2560px) {
    .carousel-container {
        min-height: 800px;
    }
    .hero {
        min-height: 800px;
    }
}

/* 高分辨率显示器优化：仅保持滚动行为，缩放策略沿用基础规则（例如 contain） */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero, .hero-slide {
        background-attachment: scroll;
    }
}

/* 超宽屏优化 */
@media (min-width: 1920px) {
    .carousel-container {
        min-height: 600px;
    }
    .hero {
        min-height: 600px;
    }
}
/* === Banner 老版自适应高度规则（保留以兼容旧 hero 区块），不再强制 contain/cover，由更靠后的 hero-carousel 精细规则覆盖 === */
/* === PATCH v2: Banner 自适应（移动端不再巨大） === */

/* === Banner 自适应（移动端不再巨大）旧规则说明占位，具体高度规则由 hero-carousel 专用段落覆盖 === */
/* === PATCH v2: 教程页标题图标完整显示、与文字对齐 === */

/* 覆盖标题里的小图标（按你实际 DOM 任选能命中的选择器即可） */
.page-title img,
.section-title img,
.tutorial-header img,
.header .brand img {
  display: inline-block !important;   /* 不再强制 block */
  width: 1.25em;
  height: 1.25em;
  max-width: none !important;
  vertical-align: -0.18em;            /* 视觉居中 */
  border-radius: 0 !important;        /* 取消全局圆角，避免切边 */
  object-fit: contain;                 /* 不裁切图标 */
}

/* 父容器不裁切 */
.page-title,
.section-title,
.tutorial-header,
.header .brand {
  overflow: visible !important;
}

/* 如标题图标是背景图而非 <img>（另选其类名） */
.page-title .icon,
.section-title .icon,
.tutorial-header .icon {
  display: inline-block;
  width: 1.25em; height: 1.25em;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: -0.18em;
}

/* 中文注释：功能名称【首页 Banner 背景展示简化】；用法：取消旧版双层模糊填充与边缘羽化，只保留一层 cover 背景，保证原图与后台上传内容保持一致，不再出现“虚化填充 + 割裂感” */
.hero-slide {
  --hero-bg: none;
}

.hero-slide-foreground,
.hero-slide-image {
  display: none;
}

.hero-slide .overlay {
  z-index: 1;
}

.hero-slide .hero-content {
  position: relative;
  z-index: 2;
}


/* 兜底：旧样式里用到但未定义的变量 */
:root { --text-dark: var(--text); }
/* === 手机端：修复效果/副标题和按钮的对齐问题 === */
@media (max-width: 640px) {
  .section-head {
    display: flex !important;
    flex-direction: row !important;   /* 保持横向布局 */
    justify-content: space-between !important;
    align-items: center !important;   /* 垂直居中，避免文字上浮 */
    gap: 12px !important;
  }

  .section-head h2,
  .section-head .section-subtitle {
    margin: 0 !important;
    text-align: left !important;
  }

  .section-head .cta {
    margin: 0 !important;
    flex-shrink: 0;                   /* 按钮固定在右侧 */
  }

  .compare-tabs-row {
    overflow-x: auto;
  }

  .compare-section {
    padding: 12px 0 56px;
  }

  .compare-info-row {
    gap: 8px;
    margin-bottom: 8px;
  }

  .compare-info-text {
    font-size: 12px;
  }

  .compare-cta {
    font-size: 12px;
  }
}
/* 中文注释：标题下分割线；功能：与内容做视觉分隔；用法：在模板中插入 .section-divider */
.release-column .section-divider {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin-top: 4px;
}
