: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-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: inherit;
    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);
}

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

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

.brand img {
    width: 44px;
    height: 44px;
}

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
    background: rgba(15, 23, 42, 0.08);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(15, 23, 42, 0.08);
}

.nav-toggle span {
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero轮播样式 */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 520px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.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: 72px 0;
    max-width: 640px;
}

/* 轮播控制器 */
.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.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-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 {
    /* 中文注释：功能名称【教程页列表网格】；用法：教程页中的 .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;
}

/* 中文注释：下载页产品列表栅格；功能：移动端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;
}

.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;
    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; /* 左边 30% 位置为基准 */
}

.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-top {
    display: grid;
    gap: 40px;
    padding: 72px 0 48px;
    grid-template-columns: minmax(280px, 1.2fr) minmax(320px, 2fr);
}

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

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

.footer-logo img {
    width: 52px;
    height: 52px;
}

.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: 6px;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.72);
}

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

.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;
}

/* 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-toggle {
        display: flex;
    }
    .main-nav {
        position: absolute;
        top: 72px;
        right: 20px;
        background: rgba(248, 250, 252, 0.95);
        flex-direction: column;
        padding: 16px;
        border-radius: 16px;
        box-shadow: var(--shadow-soft);
        display: none;
        min-width: 200px;
    }
    .main-nav.open {
        display: flex;
    }
    .hero {
        border-radius: 0;
    }
    .carousel-container {
        height: 400px;
    }
    .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;
    }
    .tutorial-tile {
        grid-template-columns: 1fr;
    }
    .tutorial-thumb {
        min-height: 180px;
    }
    .tutorial-section .tutorial-card {
        flex-direction: column;
    }
    /* 修复教程网格在平板上的显示 */
    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .tutorial-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .tutorial-tile {
        height: auto;
        min-height: 140px;
        flex-direction: column;
    }
    .tutorial-thumb {
        height: 100px;
        width: 100%;
    }
    .tutorial-tile-meta {
        height: auto;
        padding: 12px;
        flex: 1;
    }
    .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;
    }
    
    /* 教程页面移动端适配 */
    .page-hero {
        padding: 80px 0 40px;
    }
    
    .page-hero.slim {
        padding-top: 60px;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .nav-bar {
        padding: 16px 0;
    }
    .carousel-container {
        height: 300px;
    }
    .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-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tutorial-tile {
        min-height: 160px;
        padding: 0;
        flex-direction: column;
    }
    .tutorial-thumb {
        height: 100px;
        width: 100%;
    }
    .tutorial-tile-meta {
        padding: 8px 10px;
        flex: 1;
    }
    .tutorial-tile-meta h3 {
        font-size: 14px;
        line-height: 1.3;
        margin: 4px 0;
    }
    .tutorial-tile-meta p {
        font-size: 12px;
        line-height: 1.4;
        margin: 4px 0;
        display: -webkit-box;
        /* 中文注释：功能名称【多行截断兼容】，用法：同时提供标准属性 line-clamp 与 -webkit-line-clamp 以增强兼容性。 */
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .tutorial-tile-meta .tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    .tutorial-tile-meta .cta {
        font-size: 12px;
        margin-top: auto;
    }
    .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: 20px;
        gap: 16px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 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;
    }
}
/* === 产品卡片右上角图标：完整显示、不中断、居中 === */
.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; }
.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;
}

/* 中文注释：功能名称【首页对比区标签切换样式】，用法：仅作用于 .compare-section 内的 .tabbar/.tab，避免影响全局按钮样式。 */
.compare-section .tabbar {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.compare-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;
}
.compare-section .tabbar .tab:hover {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.compare-section .tabbar .tab.active {
  color: #0B5BD3; /* 蓝色，和展开/收起一致提升可读性 */
  border-color: rgba(11, 91, 211, 0.35);
  background: rgba(11, 91, 211, 0.08);
}
/* 中文注释：功能名称【教程页标签切换样式】，用法：仅作用于 .tutorial-section 内的 .tabbar/.tab，保持与首页一致且不影响全局样式。 */
.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) {
    .hero, .hero-slide, .carousel-container {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center top;
    }
    .carousel-container {
        min-height: 800px;
    }
    .hero {
        min-height: 800px;
    }
}

/* 高分辨率显示器优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero, .hero-slide {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

/* 超宽屏优化 */
@media (min-width: 1920px) {
    .carousel-container {
        min-height: 600px;
    }
    .hero {
        min-height: 600px;
    }
}
/* === Banner 统一按 1920x600 比例自适应（避免拉伸/裁切） === */
:root {
  --banner-ratio: calc(600 / 1920);           /* 0.3125 */
}

/* 让轮播容器/老hero高度跟随宽度，限制上下限 */
.carousel-container,
.hero {
  /* 高度 = 31.25vw（1920:600），并限制在 520px ~ 960px 之间 */
  height: clamp(520px, calc(100vw * var(--banner-ratio)), 960px) !important;
  min-height: unset !important;  /* 覆盖旧的 min-height 规则 */
}

/* 超宽屏（特别是 5K、超长横屏）用 contain 防止关键信息被裁 */
@media (min-aspect-ratio: 32/9) {
  .hero,
  .hero-slide {
    background-size: contain !important;
    background-position: center center !important;
    background-color: #0b0d17; /* 留黑边更高级，避免露底色 */
  }
}

/* 如果 Banner 用的是 <img class="banner">，确保不被拉伸 */
.banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 600;      /* 让容器先占位，防抖动 */
  object-fit: cover;              /* 宽高自适应时保持裁切而不拉伸 */
  border-radius: 0 !important;
  overflow: hidden;
}
/* === PATCH v2: Banner 自适应（移动端不再巨大） === */

/* 基础：移动端优先 */
:root { --banner-ratio: 600/1920; } /* 0.3125 */

/* 默认用于移动端（宽度 < 1024px） */
.carousel-container,
.hero {
  /* 高度跟随宽度，合理范围 180px ~ 320px */
  height: clamp(180px, calc(100vw * var(--banner-ratio)), 320px) !important;
  min-height: unset !important; /* 覆盖旧的 min-height */
}

/* 桌面端 ≥1024px：提高下限，但不夸张 */
@media (min-width: 1024px) {
  .carousel-container,
  .hero {
    /* 400px ~ 960px，随 31.25vw 缩放 */
    height: clamp(400px, calc(100vw * var(--banner-ratio)), 960px) !important;
  }
}

/* 超宽屏（超宽纵横比，仅桌面端时启用 contain，避免裁主体） */
@media (min-width: 1280px) and (min-aspect-ratio: 32/9) {
  .hero,
  .hero-slide {
    background-size: contain !important;
    background-position: center center !important;
    background-color: #0b0d17;
  }
}

/* 如 Banner 用 <img class="banner">，确保不会被拉伸 */
.banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1920/600;
  object-fit: cover;
}
/* === 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 统一按 1920x600 比例自适应（避免拉伸/裁切） === */
:root {
  --banner-ratio: calc(600 / 1920);           /* 0.3125 */
}

/* 让轮播容器/老hero高度跟随宽度，限制上下限 */
.carousel-container,
.hero {
  /* 高度 = 31.25vw（1920:600），并限制在 520px ~ 960px 之间 */
  height: clamp(520px, calc(100vw * var(--banner-ratio)), 960px) !important;
  min-height: unset !important;  /* 覆盖旧的 min-height 规则 */
}

/* 超宽屏（特别是 5K、超长横屏）用 contain 防止关键信息被裁 */
@media (min-aspect-ratio: 32/9) {
  .hero,
  .hero-slide {
    background-size: contain !important;
    background-position: center center !important;
    background-color: #0b0d17; /* 留黑边更高级，避免露底色 */
  }
}

/* 如果 Banner 用的是 <img class="banner">，确保不被拉伸 */
.banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 600;      /* 让容器先占位，防抖动 */
  object-fit: cover;              /* 宽高自适应时保持裁切而不拉伸 */
  border-radius: 0 !important;
  overflow: hidden;
}
/* === PATCH v2: Banner 自适应（移动端不再巨大） === */

/* 基础：移动端优先 */
:root { --banner-ratio: 600/1920; } /* 0.3125 */

/* 默认用于移动端（宽度 < 1024px） */
.carousel-container,
.hero {
  /* 高度跟随宽度，合理范围 180px ~ 320px */
  height: clamp(180px, calc(100vw * var(--banner-ratio)), 320px) !important;
  min-height: unset !important; /* 覆盖旧的 min-height */
}

/* 桌面端 ≥1024px：提高下限，但不夸张 */
@media (min-width: 1024px) {
  .carousel-container,
  .hero {
    /* 400px ~ 960px，随 31.25vw 缩放 */
    height: clamp(400px, calc(100vw * var(--banner-ratio)), 960px) !important;
  }
}

/* 超宽屏（超宽纵横比，仅桌面端时启用 contain，避免裁主体） */
@media (min-width: 1280px) and (min-aspect-ratio: 32/9) {
  .hero,
  .hero-slide {
    background-size: contain !important;
    background-position: center center !important;
    background-color: #0b0d17;
  }
}

/* 如 Banner 用 <img class="banner">，确保不会被拉伸 */
.banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1920/600;
  object-fit: cover;
}

/* === 教程卡片：手机端横向胶囊（左图右文），自适应高度、不卡文字 === */
@media (max-width: 640px) {
  /* 一列排列 */
  .tutorial-list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* 卡片本体：用网格分两列，不固定高度 */
  .tutorial-tile {
    display: grid !important;
    grid-template-columns: 34% 66% !important; /* 按你说的“给文字让出空间”，可调 32/68 或 35/65 */
    align-items: stretch !important;
    height: auto !important;                  /* 关键：不要定高 */
    min-height: 128px !important;             /* 给一个舒适的下限即可 */
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;               /* 圆角统一由外层裁切（避免露缝） */
  }

  /* 左侧缩略图：只保留左边两个圆角，右边是直角贴合文字列 */
  .tutorial-thumb {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 28px 0 0 28px !important;  /* ← 关键：右侧直角，杜绝中间白缝 */
    overflow: hidden !important;
    background: transparent !important;
    flex-shrink: 0 !important;
  }
  .tutorial-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;             /* 横图铺满，不留黑边 */
    .tutorial-thumb img { object-position: left top !important; }
    display: block !important;
    border-radius: 0 !important;
  }

  /* 右侧文字区：自适应高度，2 行省略即可 */
  .tutorial-tile-meta {
    padding: 10px 14px !important;
    height: auto !important;                  /* 关键：不要定 60/140px */
    display: grid !important;
    grid-auto-rows: min-content;
    align-content: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }
  .tutorial-tile-meta .tag {
    font-size: 11px !important;
    padding: 2px 6px !important;
  }
  .tutorial-tile-meta h3 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.28 !important;
    color: var(--text, #0f172a) !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
  .tutorial-tile-meta p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: var(--muted) !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
  .tutorial-tile-meta .cta {
    margin-top: 4px !important;
    font-size: 12px !important;
    align-self: end !important;
  }
}

/* 兜底：旧样式里用到但未定义的变量 */
: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;                   /* 按钮固定在右侧 */
  }
}
/* 中文注释：标题下分割线；功能：与内容做视觉分隔；用法：在模板中插入 .section-divider */
.release-column .section-divider {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin-top: 4px;
}
