/* ============================================
   全局样式 - 参考夸克官网风格
   ============================================ */

:root {
    --primary-color: #0052CC;
    --secondary-color: #00B4E6;
    --accent-color: #FF6B35;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --border-light: #E8E8E8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   容器
   ============================================ */

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

/* ============================================
   头部导航
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    height: 100%;
}

.navbar-brand .logo:hover {
    color: var(--secondary-color);
}

.navbar-brand .logo img {
    display: block;
    vertical-align: middle;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

/* ============================================
   Hero 部分 - 大气简洁
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
}

/* 简约科技背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(0, 120, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(0, 200, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* 装饰线条 */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 120, 255, 0.2), transparent);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><defs><linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%230078FF;stop-opacity:0.06"/><stop offset="100%" style="stop-color:%2300C8FF;stop-opacity:0.03"/></linearGradient></defs><circle cx="600" cy="150" r="200" fill="url(%23g1)"/><circle cx="700" cy="400" r="150" fill="url(%23g1)"/></svg>') no-repeat;
    background-size: contain;
    opacity: 1;
}

/* Hero 左下角装饰图形 */
.hero-decor-left {
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><circle cx="60" cy="60" r="50" fill="none" stroke="%2300C6A0" stroke-width="1" opacity="0.3"/><circle cx="60" cy="60" r="35" fill="none" stroke="%230078FF" stroke-width="1" opacity="0.2"/><circle cx="60" cy="60" r="20" fill="%2300C6A0" opacity="0.1"/></svg>') no-repeat;
    background-size: contain;
    pointer-events: none;
}

.hero-decor-left-2 {
    position: absolute;
    bottom: 30px;
    left: 140px;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect x="10" y="10" width="60" height="60" fill="none" stroke="%230078FF" stroke-width="1" opacity="0.25" transform="rotate(15 40 40)"/><rect x="20" y="20" width="40" height="40" fill="%2300C6A0" opacity="0.08" transform="rotate(15 40 40)"/></svg>') no-repeat;
    background-size: contain;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    position: relative;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
    text-align: left;
    padding-left: 24px;
    border-left: 3px solid #00C6A0;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #1A1A1A;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #5A6C7D;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   按钮样式
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #003DA5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   业务部分
   ============================================ */

.business {
    padding: 80px 20px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 120, 255, 0.15), transparent);
}

/* Business 装饰图形 */
.business-decor {
    position: absolute;
    top: 40px;
    right: 60px;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="none" stroke="%2300C6A0" stroke-width="1" opacity="0.2"/><polygon points="50,30 75,80 25,80" fill="%230078FF" opacity="0.05"/></svg>') no-repeat;
    background-size: contain;
    pointer-events: none;
}

.business-decor-2 {
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="25" fill="none" stroke="%230078FF" stroke-width="1" opacity="0.15" stroke-dasharray="5,5"/></svg>') no-repeat;
    background-size: contain;
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.business-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.business-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.business-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.business-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.business-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.business-card .btn {
    align-self: center;
}

/* ============================================
   产品部分
   ============================================ */

.products {
    padding: 80px 20px;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 120, 255, 0.15), transparent);
}

/* Products 装饰图形 */
.products-decor {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect x="15" y="15" width="50" height="50" fill="none" stroke="%2300C6A0" stroke-width="1" opacity="0.2" transform="rotate(45 40 40)"/><rect x="25" y="25" width="30" height="30" fill="%230078FF" opacity="0.06" transform="rotate(45 40 40)"/></svg>') no-repeat;
    background-size: contain;
    pointer-events: none;
}

.products-decor-2 {
    position: absolute;
    bottom: 80px;
    right: 60px;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><circle cx="60" cy="60" r="45" fill="none" stroke="%230078FF" stroke-width="1" opacity="0.12"/><circle cx="60" cy="60" r="30" fill="none" stroke="%2300C6A0" stroke-width="1" opacity="0.1"/><circle cx="60" cy="60" r="15" fill="%230078FF" opacity="0.05"/></svg>') no-repeat;
    background-size: contain;
    pointer-events: none;
}

.products .section-title {
    color: #1A1A1A;
    position: relative;
    z-index: 1;
}

.products .section-subtitle {
    color: #5A6C7D;
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0052CC15, #00B4E615);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-info .version {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-info .update-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* 产品状态角标 - 左上角横向长条 */
.product-status {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 16px;
    border-radius: 0 0 8px 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
    text-transform: uppercase;
}

.product-status.published {
    background: #00C6A0;
    color: white;
}

.product-status.scheduled {
    background: #0066FF;
    color: white;
}

.product-status.developing {
    background: #FF9500;
    color: white;
}

.product-status.offline {
    background: #8E8E93;
    color: white;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-price.free {
    color: #00C6A0;
}

.product-info .btn {
    align-self: flex-start;
}

/* ============================================
   CTA 部分
   ============================================ */

.cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   业务详情页
   ============================================ */

.business-banner {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.business-detail {
    padding: 60px 20px;
}

/* ============================================
   业务内容区 - 卡片式边框容器
   ============================================ */

.business-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    /* 边框容器 */
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

/* ============================================
   业务描述 - GitHub 风格
   ============================================ */

.business-description {
    /* 基础排版 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #24292f;

    /* 布局 */
    padding: 2rem;
    background: #ffffff;
}

/* 段落 */
.business-description p {
    margin: 0 0 1.2em 0;
    text-align: left;
}

/* 标题层级 - 技术文档风格 */
.business-description h1,
.business-description h2,
.business-description h3,
.business-description h4 {
    margin: 2em 0 0.8em 0;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2328;
}

.business-description h1 { 
    font-size: 2em; 
    border-bottom: 1px solid #d8dee4; 
    padding-bottom: 0.3em;
    margin-top: 0;
}
.business-description h2 { 
    font-size: 1.5em; 
    border-bottom: 1px solid #d8dee4; 
    padding-bottom: 0.3em; 
}
.business-description h3 { font-size: 1.25em; }
.business-description h4 { font-size: 1em; }

/* 链接 */
.business-description a {
    color: #0969da;
    text-decoration: none;
}

.business-description a:hover {
    text-decoration: underline;
}

/* 列表 */
.business-description ul,
.business-description ol {
    margin: 0 0 1.2em 0;
    padding-left: 2em;
}

.business-description li {
    margin: 0.4em 0;
}

/* 代码块 - 深色主题 */
.business-description pre {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.2em;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 1.2em 0;
    color: #c9d1d9;
}

.business-description code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background: rgba(175, 184, 193, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: #24292f;
}

.business-description pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* 代码语法高亮 */
.business-description pre .keyword { color: #ff7b72; }
.business-description pre .string { color: #a5d6ff; }
.business-description pre .comment { color: #8b949e; font-style: italic; }
.business-description pre .function { color: #d2a8ff; }
.business-description pre .number { color: #79c0ff; }

/* 引用块 */
.business-description blockquote {
    margin: 1.2em 0;
    padding: 1em 1.2em;
    border-left: 4px solid #58a6ff;
    background: #f6f8fa;
    border-radius: 0 6px 6px 0;
    color: #57606a;
}

/* 表格 */
.business-description table {
    border-collapse: collapse;
    margin: 1.2em 0;
    width: 100%;
    font-size: 14px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    overflow: hidden;
}

.business-description th,
.business-description td {
    border: 1px solid #d0d7de;
    padding: 0.6em 1em;
    text-align: left;
}

.business-description th {
    background: #f6f8fa;
    font-weight: 600;
    color: #24292f;
}

.business-description tr:nth-child(even) {
    background: #f6f8fa;
}

/* 水平线 */
.business-description hr {
    border: none;
    border-top: 1px solid #d8dee4;
    margin: 2em 0;
    max-width: 1200px;
}

/* 图片 - 技术文档风格 */
.business-description img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 1.5em 0;
}

.business-description img:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 业务详情页 Banner */
.business-banner {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.business-banner.cover {
    background-size: cover;
    background-position: center;
}

.business-banner.tile {
    background-repeat: repeat;
}

.business-banner.stretch {
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.business-banner.blur {
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

/* ============================================
   Banner 模糊渐变模式（blur mode）
   结构：全宽模糊背景 + container宽度清晰图 + 左右渐变羽化
   ============================================ */

.business-banner.banner-blur-mode {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景层：全宽拉伸+模糊 */
.banner-blur-bg {
    position: absolute;
    inset: -20px;           /* 向外扩展避免模糊边缘露白 */
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    -webkit-filter: blur(18px);
    transform: scale(1.05); /* 轻微放大，消除模糊边框虚边 */
    z-index: 0;
}

/* 中间清晰图片容器：最大 container 宽度 */
.banner-clear-img-wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 1;
    overflow: hidden;
}

/* 清晰图片：保持比例，高度撑满容器 */
.banner-clear-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

/* 左侧渐变遮罩：从模糊背景色渐变到透明 */
.banner-fade-left,
.banner-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.banner-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, transparent 100%);
}

.banner-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.55) 0%, transparent 100%);
}

/* 全局暗色遮罩层，让文字更易读 */
.banner-overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
}

.business-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.business-banner-content {
    position: relative;
    z-index: 3;   /* 高于 blur-bg(0)、clear-img(1)、fade遮罩(2) */
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.business-banner-content.align-left {
    text-align: left;
    margin-right: auto;
    padding-left: 10%;
}

.business-banner-content.align-right {
    text-align: right;
    margin-left: auto;
    padding-right: 10%;
}

.business-banner h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.business-banner .intro {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   产品详情页
   ============================================ */

.product-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.download-section {
    padding: 42px 20px 36px;
    background: var(--bg-light);
}

.download-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* 下载区域 */
.download-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.download-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.download-panel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #dce6f3;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 22px;
}

/* 版本卡片行 - 单行最多 3 个 */
.versions-row {
    display: grid;
    gap: 0.95rem;
}

.versions-row.versions-count-1 {
    grid-template-columns: 1fr;
    justify-items: center;
}

.versions-row.versions-count-1 .version-card {
    max-width: 540px;
}

.versions-row.versions-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.versions-row.versions-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .versions-row.versions-count-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .download-panel {
        padding: 18px;
    }

    .versions-row.versions-count-2,
    .versions-row.versions-count-3 {
        grid-template-columns: 1fr;
    }
}

.version-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    background: var(--bg-white);
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 1rem 1rem 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.version-card:hover {
    border-color: #7fb5ff;
    box-shadow: 0 12px 24px rgba(0, 82, 204, 0.14);
    transform: translateY(-2px);
}

.version-card.latest {
    border-color: #4e9dff;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

.version-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.version-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 82, 204, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.version-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.latest-tag {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.version-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #d8e3f0;
}

.version-card-md5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.version-card-md5 code {
    background: #f6f8fb;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #475569;
}

.version-card-md5 button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.version-card-md5 button:hover {
    opacity: 1;
}

.btn-download-full {
    display: block;
    text-align: center;
    padding: 0.72rem;
    margin-top: auto;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.no-versions {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--bg-white);
    border-radius: 12px;
    max-width: none;
    margin: 0 auto;
}

/* 系统要求区域 */
.requirements-section {
    padding: 30px 20px 60px;
    background: var(--bg-white);
}

.requirements-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.requirements-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.system-requirements {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.system-requirements h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ============================================
   内容部分 - GitHub 风格
   ============================================ */

.update-notes,
.tutorial {
    padding: 60px 20px;
}

.update-notes {
    background: var(--bg-white);
}

.tutorial {
    background: #F6F8FA;
}

.update-notes h2,
.tutorial h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: left;
    color: #24292f;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d0d7de;
}

/* GitHub 风格的文章卡片 */
.update-item,
.tutorial-item {
    background: var(--bg-white);
    border: 1px solid #d0d7de;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.tutorial-item {
    background: var(--bg-white);
}

/* 卡片头部 - 类似 GitHub PR/Issue 头部 */
.update-item-header,
.tutorial-item-header {
    padding: 1rem 1.5rem;
    background: #F6F8FA;
    border-bottom: 1px solid #d0d7de;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.update-item-header::before,
.tutorial-item-header::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

.update-item h3,
.tutorial-item h3 {
    color: #24292f;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* 卡片内容区域 - GitHub Markdown 风格 */
.update-item-body,
.tutorial-item-body {
    padding: 1.5rem;
}

.update-content,
.tutorial-content {
    /* GitHub Markdown 基础样式 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #24292f;
}

/* 段落 */
.update-content p,
.tutorial-content p {
    margin: 0 0 1em 0;
}

.update-content p:last-child,
.tutorial-content p:last-child {
    margin-bottom: 0;
}

/* 标题层级 */
.update-content h1,
.tutorial-content h1 {
    font-size: 1.75em;
    font-weight: 600;
    margin: 1.5em 0 0.75em 0;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #d0d7de;
}

.update-content h2,
.tutorial-content h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 1.5em 0 0.75em 0;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #d0d7de;
}

.update-content h3,
.tutorial-content h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin: 1.25em 0 0.5em 0;
}

.update-content h4,
.tutorial-content h4 {
    font-size: 1em;
    font-weight: 600;
    margin: 1em 0 0.5em 0;
}

/* 链接 */
.update-content a,
.tutorial-content a {
    color: #0969da;
    text-decoration: none;
}

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

/* 列表 */
.update-content ul,
.tutorial-content ul,
.update-content ol,
.tutorial-content ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

.update-content li,
.tutorial-content li {
    margin: 0.25em 0;
}

/* 代码块 - GitHub 深色主题 */
.update-content pre,
.tutorial-content pre {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1em;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 1em 0;
    color: #c9d1d9;
}

.update-content code,
.tutorial-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background: rgba(175, 184, 193, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: #24292f;
}

.update-content pre code,
.tutorial-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* 引用块 */
.update-content blockquote,
.tutorial-content blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #58a6ff;
    background: #f6f8fa;
    color: #57606a;
}

.update-content blockquote p,
.tutorial-content blockquote p {
    margin: 0.5em 0;
}

/* 表格 */
.update-content table,
.tutorial-content table {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
    font-size: 14px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    overflow: hidden;
}

.update-content th,
.tutorial-content th,
.update-content td,
.tutorial-content td {
    border: 1px solid #d0d7de;
    padding: 0.5em 1em;
    text-align: left;
}

.update-content th,
.tutorial-content th {
    background: #f6f8fa;
    font-weight: 600;
}

.update-content tr:nth-child(even),
.tutorial-content tr:nth-child(even) {
    background: #f6f8fa;
}

/* 水平线 */
.update-content hr,
.tutorial-content hr {
    border: none;
    border-top: 1px solid #d0d7de;
    margin: 2em 0;
}

/* 富文本内图片样式 - update-content / tutorial-content 专用 */
.update-content img,
.tutorial-content img,
.business-description img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: block;
    margin: 1rem auto;
}

.update-content img:hover,
.tutorial-content img:hover,
.business-description img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Quill 对齐类支持 - ql-align-xxx 类 */
.update-content .ql-align-left img,
.tutorial-content .ql-align-left img,
.business-description .ql-align-left img {
    margin-left: 0;
    margin-right: auto;
}

.update-content .ql-align-center img,
.tutorial-content .ql-align-center img,
.business-description .ql-align-center img {
    margin-left: auto;
    margin-right: auto;
}

.update-content .ql-align-right img,
.tutorial-content .ql-align-right img,
.business-description .ql-align-right img {
    margin-left: auto;
    margin-right: 0;
}

.update-content .ql-align-justify img,
.tutorial-content .ql-align-justify img,
.business-description .ql-align-justify img {
    margin-left: 0;
    margin-right: 0;
}

/* style 属性中的 text-align 支持 */
.update-content p[style*="text-align: left"] img,
.tutorial-content p[style*="text-align: left"] img,
.business-description p[style*="text-align: left"] img,
.update-content div[style*="text-align: left"] img,
.tutorial-content div[style*="text-align: left"] img,
.business-description div[style*="text-align: left"] img {
    margin-left: 0;
    margin-right: auto;
}

.update-content p[style*="text-align: center"] img,
.tutorial-content p[style*="text-align: center"] img,
.business-description p[style*="text-align: center"] img,
.update-content div[style*="text-align: center"] img,
.tutorial-content div[style*="text-align: center"] img,
.business-description div[style*="text-align: center"] img {
    margin-left: auto;
    margin-right: auto;
}

.update-content p[style*="text-align: right"] img,
.tutorial-content p[style*="text-align: right"] img,
.business-description p[style*="text-align: right"] img,
.update-content div[style*="text-align: right"] img,
.tutorial-content div[style*="text-align: right"] img,
.business-description div[style*="text-align: right"] img {
    margin-left: auto;
    margin-right: 0;
}

/* 直接在 img 标签 style 属性中的对齐方式 */
.update-content img[style*="margin-left: auto"],
.tutorial-content img[style*="margin-left: auto"],
.business-description img[style*="margin-left: auto"] {
    margin-left: auto;
    margin-right: 0;
}

.update-content img[style*="margin-right: auto"],
.tutorial-content img[style*="margin-right: auto"],
.business-description img[style*="margin-right: auto"] {
    margin-left: auto;
    margin-right: auto;
}

/* float 对齐方式 */
.update-content img[style*="float: left"],
.tutorial-content img[style*="float: left"],
.business-description img[style*="float: left"] {
    float: left;
    margin: 0.5em 1.5em 0.5em 0;
}

.update-content img[style*="float: right"],
.tutorial-content img[style*="float: right"],
.business-description img[style*="float: right"] {
    float: right;
    margin: 0.5em 0 0.5em 1.5em;
}

/* 清除浮动 */
.update-content p,
.tutorial-content p,
.business-description p {
    overflow: hidden;
}

/* 图片查看器模态框 */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.image-viewer-modal img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-viewer-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.image-viewer-modal .close-btn:hover {
    opacity: 1;
}

/* 图片和视频样式 */
.update-media,
.tutorial-media {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.update-image,
.tutorial-image,
.business-description .update-image,
.business-description .tutorial-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    box-shadow: none;
    display: block;
    margin: 1rem auto;
}

.update-video,
.tutorial-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #d0d7de;
}

/* ============================================
   返回部分
   ============================================ */

.back-section {
    padding: 40px 20px;
    text-align: center;
}

/* ============================================
   底部
   ============================================ */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.icp {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ============================================
   空状态
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ============================================
   动画
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   工具类
   ============================================ */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
