/* ============================================
   新网站补充样式 - 基于重构方案V2
   ============================================ */

/* ============================================
   按钮图标样式优化（Item 9）
   ============================================ */
.btn .iconify,
.btn [class*="icon-"] {
    margin-right: 0.5rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.btn .iconify {
    font-size: 1.1em;
}

/* RTL按钮图标调整 */
html[lang="ar"] .btn .iconify {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ============================================
   产品矩阵图标优化（Item 6）
   ============================================ */
.product-matrix-card .product-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.2);
}

.product-matrix-card .product-icon .iconify,
.product-matrix-card .product-icon .iconify svg {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px;
}

/* ============================================
   Safari SVG 动画兼容（Item 2）
   Safari对SMIL动画支持不稳定，添加CSS动画作为增强
   ============================================ */

/* 确保SVG在Safari中正确渲染 */
.hero-image .compression-animation svg {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Safari CSS动画增强 - 当SMIL不生效时的fallback */
@supports (-webkit-touch-callout: none) {
    /* Safari特定样式 */
    .hero-image .compression-animation svg animate,
    .hero-image .compression-animation svg animateTransform {
        /* 确保动画属性可见 */
        display: inline;
    }
}

/* 流动粒子CSS动画（Safari fallback） */
@keyframes safariFlowRight {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(60px); opacity: 0; }
}

@keyframes safariFlowLeft {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(60px); opacity: 0; }
}

@keyframes safariRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes safariPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes safariDashOffset {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -14; }
}

@keyframes safariBarGrow {
    from { width: 0; }
    to { width: var(--target-width, 420px); }
}

/* ============================================
   Footer联系信息图标样式（Item 7 + Item 16对齐修复）
   ============================================ */
.footer-col ul li .iconify {
    color: var(--accent-color);
    margin-right: 0.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.footer-col ul li .iconify svg {
    width: 16px;
    height: 16px;
}

html[lang="ar"] .footer-col ul li .iconify {
    margin-right: 0;
    margin-left: 0.5rem;
}

.footer-col ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.footer-col ul li a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

/* 产品矩阵 */
.product-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.product-matrix-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.product-matrix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 86, 219, 0.12);
    border-color: var(--primary-color);
}

/* product-icon styles moved to top of file */

.product-matrix-card h3 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.product-matrix-card p {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-matrix-card .product-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.product-matrix-card .product-link:hover {
    color: var(--accent-color);
}

/* 技术栈展示 */
.tech-stack-section {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0;
}

.tech-stack-section .section-title h2 {
    color: white;
}

.tech-stack-section .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 2rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.tech-badge .iconify {
    color: var(--accent-color);
}

/* 真实数据统计 */
.real-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.real-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.real-stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.08);
}

.real-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.real-stat-label {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.real-stat-note {
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-top: 0.25rem;
}

/* 信创兼容性表 */
.xinchuang-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.xinchuang-table th {
    background: var(--primary-color);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.xinchuong-table td,
.xinchuang-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    background: white;
}

.xinchuang-table tr:hover td {
    background: var(--light-color);
}

.xinchuang-table .check-icon {
    color: var(--success-color);
    font-weight: bold;
}

/* 场景卡片 */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.scenario-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 86, 219, 0.12);
}

.scenario-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scenario-card-header .iconify {
    font-size: 2rem;
    flex-shrink: 0;
}

.scenario-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
}

.scenario-card-body {
    padding: 1.5rem;
}

.scenario-card-body ul {
    list-style: none;
    padding: 0;
}

.scenario-card-body li {
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--dark-color);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.scenario-card-body li::before {
    content: "▶";
    color: var(--primary-color);
    font-size: 0.7rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* 代码块 */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.code-block .code-comment {
    color: #64748b;
}

.code-block .code-keyword {
    color: #c084fc;
}

.code-block .code-string {
    color: #86efac;
}

.code-block .code-type {
    color: #fbbf24;
}

.code-block .code-function {
    color: #60a5fa;
}

/* 格式矩阵 */
.format-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.format-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.format-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.08);
}

.format-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-color);
}

.format-category-header .iconify {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.format-category-header h4 {
    font-size: 1rem;
    color: var(--dark-color);
    margin: 0;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.format-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--light-color);
    color: var(--dark-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #e5e7eb;
}

.format-tag.external {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

/* 架构图容器 */
.architecture-diagram {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
}

.arch-layer {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
    transition: var(--transition);
}

.arch-layer:hover {
    transform: scale(1.02);
}

.arch-layer-1 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); border-left: 4px solid #3b82f6; }
.arch-layer-2 { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); border-left: 4px solid #8b5cf6; }
.arch-layer-3 { background: linear-gradient(135deg, #bbf7d0, #86efac); border-left: 4px solid #22c55e; }
.arch-layer-4 { background: linear-gradient(135deg, #fef3c7, #fde68a); border-left: 4px solid #f59e0b; }
.arch-layer-5 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); border-left: 4px solid #ec4899; }

.arch-layer h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.arch-layer p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.arch-arrow {
    text-align: center;
    color: var(--gray-color);
    font-size: 1.2rem;
    margin: 4px 0;
}

/* 下载卡片 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.download-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 86, 219, 0.12);
    border-color: var(--primary-color);
}

.download-card .os-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.download-card .download-version {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

/* 安全特性网格 */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.security-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

.security-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.08);
}

.security-item .security-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.security-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.security-item p {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin: 0;
}

/* 内容提示框 */
.info-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.info-box.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.info-box.success {
    background: #f0fdf4;
    border-left-color: var(--success-color);
}

/* 特性标签 */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dbeafe;
}

/* 响应式 */
@media (max-width: 1024px) {
    .product-matrix { grid-template-columns: repeat(2, 1fr); }
    .scenario-grid { grid-template-columns: repeat(2, 1fr); }
    .download-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .product-matrix { grid-template-columns: 1fr; }
    .scenario-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .real-stats { grid-template-columns: repeat(2, 1fr); }
    .format-matrix { grid-template-columns: 1fr; }
}

/* 页面通用样式 */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 内容区域 */
.content-section {
    padding: 4rem 0;
}

.content-section.alt {
    background: white;
}

/* 产品特性列表 */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.feature-list li .iconify {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 产品截图 */
.product-screenshot {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    margin: 1.5rem 0;
}

/* ============================================
   SVG Logo 样式适配
   ============================================ */

/* 覆盖原有logo-icon尺寸，适配含文字的SVG logo */
.logo-icon {
    width: auto !important;
    height: 44px !important;
    overflow: visible !important;
}

@media (min-width: 1025px) {
    .logo-icon {
        height: 52px !important;
    }
}

/* SVG logo图片样式 */
.logo-icon img.logo-svg {
    width: auto;
    height: 100%;
    max-width: 300px;
    object-fit: contain;
}

/* 隐藏logo-text，因为SVG已包含文字 */
.logo-text {
    display: none !important;
}

/* 移动端logo缩小 */
@media (max-width: 768px) {
    .logo-icon {
        height: 38px !important;
    }
    .logo-icon img.logo-svg {
        max-width: 220px;
    }
}

/* ============================================
   Hero SVG 压缩示意图样式
   ============================================ */

.hero-image {
    width: 100%;
}

.hero-image .compression-animation {
    width: 100%;
    height: auto !important;
    background: linear-gradient(135deg, #1a56db 0%, #0d2b5c 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(13, 43, 92, 0.3);
    overflow: hidden;
    display: block !important;
    padding: 0;
}

.hero-image .compression-animation::before {
    display: none !important;
}

.hero-image .compression-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

/* RTL适配 */
html[lang="ar"] .hero-image .compression-animation {
    direction: ltr;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-image .compression-animation {
        min-height: 250px;
    }
}

/* ============================================
   全面移动端自适应补充样式
   支持手机、平板、触摸屏设备
   ============================================ */

/* 平板设备 (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .page-hero h1 { font-size: 2.2rem; }
    .page-hero p { font-size: 1rem; }
    .section-title h2 { font-size: 1.8rem; }
    .content-section { padding: 3rem 0; }
    .page-hero { padding: 7rem 0 3rem; }
    .product-matrix-card .product-icon { width: 52px; height: 52px; }
    .product-matrix-card .product-icon .iconify,
    .product-matrix-card .product-icon .iconify svg { width: 28px !important; height: 28px !important; }
    .integration-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机设备 (< 768px) - 全面的补充样式 */
@media (max-width: 768px) {
    /* 字体调整 */
    .page-hero h1 { font-size: 1.8rem; }
    .page-hero p { font-size: 0.95rem; max-width: 100%; }
    .section-title h2 { font-size: 1.5rem; }
    .section-title p { font-size: 0.9rem; }
    .content-section h3 { font-size: 1.1rem; }

    /* 内边距调整 */
    .content-section { padding: 2.5rem 0; }
    .page-hero { padding: 6rem 0 2.5rem; }
    .container { padding: 0 1rem; }

    /* 信息框 */
    .info-box { padding: 1rem; font-size: 0.85rem; margin: 1rem 0; }

    /* 代码块 */
    .code-block { font-size: 0.75rem; padding: 1rem; }

    /* 表格水平滚动 */
    .xinchuang-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

    /* 架构图 */
    .architecture-diagram { padding: 1rem; margin: 1rem 0; }
    .arch-layer { padding: 0.75rem 1rem; }
    .arch-layer h4 { font-size: 0.85rem; }
    .arch-layer p { font-size: 0.75rem; }

    /* 产品矩阵卡片 */
    .product-matrix-card { padding: 1.5rem 1rem; }
    .product-matrix-card .product-icon { width: 48px; height: 48px; border-radius: 12px; }
    .product-matrix-card .product-icon .iconify,
    .product-matrix-card .product-icon .iconify svg { width: 26px !important; height: 26px !important; }
    .product-matrix-card h3 { font-size: 1.05rem; }
    .product-matrix-card p { font-size: 0.85rem; }

    /* 场景卡片 */
    .scenario-card-header { padding: 1rem; }
    .scenario-card-header .iconify { font-size: 1.5rem; }
    .scenario-card-header h3 { font-size: 1rem; }
    .scenario-card-body { padding: 1rem; }
    .scenario-card-body li { font-size: 0.8rem; }

    /* 下载卡片 */
    .download-card { padding: 1.5rem 1rem; }
    .download-card .os-icon { font-size: 2.5rem; }
    .download-card h3 { font-size: 1.05rem; }

    /* 安全项 */
    .security-item { padding: 1rem; gap: 0.75rem; }
    .security-item .security-icon { width: 40px; height: 40px; }
    .security-item h4 { font-size: 0.95rem; }
    .security-item p { font-size: 0.8rem; }

    /* 集成卡片 */
    .integration-grid { grid-template-columns: 1fr; gap: 1rem; }
    .integration-card { padding: 1.5rem 1rem; }
    .integration-card h3 { font-size: 1.1rem; }
    .integration-card p { font-size: 0.85rem; }

    /* 技术徽章 */
    .tech-badges { gap: 8px; }
    .tech-badge { padding: 8px 14px; font-size: 0.8rem; }

    /* 格式标签 */
    .format-category { padding: 1rem; }
    .format-tag { font-size: 0.7rem; padding: 3px 8px; }

    /* 特性标签 */
    .feature-tag { font-size: 0.75rem; padding: 3px 10px; }

    /* CTA区域 */
    .cta { padding: 3rem 0; }
    .cta h2 { font-size: 1.5rem; }
    .cta p { font-size: 0.95rem; }

    /* 统计数据 */
    .real-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .real-stat-item { padding: 1rem; }
    .real-stat-number { font-size: 1.5rem; }

    /* 触摸友好的按钮 */
    .btn { min-height: 44px; }

    /* SVG 和图片自适应 */
    .hero-image img,
    .hero-image svg { max-width: 100%; height: auto; }

    /* 面包屑 */
    .breadcrumb { font-size: 0.75rem; padding: 0.5rem 0; }

    /* 特性列表 */
    .feature-list li { font-size: 0.85rem; padding: 8px 0; }

    /* 产品截图 */
    .product-screenshot { margin: 1rem 0; }
}

/* 小手机设备 (< 480px) */
@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p { font-size: 0.85rem; }
    .section-title h2 { font-size: 1.3rem; }
    .section-title p { font-size: 0.85rem; }

    .content-section { padding: 2rem 0; }
    .page-hero { padding: 5rem 0 2rem; }

    .product-matrix-card { padding: 1.25rem 0.75rem; }
    .product-matrix-card .product-icon { width: 48px; height: 48px; }
    .product-matrix-card h3 { font-size: 1rem; }
    .product-matrix-card p { font-size: 0.8rem; }

    .scenario-card-header { padding: 0.75rem; }
    .scenario-card-header .iconify { font-size: 1.25rem; }
    .scenario-card-header h3 { font-size: 0.95rem; }
    .scenario-card-body li { font-size: 0.75rem; }

    .info-box { padding: 0.75rem; font-size: 0.8rem; }

    .download-card { padding: 1.25rem 0.75rem; }
    .download-card .os-icon { font-size: 2rem; }
    .download-card h3 { font-size: 1rem; }

    .security-item { padding: 0.75rem; }
    .security-item h4 { font-size: 0.9rem; }
    .security-item p { font-size: 0.75rem; }

    .integration-card { padding: 1.25rem 0.75rem; }
    .integration-card h3 { font-size: 1rem; }
    .integration-card p { font-size: 0.8rem; }

    .tech-badge { padding: 6px 12px; font-size: 0.75rem; }

    .real-stat-number { font-size: 1.25rem; }
    .real-stat-label { font-size: 0.75rem; }

    .cta h2 { font-size: 1.3rem; }
    .cta p { font-size: 0.85rem; }

    .architecture-diagram { padding: 0.75rem; }
    .arch-layer { padding: 0.5rem 0.75rem; margin-bottom: 8px; }
    .arch-layer h4 { font-size: 0.8rem; }
    .arch-layer p { font-size: 0.7rem; }

    .format-category { padding: 0.75rem; }
    .format-category-header h4 { font-size: 0.9rem; }

    .code-block { font-size: 0.7rem; padding: 0.75rem; }
}

/* 触摸屏设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 触摸友好的交互元素 - 最小44x44px触摸目标 */
    .btn,
    .nav-links a,
    .lang-selector-toggle,
    .lang-selector-dropdown button,
    .product-matrix-card .product-link,
    .download-card a {
        min-height: 44px;
    }

    /* 移除 hover 变换效果，使用 active 代替 */
    .product-matrix-card:hover,
    .scenario-card:hover,
    .download-card:hover,
    .security-item:hover,
    .format-category:hover,
    .real-stat-item:hover,
    .integration-card:hover {
        transform: none;
    }

    .product-matrix-card:active,
    .scenario-card:active,
    .download-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* 防止双击缩放 */
    * {
        touch-action: manipulation;
    }

    /* 触摸反馈 */
    .btn:active,
    .nav-links a:active {
        opacity: 0.7;
    }

    /* 移除 tap 高亮 */
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding-top: 5rem; }
    .hero-content { min-height: calc(100vh - 5rem); }
    .page-hero { padding: 5rem 0 1.5rem; }
    .page-hero h1 { font-size: 1.5rem; }
}

/* 大屏手机/小平板 (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .real-stats { grid-template-columns: repeat(2, 1fr); }
}

/* 打印样式 */
@media print {
    .navbar, .footer, .mobile-menu-toggle, .lang-selector, .cta { display: none !important; }
    .hero { padding-top: 2rem; }
    .container { max-width: 100%; }
}

/* ===== 产品体验区域 (截图 + 在线演示) ===== */
.experience-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 截图卡片 */
.screenshot-card .screenshot-wrapper {
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-card .screenshot-wrapper img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.screenshot-card:hover .screenshot-wrapper img {
    transform: scale(1.02);
}

/* 演示卡片 */
.demo-card {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a56db 0%, #0d2b5c 100%);
    color: #fff;
}

.demo-card .demo-icon {
    font-size: 3rem;
    opacity: 0.95;
}

.demo-card .demo-icon .iconify {
    color: #60a5fa;
}

.demo-card .experience-info h3 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.demo-card .experience-info p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.demo-card .btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.demo-card .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 通用信息区 */
.experience-info {
    padding: 1.5rem;
}

.experience-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2f4a;
    margin-bottom: 0.5rem;
}

.experience-info p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .experience-grid {
        gap: 1.5rem;
    }
    .screenshot-card .screenshot-wrapper img {
        max-height: 280px;
    }
    .demo-card {
        padding: 1.5rem;
    }
    .experience-info {
        padding: 1rem;
    }
    .experience-info h3 {
        font-size: 1.1rem;
    }
    .experience-info p {
        font-size: 0.85rem;
    }
}

/* 单列在线演示布局 (首页截图已移至 desktop.html) */
.experience-grid-single {
    grid-template-columns: 1fr !important;
    max-width: 600px;
    margin: 2rem auto 0;
}

.experience-grid-single .demo-card {
    padding: 2.5rem;
}

/* ===== 产品页面截图展示 (desktop.html) ===== */
.screenshot-showcase {
    padding: 3rem 0;
}

.screenshot-display {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.screenshot-display:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.screenshot-display .screenshot-img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    /* Safety net: ensure image is always visible even if JS fade-in fails */
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .screenshot-display {
        padding: 1rem;
    }
    .screenshot-display .screenshot-img {
        max-height: 400px;
    }
    .experience-grid-single .demo-card {
        padding: 1.5rem;
    }
}

/* 可访问性：减少动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
